Cannot create template with error "The server has either errd or incapable..."

Bug #1696028 reported by Kashif Siddiqui
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Meteos
Fix Released
Undecided
Unassigned

Bug Description

Cannot create a template based on the tutorial https://wiki.openstack.org/wiki/Meteos/ExampleLinear

Not sure if this is my devstack issue but would request someone to verify it.

Steps:
 1. Install meteos on Devstack following this tutorial https://wiki.openstack.org/wiki/Meteos/Devstack
 2. Try creating a template

Result:
 Following error: (Same thing happens on the GUI as well)
ERROR: The server has either erred or is incapable of performing the requested operation.

2017-06-05 18:53:18.562 DEBUG meteos.engine.manager [req-e92e7317-5ce1-48cb-b466-108114ffb645 None None] Create template with request: {u'slave_node_id': None, u'worker_flavor_id': u'1', u'updated_at': None, u'binary_data_id': None, u'worker_nodes_num': 2, u'deleted_at': None, u'id': u'57c87e6a-4947-4dea-bb95-8cac984d6af7', u'master_flavor_id': u'3', u'user_id': u'1d33f5d3f90e48a99bbca8a6899552d6', u'binary_id': None, u'display_description': None, u'spark_version': u'1.6.0', u'master_node_id': None, u'sahara_image_id': None, u'project_id': u'1def5b0cabba48e19fa96c45c98973d5', u'launched_at': None, u'job_template_id': None, u'status': None, u'deleted': u'False', u'floating_ip_pool': u'662604e4-c9f3-4fd7-8729-3ba572ec562b', u'image_id': u'00e18af2-1697-4415-b7e1-b2bb25823399', u'display_name': u'Test1', u'master_nodes_num': 1, u'cluster_template_id': None, u'created_at': u'2017-06-05T09:53:18.547910'} from (pid=9762) create_template /opt/stack/meteos/meteos/engine/manager.py:107
2017-06-05 18:53:21.664 ERROR meteos.engine.manager [req-e92e7317-5ce1-48cb-b466-108114ffb645 None None] template 57c87e6a-4947-4dea-bb95-8cac984d6af7 failed on creation.: APIException: Error occurred during validation
2017-06-05 18:53:21.687 ERROR oslo_messaging.rpc.server [req-e92e7317-5ce1-48cb-b466-108114ffb645 None None] Exception during message handling: APIException: Error occurred during validation
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server Traceback (most recent call last):
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 157, in _process_incoming
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 213, in dispatch
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _do_dispatch
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server result = func(ctxt, **new_args)
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server File "/opt/stack/meteos/meteos/engine/manager.py", line 119, in create_template
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server {'status': constants.STATUS_ERROR}
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server self.force_reraise()
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server File "/opt/stack/meteos/meteos/engine/manager.py", line 111, in create_template
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server context, request_spec)
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server File "/opt/stack/meteos/meteos/engine/drivers/generic.py", line 223, in create_template
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server master_flavor_id, ['master', 'namenode'], floating_ip_pool, True)
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server File "/opt/stack/meteos/meteos/cluster/sahara.py", line 90, in create_node_group_template
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server auto_security_group=auto_security_group)
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/saharaclient/api/node_group_templates.py", line 76, in create
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server 'node_group_template')
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/saharaclient/api/base.py", line 107, in _create
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server self._raise_api_exception(resp)
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server File "/usr/local/lib/python2.7/dist-packages/saharaclient/api/base.py", line 229, in _raise_api_exception
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server error_message=error_data.get("error_message"))
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server APIException: Error occurred during validation
2017-06-05 18:53:21.687 TRACE oslo_messaging.rpc.server

========================================
========================================
Also in sahara logs I can see this error
========================================
========================================

2017-06-05 18:53:21.661 ERROR sahara.utils.api [req-b81a78cd-af9e-4c2b-ab8d-c7bf63f956b9 demo demo]
Request aborted with status code 500 and message 'Error occurred during validation'
2017-06-05 18:53:21.662 ERROR sahara.utils.api [req-b81a78cd-af9e-4c2b-ab8d-c7bf63f956b9 demo demo]
Traceback (most recent call last):
  File "/opt/stack/sahara/sahara/service/validation.py", line 153, in handler
    validator(**kwargs)
  File "/opt/stack/sahara/sahara/service/validations/node_group_templates.py", line 34, in check_node_group_template_create
    data[plugin_version], data)
  File "/opt/stack/sahara/sahara/service/validations/base.py", line 167, in check_node_group_basic_fields
    check_floatingip_pool_exists(ng['name'], ng['floating_ip_pool'])
  File "/opt/stack/sahara/sahara/service/validations/base.py", line 199, in check_floatingip_pool_exists
    network = nova.get_network(id=pool_id)
  File "/opt/stack/sahara/sahara/utils/openstack/nova.py", line 64, in get_network
    return base.execute_with_retries(client().networks.find, **kwargs)
AttributeError: 'Client' object has no attribute 'networks'

Revision history for this message
Kashif Siddiqui (kashif.siddiqui) wrote :
description: updated
description: updated
description: updated
Revision history for this message
Hiroyuki Eguchi (h-eguchi) wrote :

Root cause of this issue is in sahara [1].
this bug is under review [2].

[1] https://bugs.launchpad.net/sahara/+bug/1692551
[2] https://review.openstack.org/#/c/466778/

Changed in meteos:
status: New → Fix Released
Revision history for this message
Akshay Mewada (aksmew) wrote :

Hello,

I am facing same error but different warning message

Error: Unable to create template.
Message: int() argument must be a string or a number, not 'NoneType'

and I also tried to create template using CLI it shows below error.

Error:The server could not comply with the request since it is either malformed or otherwise incorrect.

Please help me out

Note: I do not enable the KEYSTONE_TOKEN_FORMAT = UUID while installing meteos on devstack as per the information given in https://wiki.openstack.org/wiki/Meteos/Devstack

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.