github.com/Mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/pkg/manager/TestCRIMounts.out.yaml (about)

     1  - name: 'enter: PullImage'
     2    value:
     3      image:
     4        image: localhost/cirros.img
     5  - name: 'imageStore: PullImage'
     6    value:
     7      image:
     8        Digest: sha256:63eb9508e8efa129db412a9112b88422ea109574d6211853bbb4929b03bceeb3
     9        Name: localhost/cirros.img
    10        Path: /fake/volume/localhost/cirros.img
    11        Size: 20
    12      url: localhost/cirros.img
    13  - name: 'leave: PullImage'
    14    value:
    15      image_ref: localhost/cirros.img@sha256:63eb9508e8efa129db412a9112b88422ea109574d6211853bbb4929b03bceeb3
    16  - name: 'enter: RunPodSandbox'
    17    value:
    18      config:
    19        annotations:
    20          hello: world
    21          virt: let
    22        hostname: localhost
    23        labels:
    24          fizz: buzz
    25          foo: bar
    26        linux:
    27          security_context:
    28            namespace_options: {}
    29        log_directory: /var/log/test_log_directory
    30        metadata:
    31          name: testName_0
    32          namespace: default
    33          uid: 69eec606-0493-5825-73a4-c5e0c0236155
    34  - name: 'fdManager: AddFDs'
    35    value:
    36      data:
    37        podNetworkDesc:
    38          DNS: null
    39          podId: 69eec606-0493-5825-73a4-c5e0c0236155
    40          podName: testName_0
    41          podNs: default
    42      key: 69eec606-0493-5825-73a4-c5e0c0236155
    43  - name: 'leave: RunPodSandbox'
    44    value:
    45      pod_sandbox_id: 69eec606-0493-5825-73a4-c5e0c0236155
    46  - name: 'enter: PodSandboxStatus'
    47    value:
    48      pod_sandbox_id: 69eec606-0493-5825-73a4-c5e0c0236155
    49  - name: 'leave: PodSandboxStatus'
    50    value:
    51      status:
    52        annotations:
    53          hello: world
    54          virt: let
    55        created_at: 1524648266720331175
    56        id: 69eec606-0493-5825-73a4-c5e0c0236155
    57        labels:
    58          fizz: buzz
    59          foo: bar
    60        linux:
    61          namespaces:
    62            options: {}
    63        metadata:
    64          name: testName_0
    65          namespace: default
    66          uid: 69eec606-0493-5825-73a4-c5e0c0236155
    67        network:
    68          ip: 10.1.90.5
    69  - name: 'enter: CreateContainer'
    70    value:
    71      config:
    72        image:
    73          image: localhost/cirros.img
    74        labels:
    75          fizz: buzz
    76          foo: bar
    77          io.kubernetes.container.name: container-for-testName_0
    78          io.kubernetes.pod.name: testName_0
    79          io.kubernetes.pod.namespace: default
    80          io.kubernetes.pod.uid: 69eec606-0493-5825-73a4-c5e0c0236155
    81        metadata:
    82          name: container-for-testName_0
    83        mounts:
    84        - container_path: /mnt
    85          host_path: __top__/kubelet-root/69eec606-0493-5825-73a4-c5e0c0236155/volumes/virtlet~flexvolume_driver/vol1
    86      pod_sandbox_id: 69eec606-0493-5825-73a4-c5e0c0236155
    87      sandbox_config:
    88        annotations:
    89          hello: world
    90          virt: let
    91        hostname: localhost
    92        labels:
    93          fizz: buzz
    94          foo: bar
    95        linux:
    96          security_context:
    97            namespace_options: {}
    98        log_directory: /var/log/test_log_directory
    99        metadata:
   100          name: testName_0
   101          namespace: default
   102          uid: 69eec606-0493-5825-73a4-c5e0c0236155
   103  - name: 'storage: CreateStoragePool'
   104    value: |-
   105      <pool type="dir">
   106        <name>volumes</name>
   107        <target>
   108          <path>/var/lib/virtlet/volumes</path>
   109        </target>
   110      </pool>
   111  - name: 'storage: volumes: CreateStorageVol'
   112    value: |-
   113      <volume type="file">
   114        <name>virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550</name>
   115        <allocation unit="b">0</allocation>
   116        <capacity unit="b">20</capacity>
   117        <target>
   118          <format type="qcow2"></format>
   119        </target>
   120        <backingStore>
   121          <path>/fake/volume/localhost/cirros.img</path>
   122          <format type="qcow2"></format>
   123        </backingStore>
   124      </volume>
   125  - name: 'storage: volumes: CreateStorageVol'
   126    value: |-
   127      <volume>
   128        <name>virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol1</name>
   129        <allocation>0</allocation>
   130        <capacity unit="MB">2</capacity>
   131        <target>
   132          <format type="qcow2"></format>
   133        </target>
   134      </volume>
   135  - name: 'storage: volumes: virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol1: Format'
   136  - name: 'domain conn: DefineDomain'
   137    value: |-
   138      <domain type="kvm">
   139        <name>virtlet-231700d5-c9a6-container-for-testName_0</name>
   140        <uuid>231700d5-c9a6-5a49-738d-99a954c51550</uuid>
   141        <memory unit="MiB">1024</memory>
   142        <vcpu>1</vcpu>
   143        <cputune>
   144          <shares>0</shares>
   145          <period>0</period>
   146          <quota>0</quota>
   147        </cputune>
   148        <os>
   149          <type>hvm</type>
   150          <boot dev="hd"></boot>
   151        </os>
   152        <features>
   153          <acpi></acpi>
   154        </features>
   155        <on_poweroff>destroy</on_poweroff>
   156        <on_reboot>restart</on_reboot>
   157        <on_crash>restart</on_crash>
   158        <devices>
   159          <emulator>/vmwrapper</emulator>
   160          <disk type="file" device="disk">
   161            <driver name="qemu" type="qcow2"></driver>
   162            <source file="/var/lib/virtlet/volumes/virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550"></source>
   163            <target dev="sda" bus="scsi"></target>
   164            <address type="drive" controller="0" bus="0" target="0" unit="0"></address>
   165          </disk>
   166          <disk type="file" device="disk">
   167            <driver name="qemu" type="qcow2"></driver>
   168            <source file="/var/lib/virtlet/volumes/virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol1"></source>
   169            <target dev="sdb" bus="scsi"></target>
   170            <address type="drive" controller="0" bus="0" target="0" unit="1"></address>
   171          </disk>
   172          <disk type="file" device="cdrom">
   173            <driver name="qemu" type="raw"></driver>
   174            <source file="/var/lib/virtlet/config/config-231700d5-c9a6-5a49-738d-99a954c51550.iso"></source>
   175            <target dev="sdc" bus="scsi"></target>
   176            <readonly></readonly>
   177            <address type="drive" controller="0" bus="0" target="0" unit="2"></address>
   178          </disk>
   179          <controller type="scsi" index="0" model="virtio-scsi">
   180            <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"></address>
   181          </controller>
   182          <controller type="pci" model="pci-root"></controller>
   183          <serial type="unix">
   184            <source mode="connect" path="/var/lib/libvirt/streamer.sock">
   185              <reconnect enabled="yes" timeout="1"></reconnect>
   186            </source>
   187            <target port="0"></target>
   188          </serial>
   189          <input type="tablet" bus="usb"></input>
   190          <graphics type="vnc" port="-1"></graphics>
   191          <video>
   192            <model type="cirrus"></model>
   193          </video>
   194        </devices>
   195        <commandline xmlns="http://libvirt.org/schemas/domain/qemu/1.0">
   196          <env name="VIRTLET_EMULATOR" value="/usr/bin/kvm"></env>
   197          <env name="VIRTLET_NET_KEY" value="69eec606-0493-5825-73a4-c5e0c0236155"></env>
   198          <env name="VIRTLET_CONTAINER_ID" value="231700d5-c9a6-5a49-738d-99a954c51550"></env>
   199          <env name="VIRTLET_CONTAINER_LOG_PATH" value="/var/log/test_log_directory/container-for-testName_0_0.log"></env>
   200        </commandline>
   201      </domain>
   202  - name: 'leave: CreateContainer'
   203    value:
   204      container_id: 231700d5-c9a6-5a49-738d-99a954c51550
   205  - name: 'enter: ContainerStatus'
   206    value:
   207      container_id: 231700d5-c9a6-5a49-738d-99a954c51550
   208  - name: 'leave: ContainerStatus'
   209    value:
   210      status:
   211        created_at: 1524648266720331175
   212        id: 231700d5-c9a6-5a49-738d-99a954c51550
   213        image:
   214          image: localhost/cirros.img
   215        image_ref: localhost/cirros.img
   216        labels:
   217          fizz: buzz
   218          foo: bar
   219          io.kubernetes.container.name: container-for-testName_0
   220          io.kubernetes.pod.name: testName_0
   221          io.kubernetes.pod.namespace: default
   222          io.kubernetes.pod.uid: 69eec606-0493-5825-73a4-c5e0c0236155
   223        log_path: /var/log/test_log_directory/container-for-testName_0_0.log
   224        metadata:
   225          name: container-for-testName_0
   226        mounts:
   227        - container_path: /mnt
   228          host_path: __top__/kubelet-root/69eec606-0493-5825-73a4-c5e0c0236155/volumes/virtlet~flexvolume_driver/vol1
   229  - name: 'enter: StartContainer'
   230    value:
   231      container_id: 231700d5-c9a6-5a49-738d-99a954c51550
   232  - name: 'domain conn: virtlet-231700d5-c9a6-container-for-testName_0: Create'
   233  - name: 'domain conn: virtlet-231700d5-c9a6-container-for-testName_0: iso image'
   234    value:
   235      meta-data: '{"instance-id":"testName_0.default","local-hostname":"testName_0"}'
   236      network-config: |
   237        version: 1
   238        config:
   239        - mac_address: 42:a4:a6:22:80:2e
   240          mtu: 0
   241          name: eth0
   242          subnets:
   243          - address: 10.1.90.5
   244            netmask: 255.255.255.0
   245            routes:
   246            - gateway: 10.1.90.1
   247              netmask: 0.0.0.0
   248              network: 0.0.0.0
   249            type: static
   250          type: physical
   251      user-data: |
   252        #cloud-config
   253        mounts:
   254        - - /dev/disk/by-path/virtio-pci-0000:00:01.0-scsi-0:0:0:1-part1
   255          - /mnt
   256        write_files:
   257        - content: |
   258            #!/bin/sh
   259            if ! mountpoint /mnt; then mkdir -p /mnt && mount /dev/`ls /sys/devices/pci0000:00/0000:00:01.0/virtio*/host*/target*:0:0/*:0:0:1/block/`1 /mnt; fi
   260          path: /etc/cloud/mount-volumes.sh
   261          permissions: "0755"
   262  - name: 'leave: StartContainer'
   263    value: {}
   264  - name: 'enter: StopContainer'
   265    value:
   266      container_id: 231700d5-c9a6-5a49-738d-99a954c51550
   267  - name: 'domain conn: virtlet-231700d5-c9a6-container-for-testName_0: Destroy'
   268  - name: 'storage: volumes: RemoveVolumeByName'
   269    value: virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550
   270  - name: 'storage: volumes: RemoveVolumeByName'
   271    value: virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol1
   272  - name: 'leave: StopContainer'
   273    value: {}
   274  - name: 'enter: RemoveContainer'
   275    value:
   276      container_id: 231700d5-c9a6-5a49-738d-99a954c51550
   277  - name: 'domain conn: virtlet-231700d5-c9a6-container-for-testName_0: Undefine'
   278  - name: 'storage: volumes: RemoveVolumeByName'
   279    value: virtlet_root_231700d5-c9a6-5a49-738d-99a954c51550
   280  - name: 'storage: volumes: RemoveVolumeByName'
   281    value: virtlet-231700d5-c9a6-5a49-738d-99a954c51550-vol1
   282  - name: 'imageStore: GC'
   283    value:
   284      refSet: null
   285  - name: 'leave: RemoveContainer'
   286    value: {}
   287  - name: 'enter: StopPodSandbox'
   288    value:
   289      pod_sandbox_id: 69eec606-0493-5825-73a4-c5e0c0236155
   290  - name: 'fdManager: ReleaseFDs'
   291    value: 69eec606-0493-5825-73a4-c5e0c0236155
   292  - name: 'leave: StopPodSandbox'
   293    value: {}
   294  - name: 'enter: RemovePodSandbox'
   295    value:
   296      pod_sandbox_id: 69eec606-0493-5825-73a4-c5e0c0236155
   297  - name: 'leave: RemovePodSandbox'
   298    value: {}