Monday, 2020-12-21

*** sshnaidm is now known as sshnaidm|afk00:22
*** zeestrat has quit IRC00:46
*** zeestrat has joined #openstack-ansible-sig00:47
*** openstackgerrit has quit IRC01:00
*** spatel has joined #openstack-ansible-sig02:32
*** spatel has quit IRC02:40
*** spatel has joined #openstack-ansible-sig03:09
*** spatel has quit IRC04:53
*** evrardjp has quit IRC05:33
*** evrardjp has joined #openstack-ansible-sig05:33
*** cyberpear has quit IRC07:05
*** frenzy_friday has joined #openstack-ansible-sig08:40
*** tremble has quit IRC09:11
*** tremble has joined #openstack-ansible-sig09:13
JqckBsshnaidm|afk: hi, is it possible for you to review this ? https://review.opendev.org/c/openstack/ansible-collections-openstack/+/76771909:34
*** gtema has joined #openstack-ansible-sig09:44
*** tremble has quit IRC10:02
*** tremble has joined #openstack-ansible-sig10:06
frenzy_fridayHey, does anyone know why this is failing https://zuul.opendev.org/t/openstack/build/a9df2b7076da45649ff2c4f639af8b04 ? What am I missing here?10:33
*** gtema has quit IRC10:47
*** sshnaidm|afk is now known as sshnaidm11:17
sshnaidmfrenzy_friday, it's a glance failure in devstack install, not related to the patch11:20
sshnaidmfrenzy_friday, you can run "recheck" and see if it happens again11:20
sshnaidmfrenzy_friday, just post "recheck" comment and jobs will run again11:21
sshnaidmit happens sometimes :)11:21
sshnaidmJqckB, yeah, I looked at it now11:22
sshnaidmJqckB, and it's tricky11:22
sshnaidmJqckB, running ansible task you expect to get desired state11:22
sshnaidmJqckB, so if you configured in task flavor A it's what you should get in the end. If you don't want it to be recreated/updated - just don't configure it. We can't configure the flavor and then to get flavor B instead.11:24
sshnaidmThen when you configure flavor A, don't set "update..." option, running task, it finishes ok, and you're totally sure you've got your flavor A in place. And with this patch it won't happen.11:25
sshnaidmJqckB, maybe you need dry-run instead?11:27
frenzy_fridaysshnaidm, like replying to the commit?11:36
sshnaidmfrenzy_friday, yes11:36
*** tremble has quit IRC12:29
*** tremble has joined #openstack-ansible-sig12:34
*** tremble has quit IRC13:00
*** tremble has joined #openstack-ansible-sig13:05
*** iurygregory has joined #openstack-ansible-sig13:16
*** tremble has quit IRC13:31
*** tremble has joined #openstack-ansible-sig13:33
*** tremble has quit IRC13:59
*** tremble has joined #openstack-ansible-sig14:04
*** tremble has quit IRC14:55
*** tremble has joined #openstack-ansible-sig14:55
*** openstackgerrit has joined #openstack-ansible-sig15:05
openstackgerritEmilien Macchi proposed openstack/ansible-collections-openstack master: ports: add tags support  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/76721915:05
JqckBsshnaidm : thanks for the review, my take on this is that ok you should get the desired state, but only if it is possible. The API doesn't allow update, and I would be OK for this comportement if the API allowed update, but that is not the case, and delete/create is not something we should do in production.15:17
JqckBsshnaidm: for you, it is normal that the Ansible module do an "update", by deleting a ressource without telling the user that it will be an delete/create ?15:18
JqckBI can propose that the parameter I proposed should not be default, and keep the current behavior but with a possibility to fail if wanted by the user (that everyone with a production should have actually, this action shouldn't be made).15:20
sshnaidmJqckB, well, ansible doesn't care much *how* the state should be achieved, but it should be. You can't finish with "ok" when configured state if different from the real one. If flavor can't be updated - this should be solved in SDK, not here. If you suspect it may be deleted - you can run with --dry-run and to check this.15:24
sshnaidmJqckB, I'd suggest to try to solve it in SDK anyway and enable flavor to be updated if it's possible15:25
JqckBthe API (the Nova API) doesn't handle it: https://docs.openstack.org/api-ref/compute/#list-flavors15:27
JqckBthat is why I'm quite suprised that a module should not allow this15:27
sshnaidmJqckB, ansible module is not the place to solve it, but...15:29
sshnaidmJqckB, I can think about a different "solution"15:29
sshnaidmIt's not so good though and I'm not sure need to go with it15:29
sshnaidmBut you can fail the module if update_flavor is false and need actually to remove the flavor15:30
sshnaidmif flavor update requires removing flavor and update_flavor=false - fail, tell something "Task requires flavor deletion, and recreate_flavor is false"15:30
sshnaidmmaybe worth to fail only if there are resources with this flavor15:31
sshnaidmit's kind of hackish and maybe requires a discussion15:31
JqckBYou propose to reverse my proposal, keep the current behavior and propose the "recreate_flavor" param that if false, will fail ?15:34
JqckBAm I understood right ?15:34
sshnaidmmaybe other option is to have "recreate_flavor" as true, when you can set it as "false" in your task, but then task will fail in case it need to recreate flavor15:40
JqckBIf I'm taking the os_server module for example, and I'm looking the code right : If the server already exist, state is present, and image is changed on the image module parameter, you don't recreate the instance :)15:41
JqckBsshnaidm: yes, perfect I understand your proposition. I will propose a change and submit it.15:41
sshnaidmJqckB, good point about server, need to change it..15:44
sshnaidmI'm going to prepare a release of openstack modules before a new year, please be aware16:18
*** cyberpear has joined #openstack-ansible-sig17:47
openstackgerritPolina Gubina proposed openstack/ansible-collections-openstack master: Enable update for recordset and add tests for dns and recordset module  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/76652819:26
openstackgerritPolina Gubina proposed openstack/ansible-collections-openstack master: Enable update for recordset and add tests for dns and recordset module  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/76652821:05
*** redrobot has quit IRC23:43

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