github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/pkg/libvirttools/TestContainerLifecycle.out.yaml (about)

     1  - name: 'domain conn: ListDomains'
     2    value: []
     3  - name: GetImagePathDigestAndVirtualSize
     4    value: fake/image1
     5  - name: 'storage: CreateStoragePool'
     6    value: |-
     7      <pool type="dir">
     8        <name>volumes</name>
     9        <target>
    10          <path>/var/lib/virtlet/volumes</path>
    11        </target>
    12      </pool>
    13  - name: 'storage: volumes: CreateStorageVol'
    14    value: |-
    15      <volume type="file">
    16        <name>virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550</name>
    17        <allocation unit="b">0</allocation>
    18        <capacity unit="b">424242</capacity>
    19        <target>
    20          <format type="qcow2"></format>
    21        </target>
    22        <backingStore>
    23          <path>/fake/volume/path</path>
    24          <format type="qcow2"></format>
    25        </backingStore>
    26      </volume>
    27  - name: 'domain conn: DefineDomain'
    28    value: |-
    29      <domain type="kvm">
    30        <name>virtlet-231700d5-c9a6-container1</name>
    31        <uuid>231700d5-c9a6-5a49-738d-99a954c51550</uuid>
    32        <memory unit="MiB">1024</memory>
    33        <vcpu>1</vcpu>
    34        <cputune>
    35          <shares>0</shares>
    36          <period>0</period>
    37          <quota>0</quota>
    38        </cputune>
    39        <os>
    40          <type>hvm</type>
    41          <boot dev="hd"></boot>
    42        </os>
    43        <features>
    44          <acpi></acpi>
    45        </features>
    46        <on_poweroff>destroy</on_poweroff>
    47        <on_reboot>restart</on_reboot>
    48        <on_crash>restart</on_crash>
    49        <devices>
    50          <emulator>/vmwrapper</emulator>
    51          <disk type="file" device="disk">
    52            <driver name="qemu" type="qcow2"></driver>
    53            <source file="/var/lib/virtlet/volumes/virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550"></source>
    54            <target dev="sda" bus="scsi"></target>
    55            <address type="drive" controller="0" bus="0" target="0" unit="0"></address>
    56          </disk>
    57          <disk type="file" device="cdrom">
    58            <driver name="qemu" type="raw"></driver>
    59            <source file="/var/lib/virtlet/config/config-231700d5-c9a6-5a49-738d-99a954c51550.iso"></source>
    60            <target dev="sdb" bus="scsi"></target>
    61            <readonly></readonly>
    62            <address type="drive" controller="0" bus="0" target="0" unit="1"></address>
    63          </disk>
    64          <controller type="scsi" index="0" model="virtio-scsi">
    65            <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"></address>
    66          </controller>
    67          <controller type="pci" model="pci-root"></controller>
    68          <serial type="unix">
    69            <source mode="connect" path="/var/lib/libvirt/streamer.sock">
    70              <reconnect enabled="yes" timeout="1"></reconnect>
    71            </source>
    72            <target port="0"></target>
    73          </serial>
    74          <input type="tablet" bus="usb"></input>
    75          <graphics type="vnc" port="-1"></graphics>
    76          <video>
    77            <model type="cirrus"></model>
    78          </video>
    79        </devices>
    80        <commandline xmlns="http://libvirt.org/schemas/domain/qemu/1.0">
    81          <env name="VIRTLET_EMULATOR" value="/usr/bin/kvm"></env>
    82          <env name="VIRTLET_NET_KEY" value="/tmp/fakenetns"></env>
    83          <env name="VIRTLET_CONTAINER_ID" value="231700d5-c9a6-5a49-738d-99a954c51550"></env>
    84          <env name="VIRTLET_CONTAINER_LOG_PATH" value="/var/log/pods/69eec606-0493-5825-73a4-c5e0c0236155/container1_42.log"></env>
    85        </commandline>
    86      </domain>
    87  - name: 'domain conn: ListDomains'
    88    value:
    89    - virtlet-231700d5-c9a6-container1
    90  - name: container list after the container is created
    91    value:
    92    - Config:
    93        Attempt: 42
    94        CPUPeriod: 0
    95        CPUQuota: 0
    96        CPUShares: 0
    97        ContainerAnnotations:
    98          foo: bar
    99        ContainerLabels:
   100          io.kubernetes.container.name: container1
   101          io.kubernetes.pod.name: testName_0
   102          io.kubernetes.pod.namespace: default
   103          io.kubernetes.pod.uid: 69eec606-0493-5825-73a4-c5e0c0236155
   104        ContainerSideNetwork: null
   105        DomainUUID: 231700d5-c9a6-5a49-738d-99a954c51550
   106        Environment: null
   107        Image: fake/image1
   108        LogDirectory: /var/log/pods/69eec606-0493-5825-73a4-c5e0c0236155
   109        LogPath: container1_42.log
   110        MemoryLimitInBytes: 0
   111        Mounts: null
   112        Name: container1
   113        ParsedAnnotations:
   114          CDImageType: nocloud
   115          CPUModel: ""
   116          CPUSetting: null
   117          DiskDriver: scsi
   118          ForceDHCPNetworkConfig: false
   119          InjectedFiles: null
   120          MetaData: null
   121          RootVolumeSize: 0
   122          SSHKeys: null
   123          SystemUUID: null
   124          UserData: null
   125          UserDataOverwrite: false
   126          UserDataScript: ""
   127          VCPUCount: 1
   128          VirtletChown9pfsMounts: false
   129        PodAnnotations:
   130          hello: world
   131          virt: let
   132        PodName: testName_0
   133        PodNamespace: default
   134        PodSandboxID: 69eec606-0493-5825-73a4-c5e0c0236155
   135        VolumeDevices: null
   136      CreatedAt: 1496175540000000000
   137      Id: 231700d5-c9a6-5a49-738d-99a954c51550
   138      Name: container1
   139      StartedAt: 0
   140      State: 0
   141  - name: 'domain conn: virtlet-231700d5-c9a6-container1: Create'
   142  - name: 'domain conn: virtlet-231700d5-c9a6-container1: iso image'
   143    value:
   144      meta-data: '{"instance-id":"testName_0.default","local-hostname":"testName_0"}'
   145      network-config: |
   146        version: 1
   147      user-data: |
   148        #cloud-config
   149  - name: container info after the container is started
   150    value:
   151      Config:
   152        Attempt: 42
   153        CPUPeriod: 0
   154        CPUQuota: 0
   155        CPUShares: 0
   156        ContainerAnnotations:
   157          foo: bar
   158        ContainerLabels:
   159          io.kubernetes.container.name: container1
   160          io.kubernetes.pod.name: testName_0
   161          io.kubernetes.pod.namespace: default
   162          io.kubernetes.pod.uid: 69eec606-0493-5825-73a4-c5e0c0236155
   163        ContainerSideNetwork: null
   164        DomainUUID: 231700d5-c9a6-5a49-738d-99a954c51550
   165        Environment: null
   166        Image: fake/image1
   167        LogDirectory: /var/log/pods/69eec606-0493-5825-73a4-c5e0c0236155
   168        LogPath: container1_42.log
   169        MemoryLimitInBytes: 0
   170        Mounts: null
   171        Name: container1
   172        ParsedAnnotations:
   173          CDImageType: nocloud
   174          CPUModel: ""
   175          CPUSetting: null
   176          DiskDriver: scsi
   177          ForceDHCPNetworkConfig: false
   178          InjectedFiles: null
   179          MetaData: null
   180          RootVolumeSize: 0
   181          SSHKeys: null
   182          SystemUUID: null
   183          UserData: null
   184          UserDataOverwrite: false
   185          UserDataScript: ""
   186          VCPUCount: 1
   187          VirtletChown9pfsMounts: false
   188        PodAnnotations:
   189          hello: world
   190          virt: let
   191        PodName: testName_0
   192        PodNamespace: default
   193        PodSandboxID: 69eec606-0493-5825-73a4-c5e0c0236155
   194        VolumeDevices: null
   195      CreatedAt: 1496175540000000000
   196      Id: 231700d5-c9a6-5a49-738d-99a954c51550
   197      Name: container1
   198      StartedAt: 1496175541000000000
   199      State: 1
   200  - name: 'domain conn: virtlet-231700d5-c9a6-container1: Shutdown'
   201  - name: 'storage: volumes: RemoveVolumeByName'
   202    value: virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550
   203  - name: container info after the container is stopped
   204    value:
   205      Config:
   206        Attempt: 42
   207        CPUPeriod: 0
   208        CPUQuota: 0
   209        CPUShares: 0
   210        ContainerAnnotations:
   211          foo: bar
   212        ContainerLabels:
   213          io.kubernetes.container.name: container1
   214          io.kubernetes.pod.name: testName_0
   215          io.kubernetes.pod.namespace: default
   216          io.kubernetes.pod.uid: 69eec606-0493-5825-73a4-c5e0c0236155
   217        ContainerSideNetwork: null
   218        DomainUUID: 231700d5-c9a6-5a49-738d-99a954c51550
   219        Environment: null
   220        Image: fake/image1
   221        LogDirectory: /var/log/pods/69eec606-0493-5825-73a4-c5e0c0236155
   222        LogPath: container1_42.log
   223        MemoryLimitInBytes: 0
   224        Mounts: null
   225        Name: container1
   226        ParsedAnnotations:
   227          CDImageType: nocloud
   228          CPUModel: ""
   229          CPUSetting: null
   230          DiskDriver: scsi
   231          ForceDHCPNetworkConfig: false
   232          InjectedFiles: null
   233          MetaData: null
   234          RootVolumeSize: 0
   235          SSHKeys: null
   236          SystemUUID: null
   237          UserData: null
   238          UserDataOverwrite: false
   239          UserDataScript: ""
   240          VCPUCount: 1
   241          VirtletChown9pfsMounts: false
   242        PodAnnotations:
   243          hello: world
   244          virt: let
   245        PodName: testName_0
   246        PodNamespace: default
   247        PodSandboxID: 69eec606-0493-5825-73a4-c5e0c0236155
   248        VolumeDevices: null
   249      CreatedAt: 1496175540000000000
   250      Id: 231700d5-c9a6-5a49-738d-99a954c51550
   251      Name: container1
   252      StartedAt: 1496175541000000000
   253      State: 2
   254  - name: 'domain conn: virtlet-231700d5-c9a6-container1: Undefine'
   255  - name: 'storage: volumes: RemoveVolumeByName'
   256    value: virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550
   257  - name: 'domain conn: ListDomains'
   258    value: []