trove create of postgresql instance doesn't work, when used in conjunction with --backup option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
Medium
|
Petr Malik |
Bug Description
Here are the steps to reproduce:
1. Create a postgresql instance:
trove create postgresql_instance 100 --datastore postgresql --datastore_version 9.3 --size 1 --databases db1 --users user1:password1
2. Verify it is ACTIVE:
trove list
3. Create a backup of this new instance:
trove backup-create <id> postgresql_
4. Verify backup is complete:
trove backup-list
5. Create a new instance, using this backup instance:
trove create postgresql_
You will see the following error in the trove-guestagent log:
2015-01-13 19:23:20.293 1331 ERROR trove.openstack
Exception during message handling
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
2015-01-13 19:23:20.293 1331 TRACE trove.openstack
Here is the problem:
postgresql doesn't migrate the data, when backup_info is passed in.
Look at line number 74 in guestagent/
postgresql should be handled this similarly to mysql.
Here is what mysql does in guestagent/
if os.path.
#mount the volume
if backup_info:
Here is what postgresql does in guestagent/
if os.path.
if not backup_info:
Notice that the above 'if not backup_info' statement causes the data migration to be skipped.
Changed in trove: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → kilo-2 |
Changed in trove: | |
assignee: | nobody → Petr Malik (pmalik) |
Changed in trove: | |
status: | Confirmed → In Progress |
Changed in trove: | |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | kilo-2 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/147288
Review: https:/