Commit Graph

7 Commits

Author SHA1 Message Date
Alex Kavanagh 1c7f320cb6 Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: I7c695c77c67f43f02c72c3b50d949c451be53bc3
2022-02-19 15:17:08 -07:00
Liam Young 77a79f4359 Provide compute nodes with domain information
The domain is missing from the credentials that nova cloud
controller passes to the compute nodes. This change adds it in.

Closes-Bug: 1830536
Change-Id: I2ad82b9b271d83e1b49691187c620d7b976e5ff0
2019-07-12 08:53:11 +00:00
Liam Young 36e9518921 Block endpoint reg if cluster partially formed
When an existing cluster of the service is scaled out the new unit
will join with keystone before it is fully clustered. In identity
joined hook the charmhelpers function canonical_url is called which
in turn uses another charmhelpers function, resolve_address.
resolve_address will only return the vip if the vip is set in config
AND the unit is clustered. This means that the units local address
is returned and that is then registered with keystone.

This change gates registering an endpoint if the cluster is
partially formed.

Change-Id: Ibe7d2286de130f045257ad6552f7a5b1279958b6
Partial-Bug: #1544959
2017-10-03 10:02:11 +00:00
Ryan Beisner 15071bdd5f Remove charm-helpers from tests dir and use venv instead
Change-Id: I9a4245e764e268327466bc0fbe8b5383303ad07f
2017-05-26 16:24:32 +00:00
David Ames b570e36cba Fix for status-set race - related to bug 1588462
This change fixes the obvious race for a status_set() between
check_optional_interfaces() and assess_status() as the later calls the former
which calls status_set(), returns the status, which is then potentially set
again by the assess_status() function.  This cleans up the code so that only a
single status_set() is performed when calling assess_status().

Change-Id: Ie37a4d98de9c5e7bd26304e096796ce6287ea52b
Related-Bug:#1588462
2016-06-13 16:06:17 -07:00
James Page d5806b4ce2 Resync charm-helpers
Change-Id: Id8eb4ea28f651f007d714d2bf406eb9796a5ab5d
2016-03-02 12:09:33 +00:00
uoscibot 2c3299d496 Adapt imports and metadata for github move 2016-02-29 10:48:52 +00:00