Instance stuck on building status if user has many roles
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| OpenStack Compute (nova) |
In Progress
|
Undecided
|
Masahito Muroi | ||
Bug Description
Description:
Instance boot operation is stuck in BUILDING status if user has some roles which total name length is over 255 chars.
Details:
The nova-compute manager tries to store all roles list of the request context in InstanceSystemM
1. https:/
2. https:/
Step to reproduce:
Create some roles which name length is over 255 characters.
In this sample, use three 100 characters roles.
$ openstack role create aaaaaa...<omit 90 a chars>..aaaa
$ openstack role create bbbbbb...<omit 90 b chars>..bbbb
$ openstack role create cccccc...<omit 90 b chars>..cccc
$ openstack role add --project admin --user admin <aaaa role id>
$ openstack role add --project admin --user admin <bbbb role id>
$ openstack role add --project admin --user admin <cccc role id>
$ openstack server create --image <image-id> --nic net-id=<net-id> --flavor <flavor-id> stuck-vm
The server, stuck-vm, gets stuck in status is "BUILD" and vm_state is "building" status.
Error log by nova-compute:
DBDataError (pymysql.
[SQL: INSERT INTO instance_
[parameters: {'created_at': datetime.
(Background on this error at: https:/
Environment:
Caracal release (2024.1) and master branch
| Changed in nova: | |
| assignee: | nobody → Masahito Muroi (muroi-masahito) |

Fix proposed to branch: master /review. opendev. org/c/openstack /nova/+ /925163
Review: https:/