Create stack error message in case of non existing nova network is not detailed enough

Bug #1278971 reported by Moshe Elisha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Triaged
Low
Rohit Agarwalla

Bug Description

Create a stack and specify a non existing network in one of the servers.

The error message available in the UI and API is:

 "NotFound: The resource could not be found. (HTTP 404) (Request-ID: req-f0f20332-68b2-44b6-9d82-c2ddf3384760)".

The information about the missing resource could be found at /var/log/nova/api.log:

2014-02-11 11:08:20.524 18720 ERROR nova.api.openstack [req-f0f20332-68b2-44b6-9d82-c2ddf3384760 6671dfe174d64296b9e2b63a35ef11ce 067c119d65b04366ae34fc92b3acf4b6] Caught error: Network a692270f-bb26-4479-8e19-cdcc4dba8a3d could not be found.
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack Traceback (most recent call last):
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/api/openstack/__init__.py", line 119, in __call__
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return req.get_response(self.application)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/request.py", line 1296, in send
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack application, catch_exc_info=False)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/request.py", line 1260, in call_application
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack app_iter = application(self.environ, start_response)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return resp(environ, start_response)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 571, in __call__
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return self.app(env, start_response)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return resp(environ, start_response)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return resp(environ, start_response)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/Routes-1.12.3-py2.6.egg/routes/middleware.py", line 131, in __call__
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack response = self.app(environ, start_response)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return resp(environ, start_response)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/dec.py", line 130, in __call__
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/dec.py", line 195, in call_func
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 917, in __call__
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack content_type, body, accept)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 976, in _process_stack
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 1057, in dispatch
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return method(req=request, **action_args)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/api/openstack/compute/servers.py", line 920, in create
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack legacy_bdm=legacy_bdm)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/hooks.py", line 105, in inner
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack rv = f(*args, **kwargs)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/compute/api.py", line 1220, in create
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack legacy_bdm=legacy_bdm)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/compute/api.py", line 861, in _create_instance
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack block_device_mapping, auto_disk_config, reservation_id)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/compute/api.py", line 675, in _validate_and_build_base_options
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack self._check_requested_networks(context, requested_networks)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/compute/api.py", line 439, in _check_requested_networks
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack self.network_api.validate_networks(context, requested_networks)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py", line 578, in validate_networks
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack raise exception.NetworkNotFound(network_id=id_str)
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack NetworkNotFound: Network a692270f-bb26-4479-8e19-cdcc4dba8a3d could not be found.
2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack
2014-02-11 11:08:20.533 18720 INFO nova.api.openstack [req-f0f20332-68b2-44b6-9d82-c2ddf3384760 6671dfe174d64296b9e2b63a35ef11ce 067c119d65b04366ae34fc92b3acf4b6] http://10.1.20.47:8774/v2/067c119d65b04366ae34fc92b3acf4b6/servers returned with HTTP 404
2014-02-11 11:08:20.534 18720 DEBUG nova.api.openstack.wsgi [req-f0f20332-68b2-44b6-9d82-c2ddf3384760 6671dfe174d64296b9e2b63a35ef11ce 067c119d65b04366ae34fc92b3acf4b6] Returning 404 to user: The resource could not be found. __call__ /usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py:1203
2014-02-11 11:08:20.534 18720 INFO nova.osapi_compute.wsgi.server [req-f0f20332-68b2-44b6-9d82-c2ddf3384760 6671dfe174d64296b9e2b63a35ef11ce 067c119d65b04366ae34fc92b3acf4b6] 10.1.20.47 "POST /v2/067c119d65b04366ae34fc92b3acf4b6/servers HTTP/1.1" status: 404 len: 272 time: 0.2265532

When dealing with complexed stacks the user will not be able to understand the cause using only the Heat APIs.
Please expose the message of the root error via the Heat API (stack_status_reason?).

Changed in heat:
status: New → Triaged
importance: Undecided → Low
summary: - Create stack error message in case of non existing network is not
+ Create stack error message in case of non existing nova network is not
detailed enough
Changed in heat:
assignee: nobody → Rohit Agarwalla (rohitagarwalla)
Revision history for this message
Rohit Agarwalla (rohitagarwalla) wrote :

It looks like you are using Neutron and not Nova-Network ?
Also, can you provide the stack template in which you are using the non-existing network resource ID.
I'd like to reproduce the error and see if there is a way to expose the reason through stack_status_reason.

Changed in heat:
status: Triaged → Incomplete
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/93205

