Tuesday, 2023-10-24

noonedeadpunkYeah, I can kinda recall doing that, I think we still do have folder for venvs on the repo container. But I can't recall waht exactly didn't went well... I guess some kind of python bindings?06:20
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-os_octavia master: Adjust condition for availability_zone definition  https://review.opendev.org/c/openstack/openstack-ansible-os_octavia/+/89912706:56
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-lxc_container_create master: Use FQCN for lxc_container module  https://review.opendev.org/c/openstack/openstack-ansible-lxc_container_create/+/89912807:01
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-os_nova master: Drop until-complete  flag for db purge  https://review.opendev.org/c/openstack/openstack-ansible-os_nova/+/89912907:08
jrossernoonedeadpunk: are we always connecting to lxc with ansible as the root user?08:15
jrosserwe've talked recently about non-root user for ansible->physical_host, but what about the lxc-attach from physical_host->container08:16
noonedeadpunkjrosser: well, we have `container_user` param that can be used somehow...08:17
jrosseri was looking at the connection plugin, and done some tidying up of the code08:17
noonedeadpunkas of today yeah, I think with most scenarios we do lxc-attach and then su as root08:17
jrosserwe do a whole round-trip of connection plugin to find the pid to put_file/fetch_file in the connection plugin08:18
jrosserlike /proc/66798/root/root/.ansible/tmp/ansible-tmp-1698134553.4849596-354251-48702662267625/sourc08:19
jrosserand we could get rid of that perhaps, if we bind mount the ansible tmp dir08:20
noonedeadpunkwe could do that I guess...08:23
noonedeadpunkBut then we also can define different ansible tmp path to be more... available? rather being under $HOME08:27
noonedeadpunkLike jsut use /tmp/ansible or smth08:27
jrosserwell i was trying to get rid of the PID lookup08:36
jrosserurgh looks like we have some widespread CI fail with ARA10:13
kleiniI just noticed, that roles used in openstack-ansible-ops for Prometheus, node exporter and Grafana have been archived on GitHub. They got replaced with a collection. Can I extend fetched collections in OSA? would it make sense to upgrade to that collection in openstack-ansible-ops?11:03
noonedeadpunkkleini: sure you can do that. for this specific reasons we have user-collection-requirements and user-role-requirements11:31
noonedeadpunkkleini: https://docs.openstack.org/openstack-ansible/latest/reference/configuration/extending-osa.html#adding-new-collections-in-your-openstack-ansible-installation11:32
noonedeadpunkand yes, you can propose patches to ops repo as well. Though I gues we would need to take some care about CI in the ops...11:33
kleiniokay, thanks for your answers. I try to stick to the old roles first and try to get some deployment up and running. currently struggling with Grafana deployment and missing data_sources11:35
kleinihttps://github.com/openstack/openstack-ansible-ops/blob/master/grafana/installGrafana.yml#L97 <- python-pymysql is from times, where OSA used Python 2, right? So nobody used Grafana deployment after OSA switched to Python 3?12:24
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Calculate if target is a container only once  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/89916212:28
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Remove nspawn container support  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/89916312:28
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Cosmetic tidy up of pid lookup function  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/89916412:28
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Remove extra container check  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/89916512:28
jrosserwe've not used those playbooks for grafana, but we use the same role which is now archived12:33
NeilHanlonmornin' folks12:40
noonedeadpunkjrosser: is it somehow not enough to set `self.is_container = self._container_check()` only in __init__?12:41
jrossercould be12:41
jrosserthough things which can affect the outcome are perhaps adjusted in set_options12:42
jrosseri'm not totally sure how that is supposed to be12:42
noonedeadpunkah, we don't have enough context in init12:44
noonedeadpunkyeah12:44
noonedeadpunkbut why then we need it in __init__...12:44
jrosserwe can iterate these a bit if needed12:50
jrosserit is slightly unhelpful as __init__ also seems to retrieve those values12:50
noonedeadpunkbut without options set it kinda makes little sense I guess12:51
jrosserdo you think that the handling of container_name/physical_host in __init__ is bogus anyway?12:54
jrosserit's maybe similar to these https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/connection/ssh.py#L58712:57
noonedeadpunkhm, yeah, might be...13:00
* NeilHanlon facepalms13:09
NeilHanlonI--once again--failed to convert timezones appropriately and showed up an hour early for our meeting13:09
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Retrieve container name and physical host via get_options  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/89916613:14
jrosserwell lets see what that does, it's an incremental change on top of the others to see if the settings in __init__ matter13:15
NeilHanlonjrosser: small bit -- s/Nono/None/g13:17
jrosserargh :)13:18
opendevreviewJonathan Rosser proposed openstack/openstack-ansible-plugins master: Retrieve container name and physical host via get_options  https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/89916613:18
jrosserty!13:18
NeilHanlonnp 13:18
NeilHanlonnow I am wondering if `class Nono(None):` would work.. lol13:19
jrosserNono sounds like a really firm version of None13:19
jrosserabsolutely None13:19
NeilHanlonhaha exactly13:19
NeilHanloni thought of this car insurance commercial from a decade ago https://youtu.be/RtXtOuxBuvQ13:20
noonedeadpunkdmsimard[m]: hey! are you around? we have some weird things happening with ara1.7.0, despite your testing path passed nicely....13:31
jrosserhere https://zuul.opendev.org/t/openstack/build/80df1a51cee849e3961251ba50bd537a/log/job-output.txt#4064-407213:32
jrosserwhat is odd is this started to break just now13:32
jrosserbut it seems that yaml lib has been at 0.17.x for some time now13:32
noonedeadpunkyeah... maybe some dependencies got updated....13:33
dmsimard[m]noonedeadpunk: what's up ?13:51
noonedeadpunksmth like that https://paste.openstack.org/show/b441YNDGVTDSizdpec90/13:52
dmsimard[m]Interesting, haven't seen that until now13:53
noonedeadpunkyep.. we neither13:57
noonedeadpunkstart breaking just tomorrow13:57
noonedeadpunk*today lol13:57
noonedeadpunkmaybe yesterday evening13:57
dmsimard[m]new version of ruamel.yaml I guess?13:59
dmsimard[m]yeah: https://pypi.org/project/ruamel.yaml/#history13:59
dmsimard[m]could I ask you nicely to create an issue about it ? In the meantime it seems like pinning ruamel.yaml to <0.18 could be a workaround14:00
NeilHanlonhttps://sourceforge.net/p/ruamel-yaml/code/ci/3469de4cae2c770be4ef2f1e9124bbbbb79dc7cd/14:00
NeilHanlonis ruamel in u-c ?14:00
noonedeadpunkdmsimard[m]: sure, thanks for the quick look!14:01
dmsimard[m]FWIW ara doesn't /require/ ruamel, but tries to be compatible with both ruamel and python stdlib yaml: https://github.com/ansible-community/ara/blob/dde76744596b031f8a52297a71fee59ba9aeb605/ara/server/settings.py#L12-L1714:01
dmsimard[m]it's a transitive dependency from dynaconf which handles the django settings14:01
noonedeadpunkI think we do install ruamel for other things as well....14:01
noonedeadpunkAnd yes it's in U-C, just for ara it seems we don't use u-c?14:02
noonedeadpunkanyway14:02
noonedeadpunkIt's PTG time just in case :)14:02
NeilHanlon:) 14:02
noonedeadpunkSo whoever interested in participating are warmly welcome to https://www.openstack.org/ptg/rooms/grizzly14:03
dmsimard[m]I can't make it but you guys have fun o/14:04
dmsimard[m]fwiw I will be doing openstack and ansible things once again in the near future ;)14:04
NeilHanlonnice! 14:04
mgariepyi'll listen in but i have something a bit later.14:08
jrossernoonedeadpunk: you see on the ML RDO bobcat is released, we should check again if we carry on supporting this14:58
noonedeadpunkLet's continue probably15:00
jrossernoonedeadpunk: my laptop rebooted itself :(15:38
noonedeadpunkmnaser: hey! are you around ? as we have CAPI driver discussion next in the list16:06
mnasernoonedeadpunk: sorry I’m going to be around in an hour :/ just saw this16:59
noonedeadpunkwe've just finished though17:01
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-os_designate master: Add quorum queues support for service  https://review.opendev.org/c/openstack/openstack-ansible-os_designate/+/89881817:10
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-os_magnum master: Add quorum queues support for service  https://review.opendev.org/c/openstack/openstack-ansible-os_magnum/+/89891117:11
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-os_magnum master: Add quorum queues support for service  https://review.opendev.org/c/openstack/openstack-ansible-os_magnum/+/89891117:11
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Explicitly add constraints for ara setup  https://review.opendev.org/c/openstack/openstack-ansible/+/89919617:20
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Explicitly add constraints for ara setup  https://review.opendev.org/c/openstack/openstack-ansible/+/89919617:39
dmsimard[m]ruamel is on sourceforge, huh20:11
noonedeadpunkugh20:25
dmsimard[m]I'm pondering on the right fix, considering ara will need to continue working with both the new and the old ruamel because distros might carry whatever version20:29
dmsimard[m]packaging is just great20:29
dmsimard[m]the new ruamel is already coming to fedora: https://koji.fedoraproject.org/koji/buildinfo?buildID=231113420:32
noonedeadpunkwow, that was fast indeed.... I wonder what are changes though between 0.18 and 0.18.221:27
noonedeadpunkdmsimard[m]: well. 0.18.2 should be fixing the issue as well21:29
dmsimard[m]oh?21:30
noonedeadpunk`calling the deprecated functions now raises an `AttributeError` with the, somewhat more informative, orginal warning message. Instead of calling `sys.exit(1)``21:31
noonedeadpunkand what triggered me in log that it was WARNING but rc 121:31
noonedeadpunkwhich kind of explains why....21:31
dmsimard[m]oh, so it crashed instead of just printing the deprecation21:31
dmsimard[m]or rather exit 121:31
noonedeadpunkyup21:32
dmsimard[m]nice21:32
noonedeadpunkfedora was too fast to build lol21:32
noonedeadpunkthey should have waited for another hour21:32
NeilHanlonlol21:37
NeilHanlondmsimard[m]: share your 'huh' about the sourceforge thing lol21:38
dmsimard[m]¯\_(ツ)_/¯21:58

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