ns create -- Request Failed: internal server error while processing your request.

Asked by farooq

I was trying to create ns using on OpenStack devstack wallaby version of openstack and tacker. Follwing the guide on URL https://docs.openstack.org/tacker/latest/user/nsd_usage_guide.html.

All steps were successful except that while creating the ns I am getting internal server error

stack@openstack:~/tacker/samples/tosca-templates/nsd$ openstack ns create --nsd-name NSD-template --param-file ns_param.yaml NS1
Request Failed: internal server error while processing your request.

I am not sure what is causing this.

Question information

Language:
English Edit question
Status:
Answered
For:
tacker Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
farooq (aprilian8) said :
#1

I was trying to create ns using on OpenStack devstack wallaby version of openstack and tacker. Follwing the guide on URL https://docs.openstack.org/tacker/latest/user/nsd_usage_guide.html.

All steps were successful except that while creating the ns I am getting internal server error

stack@openstack:~/tacker/samples/tosca-templates/nsd$ openstack ns create --nsd-name NSD-template --param-file ns_param.yaml NS1
Request Failed: internal server error while processing your request.

I am not sure what is causing this.

Revision history for this message
Yoshito Ito (ito.yoshito) said :
#2

Thank you for the feedback! In short, we don't have the default Mistral workflows for NS related operations as described in this bug report [1].

NS related operations require Mistral workflows, but Tacker now doesn't provide the default workflow scripts for them. When NS related operation is requested, Tacker tries to execute Mistral workflow internally, but because of missing default workflow, it fails.

[1] https://bugs.launchpad.net/tacker/+bug/1892144

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Yasufumi Ogawa (yasufum) said :
#4

It's not solved yet.

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Yasufumi Ogawa (yasufum) said :
#6

keep it open for a while

Revision history for this message
farooq (aprilian8) said :
#7

I got below error log from tacker if it helps

2021-06-24 09:38:17.073 ERROR tacker.nfvo.nfvo_plugin [req-e77d5d0f-abdc-4db5-b3f3-51d556eb78ab alt_demo admin] Error while executing workflow: Execution is missing field "workflow_identifier": mistralclient.api.base.APIException: Execution is missing field "workflow_identifier"
2021-06-24 09:38:17.076 DEBUG keystoneclient.session [req-e77d5d0f-abdc-4db5-b3f3-51d556eb78ab alt_demo admin] REQ: curl -g -i --cacert "True" -X GET http://192.168.1.100/identity/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient" from (pid=26583) _http_log_request /usr/local/lib/python3.6/dist-packages/keystoneclient/session.py:215
2021-06-24 09:38:17.088 DEBUG keystoneclient.session [req-e77d5d0f-abdc-4db5-b3f3-51d556eb78ab alt_demo admin] RESP: [200] Date: Thu, 24 Jun 2021 09:38:17 GMT Server: Apache/2.4.29 (Ubuntu) Content-Type: application/json Content-Length: 257 Vary: X-Auth-Token x-openstack-request-id: req-e31e9fee-548c-4578-900f-62a0e7387d47 Connection: close
RESP BODY: {"version": {"id": "v3.14", "status": "stable", "updated": "2020-04-07T00:00:00Z", "links": [{"rel": "self", "href": "http://192.168.1.100/identity/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}}
 from (pid=26583) _http_log_response /usr/local/lib/python3.6/dist-packages/keystoneclient/session.py:255
2021-06-24 09:38:17.240 DEBUG mistralclient.api.httpclient [req-e77d5d0f-abdc-4db5-b3f3-51d556eb78ab alt_demo admin] HTTP DELETE http://192.168.1.100:8989/v2/workflows/888d0d37-aa8a-4545-b036-c779d1097377 204 from (pid=26583) decorator /usr/local/lib/python3.6/dist-packages/mistralclient/api/httpclient.py:56
2021-06-24 09:38:17.241 ERROR tacker.api.v1.resource [req-e77d5d0f-abdc-4db5-b3f3-51d556eb78ab alt_demo admin] create failed: No details.: mistralclient.api.base.APIException: Execution is missing field "workflow_identifier"
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource Traceback (most recent call last):
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/api/v1/resource.py", line 77, in resource
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource result = method(request=request, **args)
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/api/v1/base.py", line 394, in create
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource obj = obj_creator(request.context, **kwargs)
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/common/log.py", line 35, in wrapper
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource return method(*args, **kwargs)
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/nfvo/nfvo_plugin.py", line 825, in create_ns
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource raise ex
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/nfvo/nfvo_plugin.py", line 818, in create_ns
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource auth_dict=self.get_auth_dict(context))
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/common/driver_manager.py", line 71, in invoke
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource return getattr(driver, method_name)(**kwargs)
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource File "/opt/stack/tacker/tacker/nfvo/drivers/vim/openstack_driver.py", line 740, in execute_workflow
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource wf_params={})
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource File "/usr/local/lib/python3.6/dist-packages/mistralclient/api/v2/executions.py", line 35, in create
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource workflow_identifier=wf_identifier or source_execution_id
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource File "/usr/local/lib/python3.6/dist-packages/mistralclient/api/base.py", line 130, in _ensure_not_empty
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource (self.resource_class.__name__, name)
2021-06-24 09:38:17.241 TRACE tacker.api.v1.resource mistralclient.api.base.APIException: Execution is missing field "workflow_identifier"

Revision history for this message
Yasufumi Ogawa (yasufum) said :
#8

Thank you for sharing. I'd like to continue fixing the issue on bug report from you and yoshito.
https://bugs.launchpad.net/bugs/1929174
https://bugs.launchpad.net/tacker/+bug/1892144

Can you help with this problem?

Provide an answer of your own, or ask farooq for more information if necessary.

To post a message you must log in.