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 2151342 - [RHEL9] ansible.parsing.yaml.objects.AnsibleUnicode object' has no attribute 'bytes'
Summary: [RHEL9] ansible.parsing.yaml.objects.AnsibleUnicode object' has no attribute...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rhel-system-roles
Version: 8.8
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: 8.8
Assignee: Rich Megginson
QA Contact: guazhang@redhat.com
URL:
Whiteboard: role:storage
Depends On: 2143246
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-06 19:42 UTC by Rich Megginson
Modified: 2023-05-16 09:38 UTC (History)
6 users (show)

Fixed In Version: rhel-system-roles-1.21.0-0.13.el8
Doc Type: No Doc Update
Doc Text:
Clone Of: 2143246
Environment:
Last Closed: 2023-05-16 08:31:56 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-141487 0 None None None 2022-12-06 19:46:40 UTC
Red Hat Product Errata RHEA-2023:2804 0 None None None 2023-05-16 08:32:16 UTC

Comment 4 guazhang@redhat.com 2022-12-07 03:32:38 UTC
Hi,

install rpm from http://brew-task-repos.usersys.redhat.com/repos/scratch/rmeggins/rhel-system-roles/1.21.0/0.10.storage.el8/noarch/rhel-system-roles-1.21.0-0.10.storage.el8.noarch.rpm, something was wrong here. 


TASK [Calculate the expected size based on pool size and percentage value] *************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:40
ok: [localhost] => {"ansible_facts": {"storage_test_expected_size": "1440306545295.0"}, "changed": false}

TASK [Default thin pool reserved space values] *****************************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:47
ok: [localhost] => {"ansible_facts": {"_storage_test_default_thpool_reserve_percent": "20"}, "changed": false}

TASK [Default minimal thin pool reserved space size] ***********************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:51
ok: [localhost] => {"bytes": 1000000000, "changed": false, "lvm": "953m", "parted": "953MiB", "size": "953 MiB"}

TASK [Default maximal thin pool reserved space size] ***********************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:56
ok: [localhost] => {"bytes": 100000000000, "changed": false, "lvm": "93g", "parted": "93GiB", "size": "93 GiB"}

TASK [Calculate maximum usable space in thin pool] *************************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:62
ok: [localhost] => {"ansible_facts": {"_storage_test_max_thin_pool_size": "1152245236236.0"}, "changed": false}

TASK [Apply upper size limit to max usable thin pool space] ****************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:66
ok: [localhost] => {"ansible_facts": {"_storage_test_max_thin_pool_size": "1340306545295"}, "changed": false}

TASK [Apply lower size limit to max usable thin pool space] ****************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:71
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Convert maximum usable thin pool space from int to Size] *************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:76
ok: [localhost] => {"bytes": 1340306545295, "changed": false, "lvm": "1t", "parted": "1TiB", "size": "1 TiB"}

TASK [debug] ***************************************************************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:81
ok: [localhost] => {
    "_storage_test_max_thin_pool_size": {
        "bytes": 1340306545295,
        "changed": false,
        "failed": false,
        "lvm": "1t",
        "parted": "1TiB",
        "size": "1 TiB"
    }
}

TASK [debug] ***************************************************************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:84
ok: [localhost] => {
    "storage_test_volume.thin_pool_size": "100%"
}

TASK [debug] ***************************************************************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:87
ok: [localhost] => {
    "storage_test_volume.size": "100%"
}

TASK [Establish base value for expected thin pool size] ********************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:90
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Calculate the expected size based on pool size and percentage value] *************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:97
ok: [localhost] => {"ansible_facts": {"storage_test_expected_thin_pool_size": "1340306545295.0"}, "changed": false}

TASK [Establish base value for expected thin pool volume size] *************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:104
ok: [localhost] => {"ansible_facts": {"storage_test_expected_tp_volume_size": "1440306545295.0"}, "changed": false}

TASK [Calculate the expected thin pool volume size based on percentage value] **********************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:108
ok: [localhost] => {"ansible_facts": {"storage_test_expected_tp_volume_size": "1340306545295.0"}, "changed": false}

TASK [Replace expected volume size with calculated value] ******************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:114
ok: [localhost] => {"ansible_facts": {"storage_test_expected_size": "1340306545295.0"}, "changed": false}

TASK [debug] ***************************************************************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:124
ok: [localhost] => {
    "storage_test_actual_size": {
        "bytes": 1319413953331,
        "changed": false,
        "failed": false,
        "lvm": "1t",
        "parted": "1TiB",
        "size": "1 TiB"
    }
}

TASK [debug] ***************************************************************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:127
ok: [localhost] => {
    "storage_test_expected_size": "1340306545295.0"
}

TASK [assert] **************************************************************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/test-verify-volume-size.yml:130
fatal: [localhost]: FAILED! => {
    "assertion": "(storage_test_expected_size|int - storage_test_actual_size.bytes)|abs / storage_test_expected_size|int < 0.01",
    "changed": false,
    "evaluated_to": false,
    "msg": "Volume lv1 has unexpected size (expected: 1340306545295 / actual: 1319413953331)"
}

PLAY RECAP *****************************************************************************************************************************
localhost                  : ok=819  changed=11   unreachable=0    failed=1    skipped=576  rescued=0    ignored=0   

[root@storageqe-104 tests]#

Comment 9 guazhang@redhat.com 2022-12-20 04:52:47 UTC
test pass with fixed package, move to verified.

Comment 13 errata-xmlrpc 2023-05-16 08:31:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (rhel-system-roles bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:2804


Note You need to log in before you can comment on or make changes to this bug.