Retrieving healthmonitor for pool when healthmonitor doesn't exist for that pool gives wrong error message

Bug #1455267 reported by Brandon Logan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
octavia
Invalid
Low
Unassigned

Bug Description

Gives:

{
debuginfo: null
faultcode: "Client"
faultstring: "Health Monitor <built-in function id> not found."
}

faultstring: Should be "Could not find Health Monitor fo Pool <POOL_ID_HERE>"

Tags: auto-abandon
Changed in octavia:
importance: Undecided → Low
Revision history for this message
Phillip Toohill (phillip-toohill) wrote :

Your title suggests something different then whats in description. The error message should not say '...not found for pool....' if its the HM that is indeed not found? If its a bad pool id then this message makes sense.

Revision history for this message
Brandon Logan (brandon-logan) wrote :

GET /loadbalancer/{lb_Id}/listeners/{listener_id}/pools/{pool_id}/health_monitor

since we've got a 1:1 pool to health monitor right now, there is no ID in the URL, so a health monitor only exists for a single pool, and as such a health monitor does not have its own id just pool_id.

Revision history for this message
Phillip Toohill (phillip-toohill) wrote :

Was about to comment also, I misunderstood. Thank you for clarification.

Revision history for this message
Atul Pandey (atul-4you) wrote :

Does this bug still holds valid as now we are referring to v2.

More over this output seems okay.

[stack@localhost devstack]$ curl -H "X-Auth-Token: 2bc674307b9d47c781e6fc9324413ad6" http://10.0.1.150:9696/v2.0/lbaas/healthmonitors/9a786334-d317-432a-8cef-b762ab5d2b0 | python -mjson.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 141 100 141 0 0 10952 0 --:--:-- --:--:-- --:--:-- 11750
{
    "NeutronError": {
        "detail": "",
        "message": "healthmonitor 9a786334-d317-432a-8cef-b762ab5d2b0 could not be found",
        "type": "EntityNotFound"
    }
}
[stack@localhost devstack]$

Changed in octavia:
assignee: nobody → Atul Pandey (atul-4you)
Atul Pandey (atul-4you)
Changed in octavia:
status: New → Incomplete
Revision history for this message
Gregory Thiemonge (gthiemonge) wrote : auto-abandon-script

Abandoned after re-enabling the Octavia launchpad.

Changed in octavia:
assignee: Atul Pandey (atul-4you) → nobody
status: Incomplete → Invalid
tags: added: auto-abandon
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.