Mgmt Reboot Should Not Be Rejected If In CRASHED State or Nova in SHUTDOWN State
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
Medium
|
Ramashri Umale |
Bug Description
If the DB status is CRASHED, a MGMT Reboot should work; however, it does not at the moment.
It's clear that the intent is that it should, from:
@property
def action_
]
return self._code in allowed_statuses
but, unfortunately,
def reboot(self):
try:
reboot as it's first step calls stop_db(), which:
def stop_db(self, update_db=False, do_not_
if do_not_
try:
except KeyError:
raise RuntimeError(
if not self.status.
raise RuntimeError("Could not stop MySQL!")
will raise a RuntimeError of "Could not stop MySQL!" because the status remains CRASHED vs. SHUTDOWN, causing the reboot operation to immediately bail out before rebooting the instance.
There are a couple of ways to fix this, some better than others.
---
Update 09/30: found another variation of this that should be fixed at the same time.
it's possible that mgmt-show shows:
| guest_status | running |
| id | 833914a8-
| ip | 10.64.212.69 |
| service_status | ACTIVE |
| status | ACTIVE |
but the nova instance according to nova shows as:
OS-EXT-
OS-EXT-
OS-EXT-STS:vm_state = stopped
status = SHUTOFF
when executing a mgmt-reboot,
$ supernova lvs-admin mgmt-reboot 833914a8-
[SUPERNOVA] Running trove against lvs-admin...
ERROR: Instance 833914a8-
this is problematic because it requires a "nova reboot" and then a "trove mgmt-reboot" to correctly re-attach the volume and start the database.
Changed in trove: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in trove: | |
assignee: | nobody → Nikhil Manchanda (slicknik) |
milestone: | none → kilo-1 |
Changed in trove: | |
milestone: | kilo-1 → juno-rc1 |
Changed in trove: | |
milestone: | juno-rc1 → kilo-1 |
assignee: | Nikhil Manchanda (slicknik) → nobody |
summary: |
- Mgmt Reboot Should Not Be Rejected If In CRASHED State + Mgmt Reboot Should Not Be Rejected If In CRASHED State or Nova in + SHUTDOWN State |
description: | updated |
Changed in trove: | |
assignee: | nobody → Ramashri Umale (ramashri) |
Changed in trove: | |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | kilo-1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/125849
Review: https:/