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 2177934

Summary: [RHEL9] AttributeError: 'DiskLabel' object has no attribute 'cipher'
Product: Red Hat Enterprise Linux 9 Reporter: guazhang <guazhang>
Component: rhel-system-rolesAssignee: Rich Megginson <rmeggins>
Status: CLOSED WORKSFORME QA Contact: CS System Management SST QE <rhel-cs-system-management-subsystem-qe>
Severity: low Docs Contact:
Priority: low    
Version: 9.2CC: kzak, rmeggins, spetrosi, vtrefny
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 18:39:16 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:

Description guazhang@redhat.com 2023-03-14 00:55:18 UTC
Description of problem:
rhel-system-role regression testing found the error, looks it same with RHEL8 bug https://bugzilla.redhat.com/show_bug.cgi?id=2059426.

Version-Release number of selected component (if applicable):
ansible-core-2.14.2-4.el9.x86_64 
rhel-system-roles-1.21.0-2.el9.noarch
util-linux-2.37.4-10.el9.x86_64


How reproducible:


Steps to Reproduce:
1. ansible-playbook -vv -i host tests_luks_pool_nvme_generated.yml
2.
3.

Actual results:
regression failed 

Expected results:
pass

Additional info:

TASK [rhel-system-roles.storage : Manage the pools and volumes to match the specified state] ***
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/main-blivet.yml:73
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'DiskLabel' object has no attribute 'cipher'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/root/.ansible/tmp/ansible-tmp-1678724124.463746-227413-163344926299701/AnsiballZ_blivet.py\", line 107, in <module>\n    _ansiballz_main()\n  File \"/root/.ansible/tmp/ansible-tmp-1678724124.463746-227413-163344926299701/AnsiballZ_blivet.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/root/.ansible/tmp/ansible-tmp-1678724124.463746-227413-163344926299701/AnsiballZ_blivet.py\", line 47, in invoke_module\n    runpy.run_module(mod_name='ansible.modules.blivet', init_globals=dict(_module_fqn='ansible.modules.blivet', _modlib_path=modlib_path),\n  File \"/usr/lib64/python3.9/runpy.py\", line 225, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_blivet_payload_fc5hu4cb/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1930, in <module>\n  File \"/tmp/ansible_blivet_payload_fc5hu4cb/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1926, in main\n  File \"/tmp/ansible_blivet_payload_fc5hu4cb/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1878, in run_module\n  File \"/tmp/ansible_blivet_payload_fc5hu4cb/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1529, in manage_pool\n  File \"/tmp/ansible_blivet_payload_fc5hu4cb/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1257, in manage\n  File \"/tmp/ansible_blivet_payload_fc5hu4cb/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1181, in _apply_defaults\n  File \"/tmp/ansible_blivet_payload_fc5hu4cb/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 1155, in _update_from_device\nAttributeError: 'DiskLabel' object has no attribute 'cipher'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

https://beaker.engineering.redhat.com/recipes/13534049#task157397050,task157397052,task157397054,task157397055
http://lab-04.rhts.eng.pek2.redhat.com/beaker/logs/tasks/157397+/157397052/taskout.log

Comment 1 Rich Megginson 2023-03-14 14:09:29 UTC
@vtrefny did something change in rhel9?

Comment 2 Vojtech Trefny 2023-03-22 10:47:03 UTC
(In reply to Rich Megginson from comment #1)
> @vtrefny did something change in rhel9?

Not in Blivet. I thought all the atari related fixes for libblkid are present in RHEL 9, but we still see random atari PT on LUKS:

 'DEVNAME': '/dev/nvme2n1',
 'DEVPATH': '/devices/pci0000:ae/0000:ae:01.0/0000:b0:00.0/nvme/nvme2/nvme2n1',
 'DEVTYPE': 'disk',
 'DISKSEQ': '1',
 'DM_MULTIPATH_DEVICE_PATH': '0',
 'ID_FS_TYPE': 'crypto_LUKS',
 'ID_FS_USAGE': 'crypto',
 'ID_FS_UUID': '73c1535a-31a9-4ed2-a8f1-60f0895466bd',
 'ID_FS_UUID_ENC': '73c1535a-31a9-4ed2-a8f1-60f0895466bd',
 'ID_FS_VERSION': '2',
 'ID_MODEL': 'Samsung SSD 983 DCT 960GB',
 'ID_PART_TABLE_TYPE': 'atari',

@kzak this fix[1] should be available in 9.2, right (util-linux 2.37.4)? Are there some additional fixes needed in RHEL 9 or is this a new issue?

[1] https://github.com/util-linux/util-linux/commit/282ceadc3a72fc07dd0388b8880fd751490bb87f

Comment 4 Karel Zak 2023-04-14 08:25:43 UTC
(In reply to Vojtech Trefny from comment #2)
> @kzak this fix[1] should be available in 9.2, right (util-linux
> 2.37.4)? Are there some additional fixes needed in RHEL 9 or is this a new
> issue?

The fix is in RHEL-9, there is no difference between upstream and rhel-9 atari prober code.

It would be nice to have the image (or any other simple way) to reproduce the issue locally.

Comment 5 Rich Megginson 2023-04-14 17:03:34 UTC
(In reply to Karel Zak from comment #4)
> (In reply to Vojtech Trefny from comment #2)
> > @kzak this fix[1] should be available in 9.2, right (util-linux
> > 2.37.4)? Are there some additional fixes needed in RHEL 9 or is this a new
> > issue?
> 
> The fix is in RHEL-9, there is no difference between upstream and rhel-9
> atari prober code.
> 
> It would be nice to have the image (or any other simple way) to reproduce
> the issue locally.

@guazhang - can you help Karel provision a machine which demonstrates this problem?  We don't see this issue in our usual baseos ci, or using qemu/kvm as in https://source.redhat.com/communities/communities_of_practice/infrastructure/rhel-ecosystem/rhelsystemroles/rhel_system_roles_wiki/rhel_system_roles_onboarding_and_development_process#running-ci-tests-locally

Comment 8 Red Hat Bugzilla 2023-11-17 04:25:08 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days