8 Commits

Author SHA1 Message Date
Corey Bryant
9cb5636eba py3: Switch to using Python 3 for rocky or later
Switch package install to Python 3 for OpenStack Rocky or later.

When upgrading, remove any python-* packages that were explicitly
installated and then autoremove --purge any dependencies that are
no longer required.

Also drop the python2 shebang from hooks/manager.py in favor of
specifying the interpreter on the subprocess call. The python
interpreter version must match the python version of the OpenStack
payload due to the keystoneclient library imports.

Depends-On: I18996e15d2d08b1dacf0533132eae880cbb9aa32
Change-Id: If973ebc2be3b32ee3ff2122b5874dad96cda9fec
2018-10-10 09:20:51 -04:00
James Page
22c103169b Add support for application version
Juju 2.0 provides support for display of the version of
an application deployed by a charm in juju status.

Insert the os_application_version_set function into the
existing assess_status function - this gets called after
all hook executions, and periodically after that, so any
changes in package versions due to normal system updates
will also be reflected in the status output.

This review also includes a resync of charm-helpers to
pickup hookenv and contrib.openstack support for this
feature.

Change-Id: I5734e87d39e62c1fb791b0b79ff216e30a784d1f
2016-09-20 12:19:37 +01:00
James Page
960f1cec05 Resync charmhelpers for licensing change
The charm-helpers project have re-licensed to Apache 2.0
inline with the agreed licensing approach to intefaces,
layers and charms generally.

Resync helpers to bring charmhelpers inline with charm
codebase.

Change-Id: Icedfb79814e186290a3120d953c9077e4e4504fe
2016-07-06 16:35:04 +01:00
Edward Hope-Morley
c617aa5624 [hopem,r=]
Sync charmhelpers to get fix for bug 1518975
2016-02-11 14:43:33 +00:00
Corey Bryant
cf90f028c9 [corey.bryant,r=osci] Sync charm-helpers.
Enable sync of payload.archive, sync charm-helpers, and fixup unit test failures.
2016-01-11 14:22:31 +00:00
Corey Bryant
b07ee44be3 [corey.bryant,r=osci] Sync charm-helpers. 2016-01-08 02:37:35 +00:00
Corey Bryant
d138c370d3 [corey.bryant,r=trivial] Sync charm-helpers. 2016-01-04 16:27:51 -05:00
Alberto Donato
6de1e4362d Move charmheplers dir out of hooks. 2015-08-06 13:52:27 +02:00