Monday, 2021-07-12

opendevreviewTushar Trambak Gite proposed openstack/openstack-ansible-os_cinder master: setup.cfg: Replace dashes with underscores  https://review.opendev.org/c/openstack/openstack-ansible-os_cinder/+/80041806:14
*** rpittau|afk is now known as rpittau07:35
MrClayPoleHi, we have repo_build.yml playbook failures upgrading from OSA Rocky 18.1.3 to 18.1.20. We are seeing the error http://paste.openstack.org/show/807374/ and the error http://paste.openstack.org/show/807375/ is the wheel build logs for gnocchi. This was with a single repo container. We've then added a repo container to the two other infrastructure nodes to give us three repo nodes. The two new nodes run a repo_install.09:07
MrClayPoleyml without error. Are we OK to remove and delete the first repo container and rebuild it? Are we ok running multiple repo containers?09:07
noonedeadpunkMrClayPole: eventually it's designed to run several repo containers, but, real repo build is performed only on single one10:02
noonedeadpunkand then build result is synced with lsyncd to other containers10:03
noonedeadpunkso I guess, that it won't resolve an issue.10:03
noonedeadpunkInstead, you may try to just drop gnocchi from built requirements if you don't need it10:03
MrClayPolenoonedeadpunk: Ah I was hoping the new repos were good. We are using gnocchi for billing so can't exclude it. 10:07
noonedeadpunkaha, gotcha.10:07
noonedeadpunkI think then you need to see why it fails the build.10:07
noonedeadpunkiirc there were 2 potential issues 10:08
noonedeadpunkone of them were ujson version that needed to be 2.0+, while in contraints it was 1.* smth10:09
noonedeadpunksecond can't actually recall, maybe related to some ceph libraries or smth like that...10:16
CeeMacnoonedeadpunk: hi, do you recall any issues with the 'invalid syntax' error relating to "print(*k)"10:28
CeeMacit seems to trigger as part of a decompressed setuptools run10:28
noonedeadpunkUm, I think yes, but it was smth really trivial10:29
CeeMacany pointers? that seems to be what we're tripping over at the moment10:30
CeeMacwe first ran into an issue in 18.1.3 and the issues isn't resolved by bumping to 18.1.2010:30
CeeMacthe whole repo-build process is still very much in the "dark arts" category for me10:31
noonedeadpunkoh, I think it's just trying to install newer setuptools or some package, that is not going to work against py210:31
noonedeadpunkI'm glad we actually dropped it in STein10:31
CeeMacso do we need to pin setuptools to a lower version or something? or there is something in the gnocchi role that is trying to pull down an incompatible element fir py2?10:32
noonedeadpunkI think it's not setuptools on their own, since they're bumped by osa in https://opendev.org/openstack/openstack-ansible/src/branch/stable/rocky/global-requirement-pins.txt#L2210:33
CeeMaci'm trying to see if anything is pinpointed in the traceback http://paste.openstack.org/show/807375/ but its not tracking in my brain very well, probably due to lack of context10:33
noonedeadpunkbut it's some package that is not present in upper-constraints, but pulled in by gnocchi or some dependencies of it10:34
CeeMacis there a good/easy way of tracking which dependencies its trying to compile?10:35
CeeMaceverything seems to be running in a /tmp/ area which is cleaned up so I can't interogate the file content10:35
noonedeadpunkhttps://github.com/gnocchixyz/gnocchi/blob/8cbc9ee4c3ff35786fd2d091756e9469abd49e1d/setup.cfg#L27-L10910:35
CeeMacbut the last line that is triggering the error is "File "/tmp/easy_install-Gd0ZKP/setuptools_scm-6.0.1/src/setuptools_scm/utils.py""10:35
noonedeadpunkso there's really lot's of stuff that are in requirements10:36
CeeMacyowzer10:36
CeeMacand any one of those could have triggered the error?10:37
noonedeadpunkor even their dependencies10:37
noonedeadpunkBUT you can limit a bit scope, because extras_require is installed only from [keystone,mysql] and maybe ceph or ceph_alternative10:38
CeeMacand we dont itemise each one in the build process i guess?  so no easy way of seeing which one is tripping us up?10:38
noonedeadpunkwell, looking at trace I'm not really sure if it's not setuptools on their own ideed... 10:39
noonedeadpunkI would try to figure out what command ansible tries to run 10:39
noonedeadpunkI can hardly recall how to debug repo_build, it was 2 years since we really dropped it :(10:40
noonedeadpunkjust in case - you do minor upgrade to do major one afterwards?10:40
CeeMacyeah, its a bit frustrating trying to learn something that we're then upgrading away from10:41
noonedeadpunkif so - I think you can jsut do major upgrade at once, and you won't need to mess up with repo_build anymore at all10:41
cybersebHello! I have a question regarding openstack deployment with ansible. Is it possible to deploy the haproxy on the control host or do I need extra hardware for that?10:41
CeeMacyeah, we wanted to get to the top of rocky to validate out the rolling upgrade process, then bump up to stein10:41
CeeMacthen we need to do a couple of bumps to train and ussuri probably10:41
noonedeadpunkcyberseb: by default we usually deploy haproxy on control hosts10:41
noonedeadpunkCeeMac: eventually I also did R->T direct upgrades back than (considering you're on ubuntu 18.04 or centos 7)10:42
noonedeadpunkbut it's smth worth testing in sandbox as well10:42
CeeMacnoonedeadpunk: yeah, we might need to consider that if this is going to take a lot of effort. We'll have a poke around10:42
CeeMacnoonedeadpunk: oh you got R > T working? We're on Ubuntu 18.0410:43
noonedeadpunkas eventually we did placement separation during S->T, but it's covered with T upgrade scripts10:43
CeeMacif i could avoid doing the placement hokey-kokey that would be great10:43
noonedeadpunkso yeah, R>T did work for me10:43
noonedeadpunkAs well as T>V10:43
CeeMacsame upgrade process as noted in R > S regaring mariadb and rabbit individual upgrade to get around those early issues?10:44
CeeMacdo you happen to have any notes, or could we just follow the documented ones for stein/train10:44
noonedeadpunkI think you can jsut follow S>T notes. But eventually if you go through what run_upgrade.sh does on T, you will find all actions we did10:45
noonedeadpunkmostly it was covered with commit https://opendev.org/openstack/openstack-ansible/commit/cd32d15cc0cdae0a1e35b6ad81922163bd2ec07c10:45
noonedeadpunkso I'd probably would set `placement-infra_hosts` jsut in case in openstack_user_config10:46
CeeMacthanks noonedeadpunk 10:47
cybersebI already tried to deploy it on the control host with ssl, but haproxy tries to bind to the same IP:Port combinations as the original services. As a result haproxy service fails to start. To avoid this problem I tried to provide different IP addresses for internal and external lb_vip. Can I use the same interface (br-mgmt) for both IPs?10:49
noonedeadpunkI think there was some nit, that we were disabling old placement endpoint too early in run_upgrade.sh, and it could be done more efficiently when ran manually (in case you care that placement was available as much as possible during switch)10:50
noonedeadpunkcyberseb: and you're trying to deploy on bare metal (without LXC containers)?10:51
noonedeadpunkand what release is that?10:51
CeeMaci'm not so fussed about placement tb, we'd be operating a risk window and operations freeze during upgrade and minimising what events are taking place10:51
noonedeadpunkCeeMac: then following run_upgrade.sh logic should just work10:52
noonedeadpunkand you don't _really_ need that minor upgrade on R10:52
cybersebReleas: Victoria 22.1.4. Yes, I tried to deploy every service on bare metal. That is a requirement for our setup.10:53
noonedeadpunkok. on V you totally can deploy bare metal and haproxy on the same host.10:53
cybersebbut internal and external lb_vip should be different, right?10:54
noonedeadpunkbut you need to have differnt ip addres for VIP (internal/external) and openstack_service_bind_address10:54
noonedeadpunkthey can be on the same interface, but must be different10:54
CeeMacthanks noonedeadpunk will take a look at run_upgrade.sh logic 10:54
cybersebok, thanks noonedeadpunk!10:55
noonedeadpunkwe don't currently have logic to support only internal (or only public) VIP10:55
noonedeadpunkas it was never a problem to just have .100 and .101 for example10:55
noonedeadpunkand we also bind all services to just node mgmt address (as defined in openstack_user_config) https://opendev.org/openstack/openstack-ansible/src/branch/master/inventory/group_vars/all/all.yml#L34-L3510:57
CeeMacthanks noonedeadpunk will take a look at run_upgrade.sh logic 10:58
noonedeadpunksure, np)10:58
cybersebHm, ok. I had the problem, that haproxy was configured to bind the repo_all-front-1 to the same IP:PORT as the already running service.11:00
cybersebAs a result haproxy service didn't start.11:01
cybersebFor all the other services the external_lb_vip was set.11:02
noonedeadpunkoh....11:05
noonedeadpunkI actually wonder if that might be a bug, since in CI we probablt don't have real repo_server (as we run aio there)11:05
cybersebI will try to reproduce it and write a bug report if I encounter the same behaviour again. k?11:08
noonedeadpunkyes, sure!11:50
noonedeadpunkFrom what I see repo_server should bind to the same IP as all other services https://opendev.org/openstack/openstack-ansible-repo_server/src/branch/master/defaults/main.yml#L5111:52
jrosseri think for this case internal vip must != externa vip and also != br-mgmt address12:06
jrosserand be one of used_ips12:07
noonedeadpunksince there;re no containers, I'm not sure if used_ips are still required...12:25
noonedeadpunkin terms of dynamic_inventory...12:25
opendevreviewMerged openstack/openstack-ansible-os_keystone stable/victoria: Fix typo in keystone-httpd template  https://review.opendev.org/c/openstack/openstack-ansible-os_keystone/+/79958714:55
opendevreviewMerged openstack/openstack-ansible-os_keystone stable/ussuri: Fix typo in keystone-httpd template  https://review.opendev.org/c/openstack/openstack-ansible-os_keystone/+/79958814:55
opendevreviewGeorgina Shippey proposed openstack/openstack-ansible-os_keystone master: Updates to federation documentation  https://review.opendev.org/c/openstack/openstack-ansible-os_keystone/+/80050415:33
*** jgwentworth is now known as melwitt16:07
*** rpittau is now known as rpittau|afk16:21

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