Bug 1884249 - [v2v] [api] VM import RHV to CNV vmimport status VirtualMachineRunning is missing
Summary: [v2v] [api] VM import RHV to CNV vmimport status VirtualMachineRunning is mi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: V2V
Version: 2.5.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 2.5.2
Assignee: Piotr Kliczewski
QA Contact: Md Nadeem
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-01 12:49 UTC by Amos Mastbaum
Modified: 2020-12-16 00:17 UTC (History)
3 users (show)

Fixed In Version: v2.5.0-19
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-16 00:16:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
importer-log (15.60 KB, text/plain)
2020-10-01 12:49 UTC, Amos Mastbaum
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt vm-import-operator pull 417 0 None closed Add missing condition 2020-12-13 16:03:25 UTC
Github kubevirt vm-import-operator pull 431 0 None closed Requque when VMI not yet created 2020-12-13 16:02:56 UTC
Red Hat Product Errata RHEA-2020:5560 0 None None None 2020-12-16 00:17:06 UTC

Description Amos Mastbaum 2020-10-01 12:49:25 UTC
Created attachment 1718163 [details]
importer-log

Description of problem:

The vm running status (VirtualMachineRunning)update is missing from vmimport cdr after vm is running.

it vm looks ok (we see the console login prompt).



Version-Release number of selected component (if applicable):


How reproducible:
100%


Steps to Reproduce:
1.Create vmimport cdr, set startVm=True
2.
3.

Actual results:
Last reported status:

- lastHeartbeatTime: "2020-09-30T15:44:59Z"
    lastTransitionTime: "2020-09-30T15:44:59Z"
    message: Virtual machine disks import done
    reason: VirtualMachineReady
    status: "True"
    type: Succeeded


Expected results:

reason: VirtualMachineRunning
    status: "True"
    type: Succeeded


attached:
vm, vmimport, vmi (cdr+status) ,importer.log

---
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachine
metadata:
  annotations:
    comment: ""
    kubevirt.io/latest-observed-api-version: v1alpha3
    kubevirt.io/storage-observed-api-version: v1alpha3
    sso: guest_agent
  creationTimestamp: "2020-10-01T12:24:49Z"
  finalizers:
  - k8s.v1.cni.cncf.io/kubeMacPool
  generation: 5
  labels:
    app: v2v-cirros-vm-for-test-3disks
    flavor.template.kubevirt.io/medium: "true"
    origin: rhev
    os.template.kubevirt.io/rhel8.1: "true"
    tags: ""
    vm.kubevirt.io/template: rhel8-desktop-medium-v0.11.3
    vm.kubevirt.io/template.namespace: openshift
    vm.kubevirt.io/template.revision: "1"
    vm.kubevirt.io/template.version: v0.12.0
    workload.template.kubevirt.io/desktop: "true"
  managedFields:
  - apiVersion: kubevirt.io/v1alpha3
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:comment: {}
          f:sso: {}
        f:labels:
          .: {}
          f:app: {}
          f:flavor.template.kubevirt.io/medium: {}
          f:origin: {}
          f:os.template.kubevirt.io/rhel8.1: {}
          f:tags: {}
          f:vm.kubevirt.io/template: {}
          f:vm.kubevirt.io/template.namespace: {}
          f:vm.kubevirt.io/template.revision: {}
          f:vm.kubevirt.io/template.version: {}
          f:workload.template.kubevirt.io/desktop: {}
      f:spec:
        .: {}
        f:running: {}
        f:template:
          .: {}
          f:metadata:
            .: {}
            f:creationTimestamp: {}
            f:labels:
              .: {}
              f:flavor.template.kubevirt.io/medium: {}
              f:kubevirt.io/domain: {}
              f:kubevirt.io/size: {}
              f:os.template.kubevirt.io/rhel8.1: {}
              f:vm.kubevirt.io/name: {}
              f:workload.template.kubevirt.io/desktop: {}
          f:spec:
            .: {}
            f:domain:
              .: {}
              f:clock:
                .: {}
                f:timer: {}
                f:utc: {}
              f:cpu:
                .: {}
                f:cores: {}
                f:sockets: {}
                f:threads: {}
              f:devices:
                .: {}
                f:autoattachGraphicsDevice: {}
                f:disks: {}
                f:inputs: {}
                f:interfaces: {}
              f:features:
                .: {}
                f:acpi: {}
              f:firmware:
                .: {}
                f:bootloader:
                  .: {}
                  f:bios: {}
              f:machine:
                .: {}
                f:type: {}
              f:memory: {}
              f:resources:
                .: {}
                f:limits:
                  .: {}
                  f:memory: {}
                f:requests:
                  .: {}
                  f:memory: {}
            f:networks: {}
            f:terminationGracePeriodSeconds: {}
            f:volumes: {}
    manager: vm-import-controller
    operation: Update
    time: "2020-10-01T12:25:38Z"
  - apiVersion: kubevirt.io/v1alpha3
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          f:kubevirt.io/latest-observed-api-version: {}
          f:kubevirt.io/storage-observed-api-version: {}
      f:spec:
        f:template:
          f:spec:
            f:domain:
              f:firmware:
                f:uuid: {}
      f:status:
        .: {}
        f:conditions: {}
        f:created: {}
        f:ready: {}
    manager: virt-controller
    operation: Update
    time: "2020-10-01T12:25:46Z"
  name: v2v-cirros-vm-for-test-3disks
  namespace: amastbau-auto
  resourceVersion: "3846420"
  selfLink: /apis/kubevirt.io/v1alpha3/namespaces/amastbau-auto/virtualmachines/v2v-cirros-vm-for-test-3disks
  uid: ef5b1da7-5100-40d9-b02f-c82486dda7f5
