TypeError: Can't upgrade a READER transaction to a WRITER mid-transaction
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
melanie witt | ||
Pike |
Fix Committed
|
High
|
melanie witt | ||
Queens |
Fix Committed
|
Medium
|
melanie witt |
Bug Description
Hi, I was running OPenstack Newton with no nova_cell0 database and placement-api setup . After migrate to Openstack Pike and correctly setup the nova_cell0 and placement-api everything is working fine except the openstack server list on tenant that already exist .
For example :
1. For a new tenant created after the migration at Pike.
nova --os-project-
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| c41c7e8d-
| 3d3d3e10-
+------
2. For a old tenant created before the migration at Newton .
nova --os-project-
ERROR (ClientException): Unexpected API Error. Please report this at http://
<type 'exceptions.
And here the log related to this error .
2018-01-31 07:45:35.832 2340 DEBUG nova.compute.api [req-254ac685-
2018-01-31 07:45:35.837 2340 DEBUG oslo_concurrenc
2018-01-31 07:45:35.837 2340 DEBUG oslo_concurrenc
2018-01-31 07:45:35.858 2340 DEBUG nova.compute.api [req-254ac685-
2018-01-31 07:45:35.858 2340 DEBUG nova.compute.api [req-254ac685-
2018-01-31 07:45:35.859 2340 DEBUG oslo_concurrenc
2018-01-31 07:45:35.859 2340 DEBUG oslo_concurrenc
2018-01-31 07:45:35.934 2340 DEBUG nova.objects.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.937 2340 ERROR nova.api.
2018-01-31 07:45:35.938 2340 INFO nova.api.
<type 'exceptions.
2018-01-31 07:45:35.938 2340 DEBUG nova.api.
<type 'exceptions.
2018-01-31 07:45:35.939 2340 INFO nova.osapi_
but at same tenant I can show a instance information .
nova --os-project-
+------
| Property | Value |
+------
| INTERNAL-NETWORK network | 192.168.120.14 |
| OS-DCF:diskConfig | AUTO |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2017-10-
| description | zabbix-intercon |
| flavor:disk | 40 |
| flavor:ephemeral | 0 |
| flavor:extra_specs | {} |
| flavor:
| flavor:ram | 4096 |
| flavor:swap | 0 |
| flavor:vcpus | 2 |
| hostId | 723f077d53d4182
| id | 5249185f-
| image | Centos-7 (d3f18d34-
| key_name | saulo-fcm360_id_rsa |
| locked | False |
| metadata | {} |
| name | zabbix-intercon |
| os-extended-
| progress | 0 |
| security_groups | Zabbix Access, default |
| status | ACTIVE |
| tags | [] |
| tenant_id | e082484fc4004da
| updated | 2018-01-
| user_id | ff9a3af4473c480
+------
Ant help ?
Saulo Augusto Silva
sauloaugustosilva at gmail.com
This was fixed in queens and backported to stable/pike, but we'd need to also backport https:/ /review. openstack. org/#/c/ 512456/ to stable/ocata (newton is end of life upstream).