github.com/Mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/pkg/libvirttools/TestDomainDefinitions__9pfs_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: ChownForEmulator 26 value: 27 - /mounts/virtlet_231700d5-c9a6-5a49-738d-99a954c51550_9pfs-vol_0 28 - false 29 - name: Mount 30 value: 31 - /kubelet-root/69eec606-0493-5825-73a4-c5e0c0236155/volumes/kubernetes.io~rbd/9pfs-vol 32 - /mounts/virtlet_231700d5-c9a6-5a49-738d-99a954c51550_9pfs-vol_0 33 - bind 34 - true 35 - name: ChownForEmulator 36 value: 37 - /mounts/virtlet_231700d5-c9a6-5a49-738d-99a954c51550_9pfs-vol_0 38 - false 39 - name: 'domain conn: DefineDomain' 40 value: |- 41 <domain type="kvm"> 42 <name>virtlet-231700d5-c9a6-container1</name> 43 <uuid>231700d5-c9a6-5a49-738d-99a954c51550</uuid> 44 <memory unit="MiB">1024</memory> 45 <vcpu>1</vcpu> 46 <cputune> 47 <shares>0</shares> 48 <period>0</period> 49 <quota>0</quota> 50 </cputune> 51 <os> 52 <type>hvm</type> 53 <boot dev="hd"></boot> 54 </os> 55 <features> 56 <acpi></acpi> 57 </features> 58 <on_poweroff>destroy</on_poweroff> 59 <on_reboot>restart</on_reboot> 60 <on_crash>restart</on_crash> 61 <devices> 62 <emulator>/vmwrapper</emulator> 63 <disk type="file" device="disk"> 64 <driver name="qemu" type="qcow2"></driver> 65 <source file="/var/lib/virtlet/volumes/virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550"></source> 66 <target dev="sda" bus="scsi"></target> 67 <address type="drive" controller="0" bus="0" target="0" unit="0"></address> 68 </disk> 69 <disk type="file" device="cdrom"> 70 <driver name="qemu" type="raw"></driver> 71 <source file="/var/lib/virtlet/config/config-231700d5-c9a6-5a49-738d-99a954c51550.iso"></source> 72 <target dev="sdb" bus="scsi"></target> 73 <readonly></readonly> 74 <address type="drive" controller="0" bus="0" target="0" unit="1"></address> 75 </disk> 76 <controller type="scsi" index="0" model="virtio-scsi"> 77 <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"></address> 78 </controller> 79 <controller type="pci" model="pci-root"></controller> 80 <filesystem type="mount" accessmode="squash"> 81 <source dir="/mounts/virtlet_231700d5-c9a6-5a49-738d-99a954c51550_9pfs-vol_0"></source> 82 <target dir="foobar"></target> 83 </filesystem> 84 <serial type="unix"> 85 <source mode="connect" path="/var/lib/libvirt/streamer.sock"> 86 <reconnect enabled="yes" timeout="1"></reconnect> 87 </source> 88 <target port="0"></target> 89 </serial> 90 <input type="tablet" bus="usb"></input> 91 <graphics type="vnc" port="-1"></graphics> 92 <video> 93 <model type="cirrus"></model> 94 </video> 95 </devices> 96 <commandline xmlns="http://libvirt.org/schemas/domain/qemu/1.0"> 97 <env name="VIRTLET_EMULATOR" value="/usr/bin/kvm"></env> 98 <env name="VIRTLET_NET_KEY" value="/tmp/fakenetns"></env> 99 <env name="VIRTLET_CONTAINER_ID" value="231700d5-c9a6-5a49-738d-99a954c51550"></env> 100 <env name="VIRTLET_CONTAINER_LOG_PATH" value="/var/log/pods/69eec606-0493-5825-73a4-c5e0c0236155/container1_42.log"></env> 101 </commandline> 102 </domain> 103 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Create' 104 - name: 'domain conn: virtlet-231700d5-c9a6-container1: iso image' 105 value: 106 meta-data: '{"instance-id":"testName_0.default","local-hostname":"testName_0"}' 107 network-config: | 108 version: 1 109 user-data: | 110 #cloud-config 111 mounts: 112 - - foobar 113 - /var/lib/foobar 114 - 9p 115 - trans=virtio 116 write_files: 117 - content: | 118 #!/bin/sh 119 if ! mountpoint /var/lib/foobar; then mkdir -p /var/lib/foobar && mount -t 9p -o trans=virtio foobar /var/lib/foobar; fi 120 path: /etc/cloud/mount-volumes.sh 121 permissions: "0755" 122 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Destroy' 123 - name: 'domain conn: virtlet-231700d5-c9a6-container1: Undefine' 124 - name: 'storage: volumes: RemoveVolumeByName' 125 value: virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550 126 - name: Unmount 127 value: 128 - /mounts/virtlet_231700d5-c9a6-5a49-738d-99a954c51550_9pfs-vol_0 129 - true