Launch an instance on the provider network in openstackinstallguide

Bug #1769198 reported by AYMAN EL KHATTABI
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Expired
Undecided
Unassigned

Bug Description

I'm following the Installation guide on a CentOS 7.

everthing worked like a charm until i run the following command :

[root@controller ~]# openstack server list
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.TypeError'> (HTTP 500) (Request-ID: req-2baf0a94-b6cf-4868-8170-e52e5b2ae3f2)

the last command that worked was :
[root@controller ~]# openstack server create --flavor m1.nano --image 764249e3-5396-4c5d-ad46-2329ec7ab80d --nic net-id=944e66da-fd67-4931-a38f-31d0e8bb7e02 --security-group default --key-name mykey provider-instance
+-----------------------------+-----------------------------------------------+
| Field | Value |
+-----------------------------+-----------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | |
| OS-EXT-STS:power_state | NOSTATE |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | None |
| OS-SRV-USG:terminated_at | None |
| accessIPv4 | |
| accessIPv6 | |
| addresses | |
| adminPass | PLwCYmN8cyy4 |
| config_drive | |
| created | 2018-05-04T14:43:24Z |
| flavor | m1.nano (0) |
| hostId | |
| id | f71e2dd3-c2c0-4351-a39b-2e65491ce40d |
| image | cirros (764249e3-5396-4c5d-ad46-2329ec7ab80d) |
| key_name | mykey |
| name | provider-instance |
| progress | 0 |
| project_id | 74120c4658b7417f9c5096a72a4587a0 |
| properties | |
| security_groups | name='147cdd15-40af-4193-af3e-860c442376d1' |
| status | BUILD |
| updated | 2018-05-04T14:44:24Z |
| user_id | 5bf80f7b4a5340faba2263b436afa5b3 |
| volumes_attached | |
+-----------------------------+-----------------------------------------------+

log file :

[root@controller ~]# tail -f /var/log/nova/nova-api.log
2018-05-04 15:55:32.136 29333 ERROR nova.api.openstack.wsgi for db_inst in db_inst_list:
2018-05-04 15:55:32.136 29333 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/multi_cell_list.py", line 259, in get_records_sorted
2018-05-04 15:55:32.136 29333 ERROR nova.api.openstack.wsgi for i in heapq.merge(*results.values()):
2018-05-04 15:55:32.136 29333 ERROR nova.api.openstack.wsgi File "/usr/lib64/python2.7/heapq.py", line 372, in merge
2018-05-04 15:55:32.136 29333 ERROR nova.api.openstack.wsgi for itnum, it in enumerate(map(iter, iterables)):
2018-05-04 15:55:32.136 29333 ERROR nova.api.openstack.wsgi TypeError: 'object' object is not iterable
2018-05-04 15:55:32.136 29333 ERROR nova.api.openstack.wsgi
2018-05-04 15:55:32.138 29333 INFO nova.api.openstack.wsgi [req-2baf0a94-b6cf-4868-8170-e52e5b2ae3f2 5bf80f7b4a5340faba2263b436afa5b3 74120c4658b7417f9c5096a72a4587a0 - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.TypeError'>
2018-05-04 15:55:32.140 29333 INFO nova.osapi_compute.wsgi.server [req-2baf0a94-b6cf-4868-8170-e52e5b2ae3f2 5bf80f7b4a5340faba2263b436afa5b3 74120c4658b7417f9c5096a72a4587a0 - default default] 135.183.173.132 "GET /v2.1/servers/detail HTTP/1.1" status: 500 len: 626 time: 120.3783960

2018-05-04 16:07:58.121 29331 WARNING nova.context [req-01447f7f-6a57-4c4a-8317-c402c9cf651d 5bf80f7b4a5340faba2263b436afa5b3 74120c4658b7417f9c5096a72a4587a0 - default default] Timed out waiting for response from cell 00000000-0000-0000-0000-000000000000: CellTimeout: Timeout waiting for response from cell
2018-05-04 16:07:58.123 29331 WARNING nova.context [req-01447f7f-6a57-4c4a-8317-c402c9cf651d 5bf80f7b4a5340faba2263b436afa5b3 74120c4658b7417f9c5096a72a4587a0 - default default] Timed out waiting for response from cell 8634ffed-1875-449e-acaa-81eda334275b: CellTimeout: Timeout waiting for response from cell
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi [req-01447f7f-6a57-4c4a-8317-c402c9cf651d 5bf80f7b4a5340faba2263b436afa5b3 74120c4658b7417f9c5096a72a4587a0 - default default] Unexpected exception in API method: TypeError: 'object' object is not iterable
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi Traceback (most recent call last):
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 788, in wrapped
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi return f(*args, **kwargs)
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 181, in wrapper
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 181, in wrapper
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi return func(*args, **kwargs)
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 165, in detail
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi servers = self._get_servers(req, is_detail=True)
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 308, in _get_servers
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi sort_keys=sort_keys, sort_dirs=sort_dirs)
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 2462, in get_all
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi context, filters, limit, marker, fields, sort_keys, sort_dirs)
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/instance_list.py", line 107, in get_instance_objects_sorted
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi expected_attrs)
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/objects/instance.py", line 1199, in _make_instance_list
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi for db_inst in db_inst_list:
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi File "/usr/lib/python2.7/site-packages/nova/compute/multi_cell_list.py", line 259, in get_records_sorted
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi for i in heapq.merge(*results.values()):
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi File "/usr/lib64/python2.7/heapq.py", line 372, in merge
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi for itnum, it in enumerate(map(iter, iterables)):
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi TypeError: 'object' object is not iterable
2018-05-04 16:07:58.124 29331 ERROR nova.api.openstack.wsgi
2018-05-04 16:07:58.129 29331 INFO nova.api.openstack.wsgi [req-01447f7f-6a57-4c4a-8317-c402c9cf651d 5bf80f7b4a5340faba2263b436afa5b3 74120c4658b7417f9c5096a72a4587a0 - default default] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.TypeError'>
2018-05-04 16:07:58.132 29331 INFO nova.osapi_compute.wsgi.server [req-01447f7f-6a57-4c4a-8317-c402c9cf651d 5bf80f7b4a5340faba2263b436afa5b3 74120c4658b7417f9c5096a72a4587a0 - default default] 135.183.173.132 "GET /v2.1/servers/detail HTTP/1.1" status: 500 len: 626 time: 181.4543090

if anyone have or had this problem and can propose a fix i would appreciate it, thanks in advance.
Note: i could provide anything if needed

Revision history for this message
Petr Kovar (pmkovar) wrote :

Can you try again running the commands as a normal user, per the install guide?

E.g. https://docs.openstack.org/install-guide/launch-instance-provider.html

Changed in openstack-manuals:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openstack-manuals because there has been no activity for 60 days.]

Changed in openstack-manuals:
status: Incomplete → Expired
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.