nutanix / nutanix.ansible

Official Nutanix Ansible collections
GNU General Public License v3.0
64 stars 36 forks source link

nutanix.ncp.ntnx_vms when clone disk from image device file sys_wwid pvid last seen on /dev/sd# not found #507

Open darthVikes opened 3 weeks ago

darthVikes commented 3 weeks ago

Describe the bug

When using the nutanix.ncp.ntnx_vms function and clone_image from the disk image getting :

"Device file sys_wwid t10.NUTANIX.NFS_3_0_UUID Last seen on /dev/sdb not found"

During Linux boot, this is RHEL 9.x

To Reproduce

Steps to reproduce the behavior: ansible-playbook playbook.yaml

    - name: Create VM
      nutanix.ncp.ntnx_vms:
        state: present
        name: "ansible_automation_demo"
        desc: "ansible_vm_description"
        cluster:
          name: "{{ ntnx_cluster }}"
        networks:
          - is_connected: true
            subnet:
              name: "{{ subnet_name }}"
              cluster:
                name: "{{ ntnx_cluster }}"
        disks:
          - type: "DISK"
            size_gb: 1
            bus: "SCSI"
            clone_image:
              name: "{{ image_name }}"
          - type: "DISK"
            size_gb: 50
            bus: "SCSI"
            clone_image:
              name: "{{ image_name }}-disk2"
          - type: "DISK"
            size_gb: 5
            bus: "SCSI"
            clone_image:
              name: "{{ image_name }}-disk3"

/boot = sda / = sdb /data = sdc

Stack trace image

Expected behavior It would find the disk, and boot.

darthVikes commented 3 weeks ago

Apparently this is a RH Feature for RHEL 9. Although, RH also says the cloning software should clean up any old PVIDs in the file. So not sure if that is possible with this Ansible module?

One other option is that you can disable it by:

Documentation

darthVikes commented 3 weeks ago

More here also: RH KB: 7029161: