Monday, 2020-07-27

*** holser has joined #openstack-ansible-sig07:23
*** holser_ has joined #openstack-ansible-sig07:39
*** holser__ has joined #openstack-ansible-sig07:40
*** holser has quit IRC07:41
*** holser has joined #openstack-ansible-sig07:44
*** holser_ has quit IRC07:44
*** holser__ has quit IRC07:45
*** dtantsur|afk is now known as dtantsur08:05
dtantsursshnaidm: hey! do I recall it right that you have your own version of https://opendev.org/openstack/bifrost/src/branch/master/playbooks/library/os_ironic_node_info.py ?08:23
dtantsurnow that we've migrated bifrost to the collection, we're looking for a home for it08:23
sshnaidmdtantsur, yep, https://opendev.org/openstack/tripleo-ansible/src/branch/master/tripleo_ansible/ansible_plugins/modules/os_baremetal_node_info.py08:24
sshnaidmdtantsur, you mean to remove info module form your collection?08:24
*** gtema has joined #openstack-ansible-sig08:24
dtantsursshnaidm: sweeet, it looks a superset of what we have, except for the legacy ironic_url support08:24
dtantsuryeah, I want to get rid of the bifrost version08:25
dtantsursshnaidm: I'd be really happy if you could propose your thing upstream08:26
sshnaidmdtantsur, yeah, was going to do this, but when you start to use it - need to check its output is compatible with your code08:26
dtantsursshnaidm: well, we'll need to fix it to have a normal return instead of returning a fact08:28
sshnaidmdtantsur, like I return list "baremetal_nodes' and your module returns dict "node"08:28
sshnaidmdtantsur, yeah, facts is a deprecated way08:28
dtantsurah, no, it's a normal return, just the docs are misleading08:28
dtantsurthese small differences are fine, we'll anyway go through deprecation of the old module08:29
dtantsurwe'll need to be able to optionally fetch 'nics', bifrost relies on it08:29
dtantsursshnaidm: re 'baremetal_nodes' vs 'nodes', what's the standard approach in ansible?08:29
sshnaidmdtantsur, it depend on us how to name it, but because I do multiple nodes info, I need to return a list08:30
sshnaidmdtantsur, so I need to add call cloud.list_nics_for_machine for nics as I see08:31
*** gtema has quit IRC08:32
dtantsursshnaidm: it seems that other info modules return openstack_<resource>, so openstack_baremetal_nodes in our case08:32
dtantsuryou also need to make sure it's always a list, I guess?08:32
sshnaidmdtantsur, yeah, but I get list from sdk08:33
sshnaidmI think in any case08:33
dtantsurnot for get_machine though?08:33
sshnaidmhmm.. good question08:35
*** holser_ has joined #openstack-ansible-sig08:39
*** holser has quit IRC08:40
sshnaidmdtantsur, seems like a list: https://github.com/openstack/openstacksdk/blob/7e2a51aefffdcb0913ff8254d25fb5216c02cb18/openstack/cloud/_normalize.py#L1168-L117308:40
*** holser_ has quit IRC08:40
sshnaidmdtantsur, oops, wrong function.. yeah, it's a dict08:41
*** holser has joined #openstack-ansible-sig08:42
sshnaidmnot sure what is the best tbh, seems logical to return a dict when requesting info for one node and list when multiple nodes08:42
sshnaidmbut it's not really compliant with ansible, it requires a specific type for all modules cases08:42
dtantsursshnaidm: well, flavor_info always returns a list08:45
dtantsurI guess we could use this example08:46
dtantsurunless we want to have different modules for "get one node" and "get many nodes"08:46
*** holser_ has joined #openstack-ansible-sig08:47
sshnaidmdtantsur, yeah, I'll make it return a list always08:49
sshnaidmactually it's not so complex to make another module08:50
dtantsuryeah, I wonder what the ansible way is08:50
*** holser has quit IRC08:50
*** holser_ has quit IRC08:52
sshnaidmI saw very different ways in ansible modules, so not sure there is a "ansible way" at all08:54
*** holser has joined #openstack-ansible-sig08:57
sshnaidmI'd use baremetal_node module for return a dict for one node, then would make action plugin that runs multiple instances of baremetal_node for multople nodes and returns a list08:57
*** holser has quit IRC09:01
*** holser has joined #openstack-ansible-sig09:02
sshnaidmdtantsur, I think I'll move it as is and we can move on later, also about ironic url and auth there09:02
dtantsursshnaidm: changing a dict to a list later would be a breaking change though. agree about everything else09:06
sshnaidmdtantsur, yeah, this I can change right now09:06
sshnaidmdtantsur, where is your bifrost collection hosted?09:07
*** holser has quit IRC09:09
*** holser has joined #openstack-ansible-sig09:09
sshnaidmI mean in which repo09:10
dtantsursshnaidm: openstack/bifrost: https://opendev.org/openstack/bifrost/src/branch/master/playbooks/library/os_ironic_node_info.py09:16
openstackgerritDmitry Tantsur proposed openstack/ansible-collections-openstack master: Add non-voting bifrost jobs  https://review.opendev.org/74317609:37
openstackgerritDmitry Tantsur proposed openstack/ansible-collections-openstack master: DNM try breaking ironic  https://review.opendev.org/74317709:40
sshnaidmdtantsur, does symlinking work well?10:23
dtantsursshnaidm: yep10:34
openstackgerritDmitry Tantsur proposed openstack/ansible-collections-openstack master: Add non-voting bifrost jobs  https://review.opendev.org/74317610:47
* tremble thanks sshnaidm for the merge on 74094810:48
sshnaidmtremble, you're welcome, we wait for another patches from you :)10:49
sshnaidm(and tests :D )10:49
* tremble has been trying to stabilize the Ansible AWS tests recently10:50
tremblesshnaidm, Don't know how you'd want to deal with the workflow on https://storyboard.openstack.org/#!/story/200792210:55
sshnaidmtremble, it's "merged" now10:57
sshnaidmhttps://storyboard.openstack.org/#!/project/openstack/ansible-collections-openstack10:57
sshnaidmin "merged" tab10:57
sshnaidmbtw, I made a dashboard to track the project, so we don't miss anything: http://dashboard-ci.tripleo.org/d/ilRDx9nMk/openstack-ansible-collections?orgId=110:59
trembleNice :)10:59
*** iurygregory has quit IRC10:59
sshnaidmneed to show only active issues there..11:00
sshnaidmand will add a bot to post here new issues..11:00
*** iurygregory has joined #openstack-ansible-sig11:01
* tremble goes back to lurking and watching paint dry^W^W his lab cluster rebuild.11:01
*** evrardjp has quit IRC12:32
*** evrardjp has joined #openstack-ansible-sig12:32
*** evrardjp has quit IRC12:32
*** evrardjp has joined #openstack-ansible-sig12:33
*** dtantsur is now known as dtantsur|brb13:22
sshnaidmdtantsur|brb, can we talk about testing ironic modules in CI in your time?13:46
sshnaidmI'm barely familiar with ironic CI, need to know more13:46
*** dtantsur|brb is now known as dtantsur15:06
dtantsursshnaidm: yep15:07
*** dtantsur is now known as dtantsur|afk16:59
*** evrardjp has quit IRC18:21
*** evrardjp has joined #openstack-ansible-sig18:24
openstackgerritMerged openstack/ansible-collections-openstack master: Add non-voting bifrost jobs  https://review.opendev.org/74317618:34
*** holser has quit IRC23:30
*** holser has joined #openstack-ansible-sig23:34
*** spatel has joined #openstack-ansible-sig23:46
*** spatel has quit IRC23:50

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