Possible data loss in block-storage relation

Bug #1422313 reported by Jacek Nykis
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mysql (Juju Charms Collection)
Fix Committed
High
Jacek Nykis

Bug Description

If mysql charm receives persistent volume that contains old data it will cause DB damage there.

This is serious bug and can be replicated like this:
1. Deploy mysql DB
2. Add persistent storage using storage subordinate and block-storage-broker
3. Add a database, add some data
4. Destroy unit
5. Deploy new mysql service and get storage soburdinate to present it with the same volume as above

I wrote a fix that is available here:
https://code.launchpad.net/~jacekn/charms/trusty/mysql/mysql-storage-bugfix/+merge/249203

Related branches

Chris Glass (tribaal)
Changed in mysql (Juju Charms Collection):
importance: Undecided → High
assignee: nobody → Jacek Nykis (jacekn)
Chris Glass (tribaal)
Changed in mysql (Juju Charms Collection):
status: New → Fix Committed
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.