github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/pkg/libvirttools/TestDomainDefinitions__volumes.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: 'storage: volumes: CreateStorageVol'
    26    value: |-
    27      <volume>
    28        <name>virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol1</name>
    29        <allocation>0</allocation>
    30        <capacity unit="MB">1024</capacity>
    31        <target>
    32          <format type="qcow2"></format>
    33        </target>
    34      </volume>
    35  - name: 'storage: volumes: virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol1: Format'
    36  - name: 'storage: volumes: CreateStorageVol'
    37    value: |-
    38      <volume>
    39        <name>virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol2</name>
    40        <allocation>0</allocation>
    41        <capacity unit="MB">2</capacity>
    42        <target>
    43          <format type="qcow2"></format>
    44        </target>
    45      </volume>
    46  - name: 'storage: volumes: virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol2: Format'
    47  - name: 'storage: volumes: CreateStorageVol'
    48    value: |-
    49      <volume>
    50        <name>virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol3</name>
    51        <allocation>0</allocation>
    52        <capacity unit="MB">1024</capacity>
    53        <target>
    54          <format type="qcow2"></format>
    55        </target>
    56      </volume>
    57  - name: 'storage: volumes: virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol3: Format'
    58  - name: 'domain conn: DefineDomain'
    59    value: |-
    60      <domain type="kvm">
    61        <name>virtlet-231700d5-c9a6-container1</name>
    62        <uuid>231700d5-c9a6-5a49-738d-99a954c51550</uuid>
    63        <memory unit="MiB">1024</memory>
    64        <vcpu>1</vcpu>
    65        <cputune>
    66          <shares>0</shares>
    67          <period>0</period>
    68          <quota>0</quota>
    69        </cputune>
    70        <os>
    71          <type>hvm</type>
    72          <boot dev="hd"></boot>
    73        </os>
    74        <features>
    75          <acpi></acpi>
    76        </features>
    77        <on_poweroff>destroy</on_poweroff>
    78        <on_reboot>restart</on_reboot>
    79        <on_crash>restart</on_crash>
    80        <devices>
    81          <emulator>/vmwrapper</emulator>
    82          <disk type="file" device="disk">
    83            <driver name="qemu" type="qcow2"></driver>
    84            <source file="/var/lib/virtlet/volumes/virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550"></source>
    85            <target dev="sda" bus="scsi"></target>
    86            <address type="drive" controller="0" bus="0" target="0" unit="0"></address>
    87          </disk>
    88          <disk type="file" device="disk">
    89            <driver name="qemu" type="qcow2"></driver>
    90            <source file="/var/lib/virtlet/volumes/virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol1"></source>
    91            <target dev="sdb" bus="scsi"></target>
    92            <address type="drive" controller="0" bus="0" target="0" unit="1"></address>
    93          </disk>
    94          <disk type="file" device="disk">
    95            <driver name="qemu" type="qcow2"></driver>
    96            <source file="/var/lib/virtlet/volumes/virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol2"></source>
    97            <target dev="sdc" bus="scsi"></target>
    98            <address type="drive" controller="0" bus="0" target="0" unit="2"></address>
    99          </disk>
   100          <disk type="file" device="disk">
   101            <driver name="qemu" type="qcow2"></driver>
   102            <source file="/var/lib/virtlet/volumes/virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol3"></source>
   103            <target dev="sdd" bus="scsi"></target>
   104            <address type="drive" controller="0" bus="0" target="0" unit="3"></address>
   105          </disk>
   106          <disk type="file" device="cdrom">
   107            <driver name="qemu" type="raw"></driver>
   108            <source file="/var/lib/virtlet/config/config-231700d5-c9a6-5a49-738d-99a954c51550.iso"></source>
   109            <target dev="sde" bus="scsi"></target>
   110            <readonly></readonly>
   111            <address type="drive" controller="0" bus="0" target="0" unit="4"></address>
   112          </disk>
   113          <controller type="scsi" index="0" model="virtio-scsi">
   114            <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"></address>
   115          </controller>
   116          <controller type="pci" model="pci-root"></controller>
   117          <serial type="unix">
   118            <source mode="connect" path="/var/lib/libvirt/streamer.sock">
   119              <reconnect enabled="yes" timeout="1"></reconnect>
   120            </source>
   121            <target port="0"></target>
   122          </serial>
   123          <input type="tablet" bus="usb"></input>
   124          <graphics type="vnc" port="-1"></graphics>
   125          <video>
   126            <model type="cirrus"></model>
   127          </video>
   128        </devices>
   129        <commandline xmlns="http://libvirt.org/schemas/domain/qemu/1.0">
   130          <env name="VIRTLET_EMULATOR" value="/usr/bin/kvm"></env>
   131          <env name="VIRTLET_NET_KEY" value="/tmp/fakenetns"></env>
   132          <env name="VIRTLET_CONTAINER_ID" value="231700d5-c9a6-5a49-738d-99a954c51550"></env>
   133          <env name="VIRTLET_CONTAINER_LOG_PATH" value="/var/log/pods/69eec606-0493-5825-73a4-c5e0c0236155/container1_42.log"></env>
   134        </commandline>
   135      </domain>
   136  - name: 'domain conn: virtlet-231700d5-c9a6-container1: Create'
   137  - name: 'domain conn: virtlet-231700d5-c9a6-container1: iso image'
   138    value:
   139      meta-data: '{"instance-id":"testName_0.default","local-hostname":"testName_0"}'
   140      network-config: |
   141        version: 1
   142      user-data: |
   143        #cloud-config
   144  - name: 'domain conn: virtlet-231700d5-c9a6-container1: Destroy'
   145  - name: 'domain conn: virtlet-231700d5-c9a6-container1: Undefine'
   146  - name: 'storage: volumes: RemoveVolumeByName'
   147    value: virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550
   148  - name: 'storage: volumes: RemoveVolumeByName'
   149    value: virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol1
   150  - name: 'storage: volumes: RemoveVolumeByName'
   151    value: virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol2
   152  - name: 'storage: volumes: RemoveVolumeByName'
   153    value: virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol3