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 1990757 - [storage role] Get mdadm error in case tests_raid_volume_options.yml which define raid1 to test
Summary: [storage role] Get mdadm error in case tests_raid_volume_options.yml which d...
Keywords:
Status: CLOSED DUPLICATE of bug 1987170
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rhel-system-roles
Version: 8.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Rich Megginson
QA Contact: CS System Management SST QE
URL:
Whiteboard: role:storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-06 07:16 UTC by guazhang@redhat.com
Modified: 2021-09-21 11:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-08 15:33:15 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-92621 0 None None None 2021-08-06 08:29:18 UTC

Description guazhang@redhat.com 2021-08-06 07:16:22 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


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

Actual results:


Expected results:


Additional info:

TASK [Create a RAID0 device mounted on "/opt/test1"] ***********************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tests/tests_raid_volume_options.yml:18



TASK [rhel-system-roles.storage : debug] ***********************************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/main-blivet.yml:15
ok: [localhost] => {
    "storage_volumes": [
        {
            "disks": [
                "sda",
                "sdb",
                "sdc"
            ],
            "mount_point": "/opt/test1",
            "name": "test1",
            "raid_device_count": 2,
            "raid_level": "raid1",
            "raid_metadata_version": "1.0",
            "raid_spare_count": 1,
            "state": "present",
            "type": "raid"
        }
    ]
}




TASK [rhel-system-roles.storage : failed message] **************************************************************************************
task path: /usr/share/ansible/roles/rhel-system-roles.storage/tasks/main-blivet.yml:71
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, "state": "present", "type": "lvm", "volumes": []}, "pools": [], "safe_mode": false, "use_partitions": true, "volume_defaults": {"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, "size": 0, "state": "present", "type": "lvm", "vdo_pool_size": null}, "volumes": [{"_device": "/dev/md/test1", "_mount_id": "/dev/md/test1", "_raw_device": "/dev/md/test1", "compression": null, "deduplication": null, "disks": ["sda", "sdb", "sdc"], "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": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": 2, "raid_level": "raid1", "raid_metadata_version": "1.0", "raid_spare_count": 1, "size": 0, "state": "present", "type": "raid", "vdo_pool_size": null}]}}, "leaves": [], "mounts": [], "msg": "Failed to commit changes to disk: Process reported exit code 1: mdadm: specifying chunk size is forbidden for this level\n", "packages": ["dosfstools", "mdadm", "xfsprogs"], "pools": [], "volumes": []}}


from mdadm man page, it seem raid1 don;t spport chunk.

 -c, --chunk=
              Specify  chunk  size of kilobytes.  The default when creating an array is 512KB.  To ensure compatibility with earlier
              versions, the default when building an array with no persistent metadata is 64KB.  This is only meaningful for  RAID0,
              RAID4, RAID5, RAID6, and RAID10.

              RAID4, RAID5, RAID6, and RAID10 require the chunk size to be a power of 2.  In any case it must be a multiple of 4KB.

              A suffix of 'K', 'M', 'G' or 'T' can be given to indicate Kilobytes, Megabytes, Gigabytes or Terabytes respectively.

Comment 1 guazhang@redhat.com 2021-08-06 07:31:13 UTC
test case tests_raid_pool_options.yml hit same error

Comment 2 Rich Megginson 2021-08-08 15:33:15 UTC

*** This bug has been marked as a duplicate of bug 1987170 ***


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