"master-relation-changed" hook references non-existent Apache Virtual hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql (Juju Charms Collection) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
While investigating a MaaS / Juju setup exclusively on Trusty, I was receiving an error from this hook about "site doesn't exist" from lines 50 and 51.
Basically, it's trying to enable or disable sites called "mysql-dumps" and "default". While recently setting up a 14.04 LTS web server, I saw a similar error when configuring virtual host files in Apache. For some reason, the new file format for virtual hosts must include a ".conf" extension by default. I was able to fix this by simply SSH'ing into the Juju machine hosting the MySQL service and copying the following files:
mysql-dumps
000-default.conf
by running:
cd /etc/apache2/
sudo su
cp mysql-dumps mysql-dumps.conf
cp 000-default.conf default.conf
I didn't submit this as a patch as I wasn't sure if there was a better way to allow Apache to see the files already created by the charm installation and hooks. Thanks!
Related branches
- Marco Ceppi (community): Approve
-
Diff: 44 lines (+12/-3)2 files modifiedhooks/master-relation-changed (+11/-2)
revision (+1/-1)
Changed in mysql (Juju Charms Collection): | |
status: | Confirmed → Fix Committed |
status: | Fix Committed → Fix Released |
I also ran into this problem when trying to add a mysql-slave host to create a cluster from an existing master.