Instance made ACTIVE before replication is started

Bug #1465604 reported by Doug Shelley
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Triaged
Medium
Doug Shelley

Bug Description

Currently the guest prepare code on Mysql looks like the following:
    def prepare(self, context, packages, databases, memory_mb, users,
                device_path=None, mount_point=None, backup_info=None,
                config_contents=None, root_password=None, overrides=None,
                cluster_config=None, snapshot=None):
        """Makes ready DBAAS on a Guest container."""
        MySqlAppStatus.get().begin_install()
...
<snip>
...
 app.complete_install_or_restart()
...
<snip>
...
   if snapshot:
            self.attach_replica(context, snapshot, snapshot['config'])

The complete_install_or_restart call puts the instance in ACTIVE state, however the attach_replica call hasn't been made. It is during this call that the instance is configured as a slave and connected to the master to start replication.

For an instance that is being configured as a replica, it would make sense to not have it go active until after the attach_replica call is made.

Doug Shelley (0-doug)
Changed in trove:
assignee: nobody → Doug Shelley (0-doug)
milestone: none → liberty-2
Changed in trove:
status: New → Triaged
importance: Undecided → Medium
Changed in trove:
milestone: liberty-2 → liberty-3
Changed in trove:
milestone: liberty-3 → next
Changed in trove:
milestone: next → liberty-rc1
Changed in trove:
milestone: liberty-rc1 → mitaka-1
Revision history for this message
György Szombathelyi (gyurco) wrote :

It seems, when the replica goes ACTIVE, the taskmanager immediately deletes the snapshot backup, so the slave will fail, since it cannot restore the master's state from the snapshot.

Changed in trove:
milestone: mitaka-1 → mitaka-3
Amrith Kumar (amrith)
Changed in trove:
milestone: mitaka-3 → mitaka-rc1
Doug Shelley (0-doug)
Changed in trove:
milestone: mitaka-rc1 → newton-1
Amrith Kumar (amrith)
Changed in trove:
milestone: newton-1 → ongoing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.