backup action fails as cannot retrieve sst-password

Bug #1787029 reported by Xav Paice
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Percona Cluster Charm
Fix Released
Undecided
Xav Paice

Bug Description

When running the backup action, the import of _get_password from percona_utils does not complete, and therefore we end up with the innobackupex command having --password=None.

If we change the name of the method in percona_utils to get_password (i.e., not private), things work OK.

Xav Paice (xavpaice)
Changed in charm-percona-cluster:
assignee: nobody → Xav Paice (xavpaice)
status: New → In Progress
Revision history for this message
Xav Paice (xavpaice) wrote :
Revision history for this message
James Page (james-page) wrote :

Hi Xav

_ is a python convention rather than something that is enforced - so I'm not sure that dropping the prefix should change behaviour in any way?

Revision history for this message
Xav Paice (xavpaice) wrote :

Agreed - however, the effect by design or otherwise is that the import of _get_password from a separate module imports the name with no code. If, within pdb, I re-run the import within the backup method everything is fine. If I rename _get_password to get_password, everything works fine.

I'm not claiming to understand why that's the case, just that renaming seems to make life a little easier.

Revision history for this message
Xav Paice (xavpaice) wrote :

This is fixed in https://review.openstack.org/#/c/577346/, I'll abandon my change and mark this as fix fix committed.

Changed in charm-percona-cluster:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-percona-cluster (master)

Change abandoned by Xav Paice (<email address hidden>) on branch: master
Review: https://review.openstack.org/591851
Reason: Alternate fix, https://review.openstack.org/#/c/577346/

David Ames (thedac)
Changed in charm-percona-cluster:
milestone: none → 18.08
James Page (james-page)
Changed in charm-percona-cluster:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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