Ask Your Question
0

unable retrieve instance list after upgrade from newton to pike .

asked 2018-01-29 11:03:39 -0600

sauloaugustosilva gravatar image

Hi,

I have perform a migration from mitaka to newton without implement nova cells and that worked fine . Now I tried to perform the migration from newton to pike and I got this strange error on nova-api.log

That error only occurs when I run the instance list from any tenant except admin .

openstack server list 
+--------------------------------------+------+--------+-------------------------------+------------+-------------+
| ID                                   | Name | Status | Networks                      | Image      | Flavor      |
+--------------------------------------+------+--------+-------------------------------+------------+-------------+
| 6a60dc73-6c93-4c8e-b06e-472c0aa9bedd | 03   | ACTIVE | NET-10.10.12.0-22=10.10.15.0  | Centos-7   | C1.M4.HDD20 |
| 6bff0a14-8633-4c72-890f-c420051e704e | 04   | ACTIVE | NET-10.10.12.0-22=10.10.15.12 | Centos-7   | C1.M4.HDD20 |
| 17c8a11a-7498-433a-8501-ae95d66f2922 | 01   | ERROR  |                               | Debian - 8 | m1.large    |
+--------------------------------------+------+--------+-------------------------------+------------+-------------+

openstack server list  --all-projects
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-32428f8a-7d0e-47bb-b765-5865a0f01d68)

the /var/log/nova/nova-api.log is :

2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 336, in wrapped
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 181, in wrapper
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 181, in wrapper
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 168, in detail
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions     servers = self._get_servers(req, is_detail=True)
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 311, in _get_servers
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions     sort_keys=sort_keys, sort_dirs=sort_dirs)
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 2415, in get_all
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions     sort_dirs=sort_dirs)
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 2512, in _get_instances_by_filters_all_cells
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions     **kwargs)
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 2543, in _get_instances_by_filters
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions     expected_attrs=fields, sort_keys=sort_keys, sort_dirs=sort_dirs)
2018-01-29 11:46:32.494 19540 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line ...
(more)
edit retag flag offensive close merge delete

Comments

More about it . The unique command that is not working is openstack server list for any tenant except admin . All other commands like nova reboot is working fine .

sauloaugustosilva gravatar imagesauloaugustosilva ( 2018-01-29 14:58:36 -0600 )edit

More about it . Only the old instance and project are showing up problem , so that is a migration resources problem . After create a new project new instances created at this specific tenant are list correctly .

sauloaugustosilva gravatar imagesauloaugustosilva ( 2018-01-29 16:26:53 -0600 )edit

hi @sauloaugustosilva, can you please let know the complete procedure you followed on upgrading your Openstack setup.

TijoV gravatar imageTijoV ( 2018-02-08 23:49:44 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-02-08 20:22:47 -0600

sauloaugustosilva gravatar image

Problem solved : at nova.services table there was some old services that was not correctly updated to Pike . It is possible identify using :

echo "select * from services where version != 22" | mysql nova

after identify the service run

echo "delete from services where version=<version number>  | mysql nova

do that for all version that is not version 22 .

Problem solved

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

Stats

Asked: 2018-01-29 11:03:39 -0600

Seen: 26 times

Last updated: Feb 08