Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-25994

[RHEL8 ] var unused_disks get different sector size disks

    • rhel-system-roles-1.79.0-0.2.el9
    • None
    • None
    • 3
    • rhel-sst-system-roles
    • 1
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • System Roles Sprint 2, System Roles Sprint 3, System Roles Sprint 4
    • Release Note Not Required
    • None

      What were you trying to do that didn't work?

      Please provide the package NVR for which bug is seen:

      How reproducible:

      Steps to reproduce

      1.  ansible-playbook -vv -i host tests_change_fs_use_partitions.yml
      2.  
      3.  

      Expected results

      get same  sector size disks to create VG.  

      Actual results

       

      TASK [Print unused disks] ******************************************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/get_unused_disk.yml:34
      ok: [localhost] => {
          "unused_disks": [
              "nvme4n1",
              "sda"
          ]
      } 
      TASK [rhel-system-roles.storage : Failed message] ******************************
      task path: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/main-blivet.yml:106
      fatal: [localhost]: FAILED! => {"changed": false, "msg": {"actions": [], "changed": false, "crypts": [], "failed": true, "invocation": {"module_args": {"disklabel_type": null, "diskvolume_mkfs_option_map": {}, "packages_only": false, "pool_defaults": {"disks": [], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "shared": false, "state": "present", "type": "lvm", "volumes": []}, "pools": [{"disks": ["nvme4n1", "sda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "shared": false, "state": "present", "type": "lvm", "volumes": [{"cache_devices": ["sda"], "cache_mode": null, "cache_size": "4g", "cached": true, "compression": null, "deduplication": null, "encryption": null, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": null, "fs_label": null, "fs_type": null, "mount_group": null, "mount_mode": null, "mount_options": null, "mount_point": null, "mount_user": null, "name": "test", "raid_disks": [], "raid_level": null, "raid_stripe_size": null, "size": "5g", "state": "present", "thin": false, "thin_pool_name": null, "thin_pool_size": null, "type": null, "vdo_pool_size": null}]}], "safe_mode": false, "use_partitions": true, "volume_defaults": {"cache_devices": [], "cache_mode": null, "cache_size": 0, "cached": false, "compression": null, "deduplication": null, "disks": [], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "raid_stripe_size": null, "size": 0, "state": "present", "thin": null, "thin_pool_name": null, "thin_pool_size": null, "type": "lvm", "vdo_pool_size": null}, "volumes": []}}, "leaves": [], "mounts": [], "msg": "failed to set up pool 'foo': Cannot create volume group 'foo'. The following disks have inconsistent sector size:\nnvme4n1p1: 4096\nsda1: 512\n", "packages": [], "pools": [], "volumes": []}} 

      https://beaker.engineering.redhat.com/recipes/15586508#task173742246

      rhel-system-roles-1.23.0-2.17.el8.noarch

      4.18.0-540.el8.x86_64

       

              vtrefny@redhat.com Vojtěch Trefný
              guazhang@redhat.com Guangwu Zhang
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: