Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2153762

Summary: [RHEL8] tests_change_disk_fs_scsi_generated.yml failed with "AttributeError: 'DiskLabel' object has no attribute 'label'"
Product: Red Hat Enterprise Linux 8 Reporter: Zhang Yi <yizhan>
Component: rhel-system-rolesAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED WORKSFORME QA Contact: CS System Management SST QE <rhel-cs-system-management-subsystem-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.8CC: rmeggins, spetrosi
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: role:storage
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-19 19:48:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/tmp/blivet.log none

Description Zhang Yi 2022-12-15 11:25:21 UTC
Created attachment 1932836 [details]
/tmp/blivet.log

Created attachment 1932836 [details]
/tmp/blivet.log

Description of problem:


Version-Release number of selected component (if applicable):
RHEL-8.8.0-20221214.2
rhel-system-roles-1.21.0-0.10.storage.el8.noarch

How reproducible:


Steps to Reproduce:
1.
ansible-playbook -i inventory tests/tests_change_disk_fs_scsi_generated.yml
2.
3.

Actual results:


Expected results:


Additional info:

[root@storageqe-62 rhel-system-roles.storage]# cat tests_change_disk_fs_scsi_generated.yml.log 

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [set disk interface for test] *********************************************
ok: [localhost]

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [include_role : rhel-system-roles.storage] ********************************

TASK [rhel-system-roles.storage : set platform/version specific variables] *****
included: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/set_vars.yml for localhost

TASK [rhel-system-roles.storage : Ensure ansible_facts used by role] ***********
ok: [localhost]

TASK [rhel-system-roles.storage : Set platform/version specific variables] *****
skipping: [localhost] => (item=RedHat.yml) 
skipping: [localhost] => (item=RedHat.yml) 
ok: [localhost] => (item=RedHat_8.yml)
skipping: [localhost] => (item=RedHat_8.8.yml) 

TASK [rhel-system-roles.storage : define an empty list of pools to be used in testing] ***
ok: [localhost]

TASK [rhel-system-roles.storage : define an empty list of volumes to be used in testing] ***
ok: [localhost]

TASK [rhel-system-roles.storage : include the appropriate provider tasks] ******
included: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/main-blivet.yml for localhost

TASK [rhel-system-roles.storage : get a list of rpm packages installed on host machine] ***
skipping: [localhost]

TASK [rhel-system-roles.storage : make sure blivet is available] ***************
ok: [localhost]

TASK [rhel-system-roles.storage : show storage_pools] **************************
skipping: [localhost]

TASK [rhel-system-roles.storage : show storage_volumes] ************************
skipping: [localhost]

TASK [rhel-system-roles.storage : get required packages] ***********************
ok: [localhost]

TASK [rhel-system-roles.storage : enable copr repositories if needed] **********
included: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/enable_coprs.yml for localhost

TASK [rhel-system-roles.storage : check if the COPR support packages should be installed] ***
skipping: [localhost]

TASK [rhel-system-roles.storage : make sure COPR support packages are present] ***
skipping: [localhost]

TASK [rhel-system-roles.storage : enable COPRs] ********************************
skipping: [localhost]

TASK [rhel-system-roles.storage : make sure required packages are installed] ***
ok: [localhost]

TASK [rhel-system-roles.storage : get service facts] ***************************
ok: [localhost]

TASK [rhel-system-roles.storage : Set storage_cryptsetup_services] *************
ok: [localhost]

TASK [rhel-system-roles.storage : Mask the systemd cryptsetup services] ********
skipping: [localhost]

TASK [rhel-system-roles.storage : manage the pools and volumes to match the specified state] ***
ok: [localhost]

TASK [rhel-system-roles.storage : Workaround for udev issue on some platforms] ***
skipping: [localhost]

TASK [rhel-system-roles.storage : Unmask the systemd cryptsetup services] ******
skipping: [localhost]

TASK [rhel-system-roles.storage : show blivet_output] **************************
skipping: [localhost]

TASK [rhel-system-roles.storage : set the list of pools for test verification] ***
ok: [localhost]

TASK [rhel-system-roles.storage : set the list of volumes for test verification] ***
ok: [localhost]

TASK [rhel-system-roles.storage : remove obsolete mounts] **********************
skipping: [localhost]

TASK [rhel-system-roles.storage : tell systemd to refresh its view of /etc/fstab] ***
skipping: [localhost]

TASK [rhel-system-roles.storage : set up new/current mounts] *******************
skipping: [localhost]

TASK [rhel-system-roles.storage : tell systemd to refresh its view of /etc/fstab] ***
skipping: [localhost]

TASK [rhel-system-roles.storage : retrieve facts for the /etc/crypttab file] ***
ok: [localhost]

TASK [rhel-system-roles.storage : manage /etc/crypttab to account for changes we just made] ***
skipping: [localhost]

TASK [rhel-system-roles.storage : Update facts] ********************************
ok: [localhost]

TASK [Mark tasks to be skipped] ************************************************
ok: [localhost]

TASK [include_tasks] ***********************************************************
included: /usr/share/ansible/roles/rhel-system-roles.storage/tests/get_unused_disk.yml for localhost

TASK [Find unused disks in the system] *****************************************
ok: [localhost]

TASK [Set unused_disks if necessary] *******************************************
ok: [localhost]

