Tuesday, 2022-10-11

*** dviroel|biab is now known as dviroel|out00:20
opendevreviewRafael Castillo proposed openstack/ansible-collections-openstack master: Updates volume for 2.0.0  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/85374901:50
*** ysandeep|out is now known as ysandeep02:48
*** ysandeep is now known as ysandeep|afk03:32
*** ysandeep|afk is now known as ysandeep06:01
*** frenzyfriday is now known as frenzyfriday|sick07:50
*** ysandeep is now known as ysandeep|lunch08:19
*** ysandeep|lunch is now known as ysandeep09:46
rpittaurcastillo: hi! do you maybe have an ETA for the release of ansible-collections-openstack 2.x.x and inclusion in Ansible 6 ?10:01
jm1rpittau: hello :) we still have to port several modules but we are targeting end of the year for aoc 2.0.010:10
rpittaujm1 hey thanks for the quick reply :)10:11
rpittauI'm asking because with the zuul migration to Ansible 6 we unfortunately experience a breakage in our CI with the openstack.cloud module due to incompatibility with latest openstacksdk10:11
rpittauwe're forced to pin Ansible version to 5 but not sure for how long we can do that10:12
jm1rpittau: can you install aoc from git (master branch)?10:13
jm1rpittau: which modules are causing issues?10:13
rpittaujm1: the issue is with openstack.cloud, we receive the error message "To utilize this module, the installed version of the openstacksdk library MUST be <=0.98.999."10:15
*** dviroel|out is now known as dviroel11:06
jm1rpittau: yeah, we implemented this check to warn users about incompatibilities. the best solution depends on your use case. do you use any specific modules from aoc or just its module_utils argument spec functions?11:10
*** ysandeep is now known as ysandeep|afk11:42
rpittaujm1: we import and use openstack_cloud_from_module in our project openstack/metalsmith12:09
*** ysandeep|afk is now known as ysandeep12:16
jm1rpittau: you are only using it here? https://opendev.org/openstack/metalsmith/src/branch/master/metalsmith_ansible/ansible_plugins/modules/metalsmith_instances.py12:19
rpittaujm1: correct12:21
jm1rpittau: let me post a workaround..12:24
rpittaujm1: great, thanks!12:24
jm1rpittau: can you somehow test this? https://review.opendev.org/c/openstack/metalsmith/+/86094312:41
rpittaujm1: let me see, I think we can use the revert of the ansible pin to test that12:43
rpittaujm1: https://review.opendev.org/c/openstack/metalsmith/+/86088612:44
jm1rpittau: can i edit your patch to test that?12:45
rpittaujm1: absolutely12:45
jm1rpittau: ack, lets see if that works12:46
rpittaujm1: mmm I don't think you need to add the depends-on, it was already rebased on top of yours :)12:47
jm1rpittau: omg did not see that12:47
rpittaujm1: no worries! And thanks a lot for your help!12:47
jm1rpittau: a cleaner solution would be to implement that in aoc stable branch, but we still have old modules there using this code. once we have backported those modules (eta ca. 100 years from next year on) we could drop those hacks12:49
jm1rpittau: another thing: please make sure that you really really use no other modules from ansible openstack collection when using this metalsmith module12:51
jm1rcastillo, gtema: ^ we will not be able to remove those openstack_* functions from module utils. there are a looot of modules depending on this functionality. metalsmith is one, tripleo is another. the latter has dozens of modules using the openstack_* functions :/13:10
gtematl;dr - which functions is is about?13:10
jm1gtema, rcastillo: openstack_* functions here https://opendev.org/openstack/ansible-collections-openstack/src/commit/41299b9666b6ab6904d5bed4823508c87df2fd8c/plugins/module_utils/openstack.py#L16113:11
jm1gtema, rcastillo: openstack_cloud_from_module13:12
jm1gtema, rcastillo: openstack_module_kwargs openstack_full_argument_spec openstack_argument_spec13:12
jm1gtema, rcastillo: once we ported all baremetal modules to OpenStackModule we dont use those functions anymore but we cannot drop them because else we will break others13:13
gtemaokay, maybe at least add deprecation decorator?13:13
jm1gtema: any specific decorator in mind?13:15
gtemasmth like https://pypi.org/project/Deprecated/13:16
rpittaujm1: I'll be sure to remember to not using other modules until we have version 2 of aoc at least13:18
jm1gtema: looks good, will add it to my todoinalifetime list13:26
gtemagreat, list is too long to be named list that I guess13:27
rpittaujm1: the workaround works just fine, thanks again!14:34
*** ysandeep is now known as ysandeep|dinner14:37
*** ysandeep|dinner is now known as ysandeep15:06
*** dviroel is now known as dviroel|lunch15:11
*** ysandeep is now known as ysandeep|out16:10
*** dviroel|lunch is now known as dviroel16:24
jm1rpittau: cool :)19:13
*** dviroel is now known as dviroel|biab19:19

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