Tuesday, 2021-11-02

francie_DGood afternoon vkmc12:05
francie_DPlease review when you have a moment: https://review.opendev.org/c/openstack/python-manilaclient/+/81515712:05
francie_Dvkmc ^12:05
vkmcmaaritamm, hey! 12:55
vkmcmaaritamm, if you have a moment later, I could use some extra eyes to review https://review.opendev.org/c/openstack/python-manilaclient/+/81515712:55
vkmcmaaritamm, is what we chatted the other day, wrt access allow/deny12:56
maaritammvkmc, o/12:57
maaritammvkmc, cool, I'll check it later today :)12:58
francie_DHello vkmc15:32
maaritammhey francie_D :)15:35
maaritammfrancie_D, I am just testing your patch in my devstack...15:36
francie_DGood afternoon maaritanm15:36
francie_DOk I wait for your review15:36
maaritammfrancie_D, did you test the command yourself as well?15:36
francie_DI am thinking am missing something about the 'share_access_rule' resource15:36
francie_DYes15:37
maaritammhmm, yeah so I tried to run the command and I got an error: ERROR: name 'share_access_rule' is not defined15:37
francie_DI got same, but yet to figure out where I needed to define it15:37
francie_Das I included it on the 'find_resource' declaration15:38
francie_DSo I wonder what I am missing 15:38
maaritammok, let's have a look, I am checking ...15:38
francie_DThis line:15:39
francie_Dhttps://review.opendev.org/c/openstack/python-manilaclient/+/815157/4/manilaclient/v2/shell.py#24915:39
francie_DI am guessing that should be the culprit15:39
maaritammhmm, right that might need to be cs.share_access_rules (not singular) that you need to pass15:42
francie_Dchecking15:45
maaritammalso in line 1908 you are passing share_access_rule that is not defined15:45
maaritammyou'll want to pass 'access' or rename the variable on line 190315:45
francie_Dchecking..15:48
francie_Dso I have to replace with access on line 1908 then15:49
maaritammyes that should get us past the first error15:50
maaritammbut now I am getting: ERROR: 'dict' object has no attribute 'id'15:50
francie_DInvestigating15:51
francie_DThat should be on the print function15:51
francie_D?15:51
maaritammI am checking ...15:55
maaritammok, so the error is coming from line 8516:04
francie_Dyes16:04
maaritammbecause for other resources we are passing resource objects but in this case we have a dictionary16:04
francie_Da workaround could be...?16:06
maaritammhmm, I'll have to do some thinkos on this... I have to take my dog for a walk now and I'll dig into this after16:11
maaritammbut, if you want dig into meanwhile, my initial thought would be that we could use the get method in here: https://github.com/openstack/python-manilaclient/blob/master/manilaclient/v2/share_access_rules.py#L4916:12
maaritammI think that should give you the resource and then perhaps pass that to the wait method instead16:12
maaritammyou can access that with cs.share_access_rules.get and pass the id from the dict16:13
francie_DLet me think it through without causing breaking changes to other resources16:17
francie_DThanks16:17
maaritammsure, np :)16:20

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!