github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/pkg/libvirttools/TestDomainDefinitions__raw_block_volume.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="block" device="disk"> 56 <driver name="qemu" type="raw"></driver> 57 <source dev="/var/lib/kubelet/pods/69eec606-0493-5825-73a4-c5e0c0236155/volumeDevices/kubernetes.io~local-volume/testdev"></source> 58 <target dev="sdb" bus="scsi"></target> 59 <address type="drive" controller="0" bus="0" target="0" unit="1"></address> 60 </disk> 61 <disk type="file" device="cdrom"> 62 <driver name="qemu" type="raw"></driver> 63 <source file="/var/lib/virtlet/config/config-231700d5-c9a6-5a49-738d-99a954c51550.iso"></source> 64 <target dev="sdc" bus="scsi"></target> 65 <readonly></readonly> 66 <address type="drive" controller="0" bus="0" target="0" unit="2"></address> 67 </disk> 68 <controller type="scsi" index="0" model="virtio-scsi"> 69 <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"></address> 70 </controller> 71 <controller type="pci" model="pci-root"></controller> 72 <serial type="unix"> 73 <source mode="connect" path="/var/lib/libvirt/streamer.sock"> 74 <reconnect enabled="yes" timeout="1"></reconnect> 75 </source> 76 <target port="0"></target> 77 </serial> 78 <input type="tablet" bus="usb"></input> 79 <graphics type="vnc" port="-1"></graphics> 80 <video> 81 <model type="cirrus"></model> 82 </video> 83 </devices> 84 <commandline xmlns="http://libvirt.org/schemas/domain/qemu/1.0"> 85 <env name="VIRTLET_EMULATOR" value="/usr/bin/kvm"></env> 86 <env name="VIRTLET_NET_KEY" value="/tmp/fakenetns"></env> 87 <env name="VIRTLET_CONTAINER_ID" value="231700d5-c9a6-5a49-738d-99a954c51550"></env> 88 <env name="VIRTLET_CONTAINER_LOG_PATH" value="/var/log/pods/69eec606-0493-5825-73a4-c5e0c0236155/container1_42.log"></env> 89 </commandline> 90 </domain> 91 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Create' 92 - name: 'domain conn: virtlet-231700d5-c9a6-container1: iso image' 93 value: 94 meta-data: '{"instance-id":"testName_0.default","local-hostname":"testName_0"}' 95 network-config: | 96 version: 1 97 user-data: | 98 #cloud-config 99 runcmd: 100 - /etc/cloud/symlink-devs.sh 101 - ln -s /etc/cloud/symlink-devs.sh /var/lib/cloud/scripts/per-boot/ 102 write_files: 103 - content: | 104 #!/bin/sh 105 ln -fs /dev/`ls /sys/devices/pci0000:00/0000:00:01.0/virtio*/host*/target*:0:0/*:0:0:1/block/` /dev/tst 106 path: /etc/cloud/symlink-devs.sh 107 permissions: "0755" 108 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Destroy' 109 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Undefine' 110 - name: 'storage: volumes: RemoveVolumeByName' 111 value: virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550