Failed to create Instance

asked 2014-04-28 12:01:46 -0500

TD-Roy gravatar image

updated 2014-04-29 00:26:16 -0500

Anand TS gravatar image

Finally have all components working, including the Dashboard. So I have two scenarios:

1.) Log in to dashboard and attempt to provision instance: Error. nova show "instance ID" ->

 nova show test
+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property                             | Value                                                                                                                                                                                                 |
+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig                    | AUTO                                                                                                                                                                                                  |
| OS-EXT-AZ:availability_zone          | nova                                                                                                                                                                                                  |
| OS-EXT-SRV-ATTR:host                 | compute                                                                                                                                                                                               |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | compute                                                                                                                                                                                               |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000003                                                                                                                                                                                     |
| OS-EXT-STS:power_state               | 0                                                                                                                                                                                                     |
| OS-EXT-STS:task_state                | deleting                                                                                                                                                                                              |
| OS-EXT-STS:vm_state                  | error                                                                                                                                                                                                 |
| OS-SRV-USG:launched_at               | -                                                                                                                                                                                                     |
| OS-SRV-USG:terminated_at             | -                                                                                                                                                                                                     |
| accessIPv4                           |                                                                                                                                                                                                       |
| accessIPv6                           |                                                                                                                                                                                                       |
| config_drive                         |                                                                                                                                                                                                       |
| created                              | 2014-04-28T15:21:56Z                                                                                                                                                                                  |
| fault                                | {"message": "Connection to neutron failed: Maximum attempts reached", "code": 500, "details": "  File \"/usr/lib64/python2.6/site-packages/nova/compute/manager.py\", line 296, in decorated_function |
|                                      |     return function(self, context, *args, **kwargs)                                                                                                                                                   |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/compute/manager.py\", line 2262, in terminate_instance                                                                                               |
|                                      |     do_terminate_instance(instance, bdms)                                                                                                                                                             |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/openstack/common/lockutils.py\", line 249, in inner                                                                                                  |
|                                      |     return f(*args, **kwargs)                                                                                                                                                                         |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/compute/manager.py\", line 2260, in do_terminate_instance                                                                                            |
|                                      |     self._set_instance_error_state(context, instance['uuid'])                                                                                                                                         |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/openstack/common/excutils.py\", line 68, in __exit__                                                                                                 |
|                                      |     six.reraise(self.type_, self.value, self.tb)                                                                                                                                                      |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/compute/manager.py\", line 2250, in do_terminate_instance                                                                                            |
|                                      |     reservations=reservations)                                                                                                                                                                        |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/hooks.py\", line 103, in inner                                                                                                                       |
|                                      |     rv = f(*args, **kwargs)                                                                                                                                                                           |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/compute/manager.py\", line 2220, in _delete_instance                                                                                                 |
|                                      |     user_id=user_id)                                                                                                                                                                                  |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/openstack/common/excutils.py\", line 68, in __exit__                                                                                                 |
|                                      |     six.reraise(self.type_, self.value, self.tb)                                                                                                                                                      |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/compute/manager.py\", line 2190, in _delete_instance                                                                                                 |
|                                      |     self._shutdown_instance(context, db_inst, bdms)                                                                                                                                                   |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/compute/manager.py\", line 2101, in _shutdown_instance                                                                                               |
|                                      |     network_info = self._get_instance_nw_info(context, instance)                                                                                                                                      |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/compute/manager.py\", line 1118, in _get_instance_nw_info                                                                                            |
|                                      |     instance)                                                                                                                                                                                         |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/network/api.py\", line 48, in wrapper                                                                                                                |
|                                      |     res = f(self, context, *args, **kwargs)                                                                                                                                                           |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/network/neutronv2/api.py\", line 473, in get_instance_nw_info                                                                                        |
|                                      |     port_ids)                                                                                                                                                                                         |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/network/neutronv2/api.py\", line 482, in _get_instance_nw_info                                                                                       |
|                                      |     port_ids)                                                                                                                                                                                         |
|                                      |   File \"/usr/lib64/python2.6/site-packages/nova/network/neutronv2/api.py\", line 1113, in _build_network_info_model                                                                                  |
|                                      |     data = client.list_ports(**search_opts)                                                                                                                                                           |
|                                      |   File \"/usr/lib64/python2.6/site-packages/neutronclient/v2_0/client.py\", line 111, in with_params                                                                                                  |
|                                      |     ret = self.function(instance, *args, **kwargs)                                                                                                                                                    |
|                                      |   File \"/usr/lib64/python2.6/site-packages/neutronclient/v2_0/client.py\", line 306, in list_ports                                                                                                   |
|                                      |     **_params)                                                                                                                                                                                        |
|                                      |   File \"/usr/lib64/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1250, in list                                                                                                        |
|                                      |     for r in self._pagination(collection, path, **params):                                                                                                                                            |
|                                      |   File \"/usr/lib64/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1263, in _pagination                                                                                                 |
|                                      |     res = self.get(path, params=params)                                                                                                                                                               |
|                                      |   File \"/usr/lib64/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1236, in get                                                                                                         |
|                                      |     headers=headers, params=params)                                                                                                                                                                   |
|                                      |   File \"/usr/lib64/python2.6/site-packages/neutronclient/v2_0/client.py\", line 1228, in retry_request                                                                                               |
|                                      |     raise exceptions.ConnectionFailed(reason=_(\"Maximum attempts reached\"))                                                                                                                         |
|                                      | ", "created": "2014-04-28T15:33:07Z"}                                                                                                                                                                 |
| flavor                               | m1.tiny (1)                                                                                                                                                                                           |
| hostId ...
(more)
edit retag flag offensive close merge delete

Comments

Are you sure that you are not using neutron networking? I found this from your nova show "message": "Connection to neutron failed: Maximum attempts reached", "code": 500, "created": "2014-04-26T00:11:43Z" . Check your setup once again.

Anand TS gravatar imageAnand TS ( 2014-04-29 00:29:14 -0500 )edit

Please, run
$ neutron agent-list

dbaxps gravatar imagedbaxps ( 2014-04-29 00:47:44 -0500 )edit

@both: I see neutron directories, however there are no contents in those directories. I did not directly install neutron so maybe a config option I chose put it there?

neutron agent-list: (on Controller) Could not find Service or Region in Service Catalog.

I checked my installation writeup and I installed using legacy nova-network. There are no commands that I ran to include neutron as part of this.

TD-Roy gravatar imageTD-Roy ( 2014-04-29 10:06:44 -0500 )edit

Any help with this would be great. Still investigating the issue

TD-Roy gravatar imageTD-Roy ( 2014-05-01 10:02:38 -0500 )edit