Kub sub-commands (coe-service, pod, rc) doesn't work for show/delete with names

Bug #1509091 reported by Egor Guz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Eli Qiao

Bug Description

eguz@ubuntu-vm:/mnt/hgfs/magnum-integration/kubectl$ magnum rc-create --manifest ./replication-controller.yaml --bay k8sbaytls

eguz@ubuntu-vm:/mnt/hgfs/magnum-integration/kubectl$ magnum rc-list k8sbaytls
+--------------------------------------+------------------+
| uuid | name |
+--------------------------------------+------------------+
| 745cdb72-f273-451e-8df3-c912831cf0d4 | nginx-controller |

eguz@ubuntu-vm:/mnt/hgfs/magnum-integration/kubectl$ magnum rc-show 745cdb72-f273-451e-8df3-c912831cf0d4 k8sbaytls
ERROR: Invalid input for field/attribute bay_uuid. Value: 'k8sbaytls'. unable to convert to uuid (HTTP 400)

eguz@ubuntu-vm:/mnt/hgfs/magnum-integration/kubectl$ magnum pod-create --manifest ./pod-nginx-with-label.yaml --bay k8sbaytls
eguz@ubuntu-vm:/mnt/hgfs/magnum-integration/kubectl$ magnum pod-show nginx k8sbaytls
ERROR: Invalid input for field/attribute bay_uuid. Value: 'k8sbaytls'. unable to convert to uuid (HTTP 400)

Revision history for this message
Egor Guz (eghobo) wrote :

magnum bay-list
+--------------------------------------+--------+------------+--------------+-----------------+
| uuid | name | node_count | master_count | status |
+--------------------------------------+--------+------------+--------------+-----------------+
| f46b141c-ce77-4c50-9a41-83a1cec55d30 | k8sbay | 2 | 1 | CREATE_COMPLETE |
+--------------------------------------+--------+------------+--------------+-----------------+

magnum pod-list k8sbay
+--------------------------------------+-------+
| uuid | name |
+--------------------------------------+-------+
| f7f2109f-92fa-4107-a3eb-751a09af2525 | nginx |
+--------------------------------------+-------+

magnum pod-show nginx k8sbay
ERROR: Invalid input for field/attribute bay_uuid. Value: 'k8sbay'. unable to convert to uuid (HTTP 400)

magnum pod-show nginx f46b141c-ce77-4c50-9a41-83a1cec55d30
+------------+--------------------------------------+
| Property | Value |
+------------+--------------------------------------+
| status | Pending |
| uuid | f7f2109f-92fa-4107-a3eb-751a09af2525 |
| bay_uuid | f46b141c-ce77-4c50-9a41-83a1cec55d30 |
| labels | {'app': 'nginx'} |
| updated_at | None |
| host | None |
| images | [u'nginx'] |
| desc | None |
| created_at | 2015-10-22T22:10:34+00:00 |
| name | nginx |
+------------+--------------------------------------+

magnum pod-show f7f2109f-92fa-4107-a3eb-751a09af2525 k8sbay
ERROR: Invalid input for field/attribute bay_uuid. Value: 'k8sbay'. unable to convert to uuid (HTTP 400)

summary: Kub sub-commands (coe-service, pod, rc) doesn't work for show/delete
+ with names
Revision history for this message
Egor Guz (eghobo) wrote :
Download full text (7.8 KiB)

magnum bay-list
+--------------------------------------+--------+------------+--------------+-----------------+
| uuid | name | node_count | master_count | status |
+--------------------------------------+--------+------------+--------------+-----------------+
| f46b141c-ce77-4c50-9a41-83a1cec55d30 | k8sbay | 2 | 1 | CREATE_COMPLETE |
+--------------------------------------+--------+------------+--------------+-----------------+

magnum coe-service-list k8sbay
+--------------------------------------+---------------+--------------------------------------+
| uuid | name | bay_uuid |
+--------------------------------------+---------------+--------------------------------------+
| c917859c-15fc-43eb-bd1b-04c1b613c6f4 | nginx-service | f46b141c-ce77-4c50-9a41-83a1cec55d30 |
+--------------------------------------+---------------+--------------------------------------+

magnum coe-service-show nginx-service k8sbay
ERROR: Invalid input for field/attribute bay_uuid. Value: 'k8sbay'. unable to convert to uuid (HTTP 400)

