Error on creating pods on multiple k8s bay

Bug #1468067 reported by hongbin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
High
hongbin

Bug Description

Here is the steps to reproduce.

$ magnum bay-create --name bay1 --baymodel k8sbaymodel --node-count 1
...

$ magnum bay-create --name bay2 --baymodel k8sbaymodel --node-count 1
...

$magnum pod-create --manifest ./redis-master.yaml --bay bay1
...

$magnum pod-create --manifest ./redis-master.yaml --bay bay2
ERROR: pods "redis-master" already exists
Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
    executor_callback))

  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
    executor_callback)

  File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
    result = func(ctxt, **new_args)

  File "/opt/stack/magnum/magnum/conductor/handlers/k8s_conductor.py", line 178, in pod_create
    raise exception.KubernetesAPIFailed(code=err.code, message=message)

KubernetesAPIFailed: pods "redis-master" already exists
 (HTTP 409)

hongbin (hongbin034)
Changed in magnum:
assignee: nobody → hongbin (hongbin034)
Changed in magnum:
status: New → In Progress
hongbin (hongbin034)
Changed in magnum:
importance: Undecided → High
Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-2
status: Fix Committed → Fix Released
Adrian Otto (aotto)
Changed in magnum:
milestone: mitaka-2 → mitaka-1
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.