-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating EXT4 disk via storage_volumes hangs when mke2fs requests input #180
Comments
I installed the role via galaxy command just this week. `Role: linux-system-roles.storage/ issue-67: Create storage_lsr sub-directory under module_utils and move size.py there |
Using this role to configure "storage_volumes" on RHEL 7.6 to create EXT4 FS.
The blivet_output of the role before creating the FS.
"volumes": [ { "_device": "/dev/sdh", "_mount_id": "UUID=f982878c-14b0-487d-91ce-ff75984cce45", "disks": [ "sdh" ], "fs_create_options": "", "fs_label": "hdfs_data4", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults,noatime,discard,barrier=0", "mount_passno": 0, "mount_point": "/data4", "name": "hdfs_data4", "size": "1024g", "state": "present", "type": "disk" }
The role hangs wile creating the EXT4 FS directly on disk.
![image](https://user-images.githubusercontent.com/14169112/101336568-ed19f900-387a-11eb-91d8-8af4079628af.png)
On htop I can see the following command:
mke2fs -t ext4 /dev/sdh
When executing this command directly on the node it requests user input to proceed.
![image](https://user-images.githubusercontent.com/14169112/101336984-6a456e00-387b-11eb-8e19-cab42b1473b1.png)
I fixed this by aborting the current running "system-linux-roles.storage" and executed ansible ad-hoc commands to create them by:
ansible <hostgroup> --private-key <path-to-private-key> -m shell -b -a "echo y | mke2fs -t ext4 /dev/sdh"
Expected Behaviour:
The role shouldn't halt when creating EXT4 filesystems directly on disk and should auto approve mke2fs request.
The text was updated successfully, but these errors were encountered: