github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/pkg/libvirttools/TestUpdateCpusets.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="sda" bus="scsi"></target>
    53            <address type="drive" controller="0" bus="0" target="0" unit="0"></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="sdb" bus="scsi"></target>
    59            <readonly></readonly>
    60            <address type="drive" controller="0" bus="0" target="0" unit="1"></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: Calling setting cpuset for emulator proces
    86  - name: GetDelimitedReader
    87    value: /run/libvirt/qemu/virtlet-231700d5-c9a6-testName_0.pid
    88  - name: ReadString
    89    value: "4242"
    90  - name: GetDelimitedReader
    91    value: /proc/4242/cgroup
    92  - name: ReadString
    93    value: |
    94      3:cpuset:/somepath/in/cgroups/emulator
    95  - name: WriteFile
    96    value:
    97    - /sys/fs/cgroup/cpuset/somepath/in/cgroups/emulator/cpuset.cpus
    98    - "42"
    99  - name: Calling setting cpuset for domain definition
   100  - name: 'domain conn: virtlet-231700d5-c9a6-container1: Undefine'
   101  - name: 'domain conn: DefineDomain'
   102    value: |-
   103      <domain type="kvm">
   104        <name>virtlet-231700d5-c9a6-container1</name>
   105        <uuid>231700d5-c9a6-5a49-738d-99a954c51550</uuid>
   106        <memory unit="MiB">1024</memory>
   107        <vcpu>1</vcpu>
   108        <cputune>
   109          <shares>0</shares>
   110          <period>0</period>
   111          <quota>0</quota>
   112        </cputune>
   113        <os>
   114          <type>hvm</type>
   115          <boot dev="hd"></boot>
   116        </os>
   117        <features>
   118          <acpi></acpi>
   119        </features>
   120        <on_poweroff>destroy</on_poweroff>
   121        <on_reboot>restart</on_reboot>
   122        <on_crash>restart</on_crash>
   123        <devices>
   124          <emulator>/vmwrapper</emulator>
   125          <disk type="file" device="disk">
   126            <driver name="qemu" type="qcow2"></driver>
   127            <source file="/var/lib/virtlet/volumes/virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550"></source>
   128            <target dev="sda" bus="scsi"></target>
   129            <address type="drive" controller="0" bus="0" target="0" unit="0"></address>
   130          </disk>
   131          <disk type="file" device="cdrom">
   132            <driver name="qemu" type="raw"></driver>
   133            <source file="/var/lib/virtlet/config/config-231700d5-c9a6-5a49-738d-99a954c51550.iso"></source>
   134            <target dev="sdb" bus="scsi"></target>
   135            <readonly></readonly>
   136            <address type="drive" controller="0" bus="0" target="0" unit="1"></address>
   137          </disk>
   138          <controller type="scsi" index="0" model="virtio-scsi">
   139            <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"></address>
   140          </controller>
   141          <controller type="pci" model="pci-root"></controller>
   142          <serial type="unix">
   143            <source mode="connect" path="/var/lib/libvirt/streamer.sock">
   144              <reconnect enabled="yes" timeout="1"></reconnect>
   145            </source>
   146            <target port="0"></target>
   147          </serial>
   148          <input type="tablet" bus="usb"></input>
   149          <graphics type="vnc" port="-1"></graphics>
   150          <video>
   151            <model type="cirrus"></model>
   152          </video>
   153        </devices>
   154        <commandline xmlns="http://libvirt.org/schemas/domain/qemu/1.0">
   155          <env name="VIRTLET_EMULATOR" value="/usr/bin/kvm"></env>
   156          <env name="VIRTLET_NET_KEY" value="/tmp/fakenetns"></env>
   157          <env name="VIRTLET_CONTAINER_ID" value="231700d5-c9a6-5a49-738d-99a954c51550"></env>
   158          <env name="VIRTLET_CONTAINER_LOG_PATH" value="/var/log/pods/69eec606-0493-5825-73a4-c5e0c0236155/container1_42.log"></env>
   159          <env name="VIRTLET_CPUSETS" value="42"></env>
   160        </commandline>
   161      </domain>
   162  - name: Invoking RemoveContainer()
   163  - name: 'domain conn: virtlet-231700d5-c9a6-container1: Undefine'
   164  - name: 'storage: volumes: RemoveVolumeByName'
   165    value: virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550