github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/pkg/libvirttools/TestDomainForcedShutdown.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: '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: invoking StopContainer() 94 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Shutdown' 95 value: 96 ignored: true 97 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Shutdown' 98 value: 99 ignored: true 100 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Shutdown' 101 value: 102 ignored: true 103 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Destroy' 104 - name: 'storage: volumes: RemoveVolumeByName' 105 value: virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550 106 - name: container info after the container is stopped 107 value: 108 Config: 109 Attempt: 42 110 CPUPeriod: 0 111 CPUQuota: 0 112 CPUShares: 0 113 ContainerAnnotations: 114 foo: bar 115 ContainerLabels: 116 io.kubernetes.container.name: container1 117 io.kubernetes.pod.name: testName_0 118 io.kubernetes.pod.namespace: default 119 io.kubernetes.pod.uid: 69eec606-0493-5825-73a4-c5e0c0236155 120 ContainerSideNetwork: null 121 DomainUUID: 231700d5-c9a6-5a49-738d-99a954c51550 122 Environment: null 123 Image: fake/image1 124 LogDirectory: /var/log/pods/69eec606-0493-5825-73a4-c5e0c0236155 125 LogPath: container1_42.log 126 MemoryLimitInBytes: 0 127 Mounts: null 128 Name: container1 129 ParsedAnnotations: 130 CDImageType: nocloud 131 CPUModel: "" 132 CPUSetting: null 133 DiskDriver: scsi 134 ForceDHCPNetworkConfig: false 135 InjectedFiles: null 136 MetaData: null 137 RootVolumeSize: 0 138 SSHKeys: null 139 SystemUUID: null 140 UserData: null 141 UserDataOverwrite: false 142 UserDataScript: "" 143 VCPUCount: 1 144 VirtletChown9pfsMounts: false 145 PodAnnotations: 146 hello: world 147 virt: let 148 PodName: testName_0 149 PodNamespace: default 150 PodSandboxID: 69eec606-0493-5825-73a4-c5e0c0236155 151 VolumeDevices: null 152 CreatedAt: 1496175540000000000 153 Id: 231700d5-c9a6-5a49-738d-99a954c51550 154 Name: container1 155 StartedAt: 1496175541000000000 156 State: 2 157 - name: invoking RemoveContainer() 158 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Undefine' 159 - name: 'storage: volumes: RemoveVolumeByName' 160 value: virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550