Tuesday, 2020-06-09

*** redrobot has quit IRC02:40
*** Guest52018 has joined #openstack-ansible-sig03:19
*** Guest52018 is now known as redrobot03:20
*** dmellado has quit IRC04:25
*** evrardjp has joined #openstack-ansible-sig04:33
*** gtema has joined #openstack-ansible-sig06:16
*** gtema has quit IRC06:43
*** gtema has joined #openstack-ansible-sig06:44
*** gtema_ has joined #openstack-ansible-sig07:35
*** gtema has quit IRC07:39
*** gtema has joined #openstack-ansible-sig07:40
*** gtema_ has quit IRC07:44
*** rpittau|afk is now known as rpittau07:54
*** kaiokmo has joined #openstack-ansible-sig08:21
*** sshnaidm|afk is now known as sshnaidm08:22
*** dtantsur|afk is now known as dtantsur08:23
*** priteau has joined #openstack-ansible-sig09:00
sshnaidmhey folks, I'd appreciate your reviews on https://review.opendev.org/#/c/721746/ and https://review.opendev.org/73042209:50
*** rpittau is now known as rpittau|bbl10:11
openstackgerritSagi Shnaidman proposed openstack/ansible-collections-openstack master: Add notes to README about deps and versions  https://review.opendev.org/73455710:13
sshnaidmsmall addition to README ^^10:14
sshnaidmif you have better formulations I'm open to suggestions ^10:19
*** dmellado has joined #openstack-ansible-sig10:28
*** priteau has quit IRC10:29
sshnaidmgtema, "Ansible and OpenstackSDK have to be installed in the same environment" - would be enough?10:36
sshnaidmgtema, or what can be added?10:37
*** gtema_ has joined #openstack-ansible-sig10:38
*** gtema_ has quit IRC10:41
*** gtema has quit IRC10:42
*** priteau has joined #openstack-ansible-sig10:49
*** priteau has quit IRC11:16
*** gtema has joined #openstack-ansible-sig11:16
*** gtema has quit IRC11:21
*** gtema has joined #openstack-ansible-sig11:23
gtemasshnaidm: unfortunately not. I.e on Mac if you install ansible with brew it will use a dedicated python for that11:24
gtemaand it will be "enough" installing sdk into same python to get playbook start, but on the execution (depending on what you default python is) you will find - it simply can not find sdk11:25
gtemathis is a MESS11:25
sshnaidmgtema, ack, so.. "Ansible should be able to access OpenstackSDK module on the host"..? I'm not sure what would be better note here11:25
gtemainstead perhaps to mention, that SDK need to be available to the ansible during invokation, and is available in the python, which is used by python to execute tasks11:26
gtema(in a perfect Linux world you don't have those problems)11:26
gtemaUnfortunately I think a statement like "Ansible should be able to access OpenstackSDK module on the host" is not giving enough starting points to understand the situation11:27
gtemathat honestly might be also different if you have "ansible_connection: local" or not11:28
gtemaso SDK should be available to ansible AND the python version ansible is invoking on the target host11:28
gtemaa simple statement like that might be as complex as trying to make it really work on mac11:30
sshnaidmgtema, honestly it's so extremely obvious that it's kinda difficult for me to formulate..11:35
gtemait's so obvious, but fragile, that people who just start give up after hours of fighting11:55
sshnaidmgtema, so what would you suggest?11:55
gtemasomething in the form "SDK should be available to ansible AND the python version ansible is invoking on the target host"11:55
sshnaidmgtema, would "same python environment" mean the same as "python version ansible is invoking on the target host" ?12:06
sshnaidmactually "SDK should be available to ansible" covers also next part12:07
gtemano it's not12:07
gtemapython, which you use when invoking ansible AND python, which ansible uses for the module invokation are NOT THE SAME THING12:08
gtemathis is a sad truth12:08
openstackgerritSagi Shnaidman proposed openstack/ansible-collections-openstack master: Add notes to README about deps and versions  https://review.opendev.org/73455712:09
sshnaidmgtema, check it out ^12:09
gtemano, you can't say it like this. How can you "used by the same Python interpreter" if you execute on the remote host?12:10
sshnaidmso maybe like "OpenstackSDK has to be available for Ansible and used by the same Python interpreter as Ansible uses on the controller for running modules"12:10
gtemaI am against word "same" - this is very confusing12:11
*** rpittau|bbl is now known as rpittau12:11
sshnaidmgtema, well, I don't think we need to make a readme as a tutorial for running Ansible, it's not its purpose12:11
sshnaidmthere should be limits12:11
gtemait's not a tutorial, but readme should at least give understanding how to start using it12:11
gtemaI am not talking about really integrating installation instructions here12:12
sshnaidmgtema, but you're talking about specifics of Ansible running on various OS, and it's kind of out of scope of openstack modules..12:13
sshnaidmif somebody doesn't know to run Ansible on mac, should be include the tutorial in our readme?12:13
gtemawe are talking about giving user a brief understanding what is it about and how to start using it12:13
sshnaidmyeah, "brief"12:14
sshnaidmif user has problem with ansible, they should open issues in ansible..12:14
gtemaMac usage should not be part in detail, but we need at that level to describe user, that python, which is used by ansible, and python, that is used by the module ARE different thing12:14
gtemathat's not ansible problem12:15
sshnaidmgtema, and these are really specific details about execution of Ansible, I don't think its place in readme of Openstack modules12:15
gtemathat's a "issue" of information representation. Consider your playbook is trying to invoke those modules on remote host. Will it work?12:16
sshnaidmwe can link to external resource that explains it maybe12:16
sshnaidmgtema, this point is actually explained in the note12:16
sshnaidmand even this is little bit redundant12:16
gtemano problem, but I am against of giving only partial information, that confuses and gives a feeling: it simply does not work12:17
sshnaidmlike "don't dry your cat in the microwave"12:17
sshnaidmgtema, what exactly is confusing in this information?12:17
gtemasome people really need this info about cat12:17
gtema"same Python interpreter"12:17
sshnaidmgtema, can you describe it without making tutorial how to run ansible and various python interpreters?12:18
gtemacollection need to be deployed not only on controller, but also on executor. In the best case those are same, but does everybody know that?12:18
sshnaidmgtema, ok, let's replace "controller" by executor12:19
gtemalemme think on the sentencing (have a call now though)12:19
sshnaidmgtema, ack, thanks12:19
gtemaI am so nitpicky here, because I fight myself with the way how it works (doesn't work) on Mac. And even for experienced dev it is terribly frustrating12:20
sshnaidmgtema, I understand and I'd like to make it more helpful, let's just work on the wording12:38
*** gtema_ has joined #openstack-ansible-sig12:56
*** gtema has quit IRC12:58
*** priteau has joined #openstack-ansible-sig13:12
openstackgerritSagi Shnaidman proposed openstack/ansible-collections-openstack master: Add notes to README about deps and versions  https://review.opendev.org/73455714:33
sshnaidmgtema_, by "wait_for_server" what do you mean in https://review.opendev.org/#/c/721746/14/plugins/modules/server_action.py ?14:39
gtema_sshnaidm: https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/compute/v2/_proxy.py#L92414:49
*** gtema_ is now known as gtema14:58
sshnaidmI think we can skip the meeting today, otherwise someone has something to bring up15:01
sshnaidmI'm working on PTG summary, will send it later15:01
gtema+115:06
*** gtema_ has joined #openstack-ansible-sig15:12
*** gtema has quit IRC15:15
*** gtema has joined #openstack-ansible-sig15:38
*** gtema_ has quit IRC15:41
*** dtantsur is now known as dtantsur|afk16:05
*** gtema has quit IRC16:06
*** rpittau is now known as rpittau|afk16:09
*** priteau has quit IRC17:21
*** sshnaidm is now known as sshnaidm|afk18:07
*** iurygregory has quit IRC18:43
*** iurygregory has joined #openstack-ansible-sig18:47
iurygregoryany ideas on how I can solve https://opendev.org/openstack/ansible-collections-openstack/src/branch/master/plugins/modules/baremetal_node.py#L248 ? =)19:28
iurygregorymordred, not sure if you know ^19:28
iurygregoryI'm trying to use the openstack.cloud.baremetal_node in bifrost http://paste.openstack.org/show/794541/19:30
mordrediurygregory: you need to install jsonpatch on the node the openstack.cloud.baremetal_node module is running on19:31
mordrediurygregory: jsonpatch is a depend of openstacksdk - so I'm guessing openstacksdk isn't installed?19:31
iurygregorymordred, hummm19:31
mordredoh - are you running from a virtualenv?19:31
iurygregoryyeah19:31
iurygregoryi installed bifrost in a virtualenv19:32
mordredyeah - so, that means openstacksdk is installed in the virtualenv - but ansible isn't going to run on the "remote" host in that virtualenv by default19:32
mordredit's going to "connect" to "localhost" and run the module using the puython there19:32
mordredso you probvably need to set ansible_python_interpreter to /opt/stack/bifrost/bin/python19:32
iurygregoryso if i install openstacksdk in the machine it should be ok?19:33
mordredrunning ansible things on localhost with virtualenvs is ... relaly fun19:33
mordrediurygregory: yes - you can also install openstacksdk on the machine19:33
iurygregorysince it failed in this part at least the module is installed XD19:34
iurygregoryand https://review.opendev.org/#/c/734592/ will probably work \o/19:34
mordredwoot!19:34
iurygregorymordred, ty! installing python3-openstackclient solved \o/20:07
iurygregoryhttp://paste.openstack.org/show/794542/20:07
*** kaiokmo has quit IRC22:13
*** trident has quit IRC23:27
*** trident has joined #openstack-ansible-sig23:29

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