functional tests intermittently fails with "ReadOnlyFieldError: Cannot modify readonly field uuid"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned | ||
Rocky |
Fix Released
|
Medium
|
Elod Illes | ||
Stein |
Fix Released
|
Medium
|
Elod Illes |
Bug Description
On stable/stain and stable/rocky multiple functional tests fails randomly with the following stack trace[1]:
Traceback (most recent call last):
File "nova/compute/
with self.rt.
File "/home/
return f(*args, **kwargs)
File "nova/compute/
self.
File "nova/compute/
self.
File "/home/
self.
File "/home/
six.
File "nova/compute/
compute_
File "/home/
return fn(self, *args, **kwargs)
File "nova/objects/
self.
File "nova/objects/
setattr(
File "/home/
raise exception.
ReadOnlyFieldError: Cannot modify readonly field uuid
logstash signature:
http://
I suspect that the problem is twofold. First we have a functional test change[1] in train and master that was not backported to older branches. This change removes a global state hack from the fake virt driver. Second we most probably backported tests from master (and train) to stain and rocky that does not properly set up the global state as on master it is not need, but it is needed on stain and back.
At the moment I didn't find what is the offending backport. But from the failed test log I see that a test case starts up a compute service on host1[2] and then later the nova code tries to access a compute service on host2 [3] that was never started.
[1] https:/ /review. opendev. org/#/c/ 656709/ /zuul.opendev. org/t/openstack /build/ 23411923cde347e fb03906d0537237 bf/log/ job-output. txt#3137 /zuul.opendev. org/t/openstack /build/ 23411923cde347e fb03906d0537237 bf/log/ job-output. txt#3203
[2] https:/
[3] https:/