Mention Octavia on logs when loadbalancer transtion to PENDING_UPDATE

Bug #1918711 reported by Maysa de Macedo Souza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kuryr-kubernetes
Fix Released
Undecided
Darshna Das

Bug Description

If LB is stuck in `PENDING_UPDATE` state we need to clearly log that it's Octavia misbehaving and not raise some ambiguous `ResourceNotReady` exception.

tags: added: low-hanging-fruit
Revision history for this message
Darshna Das (climoiselle) wrote :

Hi, I am an outreachy applicant. I am done setting up the local machine, is it okay if I take up this issue to start with?

Changed in kuryr-kubernetes:
assignee: nobody → Darshna Das (climoiselle)
Revision history for this message
Maysa de Macedo Souza (maysa) wrote :

Yes, sure, that's okay. Please reach out if you have questions/concerns.

Revision history for this message
Darshna Das (climoiselle) wrote :

Hello, can anyone help me on how to get started with this issue?

Revision history for this message
Michal Dulko (michal-dulko-f) wrote :

Sure! Basically if at [1] status is PENDING_UPDATE we should log a clear information that there is an issue with Octavia because the LB <id> is stuck in PENDING_UPDATE and Kuryr is unable to clear this.

[1] https://github.com/openstack/kuryr-kubernetes/blob/e21d2f3d8bc12384fb2e352e024e2637c523b1e3/kuryr_kubernetes/controller/drivers/lbaasv2.py#L831

Revision history for this message
Darshna Das (climoiselle) wrote :

Ah! thank you :)

Changed in kuryr-kubernetes:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kuryr-kubernetes (master)

Change abandoned by "Darshna Das <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/kuryr-kubernetes/+/789052
Reason: Did not mention the bug_id

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kuryr-kubernetes (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kuryr-kubernetes (master)

Reviewed: https://review.opendev.org/c/openstack/kuryr-kubernetes/+/796881
Committed: https://opendev.org/openstack/kuryr-kubernetes/commit/a17e5502c2702632317b8f51fb404a3e7c8874ea
Submitter: "Zuul (22348)"
Branch: master

commit a17e5502c2702632317b8f51fb404a3e7c8874ea
Author: Michał Dulko <email address hidden>
Date: Thu Jun 17 17:30:17 2021 +0200

    Show error messages when resources are stuck

    If an Octavia loadbalancer is stuck in PENDING_UPDATE state or Neutron
    port is DOWN despite being plugged there's not much Kuryr can do. For
    such cases we need to clearly message the user that the error they're
    seeing is caused by OpenStack service misbehaving and not Kuryr.

    This commit does so by making sure in such cases we raise a distinct
    version of ResourceNotReady exception.

    Change-Id: I2dd1e8989caf004b3dee0cb51780a45ce8d9353c
    Closes-Bug: 1918711

Changed in kuryr-kubernetes:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kuryr-kubernetes 5.0.0.0rc1

This issue was fixed in the openstack/kuryr-kubernetes 5.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.