--defaults-file requires datadir to be set.

Bug #1508448 reported by James Dooley
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Unassigned
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Medium
Sergei Glushchenko
2.3
Fix Released
Medium
Sergei Glushchenko

Bug Description

When using a default file with percona-xtrabackup.2.3.2-1.el5 datadir is complaining about being mismatched if it is not specifically set in the defaults file.

innobackupex --defaults-file=/root/.my.cnf --no-timestamp --no-version-check /backup/mysql

Error: option 'datadir' has different values:
  '.' in defaults file
  '/var/lib/mysql/' in SHOW VARIABLES

If the datadir is specified in the .my.cnf file, backups work as intended.

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

xtrabackup must use datadir received from server if was not set explicitly

Changed in percona-xtrabackup:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to openstack-ansible (master)

Reviewed: https://review.openstack.org/238748
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=113597a7cf16c9ae791cc412b2e1a07188b28fd5
Submitter: Jenkins
Branch: master

commit 113597a7cf16c9ae791cc412b2e1a07188b28fd5
Author: Kevin Carter <email address hidden>
Date: Thu Oct 22 21:12:34 2015 -0500

    Pinned percona-xtrabackup to ensure stability

    This change makes it so that the xtrabackup plugin is pinned
    to a specific version via downloading the deb.

    This reinstates the galera affinity values for testing so that
    we're not skipping potentially broken code paths.

    Related-Bug: #1508411
    Related-Bug: #1508448
    Related-Bug: #1508450
    Change-Id: I288d6d9871eb9dfe0ecc547e50639078afdff79d
    Signed-off-by: Kevin Carter <email address hidden>

Changed in openstack-ansible:
status: New → Fix Released
summary: - --default-file requires datadir to be set.
+ --defaults-file requires datadir to be set.
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-736

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.