IntegrityError: NOT NULL constraint failed: tags.resource_id during instance_tag_set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Sergey Nikitin |
Bug Description
Steps to reproduce:
1. create instance
2. set ['tag1', 'tag2'] to the instance
3. set ['tag1'] to the instance
Expected result:
tags were added.
Actual result:
2015-08-18 16:26:36,601 ERROR [oslo_db.
Traceback (most recent call last):
File "/opt/stack/
context)
File "/opt/stack/
IntegrityError: NOT NULL constraint failed: tags.resource_id
It happens because list 'to_add' in method 'instance_tag_set' is empty in second case. It's empty because on step 3 must delete one tag and create zero tags. So to fix bug we must check list to_add.
Changed in nova: | |
milestone: | none → liberty-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-3 → 12.0.0 |
Fix proposed to branch: master /review. openstack. org/214189
Review: https:/