Friday, 2021-08-13

HNHello everyone, I need help on how to do Customization Script (Cloudinit) on Windows VM01:26
HNI've problem to inject Administrator password on it01:26
HNhere the pastebin : https://pastebin.com/gmrH8qyR01:36
opendevreviewAndrew Bonney proposed openstack/ansible-role-python_venv_build stable/wallaby: Add distro/arch to requirements file path  https://review.opendev.org/c/openstack/ansible-role-python_venv_build/+/80443208:08
admin1morning \o08:11
admin1so i have a platform up .. and then i added gnocchi .. but haproxy is not adding the gnocchi endpoints  .. how to force haproxy to do this ? 08:12
admin1rerunning haproxy playbook did not helped08:12
opendevreviewAndrew Bonney proposed openstack/ansible-role-python_venv_build stable/victoria: Add distro/arch to requirements file path  https://review.opendev.org/c/openstack/ansible-role-python_venv_build/+/80449308:24
admin1https://docs.openstack.org/openstack-ansible/victoria/user/prod/gnocchi_redis.html  --   for this, is it recommended to create custom lxc containers .. or do it directly int he controllers ? 08:24
DK4jrosser: thanks for the hints and advice. i found a mistake in my config files that caused the issue and fixed it08:45
anskiyadmin1: do you have metering-infra_hosts and metrics_hosts (not sure if this one needed for gnocchi) in openstack_user_config.yml?08:48
admin1i have those 08:50
admin1metrics_hosts:  metering-compute_hosts:  metering-alarm_hosts: and metering-infra_hosts:08:51
admin1if i use the inventory manage to list., i do see the 3x gnocchi_api containers, the containers are already created08:51
admin1gnocchi roles run fine without issues . 08:52
admin1just that the endpoint in haproxy seems to be missing,, which blocks the celilometer role to run i think 08:52
admin1endpoint list has added gnocchi on internal http://172.29.236.9:8041  . but that 8041 is no where to be found in haproxy 08:53
jnamdarhi  guys, someone else prolly mentioned it but are the docs down just for me? :D08:59
jnamdaron https://docs.openstack.org/openstack-ansible/latest/08:59
jnamdaronly happening on /latest it seems09:00
admin1https://docs.openstack.org/openstack-ansible/wallaby/  works 09:48
admin1maybe a softlink issue :) 09:48
kleini_Can I utilize OSA somehow to keep Bionic packages up to date? All my hosts and containers show a long list of possible package upgrades. And is it possible to upgrade the ubuntu-bionic-amd64 container, so new service containers get up to date packages?10:21
*** kleini_ is now known as kleini10:22
DK4so ive managed to get past the first two ansible playbooks and iam now using the deploy-openstack runbook at the task "Create Database for service" im failing tough10:30
DK4https://pastebin.com/MzQM3st8  it sas connection refused to host, but iam unsure which hosts wants to connect to which, ive deployed some public keys between the hosts and ssh should actually work. any ideas?10:30
admin1DK4, try with -vvvv10:37
admin1before you run the opnstack playbook, you can try to  a few random containers, expecially  the galera and rabbitq and ping others 10:38
admin1to ensure that every other container can reach rabbit and galera10:38
admin1or 10:39
admin1that your deploy host cannot directly ssh to the management container IP 10:39
admin1its good for it to be in the same layer2 . or at least routed 10:39
admin1i have 2 custom haproxy questions .. 1. how to override variables in haproxy extra conf, so that it binds only to the internal  VIP and does not create an external frontend .. the docs are not clear in this part .. and 2. how to specify that the bind should be on a specific VIP .. like for ceph object storage, instead of region.cloud.com:8080, i10:51
admin1want to bind to s3.region.cloud.com  443 10:51
jrosseradmin1: for (1) look at how internal only services like galera are setup now in the haproxy vars and use the same approach for your internal only service11:54
jrosserfor (2) if those two fqdn resolve to the same external IP in dns then there is nothing to do. if you need an additional external VIP for the s3 look in the haproxy role defaults at the vars available for defining extra VIP11:56
jrosserDK4: you should find the task in /etc/ansible/os_keystone which fails and set  no_log to false, you will then get the underlying error shown11:57
jrosserI would also check that your galera cluster is peperly formed (see our cluster maintainable docs for this) andyou can also check that the mysql cli client in the utility container can interact with the db properly11:58
admin1his erorr is: Failed to connect to the host via ssh 11:59
admin1looks like the deploy does not connect or have access to the internal mgmt range11:59
jrosserit doesn’t ssh to the utilit container11:59
jrosserit ssh to infra1 and then lxc exec <foo>12:00
jrosseranyway, whatever is hidden behind no_log is usually helpful12:02
jrosserI’d guess that ssh to infra1 is kind of ok otherwise it wouldn’t have got as far as keystone setup12:03
admin1hi jrosser, do you know to force a haproxy rebuild or check why its not adding gnocchi endpoints 12:09
admin1i also rm -rf the ansible_facts thinking if something was cached12:10
jrosserdon’t rebuild it, that’s not helpful12:10
jrosseryou need to look at all the fragments of config files that are templates out12:11
admin1"look at all the fragments of config files that are templates out" - went above my head :D12:11
jrosserthen then all get assembled into the final config file12:11
jrosserwell, you need to dig into how the role works12:12
jrosserit makes a small piece of the config file in /etc/haproxy for each service12:12
jrosserthen are then all glued together12:12
jrosserso it either is / is not making the piece for gnocchi12:13
jrosserif it’s not then figure out why12:13
admin1ok .. 12:14
jrossereach service you’ve defined makes it’s own little file12:14
jrosserand as the role runs you’ll see them all generated in turn in the ansible output12:14
admin1but the haproxy runs before the os-* roles are run 12:30
admin1and the endpoints are there saying backend is not connected as they are not up yet 12:30
admin1i added  3 things later ..   gnocchi, ceilometer and aodh .. i do't see those little pieces inside the conf.d 12:35
admin1i will check how they are being created 12:35
jrosserI think there are conditionals based on ansible groups in the data that defines the backends12:37
admin1jrosser, isn't haproxy configuring the files first, https://github.com/openstack/openstack-ansible-haproxy_server/blob/master/tasks/haproxy_service_config.yml#L16  and then doing the master file 13:07
admin1if i rm -rf the /etc/haproxy folder and do a haproxy install -l $host, it re-generates the conf itself13:10
admin1hmm13:10
admin1i am not sure now :D13:10
admin1so each role will generate the file, and in just gets appended 13:13
jrosserno, haproxy role generates the whole haproxy config13:14
jrosserthe service roles are not involved13:14
jrosserthere is a var something like haproxy_services which defines the whole possible set of backends13:16
admin1which is empty in the config 13:16
admin1https://github.com/openstack/openstack-ansible-haproxy_server/blob/master/defaults/main.yml#L4713:16
jrosserit’s in openstack-ansible group_vars/haproxy13:16
jrosserthat’s the role default13:16
jrosserlots of these are set to specific things in the openstack-ansible repo13:17
admin1i see aodh and gnocchi there13:31
admin1let me paste my config and variables 13:31
admin1jrosser https://gist.githubusercontent.com/a1git/b421c9c30c36622a5ecfe0aace490bb4/raw/7735cd82a113979b2f64f200b46db820525bd90a/gistfile1.txt   13:37
admin1if this helps 13:37
jrossernot really, you need to do some more active debugging yourself13:40
jrosserstart here https://github.com/openstack/openstack-ansible/blob/master/inventory/group_vars/haproxy/haproxy.yml#L16013:40
jrosserfollow the code, add debug: tasks to the ansible where necessary13:40
admin1shouldn't gnocchi_all be gnocchi_api in the groups ? 13:46
admin1inventory has gnocchi_all with children   gnocchi_api and gnocchi_metricd13:47
spateljrosser this is not going to sail - https://review.opendev.org/c/openstack/openstack-ansible-os_neutron/+/80399013:47
spatelits keep coming every neutron CI patch 13:48
ierdemHi, is there anyone had tried to use Skyline dashboard before? I have some problems about it: skyline error log  https://paste.openstack.org/show/808059/,  skyline.yaml https://paste.openstack.org/show/808060/. I am trying it on devstack/victoria14:04
spatelierdem i never used that but i would like to try, is this free or paied?14:08
ierdemit is free, https://opendev.org/skyline, also you can find demo videos on youtube 14:09
spateli saw that demo 14:09
spateli will give it a try and let you know if its going to work or not :)14:10
spatelwhat is console vs apiserver?14:11
ierdemspatel, thanks, I will also keep trying 14:12
ierdemI think console is UI, apiserver is backend14:12
spatelhmm14:12
ierdemI am using docker, both inside in container14:12
canori01 hey guys, I have a ussuri deployment with 1600 ports.  I've noticed every time I do an upgrade, it takes about an hour for all the routers that the L3 agent handles to come online. (90 routers over 3 physical agents). Are there any tunables I could tweak to speed that up? Or prevent routers from going down altogether? I notice that when all neutron-server daemons are restarted, it also triggers that behavior14:13
spatelierdem wise idea.. if it work then we should add into OSA :) lxc to have optional UI 14:14
andrewbonneycanori01: which version are you on at the moment? this sounds similar to something we fixed not so long ago14:14
spatelhorizon is horrible :( 14:14
andrewbonneycanori01: I'm assuming you have a HA router setup rather than a single instance of the l3 agent?14:14
canori01andrewbonney: That is correct - HA setup.  I'm on ussuri currentyl14:18
andrewbonneycanori01: I've just had a look an it seems we only backported as far as victoria. I'll just prep a patch you can take a look at14:19
mgariepyierdem, the ui seems 100 time better than horizon.14:20
canori01andrewbonney: I don't mind upgrading to victoria. I would like to take a look at the fix that went in though14:21
andrewbonneycanori01: sure. it's https://github.com/openstack/openstack-ansible-os_neutron/commit/d12a8aa6c5f7af293e6b127795a13becd3d223d0 with a follow up in https://github.com/openstack/openstack-ansible-os_neutron/commit/af9f3b2257b5284a169360d8c92044dd6a53a1c3 to correct an error14:22
canori01andrewbonney: awesome. Is that in the stable/victoria version of the playbook?  Cause if so, I'll go ahead and pull that to try it out14:27
andrewbonneyIt's in the stable/victoria neutron role, although I can't say whether any other changes in the files on that branch may be incompatible with ussuri14:28
ierdemspatel, mgariepy . It looks like an enterprise paid version of horizon and it is so cool14:29
canori01andrewbonney: That's fine. I'll just roll that whole deployment to victoria. It's a test one anyway14:29
canori01andrewbonney: although, do you know what tunables I could tweak in the event that I needed to actually take down a physical node that runs an l3 agents or like if the node crashed and I suddenly needed a lot of routers to come back online? Does osad provide an override for that? I was thinking maybe things like rpc workers or rpc timeouts.14:31
andrewbonneyIn theory if one node crashed the other(s) should take over very quickly (a few seconds) as that's mostly keepalived's job. The issue those patches solve is if you take all of the network nodes down in quick succession, which prevents the usual recovery mode14:36
canori01Fair enough. It sounds like that patch is addresses the behavior that I'm seeing14:39
spateljrosser we are removing this patch but doesn't this cause issue who are doing upgrade from V->W and they have 10.5.6 running (in my case) ? https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/80437115:32
admin1ierdem, got a screenshot of it ? 15:33
jrosserspatel: look at "relation chain" ON THE RIGHT O15:33
jrosserargh15:33
admin1skyline dashboard was first created by cloudvps -- when i was working on it around 2017 ..  looks like another UI got the same name and got uploaded a week back 15:33
jrosseron the right of the screen15:33
admin1i want to check to see if its the same or just the name matches15:33
spateladmin1 - https://www.youtube.com/watch?v=pFAJLwzxv0A&ab_channel=%E5%90%B4%E6%96%87%E7%9B%B815:34
admin1this is the original skyline ( 2014 )  https://www.youtube.com/watch?v=Wo8YqIDBMxg15:35
ierdemadmin1, you are right, i saw cloudvps's dashboard too and it seems the same. You can check on this video https://www.youtube.com/watch?v=pFAJLwzxv0A15:35
admin1this looks new and fresh :D 15:36
spateljrosser hmm so this patch doesn't need if i upgrade from 10.5.6 -> 10.5.12 or something.. right?15:36
ierdemadmin1, oops, i changed my mind, these are not the same but similar15:36
jrosserspatel: W is released with 10.5.9, thats how it is15:37
jrosseron master, as usual, we will upgrade during the dev cycle for the X release15:37
jrosserthe versions pretty much get fixed at release, and should be bumped up early in the next cycle15:38
jrosserthats what those patches are15:38
spatelokay!  currently i am running 22.1.0 so i will first move to 22.2.0 and then do 23.1.0 (assuming in week we will have that) 15:39
jrosserif you want to upgrade galera to some other version to avoid the bug in 10.5.9 thats fine, just override the version vars15:40
spateloh! so i can directly go to 10.5.6 -> 10.5.12 rght? 15:40
jrosseri would think so, +/- testing it15:41
spatellet me setup AIO and give it a try 15:41
jrosserwe were just super unlucky with 10.5.8 and 10.5.9, plus it took longer than the W release for 10.5.10 which we never tried15:42
spatelhmm, so when are we going to cut 23.1.0 (i know couple neutron patch is stuck but lets move quickly, i want to deploy my OVN on bigger lab to run some benchmarking )15:44
jrosseri cant merge my own patches :)15:46
spatelcalico is painful.. i would say set it NV because its going to hurt every single neutron patch in future (until we know what is going on)15:46
jrosserneeds reviews15:46
jrossersomeone needs to fix the calico NV patch now it's on focal15:46
spatelmake me reviewer :) 15:46
spatelI did deploy calico in lab and hit that bug but when second time i run tempest it works so very odd.. (no logs saying something is wrong, its just nova not able to bind port first time run but next run it was) 15:47
spatelso very flaky 15:48
spatelI gotta go.. will see you online in 30 min 15:49
admin1hi jrosser, do you see any variable missing for haproxy here: https://pastebin.com/CUyqd3Lt .. i find it not including the services 17:12
admin1stange find 17:20
admin1if i remove my overrides, it works 17:20
jrosserI’m confused, you put “ERROR” in your paste but there’s no error there17:20
admin1when i removed my  rgw and redis override, it now regenerated all the endpoints17:21
admin1i meant the missing ones - gnocchi, etc 17:21
jrosserwhat did you override?17:22
admin1when i #haproxy_service_configs   -- this whole block, then it finally generated the configs for the added services 17:22
jrosserhaproxy_service_configs?17:23
admin1yeah17:23
admin1which is just 2 additional service i added .. for ceph rgw and redis 17:24
admin1this is prod .. i need to replicate this in test and observe tis again 17:25
jrosserdid you look at how haproxy_service_configs is used?17:26
admin1setup with x servics, add a haproxy_service_config block, ad new services, see if haproxy adds those new services or not .. if it does not add, # the  haproxy_service_config block and see if it discovers it ..17:26
jrosserwhich release?17:27
admin122.2.0 17:27
jrosservictoria?17:27
admin1yea17:27
jrosseryou looked in the haproxy_server defaults/main.yml then overrode haproxy_service_configs17:28
jrossermy question really is did you look how haproxy_service_configs is used in the openstack-ansible repo?17:28
jrosserspecifically this https://github.com/openstack/openstack-ansible/blob/bfc14c5d54cc80952fe1564644849a37ec86bb13/playbooks/haproxy-install.yml#L57-L5817:29
admin1it takes me a while to understand these .. 17:29
jrossersure - but this is kind of important to use OSA effectively17:30
jrosserto know how the wiring up of the roles works17:30
jrosserif you override haproxy_service_configs then you delete all the standard haproxy endpoint config from here https://github.com/openstack/openstack-ansible/blob/stable/victoria/inventory/group_vars/haproxy/haproxy.yml#L54917:31
jrosserand you also delete anything in haproxy_extra_services from being deployed17:31
jrosserso that totally explains why you never got the gnocchi / ceilometer endpoints17:31
jrosserbecasue there were no longer in the data passed to the haproxy role, only redis and rgw17:32
jrosserto do this properly you let OSA define all the standard builtin endpoints with haproxy_default_services, you supply your own extra ones in haproxy_extra_services17:33
jrosserthose two vars get combined in the playbook into one var haproxy_service_configs, which the role then deploys17:33
admin1so instead of using haproxy_service_configs variable ( which overrode the default) i should use the haproxy_extra_services: 17:34
jrosserto supply your own additional endpoints, yes17:34
admin1do you know how i can bind my own address .. that i never could find17:35
jrosseryou have an extra external IP on the haproxy node?17:36
admin1i can add one 17:36
admin1oh .. i was thinking SNI 17:36
admin1and not this extra ip way 17:36
jrosserright, i figured this wasnt a clear question17:36
admin1do i need to add another external ip again on the vip .. haproxy does support SNI .. so i supposed it can bind on the same IP , but on 2 different external domains 17:37
jrosseryes so haproxy can do all these things17:37
jrosserhaproxy_server template for the config file maybe can, maybe can't17:38
jrosseri don't really have an answer for you17:39
admin1no problem 17:39
jrosserbecasue haproxy is very flexible17:39
jrosserthe haproxy template is very flexible17:39
admin1i will try to figure it out .. 17:39
jrosseryou have choices of another IP, or SNI or whatever17:39
jrosserso find the intersection of what you want with what the haproxy template can generate17:39

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