Commit Graph

7 Commits

Author SHA1 Message Date
James Page f84e71392c Use charms.ceph for Ceph broker
Drop use of local copy of ceph_broker.py in preference to the
centrally maintained copy in charms.ceph.

Change-Id: I89aa0f9fc7d5d2d480ebabc1cb17a86dcbef21bf
2020-08-28 11:15:03 +01:00
Alex Kavanagh ddd26acc6d Convert the charm to Python3
* Move charmhelpers to the root of the charm
* sync charmhelpers to latest version

Change-Id: Id0b838f0206635cf912d205f2fb6fda7b31d0dfe
2019-03-10 14:16:41 +00:00
Ryan Beisner a90b30a8f2
Update pre-install hooks to fail on error
The pre-install operations may fail, yet that failure is not
elevated to the user. This masks the failure and makes early
package install issues difficult to troubleshoot.

If the basic pre-install script fails, the charm should not
proceed to later hooks as the requirements may not be met.

Hashbangs for bash should specify -e (errexit) on all of the
pre-install bash scripts.

Change-Id: I97e2d9fa092fd6af5f426977cf99ab735e520496
Closes-bug: #1815243
Partial-bug: #1815231
2019-02-08 15:37:32 -06:00
David Ames 6b9d50e2bd Install python dependencies early for CH ip.py
When using charmhelpers.contrib.network.ip apt install was quietly
failing. Install python dependencies in the early install hook
(before install.real).

Charm-helpers sync to bring in apt_install with fatal=True

Change-Id: Icfe46c617a21ac97eae54752aad5b0ed53aa706a
Partial-Bug: 1601972
2016-07-18 10:14:09 -07:00
James Page a7d83048e4 Ensure python2 is installed before hook execution 2015-09-22 14:35:02 +01:00
Paul Collins d1940639ef throw away prototype hooks, add hooks.py (stubs only atm) 2012-10-02 22:38:06 +13:00
Paul Collins 3e55c31017 add README and some prototype hooks 2012-10-02 22:25:11 +13:00