Ask Your Question
1

Creating instance from devstack state goes from "spawning" to "error"

asked 2014-05-19 20:31:41 -0500

gavingo15 gravatar image

updated 2014-06-09 16:58:40 -0500

smaffulli gravatar image

As title, when I create instance from horizon "launch" button the instance state begin with "spawning" then becomes "error". I didn't use neutron (I use nova-network). This error seems that while executing sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-restore -c the system waits for the result then times out. In my host, I tried executing sudo iptables-restore -c and it seems to be waiting for something.(I don't know what is it). So I guess the reason of error is because waiting for this command then time out.

Any suggestion or help will be appreciated. Thanks!

The following is the error message:

Remote error: ProcessExecutionError Unexpected error while running command. Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-restore -c Exit code: 1 Stdout: '' Stderr: 'iptables-restore: line 40 failed\n' [u'Traceback (most recent call last):\
Code
500
Details
File "/opt/stack/nova/nova/compute/manager.py", line 290, in decorated_function return function(self, context, *args, **kwargs) File "/opt/stack/nova/nova/compute/manager.py", line 2108, in run_instance do_run_instance() File "/opt/stack/nova/nova/openstack/common/lockutils.py", line 249, in inner return f(*args, **kwargs) File "/opt/stack/nova/nova/compute/manager.py", line 2107, in do_run_instance legacy_bdm_in_spec) File "/opt/stack/nova/nova/compute/manager.py", line 1240, in _run_instance notify("error", fault=e) # notify that build failed File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/opt/stack/nova/nova/compute/manager.py", line 1224, in _run_instance instance, image_meta, legacy_bdm_in_spec) File "/opt/stack/nova/nova/compute/manager.py", line 1388, in _build_instance filter_properties, bdms, legacy_bdm_in_spec) File "/opt/stack/nova/nova/compute/manager.py", line 1434, in _reschedule_or_error self._log_original_error(exc_info, instance_uuid) File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/opt/stack/nova/nova/compute/manager.py", line 1429, in _reschedule_or_error bdms, requested_networks) File "/opt/stack/nova/nova/compute/manager.py", line 2160, in _shutdown_instance self._try_deallocate_network(context, instance, requested_networks) File "/opt/stack/nova/nova/compute/manager.py", line 2119, in _try_deallocate_network self._set_instance_error_state(context, instance['uuid']) File "/opt/stack/nova/nova/openstack/common/excutils.py", line 82, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/opt/stack/nova/nova/compute/manager.py", line 2114, in _try_deallocate_network self._deallocate_network(context, instance, requested_networks) File "/opt/stack/nova/nova/compute/manager.py", line 1808, in _deallocate_network context, instance, requested_networks=requested_networks) File "/opt/stack/nova/nova/network/api.py", line 43, in wrapped return func(self, context, *args, **kwargs) File "/opt/stack/nova/nova/network/api.py", line 266, in deallocate_for_instance requested_networks=requested_networks) File "/opt/stack/nova/nova/network/rpcapi.py", line 190, in deallocate_for_instance return cctxt.call(ctxt, 'deallocate_for_instance', **kwargs) File "/opt/stack/oslo.messaging/oslo/messaging/rpc/client.py", line 361, in call return self.prepare().call(ctxt, method, **kwargs) File "/opt/stack/oslo.messaging/oslo/messaging/rpc/client.py", line 150, in call wait_for_reply=True, timeout=timeout ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-05-19 23:08:50 -0500

SGPJ gravatar image

Can you try to launch from CLI using nova boot cmd and also check all nova services are running along with neutron.

edit flag offensive delete link more

Comments

Thanks for your response. I use nova-net instead of neutron. Does it affect the execution result?

gavingo15 gravatar imagegavingo15 ( 2014-05-21 05:34:43 -0500 )edit
0

answered 2016-01-26 03:38:29 -0500

Bertrand gravatar image

how did you fixed this case? I am suffering with it now, any suggestions?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-05-19 20:31:41 -0500

Seen: 632 times

Last updated: Jan 26 '16