magnum coe-service-list returns error

Bug #1585432 reported by Michael liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Invalid
Undecided
Unassigned

Bug Description

magnum running on centos7,

I didn't create any services on k8s cluster,

but I got the result as follows:

[root@localhost ~(keystone_admin)]# magnum coe-service-list --bay k8sbay3
ERROR: Field `ports[0][node_port]' cannot be None (HTTP 500) (Request-ID: req-c66b68dd-5437-47fa-a389-7cb56a262fa5)

Revision history for this message
Thomas Huth (th-huth) wrote :

I assume you want this to be in the Magnum project, not qemu...?

affects: qemu → magnum
Revision history for this message
hongbin (hongbin034) wrote :

The coe-service-list command will be removed: https://review.openstack.org/#/c/258454/ , so I am going to close this bug.

Changed in magnum:
status: New → Invalid
Revision history for this message
Wang Bo (chestack) wrote :

Following is my local fix, hope it helps

diff --git a/magnum/objects/service.py b/magnum/objects/service.py
index 12088a7..04040ff 100644
--- a/magnum/objects/service.py
+++ b/magnum/objects/service.py
@@ -39,7 +39,7 @@ class Service(base.MagnumPersistentObject, base.MagnumObject,
         'labels': fields.DictOfStringsField(nullable=True),
         'selector': fields.DictOfStringsField(nullable=True),
         'ip': fields.StringField(nullable=True),
- 'ports': magnum_fields.ListOfDictsField(nullable=True),
+ 'ports': fields.ListOfDictOfNullableStringsField(nullable=True),
         'manifest_url': fields.StringField(nullable=True),
         'manifest': fields.StringField(nullable=True),
     }

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.