if str(e.err).find("No active geo-replication sessions")
Yes correct it goes to stderr..._______________________________________________On Tue, Sep 29, 2020 at 2:00 PM Michal Skrivanek <michal.skrivanek@redhat.com> wrote:[adding devel list]On 29 Sep 2020, at 09:51, Ritesh Chikatwar <rchikatw@redhat.com> wrote:Hello,i am new to VDSM codebase.There is one minor bug in gluster and they don't have any near plan to fix this. So i need to fix this in vdsm.The bug is when i run command[root@dhcp35-237 ~]# gluster v geo-replication status
No active geo-replication sessions
geo-replication command failed
[root@dhcp35-237 ~]#So this engine is piling up with error. i need handle this in vdsm the code at this placeIf i run the above command with xml then i will get[root@dhcp35-237 ~]# gluster v geo-replication status --xml
geo-replication command failed
[root@dhcp35-237 ~]#so i have to run one more command before executing this and check in exception that it contains No active geo-replication sessions this string. for that i did like thismaybe it goes to stderr?other than that, no idea, sorryThanks,michaltry:
xmltree = _execGluster(command)
except ge.GlusterCmdFailedException as e:
if str(e).find("No active geo-replication sessions") != -1:
return []Seems like this is not working can you help me hereAny help will be appreciatedRitesh
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-leave@ovirt.org
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/devel@ovirt.org/message/MOWRRKWY6YCX5PLTH6XIA273TDTZ5BYP/
Thanks,
Kaustav Majumder