apache2 missing install dependency
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Juju Charms Collection) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I used the apache2 charm on digitalocean and noticed that it's missing a dependency on python-yaml. That package is probably installed in the ubuntu cloud images elsewhere, but not in DO's:
2014-04-04 14:20:19 INFO juju.worker.uniter uniter.go:469 running "install" hook
2014-04-04 14:20:19 INFO worker.uniter.jujuc server.go:103 running hook tool "juju-log" ["Invoking charm-pre-install hooks"]
2014-04-04 14:20:19 DEBUG worker.uniter.jujuc server.go:104 hook context id "apache2/
2014-04-04 14:20:19 INFO juju-log Invoking charm-pre-install hooks
2014-04-04 14:20:19 INFO worker.uniter.jujuc server.go:103 running hook tool "juju-log" ["Invoking python-based install hook"]
2014-04-04 14:20:19 DEBUG worker.uniter.jujuc server.go:104 hook context id "apache2/
2014-04-04 14:20:19 INFO juju-log Invoking python-based install hook
2014-04-04 14:20:19 INFO install Traceback (most recent call last):
2014-04-04 14:20:19 INFO install File "hooks/hooks.py", line 8, in <module>
2014-04-04 14:20:19 INFO install import yaml
2014-04-04 14:20:19 INFO install ImportError: No module named yaml
2014-04-04 14:20:19 ERROR juju.worker.uniter uniter.go:475 hook failed: exit status 1
Suggested fix:
--- hooks/install.orig 2014-04-04 10:43:18.741638000 -0400
+++ hooks/install 2014-04-04 10:43:19.881638000 -0400
@@ -2,6 +2,12 @@
set -eu
+apt_get_install() {
+ DEBIAN_
+}
+
+apt_get_install python-yaml
+
juju-log 'Invoking charm-pre-install hooks'
[ -d exec.d ] && ( for f in exec.d/
Related branches
- Marco Ceppi (community): Approve
- Jorge Niedbalski (community): Needs Fixing
-
Diff: 303 lines (+206/-16)4 files modifiedREADME.md (+2/-1)
hooks/hooks.py (+71/-15)
hooks/tests/test_balancer_hook.py (+9/-0)
hooks/tests/test_cert.py (+124/-0)
- Charles Butler (community): Approve
- Tim Van Steenburgh (community): Approve
- Chris Glass (community): Approve
-
Diff: 177 lines (+86/-16)3 files modifiedREADME.md (+2/-1)
hooks/hooks.py (+75/-15)
hooks/tests/test_balancer_hook.py (+9/-0)
affects: | haproxy (Juju Charms Collection) → apache2 (Juju Charms Collection) |
Changed in apache2 (Juju Charms Collection): | |
assignee: | nobody → David Britton (davidpbritton) |
status: | New → In Progress |
tags: | added: landscape |
Changed in apache2 (Juju Charms Collection): | |
assignee: | David Britton (davidpbritton) → nobody |
Marking fixed-released since it's in the precise charm. the trusty mp is here:
https:/ /code.launchpad .net/~davidpbri tton/charms/ trusty/ apache2/ avoid-regen- cert/+merge/ 223990