Restoring from backup fails "Access denied for user 'debian-sys-maint'@'localhost'"

Bug #1364179 reported by Sam Morrison
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Expired
Medium
Unassigned

Bug Description

When I restore from a backup the instance goes to FAILED state. Upon investigating I see that mysql fails to start with the error:

ERROR 1045 (28000): Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)

We are using Trusty as the Image and mysql-server-5.5 as the DB.

Revision history for this message
Denis M. (dmakogon) wrote :

This happens because of incorrect upstart script for guesagent.

Changed in trove:
status: New → Invalid
Revision history for this message
Sam Morrison (sorrison) wrote :

Hi Denis,

Could explain a bit further as this comment doesn't help me fix the problem at all.

I can't see how the upstart script would be at fault here. The issue is the backup file has the debian-sys-maint user but the password is different to the newly created server as set in /etc/mysql/debian.conf (I may be missing something though? )

Revision history for this message
Denis M. (dmakogon) wrote :
Revision history for this message
Sam Morrison (sorrison) wrote :

HI Denis,

Yeah I'm well aware of what this user is for. The problem is though that trove fails to launch an instance that is restored from a backup. I am only guessing that it has something to do with this user as I log into the affected instance and see mysql isn't running. I try and start it and get this error. So either trove doesn't like this and it is a bug or I'm on the wrong track and the bug is due to something else. I've applied the patches that affects https://bugs.launchpad.net/trove/+bug/1343344 but still no luck.

Revision history for this message
Amrith Kumar (amrith) wrote :

Sam, I'm reverting this to Incomplete. Please update with additional information if and when it becomes available.

Changed in trove:
status: Invalid → Incomplete
Revision history for this message
Sam Morrison (sorrison) wrote :

Here are full logs for the guest agent

http://paste.openstack.org/show/114031/

Revision history for this message
Sam Morrison (sorrison) wrote :

The one thing I notice is that the mysql config is wrong, it's just the default and not the one that is in the message that trove guestagent gets

Revision history for this message
Sam Morrison (sorrison) wrote :

Logs provided

Changed in trove:
status: Incomplete → New
Revision history for this message
Amrith Kumar (amrith) wrote :

Sam, thank you.

Changed in trove:
importance: Undecided → Medium
milestone: none → juno-rc1
Changed in trove:
status: New → Triaged
assignee: nobody → Nikhil Manchanda (slicknik)
Changed in trove:
milestone: juno-rc1 → kilo-1
Revision history for this message
Sam Morrison (sorrison) wrote :

So do we know what is wrong here? Does restoring from backup work for other people?
Let me know how I can help more as currently I'm trying to roll out trove to our production cloud but it's useless without this working.

Changed in trove:
milestone: kilo-1 → kilo-2
assignee: Nikhil Manchanda (slicknik) → nobody
Revision history for this message
Nikhil Manchanda (slicknik) wrote :

Yes, restoring from backup works for us, as it does in the int-tests gate.
I'm not sure what exactly is causing you to hit this issue, but I suspect it's configuration of some sort. What version of mysql are you using, and what version of xtrabackup for the backup (and restore)?

Changed in trove:
milestone: kilo-2 → kilo-3
Changed in trove:
milestone: kilo-3 → next
milestone: next → ongoing
Amrith Kumar (amrith)
Changed in trove:
status: Triaged → Incomplete
milestone: ongoing → none
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack DBaaS (Trove) because there has been no activity for 60 days.]

Changed in trove:
status: Incomplete → Expired
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.