ansible-vsphere-gos-validation icon indicating copy to clipboard operation
ansible-vsphere-gos-validation copied to clipboard

[Bug] [Linux] instant clone failed due to existing device 'Serial port 1' on VM in test case pvrdma_network_device_ops

Open Tomorrow9 opened this issue 2 years ago • 1 comments

SUMMARY

Need check serial port

2023-01-18 07:45:58,018 | Failed at Play [pvrdma_network_device_ops] *****************

2023-01-18 07:45:58,018 | TASK [pvrdma_network_device_ops][Instant Clone a VM from 'rhel9_ansible_test']
task path: /root/ansible-vsphere-gos-validation/common/vm_instant_clone.yml:19
fatal: [localhost]: FAILED! => {
    "changed": false,
    "msg": "(\"Virtual machine is configured to use a device that prevents the operation: Device 'Serial port 1' is not suppo
rted. \", None)"
}
error message:
("Virtual machine is configured to use a device that prevents the operation: Device 'Serial port 1' is not supported. ", None
)

Also check CDROM

2023-01-19 01:33:12,019 | Failed at Play [pvrdma_network_device_ops] *****************

2023-01-19 01:33:12,019 | TASK [pvrdma_network_device_ops][Instant Clone a VM from 'rhel9_ansible_test']
task path: /root/ansible-vsphere-gos-validation/common/vm_instant_clone.yml:19
fatal: [localhost]: FAILED! => {
    "changed": false,
    "msg": "(\"Currently connected device 'CD/DVD drive 2' uses backing '[GOSV-Async-NFS] rhel8_64GuestRHEL_8_server_with_GUI
_ks-1674014175.iso', which is not accessible.\", None)"
}
error message:
("Currently connected device 'CD/DVD drive 2' uses backing '[GOSV-Async-NFS] rhel8_64GuestRHEL_8_server_with_GUI_ks-167401417
5.iso', which is not accessible.", None)
ISSUE TYPE
  • Bug Report
ANSIBLE VERSION
ansible [core 2.14.1]
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.10/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.10.0 (default, Nov 16 2022, 17:54:46) [GCC 10.2.0] (/usr/bin/python3.10)
  jinja version = 3.1.2
  libyaml = True
CONFIGURATION
ENVIRONMENT / OS

vCenter and ESXi 7.0.3 RHEL 9.1

STEPS TO REPRODUCE
EXPECTED RESULTS

Test case pvrdma_network_device_ops passed

ACTUAL RESULTS

Test case pvrdma_network_device_ops failed

Tomorrow9 avatar Jan 18 '23 08:01 Tomorrow9

@ZouYuhua , please help fix this issue.

  1. Before test starts, we need to check VM's datastore meets instant clone requirements. And please figure out what kind of datastore can be used for instant clone. From above error, NFS datastore can't be used for instant clone. If the datastore can't be used for instant clone, test result can be set as "Not Applicable".
  2. Before VM instant clone, we should add task to check serial port and remove it if it exists.

keirazhang avatar Feb 03 '23 02:02 keirazhang

We'll track this issue internally when meet again, close this issue.

Tomorrow9 avatar Jul 03 '24 05:07 Tomorrow9