Wednesday, 2023-03-01

opendevreviewMerged openstack/openstack-ansible-haproxy_server master: Accept both HTTP and HTTPS also for external VIP during upgrade  https://review.opendev.org/c/openstack/openstack-ansible-haproxy_server/+/86478500:27
*** promethe- is now known as prometheanfire02:47
jrossernoonedeadpunk: experiment with `add_host` https://paste.opendev.org/show/bN4fiVTIe6WJI8BTmEKV/08:50
damiandabrowskimorning09:04
jrossermorning09:28
damiandabrowskiI have a question about TLS support for infrastructure services10:32
damiandabrowski1. Does it make any sense to add TLS support to repo_server?10:33
damiandabrowski2. Is it worth to add TLS support to memcached when `memcache_security_strategy = ENCRYPT` is being used?10:33
noonedeadpunko/10:53
Mohaamorning10:56
noonedeadpunkThis failed so weirdly https://review.opendev.org/c/openstack/openstack-ansible-rabbitmq_server/+/875782 GPG check failed on metal but not on LXC...10:57
MohaaInfra01 has been read-only! because the disk is full! Does journal-systemd rotate?11:02
noonedeadpunkMohaa: it does but it's configurable - it can rotate based on timestaps or based on consumed diskspace11:08
noonedeadpunkhttps://www.freedesktop.org/software/systemd/man/journald.conf.html#SystemMaxUse=11:10
Mohaaumm, the disk was not the reason. I rebooted the server. After reboot it's working and only 9% of disk is populated. AppArmor has been blocking something! I'm t-shooting to find the reason11:12
noonedeadpunko_O all haproxy patches passing after my intervention - weird...11:19
noonedeadpunkI was expecting at least smth to faild :D11:19
noonedeadpunkdamiandabrowski: given that oslo.cache does support tls connection to memcached - I'd say we should encrypt it11:21
noonedeadpunkregarding repo server - well, there's nothing to protect to be frank, but given it's not too complex I think we can add tls support there as well. As main thing would be to fetch wheels from it.11:22
noonedeadpunkjust for completeness of the feature11:22
jrosserso long as pip understands the system CA rather than just certifi11:23
jrosserbut i think we already took care of that11:23
jrosserimho repo server is more about making sure the clients are all fine with it being TLS rather than difficulty with the repo server itself11:24
noonedeadpunkYes, exactly11:32
noonedeadpunkWe jsut use it in multiple places so harmonizing that might be a pita11:33
jrosserthough actually - the internal VIP is TLS today? so maybe i talk nonsense here :)11:34
jrosserthe clients use the vip.... so perhaps thats just not an issue11:34
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-haproxy_server master: Simplify haproxy_service_configs structure  https://review.opendev.org/c/openstack/openstack-ansible-haproxy_server/+/87118811:35
noonedeadpunkHm... I'm not sure that for repo we don't have some kind of exception...11:36
noonedeadpunkhttps://opendev.org/openstack/openstack-ansible/src/branch/master/inventory/group_vars/haproxy/haproxy.yml#L476-L48611:36
noonedeadpunkSo we don't have it behind tls as of today11:37
noonedeadpunkWhich means it's also little sense to use tls for backends....11:37
noonedeadpunkdamiandabrowski: I'd finish main stuff that then took a look on repo to be frank. But at the end of the day we likely should harmonize this11:38
noonedeadpunkjrosser: but yes, all clients should be just fine with talking through TLS and be aware of our rootCA11:38
damiandabrowskinoonedeadpunk: you're right, but last week when I was waiting for reviews in haproxy-separated-config changes i started adding TLS support to our services: https://review.opendev.org/q/topic:tls-backend+status:open11:42
damiandabrowskiso i just wanted to clarify these things before i switch context again11:43
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-haproxy_server master: Prepare haproxy role for separated haproxy config  https://review.opendev.org/c/openstack/openstack-ansible-haproxy_server/+/87577911:44
MohaaI'm going to enable cinder-backup.12:38
MohaaOSA does not support for third-part S3 solution.12:39
MohaaIt takes care for Ceph and swift, right?12:40
MohaaI added this part to the end of `os-cinder-install.yml` and it worked in my lab, but not in the stage mode. I noticed it's because the package `net-tools` is not installed in the stage nodes (python has an error saying demand for the package). But why it needs deprecated net-tools?12:46
jrosserMohaa: what do you mean about 3rd party S3 not supported?12:46
Mohaathe part added to the end of file: https://paste.opendev.org/show/bCVitOObcN7wi0GbL0LZ/12:46
jrosserMohaa: woah! https://docs.openstack.org/openstack-ansible/latest/reference/configuration/using-overrides.html#overriding-openstack-configuration-defaults12:48
Mohaajrosser: we have DEL ECS storages that have S3 API, serving object storage service.12:48
jrosseryou can already override every possible variable in all the service config files12:48
jrosserthere should never be a need to modify the playbooks like that12:48
jrosserwe use a special ansible module called `config_template` that allows you to inject extra config into any section of the service config files, even if there are not variables defined for those in the ansible roles12:49
MohaaWooooops! I forget everything after two weeks!12:50
jrosserso for cinder conf that would be this https://github.com/openstack/openstack-ansible-os_cinder/blob/master/defaults/main.yml#L39712:50
jrosserand then if you need an extra package installing we should look at that too?12:52
Mohaaw812:56
Mohaajrosser: https://paste.opendev.org/show/blKnyNWomHFenSmQFWAX/ ctrl+f for net_tools13:17
jrosserthats not really enough context around that failed task really13:19
jrosserthough really i don't think that is at all to do with a missing package13:21
jrossersee how the same task runs OK against infra01 and infra03, and also what you see is `net_tools` in an ansible module path, not `net-tools` the apt package13:23
jrosserMohaa: can you check that haproxy is running properly on infra02, and that `/var/run/haproxy.stat` is present on infra02?13:24
noonedeadpunkjrosser: add_host is indeed promising. I will test it out now wrt haproxy13:40
jrossernoonedeadpunk: yes the only downside is needing to use meta: to reset the inventory afterwards - that was a little slow13:41
noonedeadpunkwell, it just re-execute dynamic_inventory13:42
Mohaainfra02:~# ls: cannot access '/var/run/haproxy.stat': No such file or directory14:05
jrosserMohaa: that probably means that haproxy is not running properly on that node14:08
jrosserand i think is the cause of `No such file or directory` in your paste14:08
MohaaBefore running cinder installer, I run haproxy-install again and it was successful!14:11
Mohaacinder installer output: http://sprunge.us/jMvCEX14:11
jrosseri'm not completely following that - there is still an error14:12
jrosserit is probably better to look at the service status and logs for haproxy rather than just running the playbook14:12
Mohaa+114:12
MohaaIt needed to restart haproxy on node 2!14:29
*** lowercase is now known as Guest629814:48
*** lowercase_ is now known as lowercase14:48
MohaaI'm a bit confused about `cinder_cinder_conf_overrides: {}`14:59
Mohaajrosser: cinder_cinder_conf_overrides: { < https://paste.opendev.org/show/bCVitOObcN7wi0GbL0LZ >}15:00
Mohaathis way ^?15:00
jrosserMohaa: did you read the example here for nova? https://docs.openstack.org/openstack-ansible/latest/reference/configuration/using-overrides.html#overriding-openstack-configuration-defaults15:01
jrosserMohaa: `cinder_cinder_conf_overrides` is a yaml dictionary where you describe the config file sections and keys/values you want to write15:11
MohaaYes, I'm reading the link again. I'm finding related options in the deployed cinder containers to insert them under  `cinder_cinder_conf_overrides`15:13
mgariepyanyone knows it the RHEL variant fails from yesterday are fixed ?15:15
mgariepyhmm some merged at 8pm. so i guess the issues we had at 11am are fixed. 15:17
damiandabrowskiregarding https://bugs.launchpad.net/openstack-ansible/+bug/2007849 seems like the only thing that may prevent us from removing custom linear strategy plugin are magic variables:16:30
damiandabrowskihttps://github.com/openstack/openstack-ansible-plugins/blob/master/plugins/strategy/linear.py#L38-L5516:30
damiandabrowskii used this playbook and keystone container has these variables available even without custom linear plugin: https://paste.openstack.org/raw/b7agdo7CIipLoFboQdYV/16:31
damiandabrowskibut do you think it's the right way to test it?16:32
jrosserdamiandabrowski: did you see this in the comment? https://github.com/openstack/openstack-ansible-plugins/blob/master/plugins/strategy/linear.py#L42-L4516:42
damiandabrowskiyes, i'm just not sure if I understand it correctly, because cloudnull wrote on Friday: "I think the only thing that would actually need to be kept is the magic variable mapping"16:44
damiandabrowskiso based on the comment you linked, i think we can drop it but i just wanted to double check that if you16:44
jrosseri'm wondering if it refers to things like this https://github.com/openstack/openstack-ansible-plugins/blob/master/plugins/connection/ssh.py#L29-L3316:46
jrosserperhaps comment one of those out and then it would be possible to confirm that it is what controls that var being present16:47
damiandabrowskigood idea, give me a sec16:47
damiandabrowskiKeyError: 'Requested entry (plugin_type: connection plugin: ansible_collections.openstack.osa.plugins.connection.ssh setting: physical_host ) was not defined in configuration.'16:49
damiandabrowskiyeah, it works exactly as you say16:49
jrosserexcellent - so that means we can remove the whole linear strategy?16:50
damiandabrowskiyup, i think so. There are 2 changes for that:16:51
damiandabrowskihttps://review.opendev.org/c/openstack/openstack-ansible/+/87448216:51
damiandabrowskihttps://review.opendev.org/c/openstack/openstack-ansible-plugins/+/87442516:51
jrosseri wonder if this gets us any closer to mitogen working16:53
jrosserit was always some wierd thing with delegation that broke it before16:54
damiandabrowskiouh, never heard of it but looks promising16:59
noonedeadpunkwe had attempted mitogen like... 3 years ago first time?17:03
jrosseri keep prodding at it :)17:05
jrosserjust like arm17:05
noonedeadpunkhehe17:06
jrossernoonedeadpunk: do you rememeber why we don't yet update the openstack collection to 2.0.0?17:31
cloudnullI think the linear strategy still needs to provide https://github.com/openstack/openstack-ansible-plugins/blob/master/plugins/strategy/linear.py#L38-L55 - otherwise IDK if the ssh plugin will know what to do with the container tech options. But to be frank IDK if that's true anymore. 17:33
noonedeadpunkI do - it needs openstacksdk newer then in u-c17:33
opendevreviewDamian Dąbrowski proposed openstack/openstack-ansible-rabbitmq_server master: Do not use 'always' tag in inappropriate places  https://review.opendev.org/c/openstack/openstack-ansible-rabbitmq_server/+/87597117:34
noonedeadpunkAnd to bump openstacksdk there were some other blockers17:34
jrossercloudnull: what do you think about the comment there - saying the docstring can provide the vars?17:34
jrosserwe have `openstacksdk===1.0.1` in u-c now17:35
cloudnullI really have no idea :D I just remember that not working , however , my memory is OLD. 17:36
cloudnullits been a long time since 2.5 - so it may all be good now. 17:36
cloudnullin which case +1 delete the linear strat bits if at all possible. 17:36
cloudnullI would be curious if mitogen could work without the strat, in which case the ssh plugin could be eliminated too, in-favor of mitogens native container connection capabilities. 17:38
opendevreviewJonathan Rosser proposed openstack/openstack-ansible master: Use 2.0.0 release for ansible-collections-openstack  https://review.opendev.org/c/openstack/openstack-ansible/+/87309217:38
jrosserhrm so OVN doesnt log to the journal?17:51
jrosseri see things in /var/log/ovn/<random-files>17:51
jamesdenton_it does not17:54
*** jamesdenton_ is now known as jamesdenton17:54
jamesdentoni have been unable to find a way to get the services to log to journal so far17:54
noonedeadpunkAlso gluster does not18:00
noonedeadpunkjamesdenton: but can you provide syslog path or smth like that?18:01
noonedeadpunkAs you can point logs to /dev/log which is kind of does the trick18:01
jrosseri do wonder what this is talking about too https://docs.openstack.org/neutron/latest/configuration/ovn.html18:04
noonedeadpunkI think neutron ovn agent?18:05
noonedeadpunkNot sure htough18:05
noonedeadpunkI think what we're looking for is smth like --syslog-method https://www.ovn.org/support/dist-docs/ovn-controller.8.html18:06
jamesdentonso that ovn.ini... i have not found anything that actually uses it18:08
jamesdentonmany of the config options in there are shoehorned into ml2_conf.ini18:09
jamesdentonovn-host and ovn-central use /etc/default/ files, and OVN_CTL_OPTS, but i'm not sure if there's an option for logging that can be put there18:10
noonedeadpunkisn't  --syslog-method excatly the candidate for OVN_CTL_OPTS?18:13
mgariepyhttps://opendev.org/openstack/networking-ovn/commit/a6ff3490c4a1057e58cbeba8e2467d89f2c4759318:27
mgariepyovn.ini ?18:27
noonedeadpunkjrosser: regarding virt groups - you don't need to run add_host on localhost - you technically can do this as pre/post_tasks. But then if using serial it wil lbe executed independently for each run which is unfortunate :(19:16
noonedeadpunkbut yeah, with localhost is looks nice and serial seems to work19:17
spateljamesdenton we it comes to upgrade we should make sure ovn-controller get upgrade first before ovn central components like ovn-north/ovn-cental etc. 19:57
spatelwhen*19:57
spatelNot sure if we should document that process or just ansible can handle that part19:58
jamesdentonhmmm, prob needs to be ansible but not sure what the order is now?20:05
admin10i forgot .. what was the variable to whitelist the galera socket check source ip range 20:11
admin10found it .. 20:12
admin10galera_monitoring_allowed_source20:12
admin10is it an array , or comma separated variables or a cidr ? 20:13
noonedeadpunkadmin10: it's cidrs separated by whitespace20:33
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Prepare service roles for separated haproxy config  https://review.opendev.org/c/openstack/openstack-ansible/+/87118920:41
noonedeadpunkjrosser: I indeed like this more ^20:41
admin10noonedeadpunk thanks 20:41
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Prepare service roles for separated haproxy config  https://review.opendev.org/c/openstack/openstack-ansible/+/87118920:42
jrossernoonedeadpunk: it does look tidy20:50
jrossernoonedeadpunk: I am still not sure about the logic used to disable the temporary certbot backend - really where actually that is done…..20:51
jrosserbecause it needs to stay there - right up to the point that horizon is (possibly) installed20:52
jrosserbut the playbooks may be run individually or in multiple runs so I’m not really seeing how the required present/absent state for the temporary certbot backend is decided in the horizon playbook20:53
opendevreviewMerged openstack/openstack-ansible master: Do not use openstack.osa.linear strategy plugin  https://review.opendev.org/c/openstack/openstack-ansible/+/87448221:20
damiandabrowskijrosser: did you check latest changes(from last week) regarding certbot logic? i improved it before my vacation22:28
damiandabrowskinow it's pretty simple, certbot backend is being enabled by haproxy playbook22:28
damiandabrowskiand it's disabled by horizon playbook. We don't need any extra task to do that, we just add certbot service to horizon_haproxy_services with enabled=False22:29
damiandabrowskihttps://review.opendev.org/c/openstack/openstack-ansible/+/871189/16/inventory/group_vars/horizon_all.yml#5022:29
damiandabrowskiso to summarize:22:51
damiandabrowski- haproxy-install.yml enables certbot service if horizon is not deployed(yet) and LE is enabled with http-01 challenge22:51
damiandabrowski- horizon-install.yml disables certbot service(always)22:52

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