7 Commits

Author SHA1 Message Date
Ryan Beisner
5e2ed7f212
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: I0f41092fac7259863c215505ca305ff92cfae69a
Closes-bug: #1815243
Partial-bug: #1815231
2019-02-08 15:40:39 -06:00
Alex Kavanagh
4336b8d644 Convert charm to Python 3 only
* Needed to add a swift_manager/manager.py file which uses the payload
  software python modules to perform certain functions on behalf of the
  charm.  These were part of the main charm, which couldn't be retained
  in the charm due to the charm changing to Py3.
* Changed to absolute imports using the charm root as the root for all
  charm modules.
* The py2 target in tox.ini is used to test the swift_manager/manager.py
  file only.
* The .testr.conf file has been migrated to .stestr.conf

Change-Id: If37a393aa6ed27651b04810aa0bbf69eda37d7b4
2017-12-06 14:20:25 +00:00
David Ames
acb8b47c74 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: Ic406ed34eb42efd6ca0296f3e29f4eef88b5bdd1
Partial-Bug: 1601972
2016-07-18 10:02:21 -07:00
James Page
ed8d7e5645 Ensure python2 is installed before hook execution 2015-09-22 14:56:33 +01:00
James Page
b5e6ec5fcd Fixup missing files 2013-02-27 16:18:34 +00:00
Adam Gandelman
a1638d1993 Initial pass at Swift rewrite. 2012-12-12 09:18:54 -08:00
Adam Gandelman
4f38e93217 Initial commit - install hooks 2011-07-12 18:00:56 -07:00