Wednesday, 2023-07-26

noonedeadpunkgtema: hey, I was wondering about your opinion on that part of modules: https://opendev.org/openstack/ansible-collections-openstack/src/branch/master/plugins/module_utils/openstack.py#L195-L203 To be more specific - if that is intended, that module defaults do override what's defined in clouds.yaml?13:59
noonedeadpunkspecifically, interface part13:59
noonedeadpunkAs I was slightly o_O when realized that interface in clouds.yaml does not have effect on behaviour of ansible modules as module defaults does silently shadow clouds.yaml14:00
noonedeadpunkAt the same time I don't really see straightforward workaround for that14:03
noonedeadpunklike there's no good way to know if interface is part of the clouds.yaml in module14:04
noonedeadpunkexcept just remove default in module and have a default in SDK instead14:07
gtemanooedeadpunk - module doesn't really override the clouds.yaml, unless you specify those params - what means you explicitly WANT to override this14:46
gtemanoonedeadpunk: ^^ (key stucks)15:11
noonedeadpunkI'm pretty sure it does... https://paste.openstack.org/show/b3u99kw9Y4Pal6kG9UCW/15:15
noonedeadpunkhttps://paste.openstack.org/show/bcM0tPoEkADPCA7pBE42/15:16
noonedeadpunkgtema: ^15:16
gtemathe interface default is public15:16
noonedeadpunkyep, and it doesn't care if you have smth else in clouds.yaml15:16
gtemaaaah, in this sense you are right15:17
noonedeadpunkAnd your statement is true for _everything_ except interface15:17
gtemabasic idea is that with ansible module you have possibility to override what is in clouds.yaml. Of course any sort of default here is breaking things15:17
noonedeadpunkBut does SDK have some default for interface as well?15:18
noonedeadpunkAs I was wondering how reasonable to keep default in collection as well?15:18
gtemaI was having challenges to understand precisely your point, sorry15:18
gtemaI think SDK does this is little bit more smart15:19
gtematrying to find the place now15:20
gtemahttps://opendev.org/openstack/openstacksdk/src/branch/master/openstack/config/loader.py#L1173 is one of the places if I remember correctly15:21
gtemahttps://opendev.org/openstack/openstacksdk/src/branch/master/openstack/config/defaults.json#L7 - is the default itself, which is working differently to how ansible would treat that15:22
noonedeadpunkBut should ansible care at all about that?15:22
gtemaI think it should be safe to drop the default for interface from ansible15:22
noonedeadpunkyeah, I was kinda thinking the same. Let me propose patch then and see how CI will fail dramatically :D15:23
gtemano, ansible should not take care, but it should give possibility to override (for the cases when config is passed and not the clouds.yaml is used)15:23
gtemaoverride = set15:23
noonedeadpunkyes, totally, I do understand override part15:23
noonedeadpunkas whatever set should have prescedence over config15:24
opendevreviewDmitriy Rabotyagov proposed openstack/ansible-collections-openstack master: Remove default value for interface  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/88972915:40
noonedeadpunkgtema: ^15:40
gtemayupp, noticed. Thanks15:40
noonedeadpunkthere're actually several more patches I've pushed lately, but see close to nobody around who could review them...15:41
noonedeadpunklike https://review.opendev.org/c/openstack/ansible-collections-openstack/+/889388 is preetty much annoying15:41
gtemayupp, RH pulled away so pretty much nobody left15:41
noonedeadpunkdid they promise to return one day or just decided they're not interested anymore at all?15:42
gtemasecond afaik15:42
noonedeadpunkdoh15:43
gtemaand I am deep in the codegeneration experiment, which should resolve this issue, but is clearly not the simpliest thing15:43
noonedeadpunkannoying part, is that a rhel personal account is used to publish collection as well as openstack namespace15:45
noonedeadpunkin galaxy15:45
gtemaoh, never noticed that15:45
noonedeadpunkso generating code is part of the problem15:45
noonedeadpunk*a personal account of a folk from redhat15:46
gtemawhere do you see personal account is used?15:46
noonedeadpunkI just know as we had couple of discussion when I wanted to publish some OSA things to galaxy15:46
gtemahttps://galaxy.ansible.com/openstack - this is not personal account15:47
noonedeadpunkand we ended up that if person is gone infra-root technically can decrypt secret and move somewhere15:47
noonedeadpunkit's created by sshnaidem15:48
noonedeadpunkto be specific15:48
noonedeadpunkand linked to his github account15:48
gtemaI don't know how to see this from the UI15:49
gtemabut anyway, I think in the mid term we will have here anyway a big change in everything15:50
* noonedeadpunk hates big changes16:41
* noonedeadpunk finally wants some stability16:41
* noonedeadpunk and eat a burek with some rakija16:42
noonedeadpunkbtw the role I was talking during the summit: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/88970716:43
gtemabig changes are necessary when code basis is big and no people left to maintain it16:43
noonedeadpunk* https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/87879416:44
noonedeadpunklet's find ppl?:)16:44
gtemaok16:44
noonedeadpunkI can imagine kolla userbase would be interested in keeping collection alive along with osa 16:45
noonedeadpunkthe trickest thing in whole ansible stuff is the license16:45
noonedeadpunkas it's not apache2, but GPL iirc16:46
noonedeadpunkso there is also legal part to consider, if we talk about generating the code16:46
noonedeadpunkas you kinda switching licensing in between16:47
gtemaDon't think there is issue with that16:48
noonedeadpunkthere were discussion when this sig was created16:48
noonedeadpunkand why it's a sig and not a project16:48
noonedeadpunkwith ptl and all governance on top16:49
gtemaThis is more or less a "replace" with new code16:49
gtemaNot partly, but whole modules16:49
gtemaAnyway, it is still far16:49
* noonedeadpunk is not a lawyer16:50
-opendevstatus- NOTICE: The Gerrit service on review.opendev.org will be offline briefly for a minor upgrade at 21:00 utc, approximately an hour from now20:02
-opendevstatus- NOTICE: The Gerrit service on review.opendev.org will be offline briefly for a minor upgrade, but should return shortly21:00

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