Friday, 2022-02-25

opendevreviewMerged openstack/octavia stable/xena: Fix amphora-agent elements for RHEL9  https://review.opendev.org/c/openstack/octavia/+/83020500:43
*** ysandeep|out is now known as ysandeep06:28
*** ysandeep is now known as ysandeep|afk10:02
*** ysandeep|afk is now known as ysandeep12:00
*** ysandeep is now known as ysandeep|away12:58
viks__I have tried `soft-anti-affinity` with `ACTIVE_STANDBY` and i have 2 compute nodes.. but it is not scheduling the instances to different compute nodes? any suggestions what could be going wrong13:27
*** ysandeep|away is now known as ysandeep13:42
gthiemongeviks__: hey, it should create amphorae on different compute nodes, but if it cannot because a compute node is down or because all the compute nodes have already one amp from the same LB, it may create the amphora on the same compute node14:40
gthiemongewith "normal" anti-affinity, the creating of the VMs would be denied by nova14:40
viks__gthiemonge: i tried creating both anti-affinit and soft-anti-affinity server groups in my cluster and tried to create 2 instances together in my 2 compute node setup. In both cases, it got created in different nodes as expected. But in case of octavia, with anti-affinity, it creates in two nodes, where master instance is stuck in BOOTING and BACKUP instance IN ACTIVE state.. Not sure what is going wrong14:44
viks__https://www.irccloud.com/pastebin/7M59wXQf/14:46
gthiemongeviks__: mmh here BOOTING is not good, it means that a VM is spawned but is not reachable yet14:52
*** ysandeep is now known as ysandeep|out14:52
johnsomviks__ It seems like a nova problem with your compute host. While it is “booting” do a openstack show server on it and see if nova posted an error.14:53
gthiemongeviks__: there should be a nova vm with a name that includes the amphora id (3b7f9338-a050-448d-a000-38d1136b52ba), maybe you can fetch the console logs for this VM14:53
johnsomYeah, looking at the console would be good too14:53
viks__ok.. as posted above instance in active state,  amphora status is in booting state and when opening the console, getting `Something went wrong, connection is closed`15:07
viks__i'm using linuxbridge in my setup.. i hope thats not the issue15:08
johnsomNot at all15:09
johnsomCan you open the console of the other instance?15:11
johnsomMy guess here is one of two compute hosts has a problem. Manually booting a vm on the bad host will also fail.15:14
viks__yes... other instance i can open the console... as i mentioned, i have tested anti-affinity and soft-anti-affinity by creating a server group, with the same set of hosts, it it worked as expected15:18
viks__i have also tested disabling one of the nodes and creating instance,  and the instance creation works fine15:20
johnsomYeah, so that other host has a nova problem. I would start with the server show output, then start digging in the nova logs, then check for qemu logs on the host15:31
viks__johnsom: ok..  the server show does not show any error as it's in active state in , only network it is not getting 2 ip's for one of the instances 15:37
viks__also it gets 2 ip's `lb-mgmt-net=172.16.2.137, 172.16.0.253` and what is the use of the second ip?15:47
viks__in linuxbridge logs, i see 2 tap interfaces gets created for the one which is having 2 ip's , for the other only only 1 tap inteface getting created..  what process creates these 2 interfaces for amphora instance?15:58
johnsomviks__ that is not normal and octavia has no need for two IPs on the lb-mgmt-net. Check your octavia.conf and make sure the amphora boot network config is set correctly16:17
johnsomThat doesn’t explain why one instance would work however. Does the working standalone also get two ips?16:20
viks__yes.. standalone also gets 2 ips and it works fine in that case16:22
viks__soft-anti-affinity is also works fine and it gets 2 ips... but it does create instances in the same compute host16:23
johnsomYeah, anti-affinity in nova has a number of caveats.16:27
viks__ok16:28
viks__not sure how to make ACTIVE and STANDBY instances to go to separate compute hosts16:31
johnsomFor example I filed this bug: https://bugs.launchpad.net/nova/+bug/186319016:33
johnsomI think your path forward is to debug why nova is unable to boot the instance on the other compute host. I.e. why the console can' t even connect. That is digging through nova/qemu logs. There is not special about the Octavia vms, they are simple vms created via the standard nova apis.16:35
viks__johnsom: ok... let me dig further.. the puzzling part for me is , why it works when i create instances with anti-affinity server group and not with octavia.. anyways i'll try to investigate16:40
opendevreviewMichael Johnson proposed openstack/octavia stable/wallaby: Add fips jobs  https://review.opendev.org/c/openstack/octavia/+/82790019:39
opendevreviewSpencer Harmon proposed openstack/octavia master: Add rpc notification for load balancers.  https://review.opendev.org/c/openstack/octavia/+/83105121:10
johnsomspencerharmon Hi and thanks for the patch21:21
spencerharmonHi! Very happy to contribute :)21:21
johnsomIt looks like you posted it fine. So you have gerrit skills now. grin21:22
spencerharmonHahaha. I know! Exciting milestone.21:22
johnsomThere are usually people around this channel, so if you have questions don't be shy.21:22
johnsomThere is another notifications patch that someone has been working on recently: https://review.opendev.org/c/openstack/octavia/+/78462821:23
johnsomYou might want to compare approaches21:23
spencerharmonYeah, I reviewed this patch. I actually started off testing it, but what I found is that it was nicer to have specific tasks for notifications so I can import it in a provider driver.21:24
johnsomI have also felt that the notifications made sense to be in tasks21:24
spencerharmonI hope I soled some of the other concerns from the comments as well. NOTIFIER singleton, for example.21:25
spencerharmon*solved21:26
johnsomCool. Yeah, it's been a while since I reviewed the other patch. My time is split between Octavia and Designate these days.21:27
johnsomAnyway, please feel free to reach out if you have any questions.21:28
spencerharmonCertainly will! Thanks for the help and kind words so far. Looking forward to feedback and the rest of the review process!21:29
opendevreviewSpencer Harmon proposed openstack/octavia master: Add rpc notification for load balancers.  https://review.opendev.org/c/openstack/octavia/+/83105121:38
spencerharmonSorry; realized I had the reference/actual backwards on my unit test assertions.21:39
johnsomNo worries, that catches a lot of people21:46
spencerharmonI have ~50% success getting it right hahaha!21:47
johnsomYep21:47
opendevreviewMichael Johnson proposed openstack/octavia master: Fix prometheus-proxy systemd service  https://review.opendev.org/c/openstack/octavia/+/83106222:48
opendevreviewSpencer Harmon proposed openstack/octavia master: Add rpc notification for load balancers.  https://review.opendev.org/c/openstack/octavia/+/83105123:28

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