github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/pkg/libvirttools/TestDomainDefinitions__file_injection.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: PutFiles' 26 value: 27 files: 28 /path/to_file: content 29 imagePath: /var/lib/virtlet/volumes/virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550 30 - name: 'domain conn: DefineDomain' 31 value: |- 32 <domain type="kvm"> 33 <name>virtlet-231700d5-c9a6-container1</name> 34 <uuid>231700d5-c9a6-5a49-738d-99a954c51550</uuid> 35 <memory unit="MiB">1024</memory> 36 <vcpu>1</vcpu> 37 <cputune> 38 <shares>0</shares> 39 <period>0</period> 40 <quota>0</quota> 41 </cputune> 42 <os> 43 <type>hvm</type> 44 <boot dev="hd"></boot> 45 </os> 46 <features> 47 <acpi></acpi> 48 </features> 49 <on_poweroff>destroy</on_poweroff> 50 <on_reboot>restart</on_reboot> 51 <on_crash>restart</on_crash> 52 <devices> 53 <emulator>/vmwrapper</emulator> 54 <disk type="file" device="disk"> 55 <driver name="qemu" type="qcow2"></driver> 56 <source file="/var/lib/virtlet/volumes/virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550"></source> 57 <target dev="sda" bus="scsi"></target> 58 <address type="drive" controller="0" bus="0" target="0" unit="0"></address> 59 </disk> 60 <disk type="file" device="cdrom"> 61 <driver name="qemu" type="raw"></driver> 62 <source file="/var/lib/virtlet/config/config-231700d5-c9a6-5a49-738d-99a954c51550.iso"></source> 63 <target dev="sdb" bus="scsi"></target> 64 <readonly></readonly> 65 <address type="drive" controller="0" bus="0" target="0" unit="1"></address> 66 </disk> 67 <controller type="scsi" index="0" model="virtio-scsi"> 68 <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"></address> 69 </controller> 70 <controller type="pci" model="pci-root"></controller> 71 <serial type="unix"> 72 <source mode="connect" path="/var/lib/libvirt/streamer.sock"> 73 <reconnect enabled="yes" timeout="1"></reconnect> 74 </source> 75 <target port="0"></target> 76 </serial> 77 <input type="tablet" bus="usb"></input> 78 <graphics type="vnc" port="-1"></graphics> 79 <video> 80 <model type="cirrus"></model> 81 </video> 82 </devices> 83 <commandline xmlns="http://libvirt.org/schemas/domain/qemu/1.0"> 84 <env name="VIRTLET_EMULATOR" value="/usr/bin/kvm"></env> 85 <env name="VIRTLET_NET_KEY" value="/tmp/fakenetns"></env> 86 <env name="VIRTLET_CONTAINER_ID" value="231700d5-c9a6-5a49-738d-99a954c51550"></env> 87 <env name="VIRTLET_CONTAINER_LOG_PATH" value="/var/log/pods/69eec606-0493-5825-73a4-c5e0c0236155/container1_42.log"></env> 88 </commandline> 89 </domain> 90 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Create' 91 - name: 'domain conn: virtlet-231700d5-c9a6-container1: iso image' 92 value: 93 meta-data: '{"instance-id":"testName_0.default","local-hostname":"testName_0"}' 94 network-config: | 95 version: 1 96 user-data: | 97 #cloud-config 98 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Destroy' 99 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Undefine' 100 - name: 'storage: volumes: RemoveVolumeByName' 101 value: virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550