Drupal Charm from documentation should exit 0 when related host is not up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Triaged
|
Low
|
Unassigned | ||
Juju Charms Collection |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When the relationship is created between drupal and mysql drupal should fail if the mysql host is not yet available. This is similar to other charms that exit 0 when this condition is encountered. The log below shows that the drupal charm continued even though there was no host.
2011-11-02 10:44:06,592 unit:drupal/0: hook.output ERROR: + hooksdir=
2011-11-02 10:44:06,593 unit:drupal/0: hook.output ERROR: ++ relation-get user
2011-11-02 10:44:06,785 unit:drupal/0: hook.output ERROR: + user=drupal
2011-11-02 10:44:06,786 unit:drupal/0: hook.output ERROR: ++ relation-get password
2011-11-02 10:44:06,961 unit:drupal/0: hook.output ERROR: + password=sahbeeghos
2011-11-02 10:44:06,961 unit:drupal/0: hook.output ERROR: ++ relation-get host
2011-11-02 10:44:07,135 unit:drupal/0: hook.output ERROR: + host=
2011-11-02 10:44:07,136 unit:drupal/0: hook.output ERROR: ++ relation-get database
2011-11-02 10:44:07,310 unit:drupal/0: hook.output ERROR: + database=drupal
+ '[' -z drupal ']'
2011-11-02 10:44:07,312 unit:drupal/0: hook.output ERROR: ++ grep -q users
2011-11-02 10:44:07,312 unit:drupal/0: hook.output ERROR: ++ mysql -u drupal --password=
2011-11-02 10:44:07,392 unit:drupal/0: hook.output ERROR: ERROR 2005 (HY000): Unknown MySQL server host '-e' (1)
2011-11-02 10:44:07,394 unit:drupal/0: hook.output ERROR: + juju-log 'Setting up Drupal for the first time'
Changed in juju: | |
milestone: | florence → galapagos |
Changed in juju: | |
status: | Confirmed → Triaged |
Changed in juju: | |
importance: | Medium → Low |
Here is the url for the docs: https:/ /juju.ubuntu. com/docs/ write-charm. html