Comment 5 for bug 1517165

Revision history for this message
Kevin W Monroe (kwmonroe) wrote :

Hey dbart, I'd like your thoughts on something.. You mentioned the previous charm no longer works because of an enterprise repo change, and I see that issue when running 'juju deploy mariadb' on ppc64le:

unit-mariadb-0[10642]: 2015-12-10 17:17:55 INFO unit.mariadb/0.config-changed logger.go:40 W: Failed to fetch http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu/dists/trusty/InRelease Unable to find expected entry 'main/binary-ppc64el/Packages' in Release file (Wrong sources.list entry or malformed file)

However, install continues and the charm installs mariadb from the archive instead of the maria enterprise repo:

$ apt-cache madison mariadb-server
mariadb-server | 5.5.46-1ubuntu0.14.04.2 | http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/universe ppc64el Packages

My question for you: can we support a non-enterprise deployment of mariadb? Based on this current MP, the charm could check for 'token' and 'enterprise-eula', and if they look legit, install/enable the enterprise repo. If not, install from the ubuntu archives.

This would allow for the same charm to be used to install both 'consumer grade' and 'enterprise grade' mariadb, depending on how the user configured the deployment. Thoughts?