TASK [Exit playbook when there's not enough unused disks in the system] ********
skipping: [localhost]

TASK [Print unused disks] ******************************************************
ok: [localhost] => {
    "unused_disks": [
        "sdb"
    ]
}

TASK [Create a disk device with the default file system type] ******************

TASK [rhel-system-roles.storage : set platform/version specific variables] *****
included: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/set_vars.yml for localhost

TASK [rhel-system-roles.storage : Ensure ansible_facts used by role] ***********
ok: [localhost]

TASK [rhel-system-roles.storage : Set platform/version specific variables] *****
skipping: [localhost] => (item=RedHat.yml) 
skipping: [localhost] => (item=RedHat.yml) 
ok: [localhost] => (item=RedHat_8.yml)
skipping: [localhost] => (item=RedHat_8.8.yml) 

TASK [rhel-system-roles.storage : define an empty list of pools to be used in testing] ***
ok: [localhost]

TASK [rhel-system-roles.storage : define an empty list of volumes to be used in testing] ***
ok: [localhost]

TASK [rhel-system-roles.storage : include the appropriate provider tasks] ******
included: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/main-blivet.yml for localhost

TASK [rhel-system-roles.storage : get a list of rpm packages installed on host machine] ***
skipping: [localhost]

TASK [rhel-system-roles.storage : make sure blivet is available] ***************
skipping: [localhost]

TASK [rhel-system-roles.storage : show storage_pools] **************************
skipping: [localhost]

TASK [rhel-system-roles.storage : show storage_volumes] ************************
skipping: [localhost]

TASK [rhel-system-roles.storage : get required packages] ***********************
skipping: [localhost]

TASK [rhel-system-roles.storage : enable copr repositories if needed] **********
skipping: [localhost]

TASK [rhel-system-roles.storage : make sure required packages are installed] ***
skipping: [localhost]

TASK [rhel-system-roles.storage : get service facts] ***************************
skipping: [localhost]

TASK [rhel-system-roles.storage : Set storage_cryptsetup_services] *************
ok: [localhost]

TASK [rhel-system-roles.storage : Mask the systemd cryptsetup services] ********
skipping: [localhost]

TASK [rhel-system-roles.storage : manage the pools and volumes to match the specified state] ***
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'DiskLabel' object has no attribute 'label'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/root/.ansible/tmp/ansible-tmp-1671102823.0136833-67322-106464683801909/AnsiballZ_blivet.py\", line 107, in <module>\n    _ansiballz_main()\n  File \"/root/.ansible/tmp/ansible-tmp-1671102823.0136833-67322-106464683801909/AnsiballZ_blivet.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/root/.ansible/tmp/ansible-tmp-1671102823.0136833-67322-106464683801909/AnsiballZ_blivet.py\", line 48, in invoke_module\n    run_name='__main__', alter_sys=True)\n  File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n    mod_name, mod_spec, pkg_name, script_name)\n  File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1937, in <module>\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1933, in main\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1895, in run_module\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1528, in manage_volume\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 560, in manage\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 609, in _create\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 531, in _reformat\nAttributeError: 'DiskLabel' object has no attribute 'label'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

TASK [rhel-system-roles.storage : failed message] ******************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": {"changed": false, "exception": "Traceback (most recent call last):\n  File \"/root/.ansible/tmp/ansible-tmp-1671102823.0136833-67322-106464683801909/AnsiballZ_blivet.py\", line 107, in <module>\n    _ansiballz_main()\n  File \"/root/.ansible/tmp/ansible-tmp-1671102823.0136833-67322-106464683801909/AnsiballZ_blivet.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/root/.ansible/tmp/ansible-tmp-1671102823.0136833-67322-106464683801909/AnsiballZ_blivet.py\", line 48, in invoke_module\n    run_name='__main__', alter_sys=True)\n  File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n    mod_name, mod_spec, pkg_name, script_name)\n  File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1937, in <module>\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1933, in main\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1895, in run_module\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1528, in manage_volume\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 560, in manage\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 609, in _create\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 531, in _reformat\nAttributeError: 'DiskLabel' object has no attribute 'label'\n", "failed": true, "module_stderr": "Traceback (most recent call last):\n  File \"/root/.ansible/tmp/ansible-tmp-1671102823.0136833-67322-106464683801909/AnsiballZ_blivet.py\", line 107, in <module>\n    _ansiballz_main()\n  File \"/root/.ansible/tmp/ansible-tmp-1671102823.0136833-67322-106464683801909/AnsiballZ_blivet.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/root/.ansible/tmp/ansible-tmp-1671102823.0136833-67322-106464683801909/AnsiballZ_blivet.py\", line 48, in invoke_module\n    run_name='__main__', alter_sys=True)\n  File \"/usr/lib64/python3.6/runpy.py\", line 205, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib64/python3.6/runpy.py\", line 96, in _run_module_code\n    mod_name, mod_spec, pkg_name, script_name)\n  File \"/usr/lib64/python3.6/runpy.py\", line 85, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1937, in <module>\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1933, in main\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1895, in run_module\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1528, in manage_volume\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 560, in manage\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 609, in _create\n  File \"/tmp/ansible_blivet_payload_st2e6wq4/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 531, in _reformat\nAttributeError: 'DiskLabel' object has no attribute 'label'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}}

TASK [rhel-system-roles.storage : Unmask the systemd cryptsetup services] ******
skipping: [localhost]

PLAY RECAP *********************************************************************
localhost                  : ok=32   changed=0    unreachable=0    failed=0    skipped=26   rescued=2    ignored=0