Thursday, 2022-01-27

*** dmsimard6 is now known as dmsimard06:38
opendevreviewShnaidman Sagi (Sergey) proposed openstack/ansible-collections-openstack master: Write tests log to a separate file  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/82645411:19
sshnaidm|afkgtema, hey11:35
*** sshnaidm|afk is now known as sshnaidm11:35
gtemahey ya11:36
sshnaidmgtema, I've extracted all methods from collection, how do I know what is cloud method and should be replaced? https://hackmd.io/zO7en3bARtylB4noldCAnw11:36
gtemathe ones 2 level (conn.XXX) are cloud layer, while 3 level (conn.xxx.yyy) are proxy layer11:37
sshnaidmgtema, ack, greart11:37
gtemabut you will not be able to replace all to use proxy, i.e. creating server will not work11:37
sshnaidmgtema, I think we should replace only retrieving information?11:38
gtemaand in reality recommended, but not mandatory11:38
gtemawhat is required is maybe something like `return res.to_dict() if isinstance(res, openstack.Resource) else res`11:38
gtemahttps://opendev.org/openstack/ansible-collections-openstack/src/branch/master/plugins/modules/volume_backup_info.py#L110 - here is one of the most commonly used ways how to deal with response of sdk11:40
gtemait's just that for compatibility we might do this conditionally11:40
gtemaif the proxy level was used - this conversion is a must. If cloud level was used - older sdk might return Munch objects, newer will return Resource object11:41
sshnaidmI did a first try something like that: https://review.opendev.org/c/openstack/ansible-collections-openstack/+/825291/8/plugins/modules/networks_info.py11:41
gtemalooks ok. I might however add some arg in to_dict so that it produces both sdk and server side attributes (duplicated)11:43
sshnaidmyeah11:44
sshnaidmprobably we can make like "return res.to_dict() is hasattr(res, "to_dict") else res"11:45
gtemaI need to return some things for nodepool back and will add this also11:45
gtemaYeah, us also a way11:45
opendevreviewShnaidman Sagi (Sergey) proposed openstack/ansible-collections-openstack master: Write tests log to a separate file  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/82645413:53
opendevreviewShnaidman Sagi (Sergey) proposed openstack/ansible-collections-openstack master: Add zuul artifact  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/82674617:40
opendevreviewShnaidman Sagi (Sergey) proposed openstack/ansible-collections-openstack master: Add zuul artifact  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/82674618:01
*** sshnaidm is now known as sshnaidm|afk18:13
opendevreviewMerged openstack/ansible-collections-openstack master: Write tests log to a separate file  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/82645419:01

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