summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/105/socket/1585432
blob: f50e0dba6fd16614498c8af6ea9822d17816ac2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
socket: 0.883
graphic: 0.663
mistranslation: 0.567
device: 0.550
network: 0.545
instruction: 0.459
semantic: 0.430
vnc: 0.410
other: 0.280
boot: 0.234
assembly: 0.136
KVM: 0.117

magnum coe-service-list  returns error

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)

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

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

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),
     }