[root@nailgun fuel-plugins]# fuel env create --rel 2 --name lol
500 Server Error: Internal Server Error for url: http://10.109.5.2:8000/api/v1/clusters/ (Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/nailgun/api/v1/handlers/base.py", line 293, in handle_errors
return func(cls, *args, **kwargs)
File "<string>", line 2, in POST
File "/usr/lib/python2.7/site-packages/nailgun/api/v1/handlers/base.py", line 351, in validate
return func(cls, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/nailgun/api/v1/handlers/base.py", line 474, in POST
new_obj = self.collection.create(data)
File "/usr/lib/python2.7/site-packages/nailgun/objects/base.py", line 451, in create
return cls.single.create(data)
File "/usr/lib/python2.7/site-packages/nailgun/objects/cluster.py", line 195, in create
ClusterPlugin.add_compatible_plugins(cluster)
File "/usr/lib/python2.7/site-packages/nailgun/objects/plugin.py", line 216, in add_compatible_plugins
for plugin in cls.get_compatible_plugins(cluster):
File "/usr/lib/python2.7/site-packages/nailgun/objects/plugin.py", line 207, in get_compatible_plugins
PluginCollection.all()))
File "/usr/lib/python2.7/site-packages/nailgun/objects/plugin.py", line 206, in <lambda>
lambda p: cls.is_compatible(cluster, p),
File "/usr/lib/python2.7/site-packages/nailgun/objects/plugin.py", line 194, in is_compatible
return plugin_adapter.validate_compatibility(cluster)
File "/usr/lib/python2.7/site-packages/nailgun/plugins/adapters.py", line 236, in validate_compatibility
if cluster_os != release['os'].lower():
KeyError: 'os'
)
The lines are:
cluster_os = cluster.release.operating_system.lower()
for release in self.plugin.releases:
if cluster_os != release['os'].lower():
continue
Fix proposed to branch: master /review. openstack. org/366181
Review: https:/