Patch out charmhelpers.osplatform.get_platform() and
charmhelpers.core.host.lsb_release() globally in the unit tests to
insulate the unit tests from the platform that the unit tests are being
run on.
Change-Id: I27979aaeec8040b8cd5c07e5ad12a6ca8544278c
This change add several configuration options to enable HTTP checks
to the HAProxy configuration, instead of the default TCP connection
checks (which continue to be the default). It also enables /healthcheck
endpoint for heat-api and heat-cfn-api on openstack releases >= queens.
Closes-Bug: #1880610
Change-Id: I94c9418c82cdddd5a5d9ed400ab47889bfb225b1
Set TTL as a solution for topic queue engine_worker and heat-engine-listener
to avoid them growing all the time after heat-engin restarts.
This is heat part.
Closes-Bug: 1925436
Change-Id: I196346e4ca869efab45d1c2aafb1420b2a917d39
Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9
* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
- ensure master branch for charms.openstack
- ensure master branch for charm-helpers
* Fix unit tests due to changes in core subordinate context lib.
Change-Id: I61d51dc65ba29390df1c057535a2065e205d32b2
Parses services() available, and uses charmhelpers' haproxy checks to
set default checks for Heat. By enabling nrpe-external-master interface,
we also allow hacluster subordinate application to be monitored for
check_crm and pacemakerd.
Change-Id: I4ad2b1c514099f9b6fe352cdab65587780915e5c
Closes-Bug: 1664745
Signed-off-by: Alvaro Uria <alvaro.uria@canonical.com>
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard
Func test pr is needed for py35 compatibility - test to ensure that zaza
change works.
func-test-pr: https://github.com/openstack-charmers/zaza/pull/390
Change-Id: Id729d01b6f2e41ccb3f605638a1837fc2b3c626d
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.
Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.
Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: Ic61aac57ab757e555be0eef818052c58b8cf03dd
If the database is in maintenace mode do not attempt to access
it.
Depends-On: I5d8ed7d3935db5568c50f8d585e37a4d0cc6914f
Change-Id: Ib654a82fd91cd73c6ab5c178d87d054d8717ce4f
Currently, Apache ports.conf file is not being configured by this
charm. This patch changes the ports.conf default file with another one
that does not open port 80 on SSL environments.
Change-Id: I881c3569a25c0f0a84c14ee086b3f3adfdbc97f9
Closes-bug: #1845665
This patchset implements policy overrides for heat. It uses the
code in charmhelpers.
It also fixes a bug in the actions/domain-setup where it assumes that
the python2 version of openstackclient should be installed, and corrects
this via code in hooks/install and hooks/upgrade-charm.
A sync of charm-helpers is included to bring the latest policyd changes
through to the charm.
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/111
Change-Id: Ia607dc9120cfb03902efb019041b43cf12ade2d3
Closed-Bug: #1741723
Use the generate_ha_relation_data helper from charmhelpers to
generate the data to send down the relation to the hacluster
charm.
This results in a few changes in behaviour:
1) The charm will no longer specify a nic name to bind the vip. This
is because Pacemaker VIP resources are able to automatically
detect and configure correct iface and netmask parameters based
on local configuration of the unit.
2) The original iface named VIP resource will be stopped and deleted
prior to the creation of the new short hash named VIP resource.
Change-Id: I116b1ffd02803b71ecbb3e6612ee392698b6eaa4
On charm upgrade the charm may switch to py3 packages. If so, ensure
the old py2 packages are purged after any new packages have been
installed. If packages where removed during the upgrade, then
restart all services to pickup any py2->py3 switches.
Change-Id: I9acd536c437ff9d8c6a7056ac255aa4b6de62673
Closes-Bug: 1803451
Switch package install to Python 3 for OpenStack Rocky or later.
When upgrading, remove any python-* packages that where explicitly
installated and then autoremove --purge any dependencies that are
no longer required.
Change-Id: Iaac7c48041200a21a2fdb86dbeadefcad5e8b579
These changes provide support for extending heat with
subordinate charms.
Change-Id: I9266390e1393bcf9c60fb294814100d6957320ae
Closes-Bug: #1626077
Closes-Bug: #1627703
Drop support for deployment from Git repositories, as deprecated
in the 17.02 charm release. This feature is unmaintained and has
no known users.
Change-Id: I821f8b6d93f84b0fd632e18c47dc4184c5897756
This patch ensures that if multiple heat units are deployer, that each
one will have the same auth_encryption_key in the /etc/heat/heat.conf.
This is automatically generated on the (juju) leader and then remains
unchanged for the application's duration. It can be overriden by the
config setting 'encryption-key'.
Testing is via the amulet 500 test (added) which checkes that the two
units deployed have the same key.
Change-Id: I89a11efe772314acd58ab9be21773eee89a23980
Closes-Bug: #1714157
Use the get_relation_ip function for selecting addresses for the
cluster relationship. Including overrides for the admin, internal,
and public config settings or extra bindings.
Change-Id: I9a22868bca6b443f9b7b0e7cecc314ca6b50a112
Partial-Bug: #1687439
With the release of 4.2.0 of keystonemiddleware using the
in-process token cache is no longer recommended. It is recommended
that a memcache backend to store tokens is used instead,
This installs and configures memcache and configures neutron-server
to use memcache for token caching.
http://docs.openstack.org/releasenotes/keystonemiddleware/mitaka.html#id2
Change-Id: Ic921a7efbd860cbcd4da2313126f73d7bdfdb4ed
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.
Change-Id: I8fa16392527906102fed38d0c557e68bfff33959
Implement DNS high availability. Pass the correct information to
hacluster to register a DNS entry with MAAS 2.0 or greater rather
than using a virtual IP.
Charm-helpers sync to bring in DNS HA helpers
Change-Id: Ia4ccb2e28ea5b2b07cef10fcbaf7885336d21c8b
Heat is staying in status blocked Missing relation database when
doing an upgrade from stable to next. Missing required data:
database_password. The relation is actually passing heat_password.
Commit 1bdc87f495 removed the heat_
prefix. This changes restores the heat_ prefix to allow stable to
next upgrades to work.
Change-Id: Id87afd5eda14eceac6c734867f9f96328c116c79
Closes-Bug: #1571830
To ensure that the charm presents the right IP address for
accessing the MySQL database over the shared-db relation,
ensure that any network space binding provided by the user
is preferred over the default of 'private-address'.
If network spaces is not supported (juju < 2.0), fallback to
using 'private-address'.
Change-Id: Ic49f16c8ccceeb5aa25a2197a92767dc5aacf703
Add charmhelpers.contrib.hardening and calls to install,
config-changed, upgrade-charm and update-status hooks. Also
add new config option to allow one or more hardening
modules to be applied at runtime.
Change-Id: I3d3ff350256bb09145c335a29e48c21433ac4c43
Adds in the config option for overriding public endpoint addresses
and introduces a unit tests to ensure that the override for the
public address is functioning correctly.
Closes-Bug: #1398182