Reboot operation fails if force_disk_config is switched to True after spawning
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | OpenStack Compute (nova) |
Medium
|
yuanyue | ||
Bug Description
A hard reboot operation fails if force_disk_config is switch to True after spawning the instance without a config drive.
This was found using the libvirt driver, I'm not sure if it affects other drivers.
Steps to recreate would be:
1. Spawn an instance without a config drive
2. Change force_config_drive to True in your nova.conf
3. Restart nova-compute
4. Attempt to reboot the instance
An error similar to the following message will be displayed in the nova compute logs:
2013-10-18 15:26:42.268 ERROR nova.compute.
| tags: | added: compute |
| tags: | added: libvirt |
| description: | updated |
| Changed in nova: | |
| assignee: | nobody → ugvddm (271025598-9) |
| Changed in nova: | |
| assignee: | ugvddm (271025598-9) → nobody |
| Changed in nova: | |
| importance: | Undecided → Medium |
| status: | New → Confirmed |
| Michael Still (mikal) wrote : | #1 |
| Changed in nova: | |
| status: | Confirmed → Triaged |
| assignee: | nobody → Michael Still (mikalstill) |
| Changed in nova: | |
| status: | Triaged → In Progress |
| Sean Dague (sdague) wrote : | #2 |
No indication that this is still in progress.
| Changed in nova: | |
| status: | In Progress → Confirmed |
| assignee: | Michael Still (mikalstill) → nobody |
| Changed in nova: | |
| assignee: | nobody → Michael Still (mikalstill) |
| status: | Confirmed → In Progress |
Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https:/
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.
| Davanum Srinivas (DIMS) (dims-v) wrote : | #4 |
Removing "In Progress" status and assignee as change is abandoned.
| Changed in nova: | |
| assignee: | Michael Still (mikalstill) → nobody |
| status: | In Progress → Confirmed |
| Changed in nova: | |
| assignee: | nobody → Zhenzan Zhou (zhenzan-zhou) |
| Changed in nova: | |
| assignee: | Zhenzan Zhou (zhenzan-zhou) → Stephen Finucane (sfinucan) |
| status: | Confirmed → In Progress |
| Changed in nova: | |
| assignee: | Stephen Finucane (sfinucan) → nobody |
| status: | In Progress → Confirmed |
| Changed in nova: | |
| assignee: | nobody → Stephen Finucane (sfinucan) |
| Changed in nova: | |
| status: | Confirmed → In Progress |
| Matt Riedemann (mriedem) wrote : | #5 |
Stephen, are you working on this? It's been in progress for a few months now and doesn't have a patch up so I'm going to remove the assignee in case someone else wants to work on this.
| Changed in nova: | |
| assignee: | Stephen Finucane (sfinucan) → nobody |
| status: | In Progress → Confirmed |
This is an automated cleanup. This bug report has been closed because it
is older than 18 months and there is no open code change to fix this.
After this time it is unlikely that the circumstances which lead to
the observed issue can be reproduced.
If you can reproduce the bug, please:
* reopen the bug report (set to status "New")
* AND add the detailed steps to reproduce the issue (if applicable)
* AND leave a comment "CONFIRMED FOR: <RELEASE_NAME>"
Only still supported release names are valid (LIBERTY, MITAKA, OCATA, NEWTON).
Valid example: CONFIRMED FOR: LIBERTY
| Changed in nova: | |
| importance: | Medium → Undecided |
| status: | Confirmed → Expired |
Change abandoned by Matt Riedemann (<email address hidden>) on branch: master
Review: https:/
| Changed in nova: | |
| status: | Expired → Incomplete |
| status: | Incomplete → In Progress |
| importance: | Undecided → High |
| assignee: | nobody → Timofey Durakov (tdurakov) |
| melanie witt (melwitt) wrote : | #8 |
This bug has been open for a long time and I haven't yet seen consensus on whether or not it's a bug. That is, some have stated that the force_config_drive setting is only to be considered when an instance is first booted and subsequent reboots will refer to the existing config drive, if one exists. So at best I think this is Medium importance unless something changes.
| Changed in nova: | |
| importance: | High → Medium |
| Changed in nova: | |
| assignee: | Timofey Durakov (tdurakov) → Stephen Finucane (stephenfinucane) |
| Sean Dague (sdague) wrote : | #9 |
There are no currently open reviews on this bug, changing
the status back to the previous state and unassigning. If
there are active reviews related to this bug, please include
links in comments.
| Changed in nova: | |
| status: | In Progress → Incomplete |
| assignee: | Stephen Finucane (stephenfinucane) → nobody |
| Sean Dague (sdague) wrote : | #10 |
Found open reviews for this bug in gerrit, setting to In Progress.
review: https:/
| Changed in nova: | |
| status: | Incomplete → In Progress |
| assignee: | nobody → Stephen Finucane (stephenfinucane) |
Fix proposed to branch: master
Review: https:/
| Changed in nova: | |
| assignee: | Stephen Finucane (stephenfinucane) → yuanyue (yyuanyuee) |
Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https:/
Reason: This review is > 4 weeks without comment, and is not mergable in it's current state. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.
| Changed in nova: | |
| assignee: | yuanyue (yyuanyuee) → Chris Dent (cdent) |
| Matthew Booth (mbooth-9) wrote : | #13 |
I believe this is a bug. We have the context of how the instance was created in instance.
| Changed in nova: | |
| assignee: | Chris Dent (cdent) → yuanyue (yyuanyuee) |


This is a special case of bug 1303714 I think. The only time we should care about the value of force_config_drive is on first boot of the instance. A hard reboot should just give you what you already had, even if the value of this flag has changed in the mean time.