On Wed, May 11, 2022 at 3:33 PM Ritesh Chikatwar <[email protected]> wrote: > > Sorry compile-time error in this > > Use this: > > if el.find('stripeCount') is not None: > value['stripeCount'] = el.find('stripeCount').text > else: > value['stripeCount'] = 1 >
Fixed in ovirt 4.5.1, see: https://github.com/oVirt/vdsm/pull/172 As a workaround, you can apply this change locally: diff --git a/lib/vdsm/gluster/cli.py b/lib/vdsm/gluster/cli.py index 69154a18e..7c8e954ab 100644 --- a/lib/vdsm/gluster/cli.py +++ b/lib/vdsm/gluster/cli.py @@ -426,7 +426,7 @@ def _parseVolumeInfo(tree): value["volumeStatus"] = VolumeStatus.OFFLINE value['brickCount'] = el.find('brickCount').text value['distCount'] = el.find('distCount').text - value['stripeCount'] = el.find('stripeCount').text + value['stripeCount'] = el.findtext('stripeCount', '1') value['replicaCount'] = el.find('replicaCount').text value['disperseCount'] = el.find('disperseCount').text value['redundancyCount'] = el.find('redundancyCount').text Nir > > > On Wed, May 11, 2022 at 11:07 AM Ritesh Chikatwar <[email protected]> wrote: >> >> and once you have done the changes Restart VDSM and SuperVDSM, then your >> host should be able to connect >> >> On Wed, May 11, 2022 at 10:33 AM Ritesh Chikatwar <[email protected]> >> wrote: >>> >>> Hey Jose, >>> >>> >>> If still have a setup can you try replacing with this >>> >>> if el.find('stripeCount'): >>> value['stripeCount'] = el.find('stripeCount').text >>> else: >>> value['stripeCount'] = '1' >>> >>> can you try replacing with this >>> >>> On Wed, Apr 27, 2022 at 9:48 PM José Ferradeira via Users <[email protected]> >>> wrote: >>>> >>>> It did not work >>>> >>>> Thanks >>>> >>>> ________________________________ >>>> De: "Abe E" <[email protected]> >>>> Para: [email protected] >>>> Enviadas: Quarta-feira, 27 De Abril de 2022 15:58:01 >>>> Assunto: [ovirt-users] Re: Host cannot connect to storage domains >>>> >>>> I think you're running into that bug, someone mentioned the following >>>> which seemed to work for my nodes that complained of not being able to >>>> connect to the storage pool. >>>> >>>> The following fix worked for me, i.e. replacing the following line in >>>> /usr/lib/python3.6/site-packages/vdsm/gluster/cli.y >>>> >>>> >>>> Replace: value['stripeCount'] =el.find('stripeCount').text >>>> >>>> With: if (el.find('stripeCount')): value['stripeCount'] = >>>> el.find('stripeCount').text >>>> >>>> Restart VSMD and SuperVSMD and then your host should be able to connect if >>>> you have the same issue >>>> _______________________________________________ >>>> Users mailing list -- [email protected] >>>> To unsubscribe send an email to [email protected] >>>> Privacy Statement: https://www.ovirt.org/privacy-policy.html >>>> oVirt Code of Conduct: >>>> https://www.ovirt.org/community/about/community-guidelines/ >>>> List Archives: >>>> https://lists.ovirt.org/archives/list/[email protected]/message/TWTFZ4VHKSEABMEZYMDUJI2PUYA24XMU/ >>>> _______________________________________________ >>>> Users mailing list -- [email protected] >>>> To unsubscribe send an email to [email protected] >>>> Privacy Statement: https://www.ovirt.org/privacy-policy.html >>>> oVirt Code of Conduct: >>>> https://www.ovirt.org/community/about/community-guidelines/ >>>> List Archives: >>>> https://lists.ovirt.org/archives/list/[email protected]/message/22NF5BKNFPDVS3OGITBIM3XVFZJVCO2H/ > > _______________________________________________ > Users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > Privacy Statement: https://www.ovirt.org/privacy-policy.html > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/[email protected]/message/MJZJQ43T3OPUZSNM6PGZWD6MJ3OG3UF5/ _______________________________________________ Users mailing list -- [email protected] To unsubscribe send an email to [email protected] Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/[email protected]/message/AVMA3FAVYKRJCSSJUDB7J2CWIWIXIVKO/