magnum coe-service-show nginx-service f46b141c-ce77-4c50-9a41-83a1cec55d30
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| uuid | c917859c-15fc-43eb-bd1b-04c1b613c6f4 |
| name | nginx-service |
| links | [{u'href': u'http://192.168.141.140:9511/v1/services/c917859c-15fc-43eb-bd1b-04c1b613c6f4', u'rel': u'self'}, {u'href': u'http://192.168.141.140:9511/services/c917859c-15fc-43eb-bd1b-04c1b613c6f4', u'rel': u'bookmark'}] |
| ip | None |
| created_at | 2015-10-22T22:11:09+00:00 |
| labels | {} ...

Read more...

Revision history for this message
Egor Guz (eghobo) wrote :
Download full text (4.1 KiB)

magnum bay-list
+--------------------------------------+--------+------------+--------------+-----------------+
| uuid | name | node_count | master_count | status |
+--------------------------------------+--------+------------+--------------+-----------------+
| f46b141c-ce77-4c50-9a41-83a1cec55d30 | k8sbay | 2 | 1 | CREATE_COMPLETE |
+--------------------------------------+--------+------------+--------------+-----------------+

magnum rc-list k8sbay
+--------------------------------------+------------------+
| uuid | name |
+--------------------------------------+------------------+
| 736f8749-dc96-4fd5-bf18-55ff3ee204a5 | nginx-controller |
+--------------------------------------+------------------+

magnum rc-show nginx-controller k8sbay
ERROR: Invalid input for field/attribute bay_uuid. Value: 'k8sbay'. unable to convert to uuid (HTTP 400)

magnum rc-show 736f8749-dc96-4fd5-bf18-55ff3ee204a5 k8sbay
ERROR: Invalid input for field/attribute bay_uuid. Value: 'k8sbay'. unable to convert to uuid (HTTP 400)

magnum rc-show nginx-controller f46b141c-ce77-4c50-9a41-83a1cec55d30
+------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| name | nginx-controller |
| links | [{u'href': u'http://192.168.141.140:9511/v1/rcs/736f8749-dc96-4fd5-bf18-55ff3ee204a5', u'rel': u'self'}, {u'href': u'http://192.168.141.140:9511/rcs/736f8749-dc96-4fd5-bf18-55ff3ee204a5', u'rel': u'bookmark'}] |
| replicas | 2 |
| bay_uuid | f46b141c-ce77-4c50-9a41-83a1cec55d30 |
| labels | {'name': 'nginx'} |
| updated_at | None ...

Read more...

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

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

Changed in magnum:
assignee: nobody → Vilobh Meshram (vilobhmm)
status: New → In Progress
Changed in magnum:
assignee: Vilobh Meshram (vilobhmm) → Eli Qiao (taget-9)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/238721
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=f58b47fe015369ee7dff45d13d3bc42a364455f7
Submitter: Jenkins
Branch: master

commit f58b47fe015369ee7dff45d13d3bc42a364455f7
Author: Vilobh Meshram <email address hidden>
Date: Thu Oct 22 16:28:57 2015 -0700

    Fix k8s CLI to work with Bay name

    K8s CLI especially pod/rc/service show and delete works with UUID. This
    patch aims to fix k8s CLI to work with bay name as well. If needed this
    patch will be ported back to stable/liberty as well.

    Change-Id: I2fc9352af63cb261864be9332609603fb943a165
    Closes-Bug: #1509091

Changed in magnum:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/238853

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (stable/liberty)

Reviewed: https://review.openstack.org/238853
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=d36fae09eadf9458b96ff75c9c8c980e5924ca7b
Submitter: Jenkins
Branch: stable/liberty

commit d36fae09eadf9458b96ff75c9c8c980e5924ca7b
Author: Vilobh Meshram <email address hidden>
Date: Thu Oct 22 16:28:57 2015 -0700

    Fix k8s CLI to work with Bay name

    K8s CLI especially pod/rc/service show and delete works with UUID. This
    patch aims to fix k8s CLI to work with bay name as well.

    Change-Id: I2fc9352af63cb261864be9332609603fb943a165
    Closes-Bug: #1509091
    (cherry picked from commit f58b47fe015369ee7dff45d13d3bc42a364455f7)

tags: added: in-stable-liberty
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
status: Fix Committed → Fix Released
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.