failed apache-hive installs should fail well
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache-hive (Juju Charms Collection) |
New
|
Undecided
|
Juju Big Data Development |
Bug Description
Hive was broken for a bit. Sam deployed it and had a failed installation. We fixed it, and he tried a juju upgrade-charm to get the new bits. Unfortunately, we don't handle partial installation very well at all. Since the first install failed, we never set the hive.installed KV, and upgrade-charm re-entered the install-
unit-hive-0[11112]: 2015-09-01 09:37:30 INFO unit.hive/
unit-hive-0[11112]: 2015-09-01 09:37:30 INFO unit.hive/
unit-hive-0[11112]: 2015-09-01 09:37:30 INFO unit.hive/
unit-hive-0[11112]: 2015-09-01 09:37:30 INFO unit.hive/
unit-hive-0[11112]: 2015-09-01 09:37:30 INFO unit.hive/
unit-hive-0[11112]: 2015-09-01 09:37:30 INFO unit.hive/
unit-hive-0[11112]: 2015-09-01 09:37:30 INFO unit.hive/
Couple options to fix this:
1. test for, or try/except around, actions on the /usr/lib/hive/conf directory
2. blow away hive-related filesystem changes in the beginning of install, and let install set it all back up again.