spec:
  running: true
  template:
    metadata:
      creationTimestamp: null
      labels:
        flavor.template.kubevirt.io/medium: "true"
        kubevirt.io/domain: v2v-cirros-vm-for-test-3disks
        kubevirt.io/size: medium
        os.template.kubevirt.io/rhel8.1: "true"
        vm.kubevirt.io/name: v2v-cirros-vm-for-test-3disks
        workload.template.kubevirt.io/desktop: "true"
    spec:
      domain:
        clock:
          timer: {}
          utc: {}
        cpu:
          cores: 1
          sockets: 1
          threads: 1
        devices:
          autoattachGraphicsDevice: true
          disks:
          - bootOrder: 1
            disk:
              bus: virtio
            name: dv-v2v-cirros-vm-for-test-3disks-6f957f79-efe2-42d6-acea-709-69
          - disk:
              bus: virtio
            name: dv-v2v-cirros-vm-for-test-3disks-3fff37c5-6ec8-423a-b346-be6-69
          - disk:
              bus: virtio
            name: dv-v2v-cirros-vm-for-test-3disks-2df03a94-90c3-4b21-b3e8-65e-69
          inputs:
          - bus: virtio
            name: tablet
            type: tablet
          interfaces:
          - macAddress: 56:6f:39:cf:00:16
            masquerade: {}
            model: virtio
            name: nic1
        features:
          acpi: {}
        firmware:
          bootloader:
            bios: {}
        machine:
          type: q35
        memory: {}
        resources:
          limits:
            memory: 16Gi
          requests:
            memory: 4Gi
      networks:
      - name: nic1
        pod: {}
      terminationGracePeriodSeconds: 180
      volumes:
      - dataVolume:
          name: v2v-cirros-vm-for-test-3disks-6f957f79-efe2-42d6-acea-7098e5b036bd
        name: dv-v2v-cirros-vm-for-test-3disks-6f957f79-efe2-42d6-acea-709-69
      - dataVolume:
          name: v2v-cirros-vm-for-test-3disks-3fff37c5-6ec8-423a-b346-be649889a94a
        name: dv-v2v-cirros-vm-for-test-3disks-3fff37c5-6ec8-423a-b346-be6-69
      - dataVolume:
          name: v2v-cirros-vm-for-test-3disks-2df03a94-90c3-4b21-b3e8-65e9f6c76931
        name: dv-v2v-cirros-vm-for-test-3disks-2df03a94-90c3-4b21-b3e8-65e-69
