github.com/Mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/pkg/manager/TestUpdateResources.out.yaml (about) 1 - name: 'domain conn: DefineDomain' 2 value: |- 3 <domain type="kvm"> 4 <name>virtlet-231700d5-c9a6-container-for-testName_0</name> 5 <uuid>231700d5-c9a6-5a49-738d-99a954c51550</uuid> 6 <memory unit="MiB">1024</memory> 7 <vcpu>1</vcpu> 8 <cputune> 9 <shares>0</shares> 10 <period>0</period> 11 <quota>0</quota> 12 </cputune> 13 <os> 14 <type>hvm</type> 15 <boot dev="hd"></boot> 16 </os> 17 <features> 18 <acpi></acpi> 19 </features> 20 <on_poweroff>destroy</on_poweroff> 21 <on_reboot>restart</on_reboot> 22 <on_crash>restart</on_crash> 23 <devices> 24 <emulator>/vmwrapper</emulator> 25 <disk type="file" device="disk"> 26 <driver name="qemu" type="qcow2"></driver> 27 <source file="/var/lib/virtlet/volumes/virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550"></source> 28 <target dev="sda" bus="scsi"></target> 29 <address type="drive" controller="0" bus="0" target="0" unit="0"></address> 30 </disk> 31 <disk type="file" device="cdrom"> 32 <driver name="qemu" type="raw"></driver> 33 <source file="/var/lib/virtlet/config/config-231700d5-c9a6-5a49-738d-99a954c51550.iso"></source> 34 <target dev="sdb" bus="scsi"></target> 35 <readonly></readonly> 36 <address type="drive" controller="0" bus="0" target="0" unit="1"></address> 37 </disk> 38 <controller type="scsi" index="0" model="virtio-scsi"> 39 <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"></address> 40 </controller> 41 <controller type="pci" model="pci-root"></controller> 42 <serial type="unix"> 43 <source mode="connect" path="/var/lib/libvirt/streamer.sock"> 44 <reconnect enabled="yes" timeout="1"></reconnect> 45 </source> 46 <target port="0"></target> 47 </serial> 48 <input type="tablet" bus="usb"></input> 49 <graphics type="vnc" port="-1"></graphics> 50 <video> 51 <model type="cirrus"></model> 52 </video> 53 </devices> 54 <commandline xmlns="http://libvirt.org/schemas/domain/qemu/1.0"> 55 <env name="VIRTLET_EMULATOR" value="/usr/bin/kvm"></env> 56 <env name="VIRTLET_NET_KEY" value="69eec606-0493-5825-73a4-c5e0c0236155"></env> 57 <env name="VIRTLET_CONTAINER_ID" value="231700d5-c9a6-5a49-738d-99a954c51550"></env> 58 <env name="VIRTLET_CONTAINER_LOG_PATH" value="/var/log/test_log_directory/container-for-testName_0_0.log"></env> 59 </commandline> 60 </domain> 61 - name: 'enter: UpdateContainerResources' 62 value: 63 container_id: 231700d5-c9a6-5a49-738d-99a954c51550 64 linux: 65 cpuset_cpus: "42" 66 - name: 'domain conn: virtlet-231700d5-c9a6-container-for-testName_0: Undefine' 67 - name: 'domain conn: DefineDomain' 68 value: |- 69 <domain type="kvm"> 70 <name>virtlet-231700d5-c9a6-container-for-testName_0</name> 71 <uuid>231700d5-c9a6-5a49-738d-99a954c51550</uuid> 72 <memory unit="MiB">1024</memory> 73 <vcpu>1</vcpu> 74 <cputune> 75 <shares>0</shares> 76 <period>0</period> 77 <quota>0</quota> 78 </cputune> 79 <os> 80 <type>hvm</type> 81 <boot dev="hd"></boot> 82 </os> 83 <features> 84 <acpi></acpi> 85 </features> 86 <on_poweroff>destroy</on_poweroff> 87 <on_reboot>restart</on_reboot> 88 <on_crash>restart</on_crash> 89 <devices> 90 <emulator>/vmwrapper</emulator> 91 <disk type="file" device="disk"> 92 <driver name="qemu" type="qcow2"></driver> 93 <source file="/var/lib/virtlet/volumes/virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550"></source> 94 <target dev="sda" bus="scsi"></target> 95 <address type="drive" controller="0" bus="0" target="0" unit="0"></address> 96 </disk> 97 <disk type="file" device="cdrom"> 98 <driver name="qemu" type="raw"></driver> 99 <source file="/var/lib/virtlet/config/config-231700d5-c9a6-5a49-738d-99a954c51550.iso"></source> 100 <target dev="sdb" bus="scsi"></target> 101 <readonly></readonly> 102 <address type="drive" controller="0" bus="0" target="0" unit="1"></address> 103 </disk> 104 <controller type="scsi" index="0" model="virtio-scsi"> 105 <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"></address> 106 </controller> 107 <controller type="pci" model="pci-root"></controller> 108 <serial type="unix"> 109 <source mode="connect" path="/var/lib/libvirt/streamer.sock"> 110 <reconnect enabled="yes" timeout="1"></reconnect> 111 </source> 112 <target port="0"></target> 113 </serial> 114 <input type="tablet" bus="usb"></input> 115 <graphics type="vnc" port="-1"></graphics> 116 <video> 117 <model type="cirrus"></model> 118 </video> 119 </devices> 120 <commandline xmlns="http://libvirt.org/schemas/domain/qemu/1.0"> 121 <env name="VIRTLET_EMULATOR" value="/usr/bin/kvm"></env> 122 <env name="VIRTLET_NET_KEY" value="69eec606-0493-5825-73a4-c5e0c0236155"></env> 123 <env name="VIRTLET_CONTAINER_ID" value="231700d5-c9a6-5a49-738d-99a954c51550"></env> 124 <env name="VIRTLET_CONTAINER_LOG_PATH" value="/var/log/test_log_directory/container-for-testName_0_0.log"></env> 125 <env name="VIRTLET_CPUSETS" value="42"></env> 126 </commandline> 127 </domain> 128 - name: 'leave: UpdateContainerResources' 129 value: {}