Bug 1805164
Summary: | [RHEL-8.1] gdeploy is throwing AttributeError: module 'yaml' has no attribute 'FullLoader' when creating bricks | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Bala Konda Reddy M <bmekala> |
Component: | gdeploy | Assignee: | Prajith <pkesavap> |
Status: | CLOSED ERRATA | QA Contact: | Mugdha Soni <musoni> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | rhgs-3.5 | CC: | godas, msaini, musoni, nchilaka, pkesavap, pprakash, rcyriac, rhs-bugs, sheggodu, storage-qa-internal |
Target Milestone: | --- | Keywords: | TestBlocker, ZStream |
Target Release: | RHGS 3.5.z Batch Update 2 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-06-16 05:56:04 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
Bala Konda Reddy M
2020-02-20 11:57:51 UTC
could you try installing "python3-pyyamlx86_64- 5.1.2-3.el8" instead of PyYaml? Hi Prasanth, can you kindly try this and let me know if you are facing the issue? can you change your .conf or playbook from :- devices=/dev/sdb,/dev/sdc,/dev/sdd,/dev/sde,/dev/sdf,/dev/sdg,/dev/sdh,/dev/sdi instead of the above we need to give devices=/dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi in the .conf or playbook basically instead of comma, can you try giving space ? (In reply to Prajith from comment #7) > Hi Prasanth, > > can you kindly try this and let me know if you are facing the issue? > > can you change your .conf or playbook from :- > > devices=/dev/sdb,/dev/sdc,/dev/sdd,/dev/sde,/dev/sdf,/dev/sdg,/dev/sdh,/dev/ > sdi > instead of the above we need to give > devices=/dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh > /dev/sdi > in the .conf or playbook > > basically instead of comma, can you try giving space ? Make use of the needinfo flag in BZ for similar requests in future so that it get's the proper attention from the QA_Contact. @Bala, @Manisha, can you give this a try and report back? The problem is, in the config file, it is not taking multiple values which is parsed. I guess the current work around would be to create a script that would generate a config file which would contain [backend-reset] for each device. I will open an issue at the GitHub and post the link here as well. I have opened an issue in upstream, https://github.com/gluster/gdeploy/issues/544, right now the suggested fix from my side is to edit the conf file for each device. I will be looking at the code and post finding the error will update the bug with the fix. Hi Bala I tested with the following :- 1.Last login: Wed Mar 11 16:21:32 2020 from 10.70.47.39 [root@dhcp47-39 ~]# rpm -qa | grep ansible ansible-2.9.5-1.el8ae.noarch 2[root@dhcp47-39 ~]# rpm -qa | grep gdeploy gdeploy-3.0.0-3.el8rhgs.noarch 3.[root@dhcp47-39 ~]# rpm -qa | grep glusterfs glusterfs-client-xlators-6.0-30.1.el8rhgs.x86_64 glusterfs-6.0-30.1.el8rhgs.x86_64 glusterfs-cli-6.0-30.1.el8rhgs.x86_64 glusterfs-fuse-6.0-30.1.el8rhgs.x86_64 glusterfs-server-6.0-30.1.el8rhgs.x86_64 glusterfs-libs-6.0-30.1.el8rhgs.x86_64 glusterfs-api-6.0-30.1.el8rhgs.x86_64 ---------------------------------------------------------------------- ##conf file used is## [hosts] 10.70.47.39 10.70.47.94 10.70.47.151 [backend-setup] devices=/dev/sdb,/dev/sdc vgs=vg1,vg2 pools=gfs_pool1,gfs_pool2 lvs=lv1,lv2 mountpoints=/bricks/brick1,/bricks/brick2 ------------------------------------------------------------------------ [root@dhcp47-39 gdeploy]# gdeploy -c ackend.conf PLAY [gluster_servers] ******************************************************************************************************************************************************************************************** TASK [Clean up filesystem signature] ****************************************************************************************************************************************************************************** skipping: [10.70.47.39] => (item=/dev/sdb) skipping: [10.70.47.39] => (item=/dev/sdc) skipping: [10.70.47.94] => (item=/dev/sdb) skipping: [10.70.47.94] => (item=/dev/sdc) skipping: [10.70.47.151] => (item=/dev/sdb) skipping: [10.70.47.151] => (item=/dev/sdc) TASK [Create Physical Volume] ************************************************************************************************************************************************************************************* changed: [10.70.47.94] => (item=/dev/sdb) changed: [10.70.47.151] => (item=/dev/sdb) changed: [10.70.47.39] => (item=/dev/sdb) changed: [10.70.47.94] => (item=/dev/sdc) changed: [10.70.47.151] => (item=/dev/sdc) changed: [10.70.47.39] => (item=/dev/sdc) PLAY RECAP ******************************************************************************************************************************************************************************************************** 10.70.47.151 : ok=1 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 10.70.47.39 : ok=1 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 10.70.47.94 : ok=1 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAY [gluster_servers] ******************************************************************************************************************************************************************************************** TASK [Create volume group on the disks] *************************************************************************************************************************************************************************** changed: [10.70.47.94] => (item={'brick': '/dev/sdb', 'vg': 'vg1'}) changed: [10.70.47.151] => (item={'brick': '/dev/sdb', 'vg': 'vg1'}) changed: [10.70.47.39] => (item={'brick': '/dev/sdb', 'vg': 'vg1'}) changed: [10.70.47.151] => (item={'brick': '/dev/sdc', 'vg': 'vg2'}) [WARNING]: The value 0 (type int) in a string field was converted to '0' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. [WARNING]: The value 256 (type int) in a string field was converted to '256' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. changed: [10.70.47.39] => (item={'brick': '/dev/sdc', 'vg': 'vg2'}) changed: [10.70.47.94] => (item={'brick': '/dev/sdc', 'vg': 'vg2'}) PLAY RECAP ******************************************************************************************************************************************************************************************************** 10.70.47.151 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 10.70.47.39 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 10.70.47.94 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 PLAY [gluster_servers] ******************************************************************************************************************************************************************************************** TASK [Create logical volume named metadata] *********************************************************************************************************************************************************************** changed: [10.70.47.94] => (item=vg1) changed: [10.70.47.39] => (item=vg1) changed: [10.70.47.151] => (item=vg1) changed: [10.70.47.151] => (item=vg2) [WARNING]: The value 0 (type int) in a string field was converted to '0' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. changed: [10.70.47.94] => (item=vg2) changed: [10.70.47.39] => (item=vg2) TASK [create data LV that has a size which is a multiple of stripe width] ***************************************************************************************************************************************** changed: [10.70.47.151] => (item={'lv': 'lv1', 'pool': 'gfs_pool1', 'vg': 'vg1'}) changed: [10.70.47.94] => (item={'lv': 'lv1', 'pool': 'gfs_pool1', 'vg': 'vg1'}) changed: [10.70.47.39] => (item={'lv': 'lv1', 'pool': 'gfs_pool1', 'vg': 'vg1'}) changed: [10.70.47.151] => (item={'lv': 'lv2', 'pool': 'gfs_pool2', 'vg': 'vg2'}) changed: [10.70.47.94] => (item={'lv': 'lv2', 'pool': 'gfs_pool2', 'vg': 'vg2'}) changed: [10.70.47.39] => (item={'lv': 'lv2', 'pool': 'gfs_pool2', 'vg': 'vg2'}) TASK [Convert the logical volume] ********************************************************************************************************************************************************************************* changed: [10.70.47.94] => (item={'lv': 'lv1', 'pool': 'gfs_pool1', 'vg': 'vg1'}) changed: [10.70.47.151] => (item={'lv': 'lv1', 'pool': 'gfs_pool1', 'vg': 'vg1'}) changed: [10.70.47.39] => (item={'lv': 'lv1', 'pool': 'gfs_pool1', 'vg': 'vg1'}) changed: [10.70.47.151] => (item={'lv': 'lv2', 'pool': 'gfs_pool2', 'vg': 'vg2'}) changed: [10.70.47.94] => (item={'lv': 'lv2', 'pool': 'gfs_pool2', 'vg': 'vg2'}) changed: [10.70.47.39] => (item={'lv': 'lv2', 'pool': 'gfs_pool2', 'vg': 'vg2'}) TASK [create stripe-aligned thin volume] ************************************************************************************************************************************************************************** changed: [10.70.47.94] => (item={'lv': 'lv1', 'pool': 'gfs_pool1', 'vg': 'vg1'}) changed: [10.70.47.151] => (item={'lv': 'lv1', 'pool': 'gfs_pool1', 'vg': 'vg1'}) changed: [10.70.47.39] => (item={'lv': 'lv1', 'pool': 'gfs_pool1', 'vg': 'vg1'}) changed: [10.70.47.151] => (item={'lv': 'lv2', 'pool': 'gfs_pool2', 'vg': 'vg2'}) changed: [10.70.47.94] => (item={'lv': 'lv2', 'pool': 'gfs_pool2', 'vg': 'vg2'}) changed: [10.70.47.39] => (item={'lv': 'lv2', 'pool': 'gfs_pool2', 'vg': 'vg2'}) TASK [Change the attributes of the logical volume] **************************************************************************************************************************************************************** changed: [10.70.47.151] => (item={'lv': 'lv1', 'pool': 'gfs_pool1', 'vg': 'vg1'}) changed: [10.70.47.94] => (item={'lv': 'lv1', 'pool': 'gfs_pool1', 'vg': 'vg1'}) changed: [10.70.47.39] => (item={'lv': 'lv1', 'pool': 'gfs_pool1', 'vg': 'vg1'}) changed: [10.70.47.94] => (item={'lv': 'lv2', 'pool': 'gfs_pool2', 'vg': 'vg2'}) changed: [10.70.47.151] => (item={'lv': 'lv2', 'pool': 'gfs_pool2', 'vg': 'vg2'}) changed: [10.70.47.39] => (item={'lv': 'lv2', 'pool': 'gfs_pool2', 'vg': 'vg2'}) PLAY RECAP ******************************************************************************************************************************************************************************************************** 10.70.47.151 : ok=5 changed=5 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 10.70.47.39 : ok=5 changed=5 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 10.70.47.94 : ok=5 changed=5 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 PLAY [gluster_servers] ******************************************************************************************************************************************************************************************** TASK [Create an xfs filesystem] *********************************************************************************************************************************************************************************** changed: [10.70.47.151] => (item=/dev/vg1/lv1) changed: [10.70.47.94] => (item=/dev/vg1/lv1) changed: [10.70.47.39] => (item=/dev/vg1/lv1) changed: [10.70.47.94] => (item=/dev/vg2/lv2) changed: [10.70.47.151] => (item=/dev/vg2/lv2) changed: [10.70.47.39] => (item=/dev/vg2/lv2) PLAY RECAP ******************************************************************************************************************************************************************************************************** 10.70.47.151 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 10.70.47.39 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 10.70.47.94 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 PLAY [gluster_servers] ******************************************************************************************************************************************************************************************** TASK [Create the mountpoints, skips if present] ******************************************************************************************************************************************************************* changed: [10.70.47.94] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) changed: [10.70.47.151] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) changed: [10.70.47.39] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) changed: [10.70.47.39] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) changed: [10.70.47.151] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) changed: [10.70.47.94] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) TASK [Set mount options for VDO] ********************************************************************************************************************************************************************************** skipping: [10.70.47.39] skipping: [10.70.47.94] skipping: [10.70.47.151] TASK [Mount the vdo disks (if any)] ******************************************************************************************************************************************************************************* skipping: [10.70.47.39] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) skipping: [10.70.47.39] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) skipping: [10.70.47.94] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) skipping: [10.70.47.94] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) skipping: [10.70.47.151] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) skipping: [10.70.47.151] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) TASK [Mount the disks (non-vdo)] ********************************************************************************************************************************************************************************** changed: [10.70.47.151] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) changed: [10.70.47.39] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) changed: [10.70.47.94] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) changed: [10.70.47.151] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) changed: [10.70.47.39] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) changed: [10.70.47.94] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) PLAY RECAP ******************************************************************************************************************************************************************************************************** 10.70.47.151 : ok=2 changed=2 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 10.70.47.39 : ok=2 changed=2 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 10.70.47.94 : ok=2 changed=2 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 PLAY [gluster_servers] ******************************************************************************************************************************************************************************************** TASK [Set SELinux labels on the bricks] *************************************************************************************************************************************************************************** changed: [10.70.47.94] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) changed: [10.70.47.151] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) changed: [10.70.47.39] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) changed: [10.70.47.94] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) changed: [10.70.47.151] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) changed: [10.70.47.39] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) TASK [Restore the SELinux context] ******************************************************************************************************************************************************************************** changed: [10.70.47.94] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) changed: [10.70.47.39] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) changed: [10.70.47.151] => (item={'device': '/dev/vg1/lv1', 'path': '/bricks/brick1'}) changed: [10.70.47.94] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) changed: [10.70.47.39] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) changed: [10.70.47.151] => (item={'device': '/dev/vg2/lv2', 'path': '/bricks/brick2'}) PLAY RECAP ******************************************************************************************************************************************************************************************************** 10.70.47.151 : ok=2 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 10.70.47.39 : ok=2 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 10.70.47.94 : ok=2 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Error: No sections found in config file. Exiting! ----------------------------------------------------------------------------------------------------------------------------- [root@dhcp47-39 bricks]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 900M 0 900M 0% /dev tmpfs 915M 0 915M 0% /dev/shm tmpfs 915M 17M 899M 2% /run tmpfs 915M 0 915M 0% /sys/fs/cgroup /dev/mapper/rhel_dhcp47--39-root 14G 2.1G 12G 16% / /dev/sda1 1014M 214M 801M 22% /boot tmpfs 183M 0 183M 0% /run/user/0 /dev/mapper/vg1-lv1 10G 104M 9.9G 2% /bricks/brick1 /dev/mapper/vg2-lv2 10G 104M 9.9G 2% /bricks/brick2 [root@dhcp47-39 ~]# ls -ldZ /bricks/brick* drwxr-xr-x. 2 root root system_u:object_r:glusterd_brick_t:s0 6 Mar 11 16:20 /bricks/brick1 drwxr-xr-x. 2 root root system_u:object_r:glusterd_brick_t:s0 6 Mar 11 16:20 /bricks/brick2 Bala , I request you to please verify and let me know if something else needs to be done for the verification of the bug. Thanks, Mugdha Soni Based on comment#20 moving this bug to verified state. 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, 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-2020:2577 |