Removing first instance breaks WP access

Bug #1381553 reported by Jill Rouleau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wordpress (Juju Charms Collection)
New
Undecided
Unassigned

Bug Description

If site_url is not manually updated by the user after deployment the database will retain the IP of the first instance of wordpress. If another wordpress instance is deployed, then the original instance removed, site_url will still reflect the IP of the first instance in mysql.

To reproduce:

$ juju deploy wordpress
$ juju deploy mysql
$ juju add-relation wordpress mysql

Get the IP of wordpress/0, ex: 10.0.3.110

Access http://10.0.3.110 and set up wordpress.

$ juju deploy wordpress

IP of wordpress/1 is 10.0.3.21
Confirm can access wordpress site at 10.0.3.21

$ juju remove-unit wordpress/0

Access 10.0.3.21/wp-login.php
Logging in will redirect to 10.0.3.110/wp-login.php

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.