Thursday, 2021-08-19

*** rpittau|afk is now known as rpittau07:08
*** arxcruz is now known as arxcruz|off09:05
jnamdarhi all09:05
jnamdarI have a working stack with a few nodes that I setup with openstack ansible a while ago, and I'm looking to install an additional service 09:06
jnamdar(which is Octavia.) Can I just run the os-octavia-install  playbook? 09:07
jnamdarOr do I need to deploy the whole thing from scratch09:07
jnamdar(I'm running on Stein)09:07
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Set bullseye jobs to voting  https://review.opendev.org/c/openstack/openstack-ansible/+/80517209:33
noonedeadpunkjnamdar: you need to define group in openstack_user_config, create containers and then run os-octavia-install09:34
noonedeadpunkBut you alse need to solve networking thing09:34
noonedeadpunkI believe https://docs.openstack.org/openstack-ansible-os_octavia/latest/configure-octavia.html#openstack-ansible-deployment is pretty accurate to follow09:35
jnamdarthanks09:37
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-galera_server stable/wallaby: Partial Revert "Bump MariaDB version to 10.5.9"  https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/80513509:48
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible-galera_server stable/wallaby: Partial Revert "Bump MariaDB version to 10.5.9"  https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/80513509:49
noonedeadpunkI wonder what way we should follow for managing LB endpoints. Currently we use mostly task https://opendev.org/openstack/openstack-ansible/src/branch/master/playbooks/common-tasks/haproxy-endpoint-manage.yml10:17
noonedeadpunkBut there's another "smarter" way which is usage of https://github.com/logan2211/ansible-haproxy-endpoints10:17
noonedeadpunkBut tbh, I think I prefer our old way rather then this role. Because while it's kind of cool to disable service on haproxy only during it's restart, but I bet there could be some cases when service starts malfunction even before restart (ie weird policy or rootwrap overrides)10:19
noonedeadpunkSo IMO it's safer to disable backend before we start messing up with service itself10:19
noonedeadpunkalso it feels that right now we disable whole controller on haproxy during galera restart, since backend will be just ommited https://opendev.org/openstack/openstack-ansible/src/branch/master/playbooks/galera-install.yml#L47-L49 -> https://github.com/logan2211/ansible-haproxy-endpoints/blob/master/handlers/main.yml#L19 10:21
noonedeadpunkAlso that include is easier to maintain and it's more readable rather then magic `Manage LB` handler...10:22
noonedeadpunkWhich I bet would be pretty hard to properly maintain...10:23
opendevreviewMerged openstack/openstack-ansible master: Add guide for distribution upgrades to docs  https://review.opendev.org/c/openstack/openstack-ansible/+/80487510:54
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible stable/wallaby: Add guide for distribution upgrades to docs  https://review.opendev.org/c/openstack/openstack-ansible/+/80514011:10
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible stable/victoria: Add guide for distribution upgrades to docs  https://review.opendev.org/c/openstack/openstack-ansible/+/80514111:10
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Add serial execution to all playbooks  https://review.opendev.org/c/openstack/openstack-ansible/+/80518811:32
opendevreviewDmitriy Rabotyagov proposed openstack/openstack-ansible master: Move galera tasks to pre_tasks  https://review.opendev.org/c/openstack/openstack-ansible/+/80519312:04
noonedeadpunkandrewbonney: when did you re-created LXC containers during OS upgrade and re-joined galera cluster?12:28
noonedeadpunkAs after OS upgrade containers remain running previous one anyway?12:28
noonedeadpunkah, ok, you was re-installing OS12:33
andrewbonneyYeah, in-place upgrades can be a bit messy so we always start from fresh hosts12:34
noonedeadpunkThinking about it now, it might be really faster to re-setup....12:44
noonedeadpunkJust was thinking about upgrade to preserve galera data to reduce syncing time12:45
noonedeadpunkesp with PXE boot 12:46
andrewbonneyYeah. Unfortunately the xinetd script makes it look to haproxy like the whole cluster is down while that happens, so if you have a lot of data it's a pain12:48
noonedeadpunkoh, wait, but it's looking for `wsrep_local_state`? So if you disable haproxy backend it should be fine?12:50
andrewbonneyThe trouble is the primary changes state when it becomes a donor to the freshly installed instance12:55
andrewbonneyI've been meaning to experiment with the script but haven't got round to it yet12:55
andrewbonneyThe 'available_when_donor' option in https://github.com/olafz/percona-clustercheck/blob/master/clustercheck#L67 is interesting12:58
opendevreviewMerged openstack/openstack-ansible-galera_server master: Update galera to 10.6.4  https://review.opendev.org/c/openstack/openstack-ansible-galera_server/+/80437012:58
jnamdarI have to say the octavia config doc is tough to read lol, I'm afraid my networking level is not enough13:09
*** frenzy_friday is now known as erbot13:13
*** erbot is now known as frenzy_friday13:15
spateljnamdar what do you looking for octavia? 13:20
jnamdarspatel: I'm looking to install it so I can launch some Rally tests against it13:21
jnamdarlike deploying some load balancers and such13:21
spatelso what is the issue related networking?13:22
spateli know its little complicated but once you know flow its super easy13:22
spateli tried my way to simplify it in my blog https://satishdotpatel.github.io/openstack-ansible-octavia/13:23
jnamdarspatel: if I understand the doc correctly I have to add a new bridge on my controllers13:27
spatelyes br-lbaas 13:28
jnamdarbut then I don't know what to choose between a flat or vlan network13:29
jnamdarI know I already have a few networks entries for my existing openstack install (storage, vlan, vxlan, mgmt)13:30
jnamdarCan I just create the bridge and add a flat typed network entry in my openstack_user_config.yml ? 13:31
jnamdarI'll take a look at your article thanks :)13:32
spateljnamdar is this production?13:39
spatelyes you need to add br-lbaas which will map with octavia container 13:40
spatelyou can see i added br-lbaas in my doc in openstack_user_config.yml13:40
spatel- network:13:40
spatel   container_bridge: "br-lbaas"13:40
spatel   container_type: "veth"13:40
spateli would say try this in LAB box first to get hold of it 13:41
spatelI am running my octavia in production using this method of networking 13:42
jnamdaryeah I'll try that thx13:50
jnamdarnah it isn't prod :)13:50
spateljnamdar that is good 14:14
spatelmostly all my openstack lab running inside VMware so its very easy to create private switches and VLAN in VMware to simulate production 14:15
jnamdarspatel: in the user_variables.yml, what does the arg octavia_provider_network_name mean ?14:39
jnamdarAre you referring to your br-vlan bridge net_name from the openstack_user_config ?14:40
spatelvlan14:40
spatelthat is default OSA use to map br-vlan with vlan14:40
spatelif you look at my config i have the same variables 14:41
jnamdarok I see. I think I didn't use the default name tho. My net_name is "provider-flat" for the br-vlan bridge14:41
jnamdardid you host your full config files from the blog somewhere  so I can compare maybe?14:42
spatelno i didn't..14:48
spatelif you are using different interface name then you can adjust according 14:49
jnamdaryeah my config differs from the default. I have only one br-vlan bridge which is of type flat14:49
jnamdarmaybe I should not use a lbaas bridge of type vlan then lol14:51
jnamdarI should probably do this I guess https://docs.openstack.org/openstack-ansible-os_octavia/latest/configure-octavia.html#flat-networking-scenario14:51
jnamdarinstead of your config14:51
opendevreviewMerged openstack/openstack-ansible master: Bump master branch  https://review.opendev.org/c/openstack/openstack-ansible/+/80151014:56
opendevreviewMerged openstack/openstack-ansible master: Set doc jobs to voting  https://review.opendev.org/c/openstack/openstack-ansible/+/80489114:56
spateljnamdar sure... we are running large production so flat not going to work for me15:16
spatelyou can use whatever better for you bottom line is amphora vm should be able to talk to Octavia controller, no matter what you use.. 15:17
*** rpittau is now known as rpittau|afk15:51
*** sshnaidm is now known as sshnaidm|afk16:09

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