status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2020-10-01T12:25:43Z"
    status: "True"
    type: Ready
  created: true
  ready: true
---
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachineInstance
metadata:
  annotations:
    kubevirt.io/latest-observed-api-version: v1alpha3
    kubevirt.io/storage-observed-api-version: v1alpha3
  creationTimestamp: "2020-10-01T12:25:38Z"
  finalizers:
  - foregroundDeleteVirtualMachine
  generation: 10
  labels:
    flavor.template.kubevirt.io/medium: "true"
    kubevirt.io/domain: v2v-cirros-vm-for-test-3disks
    kubevirt.io/nodeName: ibragins-lmbs7-worker-0-cw58j
    kubevirt.io/size: medium
    os.template.kubevirt.io/rhel8.1: "true"
    vm.kubevirt.io/name: v2v-cirros-vm-for-test-3disks
    workload.template.kubevirt.io/desktop: "true"
  managedFields:
  - apiVersion: kubevirt.io/v1alpha3
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:kubevirt.io/latest-observed-api-version: {}
          f:kubevirt.io/storage-observed-api-version: {}
        f:labels:
          .: {}
          f:flavor.template.kubevirt.io/medium: {}
          f:kubevirt.io/domain: {}
          f:kubevirt.io/nodeName: {}
          f:kubevirt.io/size: {}
          f:os.template.kubevirt.io/rhel8.1: {}
          f:vm.kubevirt.io/name: {}
          f:workload.template.kubevirt.io/desktop: {}
        f:ownerReferences: {}
      f:spec:
        .: {}
        f:domain:
          .: {}
          f:clock:
            .: {}
            f:timer: {}
            f:utc: {}
          f:cpu:
            .: {}
            f:cores: {}
            f:sockets: {}
            f:threads: {}
          f:devices:
            .: {}
            f:autoattachGraphicsDevice: {}
            f:disks: {}
            f:inputs: {}
            f:interfaces: {}
          f:features:
            .: {}
            f:acpi: {}
          f:firmware:
            .: {}
            f:bootloader:
              .: {}
              f:bios: {}
            f:uuid: {}
          f:machine:
            .: {}
            f:type: {}
          f:memory: {}
          f:resources:
            .: {}
            f:limits:
              .: {}
              f:memory: {}
            f:requests:
              .: {}
              f:memory: {}
        f:networks: {}
        f:terminationGracePeriodSeconds: {}
        f:volumes: {}
      f:status:
        .: {}
        f:activePods:
          .: {}
          f:f078c830-f0b6-490f-b19b-e81272265476: {}
        f:conditions: {}
        f:guestOSInfo: {}
        f:nodeName: {}
        f:qosClass: {}
    manager: virt-controller
    operation: Update
    time: "2020-10-01T12:25:46Z"
  - apiVersion: kubevirt.io/v1alpha3
    fieldsType: FieldsV1
    fieldsV1:
      f:status:
        f:interfaces: {}
        f:migrationMethod: {}
        f:phase: {}
    manager: virt-handler
    operation: Update
    time: "2020-10-01T12:25:46Z"
  name: v2v-cirros-vm-for-test-3disks
  namespace: amastbau-auto
  ownerReferences:
  - apiVersion: kubevirt.io/v1alpha3
    blockOwnerDeletion: true
    controller: true
    kind: VirtualMachine
    name: v2v-cirros-vm-for-test-3disks
    uid: ef5b1da7-5100-40d9-b02f-c82486dda7f5
  resourceVersion: "3846416"
  selfLink: /apis/kubevirt.io/v1alpha3/namespaces/amastbau-auto/virtualmachineinstances/v2v-cirros-vm-for-test-3disks
  uid: cb37b49e-835e-461e-bae9-3d7b552e9540
