Ask Your Question
0

set node role to opendaylight failed by fuel cli

asked 2016-06-07 08:45:24 -0700

wu.zhihui gravatar image

updated 2016-06-07 08:50:40 -0700

Version: opnfv-2016-06-06_22-41-56.iso

Refer to https://build.opnfv.org/ci/job/fuel-d... , there was a failure on step of setting node role to opendaylight+controller.

Failed command: fuel node set --node-id 1 --role controller,opendaylight --env 1
Command returned response: 500 Server Error: Internal Server Error for url: http://10.20.0.2:8000/api/v1/clusters
/1/assignment/ (Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/nailgun/api/v1/handlers/base.py", line 170, in checked_data
  valid_data = method(data, **kwargs)
 File "/usr/lib/python2.7/site-packages/nailgun/api/v1/validators/assignment.py", line 100, in   
validate_collection_update
dict_data[node_id]
File "/usr/lib/python2.7/site-packages/nailgun/api/v1/validators/assignment.py", line 124, in validate_roles
  'version': settings.VERSION,
 File "/usr/lib/python2.7/site-packages/nailgun/api/v1/validators/assignment.py", line 151, in     
check_roles_requirement
 models, roles_metadata[role]['restrictions']
 File "/usr/lib/python2.7/site-packages/nailgun/utils/restrictions.py", line 200, in check_restrictions
  filterd_by_action_restrictions)
 File "/usr/lib/python2.7/site-packages/nailgun/utils/restrictions.py", line 199, in <lambda>
strict=item.get('strict', strict)).evaluate(),
File "/usr/lib/python2.7/site-packages/nailgun/expression/__init__.py", line 27, in evaluate
return self.compiled_expression()
File "/usr/lib/python2.7/site-packages/nailgun/expression/objects.py", line 36, in __call__
self.evaluate()
File "/usr/lib/python2.7/site-packages/nailgun/expression/objects.py", line 32, in evaluate
self.value = self.subexpression()
File "/usr/lib/python2.7/site-packages/nailgun/expression/expression_parser.py", line 99, in <lambda>
result = lambda: arg1() == arg2()
File "/usr/lib/python2.7/site-packages/nailgun/expression/objects.py", line 83, in __call__
self.evaluate()
File "/usr/lib/python2.7/site-packages/nailgun/expression/objects.py", line 78, in evaluate
' to false to allow undefined values.'.format(self.path))
 TypeError: Value of settings:opendaylight.metadata.enabled is undefined. Set options.strict to false to allow    
 undefined values.)

but it was ok when I set node role to opendaylight and controller on fuel dashboard. Any ideas about this problem?

Here is settings.yaml and settings.yamlorig. Please download and delete the file extension ".bmp". settings1.yaml.bmp settings1.yamlorig.bmp

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-07 17:11:11 -0700

mskalski gravatar image

It looks like a bug in Fuel and it is not specific only for opendaylight plugin. I created a bug on launchpad: https://bugs.launchpad.net/fuel/+bug/...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2016-06-07 08:45:24 -0700

Seen: 111 times

Last updated: Jun 07 '16