Changed in heat:
status: Incomplete → In Progress
Revision history for this message
Steve Baker (steve-stevebaker) wrote :

what is the status of this? I can't see https://review.openstack.org/93205

Revision history for this message
Moshe Elisha (melisha) wrote : RE: [Bug 1278971] Re: Create stack error message in case of non existing nova network is not detailed enough
Download full text (7.9 KiB)

Hey,

It is still waiting code review.
Attached a screenshot of the current page.

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-----Original Message-----
From: Steve Baker [<email address hidden>]
Received: Thursday, 04 Dec 2014, 2:21
To: ELISHA, Moshe (Moshe) [<email address hidden>]
Subject: [Bug 1278971] Re: Create stack error message in case of non existing nova network is not detailed enough

what is the status of this? I can't see
https://review.openstack.org/93205

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1278971

Title:
  Create stack error message in case of non existing nova network is not
  detailed enough

Status in Orchestration API (Heat):
  In Progress

Bug description:
  Create a stack and specify a non existing network in one of the
  servers.

  The error message available in the UI and API is:

   "NotFound: The resource could not be found. (HTTP 404) (Request-ID:
  req-f0f20332-68b2-44b6-9d82-c2ddf3384760)".

  The information about the missing resource could be found at /var/log/nova/api.log:

  2014-02-11 11:08:20.524 18720 ERROR nova.api.openstack [req-f0f20332-68b2-44b6-9d82-c2ddf3384760 6671dfe174d64296b9e2b63a35ef11ce 067c119d65b04366ae34fc92b3acf4b6] Caught error: Network a692270f-bb26-4479-8e19-cdcc4dba8a3d could not be found.
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack Traceback (most recent call last):
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/api/openstack/__init__.py", line 119, in __call__
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return req.get_response(self.application)
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/request.py", line 1296, in send
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack application, catch_exc_info=False)
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/request.py", line 1260, in call_application
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack app_iter = application(self.environ, start_response)
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return resp(environ, start_response)
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 571, in __call__
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return self.app(env, start_response)
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return resp(environ, start_response)
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return resp(environ, start_response)
  2014-02-11 11:08:20.52...

Read more...

Revision history for this message
Steve Baker (steve-stevebaker) wrote :

I get an error when I attempt to view https://review.openstack.org/93205

Could you please rebase the change?, and maybe delete the Change-Id in the commit message so it creates a fresh review?

Revision history for this message
Moshe Elisha (melisha) wrote :
Download full text (8.0 KiB)

Trying to delete the change-id from the commit message I get an error "missing change-id in commit message footer"

Sent from my Android phone using TouchDown (www.nitrodesk.com)

-----Original Message-----
From: Steve Baker [<email address hidden>]
Received: Thursday, 04 Dec 2014, 23:06
To: ELISHA, Moshe (Moshe) [<email address hidden>]
Subject: [Bug 1278971] Re: Create stack error message in case of non existing nova network is not detailed enough

I get an error when I attempt to view https://review.openstack.org/93205

Could you please rebase the change?, and maybe delete the Change-Id in
the commit message so it creates a fresh review?

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1278971

Title:
  Create stack error message in case of non existing nova network is not
  detailed enough

Status in Orchestration API (Heat):
  In Progress

Bug description:
  Create a stack and specify a non existing network in one of the
  servers.

  The error message available in the UI and API is:

   "NotFound: The resource could not be found. (HTTP 404) (Request-ID:
  req-f0f20332-68b2-44b6-9d82-c2ddf3384760)".

  The information about the missing resource could be found at /var/log/nova/api.log:

  2014-02-11 11:08:20.524 18720 ERROR nova.api.openstack [req-f0f20332-68b2-44b6-9d82-c2ddf3384760 6671dfe174d64296b9e2b63a35ef11ce 067c119d65b04366ae34fc92b3acf4b6] Caught error: Network a692270f-bb26-4479-8e19-cdcc4dba8a3d could not be found.
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack Traceback (most recent call last):
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova/api/openstack/__init__.py", line 119, in __call__
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return req.get_response(self.application)
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/request.py", line 1296, in send
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack application, catch_exc_info=False)
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/request.py", line 1260, in call_application
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack app_iter = application(self.environ, start_response)
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return resp(environ, start_response)
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 571, in __call__
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return self.app(env, start_response)
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack return resp(environ, start_response)
  2014-02-11 11:08:20.524 18720 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/webob/...

Read more...

Changed in heat:
status: In Progress → Triaged
Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
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.