prepare method preserves data from always from CONF.mount_point
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Invalid
|
Undecided
|
Sushil Kumar |
Bug Description
prepare method preserves data always from CONF.mount_point, which is not a valid case.
Referring to the code at
https:/
1. The data would always exist on /var/lib/mysql ir-respective of value of CONF.mount_point, because that is the location where mysql puts its data when installed.
2. We should be preserving /var/lib/mysql instead of CONF.mount_point.
3. Currently, CONF.mount_point has the value "/var/lib/mysql" but if some one needs a changes in CONF.mount_point, then prepare would not backup the data directories, in fact that may backup nothing because CONF.mount_point might not be an existing location.
4. Going forward, there are two ways to use this value /var/lib/mysql in the code, either like https:/
Changed in trove: | |
assignee: | nobody → Sushil Kumar (sushil-kumar2) |
Changed in trove: | |
status: | Incomplete → In Progress |
Changed in trove: | |
status: | Incomplete → Invalid |
Fix proposed to branch: master /review. openstack. org/62399
Review: https:/