github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/pkg/libvirttools/TestDomainDefinitions__virtio_disk_driver.out.yaml (about)

     1  - name: GetImagePathDigestAndVirtualSize
     2    value: fake/image1
     3  - name: 'storage: CreateStoragePool'
     4    value: |-
     5      <pool type="dir">
     6        <name>volumes</name>
     7        <target>
     8          <path>/var/lib/virtlet/volumes</path>
     9        </target>
    10      </pool>
    11  - name: 'storage: volumes: CreateStorageVol'
    12    value: |-
    13      <volume type="file">
    14        <name>virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550</name>
    15        <allocation unit="b">0</allocation>
    16        <capacity unit="b">424242</capacity>
    17        <target>
    18          <format type="qcow2"></format>
    19        </target>
    20        <backingStore>
    21          <path>/fake/volume/path</path>
    22          <format type="qcow2"></format>
    23        </backingStore>
    24      </volume>
    25  - name: 'domain conn: DefineDomain'
    26    value: |-
    27      <domain type="kvm">
    28        <name>virtlet-231700d5-c9a6-container1</name>
    29        <uuid>231700d5-c9a6-5a49-738d-99a954c51550</uuid>
    30        <memory unit="MiB">1024</memory>
    31        <vcpu>1</vcpu>
    32        <cputune>
    33          <shares>0</shares>
    34          <period>0</period>
    35          <quota>0</quota>
    36        </cputune>
    37        <os>
    38          <type>hvm</type>
    39          <boot dev="hd"></boot>
    40        </os>
    41        <features>
    42          <acpi></acpi>
    43        </features>
    44        <on_poweroff>destroy</on_poweroff>
    45        <on_reboot>restart</on_reboot>
    46        <on_crash>restart</on_crash>
    47        <devices>
    48          <emulator>/vmwrapper</emulator>
    49          <disk type="file" device="disk">
    50            <driver name="qemu" type="qcow2"></driver>
    51            <source file="/var/lib/virtlet/volumes/virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550"></source>
    52            <target dev="vda" bus="virtio"></target>
    53            <address type="pci" domain="0x0000" bus="0x01" slot="0x01" function="0x0"></address>
    54          </disk>
    55          <disk type="file" device="cdrom">
    56            <driver name="qemu" type="raw"></driver>
    57            <source file="/var/lib/virtlet/config/config-231700d5-c9a6-5a49-738d-99a954c51550.iso"></source>
    58            <target dev="vdb" bus="virtio"></target>
    59            <readonly></readonly>
    60            <address type="pci" domain="0x0000" bus="0x01" slot="0x02" function="0x0"></address>
    61          </disk>
    62          <controller type="scsi" index="0" model="virtio-scsi">
    63            <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"></address>
    64          </controller>
    65          <controller type="pci" model="pci-root"></controller>
    66          <serial type="unix">
    67            <source mode="connect" path="/var/lib/libvirt/streamer.sock">
    68              <reconnect enabled="yes" timeout="1"></reconnect>
    69            </source>
    70            <target port="0"></target>
    71          </serial>
    72          <input type="tablet" bus="usb"></input>
    73          <graphics type="vnc" port="-1"></graphics>
    74          <video>
    75            <model type="cirrus"></model>
    76          </video>
    77        </devices>
    78        <commandline xmlns="http://libvirt.org/schemas/domain/qemu/1.0">
    79          <env name="VIRTLET_EMULATOR" value="/usr/bin/kvm"></env>
    80          <env name="VIRTLET_NET_KEY" value="/tmp/fakenetns"></env>
    81          <env name="VIRTLET_CONTAINER_ID" value="231700d5-c9a6-5a49-738d-99a954c51550"></env>
    82          <env name="VIRTLET_CONTAINER_LOG_PATH" value="/var/log/pods/69eec606-0493-5825-73a4-c5e0c0236155/container1_42.log"></env>
    83        </commandline>
    84      </domain>
    85  - name: 'domain conn: virtlet-231700d5-c9a6-container1: Create'
    86  - name: 'domain conn: virtlet-231700d5-c9a6-container1: iso image'
    87    value:
    88      meta-data: '{"instance-id":"testName_0.default","local-hostname":"testName_0"}'
    89      network-config: |
    90        version: 1
    91      user-data: |
    92        #cloud-config
    93  - name: 'domain conn: virtlet-231700d5-c9a6-container1: Destroy'
    94  - name: 'domain conn: virtlet-231700d5-c9a6-container1: Undefine'
    95  - name: 'storage: volumes: RemoveVolumeByName'
    96    value: virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550