spec:
  domain:
    clock:
      timer: {}
      utc: {}
    cpu:
      cores: 1
      sockets: 1
      threads: 1
    devices:
      autoattachGraphicsDevice: true
      disks:
      - bootOrder: 1
        disk:
          bus: virtio
        name: dv-v2v-cirros-vm-for-test-3disks-6f957f79-efe2-42d6-acea-709-69
      - disk:
          bus: virtio
        name: dv-v2v-cirros-vm-for-test-3disks-3fff37c5-6ec8-423a-b346-be6-69
      - disk:
          bus: virtio
        name: dv-v2v-cirros-vm-for-test-3disks-2df03a94-90c3-4b21-b3e8-65e-69
      inputs:
      - bus: virtio
        name: tablet
        type: tablet
      interfaces:
      - macAddress: 56:6f:39:cf:00:16
        masquerade: {}
        model: virtio
        name: nic1
    features:
      acpi:
        enabled: true
    firmware:
      bootloader:
        bios: {}
      uuid: 737d4cf8-e3f4-5ffc-a1c4-f5b1ac17bd1d
    machine:
      type: q35
    memory: {}
    resources:
      limits:
        memory: 16Gi
      requests:
        cpu: 100m
        memory: 4Gi
  networks:
  - name: nic1
    pod: {}
  terminationGracePeriodSeconds: 180
  volumes:
  - dataVolume:
      name: v2v-cirros-vm-for-test-3disks-6f957f79-efe2-42d6-acea-7098e5b036bd
    name: dv-v2v-cirros-vm-for-test-3disks-6f957f79-efe2-42d6-acea-709-69
  - dataVolume:
      name: v2v-cirros-vm-for-test-3disks-3fff37c5-6ec8-423a-b346-be649889a94a
    name: dv-v2v-cirros-vm-for-test-3disks-3fff37c5-6ec8-423a-b346-be6-69
  - dataVolume:
      name: v2v-cirros-vm-for-test-3disks-2df03a94-90c3-4b21-b3e8-65e9f6c76931
    name: dv-v2v-cirros-vm-for-test-3disks-2df03a94-90c3-4b21-b3e8-65e-69
status:
  activePods:
    f078c830-f0b6-490f-b19b-e81272265476: ibragins-lmbs7-worker-0-cw58j
  conditions:
  - lastProbeTime: null
    lastTransitionTime: null
    message: cannot migrate VMI with non-shared PVCs
    reason: DisksNotLiveMigratable
    status: "False"
    type: LiveMigratable
  - lastProbeTime: null
    lastTransitionTime: "2020-10-01T12:25:43Z"
    status: "True"
    type: Ready
  guestOSInfo: {}
  interfaces:
  - ipAddress: 10.129.2.88
    ipAddresses:
    - 10.129.2.88
    mac: 52:54:00:4f:83:9a
    name: nic1
  migrationMethod: BlockMigration
  nodeName: ibragins-lmbs7-worker-0-cw58j
  phase: Running
  qosClass: Burstable
