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

Bug #1455267 reported by Brandon Logan on 2015-05-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
octavia
Incomplete
Low
Atul Pandey

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>"

Changed in octavia:
importance: Undecided → Low

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.

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.

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

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) on 2016-09-22
Changed in octavia:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers