Comment 2 for bug 1503235

Revision history for this message
Trevor McKay (tmckay) wrote :

Plugin search breaks because the field in the db is "plugin_name", not plugin.

We will debate whether this is something to patch in Sahara, or in Horizon

2015-10-06 15:22:12.025 20175 ERROR sahara.utils.api [req-9af7d84b-2945-4d60-b2be-86abb5f23356 ] Traceback (most recent call last):
  File "/home/fedora/sahara/sahara/utils/api.py", line 97, in handler
    return func(**kwargs)
  File "/home/fedora/sahara/sahara/api/acl.py", line 44, in handler
    return func(*args, **kwargs)
  File "/home/fedora/sahara/sahara/api/v10.py", line 148, in node_group_templates_list
    **u.get_request_args().to_dict())])
  File "/home/fedora/sahara/sahara/service/api.py", line 201, in get_node_group_templates
    return conductor.node_group_template_get_all(context.ctx(), **kwargs)
  File "/home/fedora/sahara/sahara/conductor/resource.py", line 42, in handle
    ret = func(*args, **kwargs)
  File "/home/fedora/sahara/sahara/conductor/api.py", line 220, in node_group_template_get_all
    return self._manager.node_group_template_get_all(context, **kwargs)
  File "/home/fedora/sahara/sahara/conductor/manager.py", line 312, in node_group_template_get_all
    return self.db.node_group_template_get_all(context, **kwargs)
  File "/home/fedora/sahara/sahara/db/api.py", line 95, in decorator
    res = func(*args, **kwargs)
  File "/home/fedora/sahara/sahara/db/api.py", line 246, in node_group_template_get_all
    return IMPL.node_group_template_get_all(context, **kwargs)
  File "/home/fedora/sahara/sahara/db/sqlalchemy/api.py", line 532, in node_group_template_get_all
    return query.filter_by(**kwargs).all()
  File "/home/fedora/sahara/.tox/venv/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 1334, in filter_by
    for key, value in kwargs.items()]
  File "/home/fedora/sahara/.tox/venv/lib/python2.7/site-packages/sqlalchemy/orm/base.py", line 383, in _entity_descriptor
    (description, key)
InvalidRequestError: Entity '<class 'sahara.db.sqlalchemy.models.NodeGroupTemplate'>' has no property 'plugin'