[V2 API] Trying to crate a pool causes exception

Bug #1679259 reported by German Eichberger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
octavia
Fix Released
Undecided
Adam Harwell

Bug Description

I send:
{
    "pool": {
        "admin_state_up": true,
        "description": "simple pool",
        "lb_algorithm": "ROUND_ROBIN",
        "name": "my-pool",
        "protocol": "HTTP"
    }
}

to URL: http://10.10.10.128:9876/v2.0/pools/

result:

{
  "debuginfo": "Traceback (most recent call last):\n\n File \"/usr/local/lib/python2.7/dist-packages/wsmeext/pecan.py\", line 85, in callfunction\n result = f(self, *args, **kwargs)\n\n File \"/opt/stack/octavia/octavia/api/v2/controllers/pool.py\", line 155, in post\n raise exceptions.ValidationException(details=msg)\n\n File \"/opt/stack/octavia/octavia/common/exceptions.py\", line 64, in __init__\n self.msg = self.msg % kwargs\n\nKeyError: u'detail'\n",
  "faultcode": "Server",
  "faultstring": "u'detail'"
}

I would;d expect not to see an exception in the return

Tags: lbaas-merge
Revision history for this message
German Eichberger (german-eichberger) wrote :
Changed in octavia:
status: New → Confirmed
Revision history for this message
German Eichberger (german-eichberger) wrote :

Logs:
2017-04-03 14:26:55.960 57815 ERROR wsme.api [req-cb9e8308-a251-41c5-93d8-c431ad173dab - a476a84e54644f1ab01864ed7fa6e258 - default default] Server-side error: "u'detail'". Detail:
Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/wsmeext/pecan.py", line 85, in callfunction
    result = f(self, *args, **kwargs)

  File "/opt/stack/octavia/octavia/api/v2/controllers/pool.py", line 155, in post
    raise exceptions.ValidationException(details=msg)

  File "/opt/stack/octavia/octavia/common/exceptions.py", line 64, in __init__
    self.msg = self.msg % kwargs

KeyError: u'detail'

Revision history for this message
Michael Johnson (johnsom) wrote :

I can reproduce this.

Changed in octavia:
status: Confirmed → Triaged
tags: added: lbaas-merge
Revision history for this message
Michael Johnson (johnsom) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to octavia (master)

Fix proposed to branch: master
Review: https://review.openstack.org/452899

Changed in octavia:
assignee: nobody → Adam Harwell (adam-harwell)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to octavia (master)

Reviewed: https://review.openstack.org/452899
Committed: https://git.openstack.org/cgit/openstack/octavia/commit/?id=3aec6312b0e3f6f78e8cc8931821e85bd045075e
Submitter: Jenkins
Branch: master

commit 3aec6312b0e3f6f78e8cc8931821e85bd045075e
Author: Adam Harwell <email address hidden>
Date: Tue Apr 4 03:57:33 2017 +0900

    Fix pool validation exception typo

    Change-Id: Ic915e7098871e554dd4f1fa39e6792108f718b01
    Closes-Bug: #1679259

Changed in octavia:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/octavia 1.0.0.0b1

This issue was fixed in the openstack/octavia 1.0.0.0b1 development milestone.

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.