---
apiVersion: v2v.kubevirt.io/v1beta1
kind: VirtualMachineImport
metadata:
  annotations:
    vmimport.v2v.kubevirt.io/progress: "100"
    vmimport.v2v.kubevirt.io/source-vm-initial-state: down
  creationTimestamp: "2020-10-01T12:24:48Z"
  generation: 1
  managedFields:
  - apiVersion: v2v.kubevirt.io/v1beta1
    fieldsType: FieldsV1
    fieldsV1:
      f:spec:
        .: {}
        f:providerCredentialsSecret:
          .: {}
          f:name: {}
          f:namespace: {}
        f:resourceMapping:
          .: {}
          f:name: {}
          f:namespace: {}
        f:source:
          .: {}
          f:ovirt:
            .: {}
            f:mappings:
              .: {}
              f:diskMappings: {}
              f:storageMappings: {}
            f:vm:
              .: {}
              f:cluster:
                .: {}
                f:name: {}
              f:name: {}
        f:startVm: {}
        f:targetVmName: {}
    manager: OpenAPI-Generator
    operation: Update
    time: "2020-10-01T12:24:48Z"
  - apiVersion: v2v.kubevirt.io/v1beta1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:vmimport.v2v.kubevirt.io/progress: {}
          f:vmimport.v2v.kubevirt.io/source-vm-initial-state: {}
      f:status:
        .: {}
        f:conditions: {}
        f:dataVolumes: {}
        f:targetVmName: {}
    manager: vm-import-controller
    operation: Update
    time: "2020-10-01T12:25:37Z"
  name: v2v-cirros-vm-for-test-3disks-import
  namespace: amastbau-auto
  resourceVersion: "3845981"
  selfLink: /apis/v2v.kubevirt.io/v1beta1/namespaces/amastbau-auto/virtualmachineimports/v2v-cirros-vm-for-test-3disks-import
  uid: b01daad8-02f8-44d8-968e-eb3300a5901a
spec:
  providerCredentialsSecret:
    name: ovirt-secret
    namespace: amastbau-auto
  resourceMapping:
    name: resource-mapping
    namespace: amastbau-auto
  source:
    ovirt:
      mappings:
        diskMappings:
        - source:
            name: v2v-cirros-vm-for-test-3disks_hosted_storage
          target:
            name: nfs
        storageMappings:
        - source:
            name: v2v-iscsi
          target:
            name: nfs
      vm:
        cluster:
          name: iscsi
        name: v2v-cirros-vm-for-test-3disks
  startVm: true
  targetVmName: v2v-cirros-vm-for-test-3disks
status:
  conditions:
  - lastHeartbeatTime: "2020-10-01T12:24:49Z"
    lastTransitionTime: "2020-10-01T12:24:49Z"
    message: Validation completed successfully
    reason: ValidationCompleted
    status: "True"
    type: Valid
  - lastHeartbeatTime: "2020-10-01T12:24:49Z"
    lastTransitionTime: "2020-10-01T12:24:49Z"
    message: 'VM specifies IO Threads: 1, VM has NUMA tune mode secified: interleave,
      Interface eacbb192-88b4-4021-94fd-39920698a3ab uses profile with a network filter
      with ID: d2370ab4-fee3-11e9-a310-8c1645ce738e.'
    reason: MappingRulesVerificationReportedWarnings
    status: "True"
    type: MappingRulesVerified
  - lastHeartbeatTime: "2020-10-01T12:25:37Z"
    lastTransitionTime: "2020-10-01T12:24:49Z"
    message: Copying virtual machine disks
    reason: ProcessingCompleted
    status: "True"
    type: Processing
  - lastHeartbeatTime: "2020-10-01T12:25:36Z"
    lastTransitionTime: "2020-10-01T12:25:36Z"
    message: Virtual machine disks import done
    reason: VirtualMachineReady
    status: "True"
    type: Succeeded
  dataVolumes:
  - name: v2v-cirros-vm-for-test-3disks-6f957f79-efe2-42d6-acea-7098e5b036bd
  - name: v2v-cirros-vm-for-test-3disks-3fff37c5-6ec8-423a-b346-be649889a94a
  - name: v2v-cirros-vm-for-test-3disks-2df03a94-90c3-4b21-b3e8-65e9f6c76931
  targetVmName: v2v-cirros-vm-for-test-3disks
---


Additional info:

Comment 1 Amos Mastbaum 2020-10-05 13:06:32 UTC
If you create a duplicated vmimport CR (with different CR name), the CR is created, AND you can see the missing running status in the new vmimport CR

Comment 14 errata-xmlrpc 2020-12-16 00:16:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Virtualization 2.5.2 Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:5560


Note You need to log in before you can comment on or make changes to this bug.