1024 Commits

Author SHA1 Message Date
Andrew McLeod
aac009bb87 Modify tests.yaml which specifies bundletester config params
with the following key:value pairs:

- reset_timeout: 600

Change-Id: I82688a7575a173277d5683f20d6fe1537e5f3c45
2017-08-09 14:25:20 -06:00
Jenkins
614220d9bf Merge "Update notification config >= mitaka" 2017-08-04 11:44:24 +00:00
Alex Kavanagh
94af88d924 Update charm icon
Change-Id: I91effa622c4b4c98c826d1083637cfe9a42ab5aa
Closes-Bug: #1686953
2017-08-02 18:16:04 +01:00
James Page
faa89dee7b Update notification config >= mitaka
Use oslo_messaging_notifications for mitaka or later releases
including setting the transport_url to the value provided by
the AMQP context.

This removes use of deprecated configuration options for
ceilometer notifications.

Change-Id: I66188d7275a84efd7aea4482db88b20983fe671f
2017-08-02 15:26:51 +01:00
Chris MacNaughton
9fe6a51011 Setup Ceph default RBD features
Nova-lxd requires that our Ceph images only contain the features
supported by the kernel RBD driver, and a discussion on the dev mailing
list suggests that 1 should work fine as the driver level

This commit contains a charmhelpers sync to bring in the new
flag to support configuration sent from the ceph charms.

Change-Id: Iea2e2215cce01efe47adff9ec6743538c92f2437
2017-08-01 09:09:40 +02:00
Edward Hope-Morley
3531601714 Cleanup config.yaml
Change-Id: I5e42168cd74ebe973912db2003c242c9eb534fc2
2017-06-07 09:53:21 +01:00
James Page
fba74d6aef Updates for pike b1
Resync charmhelpers for pike version support.

Add pike tests but leave disabled until all charms support pike.

Change-Id: I156725597c4b6dea1b048dcacc13cce95f435001
2017-05-12 07:51:14 +02:00
David Ames
bbe300f5ca Network space aware address for cluster relation
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.

Partial-Bug: #1687439

Change-Id: Ib554aa390a4bad04e8ad689effb8ab1739e84e26
2017-05-04 16:05:57 -07:00
David Ames
124b5ab5a0 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I81f12128573132a83d98d7fba7038447c73c1bbd
2017-04-28 07:55:13 -07:00
Alex Kavanagh
e8a4b29784 Fix alphanumeric comparisons for openstack and ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done

Change-Id: I6851849b8107e59e9e6ff529348c7b183d36266b
Related-Bug: #1659575
2017-04-27 09:33:06 +01:00
David Ames
e7317bf571 Avoid shared-db change when using access-network
When the percona-cluster charm sets an access-network but the default
unit-get address is not on that network extra shared-db relations get
executed. This is specifically a problem when running upgrades and
trying to avoid API downtime.

The root cause is that the access-network is not checked until the
SharedDBContext is consulted. But then db_joined function will
change it back to the wrong ip on subsequent runs.

This change adds a check for access-network on the relation during
the db_joined function and pushes IP selection off to
get_relation_ip.

Charm helpers sync to pull in changes to get_relation_ip.

Change-Id: Ifc22d61f1de1092306b98d30fbea01fead855d14
Partial-bug: #1677647
2017-04-26 16:29:00 -07:00
Jenkins
bc777bb70a Merge "Make worker-multiplier sane in container environments" 2017-04-26 23:09:43 +00:00
James Page
074263eaa7 Make worker-multiplier sane in container environments
Resync charm-helpers to pickup the capped worker-multiplier
changes when deploying in containers.

Drop the default value for worker-multiplier of 2.0; this
is now handled from within the codebase rather than via a
default configuration value, reflecting the differing
behaviours between container and non-container deployments.

Change-Id: I418aac85c408b285cf6807ff4072e565898df399
Closes-Bug: 1665270
2017-04-26 10:41:48 +01:00
Ryan Beisner
d00c993226 Update functional test to enable Zesty
Change-Id: I06e221890ef8eb6d4ded1b98e08b9d8ee8991b58
2017-04-25 12:21:30 -05:00
Larry Michel
6b5ffc13a9 Remove old contact info from readme
Change-Id: Iaac2773c267566f4509b3f5db8d3546ca0e78ed9
2017-04-04 02:06:02 +00:00
Jenkins
ddbdf6cfb6 Merge "Enable Ocata Amulet Tests" 2017-03-13 17:17:00 +00:00
David Ames
d3ce0ce2f2 Enable Ocata Amulet Tests
- Add Zesty as a supported series to metadata.yaml.
- Turn on Xenial-Ocata Amulet test definitions.
- Sync charm helpers to get Juju 2.x amulet compatibility.
- Keeping Zesty-Ocata Amulet test definitions turned off until the
  metadata.yaml changes propagate to the charm store.

Change-Id: I97dfe70ceec4bc9be688468fe7b4eed216f1ccb4
2017-03-09 14:34:32 -08:00
Felipe Reyes
896ea18db0 charm-helpers sync to pickup changes to CephContext
CephContext now is capable of dealing with a space separated list of IPs
in the ceph-public-address field of the relation with ceph. This allows
ceph-proxy to pass a list of monitor hosts instead of a single one.

Change-Id: I83abc2c151636aea0b5dffc32f2e3c91acb7558b
Partial-Bug: 1642430
Closes-Bug: 1670223
2017-03-09 16:13:21 -03:00
David Ames
8fa25f69de Enable Ocata amulet test
Change-Id: I2f265f473de66620b4650249a605e057ea8736da
2017-03-02 16:52:49 -08:00
David Ames
6241fd3f04 Pre-release charm-helpers sync 17.02
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: I7462381ab6faa265395aa19d353f72f6af3b30ae
2017-02-14 13:53:39 -08:00
James Page
29da04b58b Add support for cephx pool grouping and permissions
Sync charmhelpers and add configuration option to allow access
to ceph pools to be limited based on grouping.

Glance only requires rwx access to pools containing images.

Change-Id: I72611b38887a686f6acaeffd70bc4705a425a07b
Partial-Bug: 1424771
2017-02-14 11:22:05 +00:00
Jenkins
09cba7a0f2 Merge "Enable Memcache service for Token Caching" 2017-01-25 10:04:21 +00:00
Shane Peters
92c06de6aa Set 'show_image_direct_url' in openstack >= kilo
To expose the image location in the API for versions below Mitaka,
show_image_direct_url should be set to True. For Mitaka specifically,
show_multiple_locations should also be set.

This change sets both of these values when show_multiple_locations is
set in the charm.

Change-Id: Ibb3b6ecd92834f6345d21801942da0d3466d5bdc
Closes-Bug: #1645703
2016-12-23 13:38:23 -05:00
Liam Young
121ee44911 Enable Memcache service for Token Caching
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 glance
to use memcache for token caching.

http://docs.openstack.org/releasenotes/keystonemiddleware/mitaka.html#id2

Change-Id: If1a95fbd4e5771eaad937573dd4ee28750080218
2016-12-13 16:36:54 +00:00
Jenkins
6c7edc8221 Merge "Sync charm-helpers to pick up Ocata UCA support" 2016-12-06 16:55:06 +00:00
Ryan Beisner
3f0c64adfb Remove zesty series metadata
The charm store does not yet recognize this series, and errors
when it exists, thereby preventing push/release of dev charms
into the charm store.

Revisit after the following is resolved:

 - https://github.com/juju/charmstore/issues/695

Change-Id: I728e1b1d36f39f6c4339b25a7aaaa0a32f378d52
2016-12-03 09:47:14 -06:00
Corey Bryant
2f462adbf8 Sync charm-helpers to pick up Ocata UCA support
Change-Id: I85398f5c0271cc34224ec6b5efc14e1154563ff7
2016-12-01 21:36:31 +00:00
Ryan Beisner
cf5f820c35 Update Amulet defs, series metadata and c-h sync
- Sync charm helpers if applicable.

- Fix test executable hashbags for virtualenv prep.

- Add Yakkety-Newton Amulet test definitions.

- Prep Xenial-Ocata Amulet test definitions (not yet enabled).

- Prep Zesty-Ocata Amulet test definitions (not yet enabled).

- Add Zesty charm series metadata.

- Remove Precise charm series metadata if present.

- Remove Precise Amulet test definitions if present.

Change-Id: I31ca7f79c5b99f3024162f7e699e20dee5b46f6d
2016-11-28 14:49:27 -06:00
Ryan Beisner
3f21f7d3f2 Update amulet test definitions for Newton
- Remove Precise-Icehouse Amulet test definitions if they exist.

- Add Xenial-Newton Amulet test definitions.

- Add Yakkety-Newton Amulet test definitions.

- Use the percona-cluster charm in tests instead of the mysql charm.

Change-Id: Idee95359049dcc4fcb1c30f9ed3fce640fef1eb7
2016-10-10 20:54:14 -05:00
David Ames
5c74de7c56 Pre-release charm-helpers sync 16.10
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: Id48d2079e676dd5b9b692fb24264de9b76e2b5ea
2016-09-30 08:59:34 -07:00
Alex Kavanagh
5e37092800 Fix to ensure that glance responds to cluster-relation-departed
When a glance unit is removed a 'cluster-relation-departed' is sent to
each of the remaining units.  This was not being used, but the
side-effect was that the hacluster.cfg file was not being updated which
left the now deleted unit haproxy.cfg.  This change just tags on the
hook for 'cluster-relation-departed' to the function that handles
'cluster-relation-changed' so that the haproxy.cfg file gets updated.

Change-Id: I70f985614a2c66344360ab744ec6996f9604a9c3
Closes-Bug: 1592273
2016-09-22 13:57:15 +00:00
James Page
7b77a4c57a 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: I059d03fd0ae0c445b5822b3e48476e54b839689d
2016-09-20 12:11:44 +01:00
James Page
b90715f7cc Add charm series data to metadata.yaml
This optimizes the publication process to the charm store, and
ensures that the charm code and version is consistent across all
supported Ubuntu series.

Change-Id: Id7d0a88a91be0245b7a010db4728fce2ab37c805
2016-09-14 09:27:23 +01:00
Ryan Beisner
a3d8dddf1c Update tox.ini files from release-tools gold copy
All OpenStack Charms now contain identical tox.ini files,
not to be modified or made unique within each charm repo.

This is to ensure consistency across charm repos in tox
target naming, approach and purpose, also giving the
charm dev and test experience additional consistency.

Also create empty dirs with .keep files where necessary.
Some classic charms have actions and/or lib dirs, and some
do not. In all classic charms, flake will now check those
dirs to ensure lint coverage of existing or future content.

Change-Id: Ia8fbfa451e991d241018ab16e27dd81785d60731
2016-09-09 19:43:11 +00:00
Ryan Beisner
17d59c8632 Update tox.ini files from release-tools gold copy
All OpenStack Charms now contain identical tox.ini files,
not to be modified or made unique within each charm repo.

This is to ensure consistency across charm repos in tox
target naming, approach and purpose, also giving the
charm dev and test experience additional consistency.

Change-Id: Idf952e4958df409fb15a7ea6a53adaebbe8a5abf
2016-09-06 22:08:24 +00:00
Andrey Pavlov
2b3eea98eb Allow to provide configuration for specific cinder backend
This changeset allows to change default store to cinder
and define additional key/values for glance-api.conf file.
Some cinder backends could require additional changes
in service and additional changes in the OS.
Same functionality implemented in cinder charm via storage-backend interface.

Change-Id: Ia9c78df7e9a1ccb0d9ca2121dd01e5832186bf19
2016-08-26 17:21:11 +03:00
Andrey Pavlov
fa1c1dda1c Add support for storage of images in Cinder
Glance charm allows to store images in file, ceph, swift.

This changeset adds support for storage of images in Cinder
for OpenStack Mitaka or later.

Required dependencies are installed on relation to Cinder
(inline with Ceph integration).

This feature is dependent on resolution of some packaging
issues in the glance-store package (see Related-Bug).

Related-Bug: 1609733

Change-Id: Ib9d9f28e040b7b2eebb3f5d0ee9ff0773292bdcc
2016-08-24 10:56:55 +01:00
Corey Bryant
ad8888b09b Properly install rados and rbd python bindings for client libraries.
Change-Id: Ica140e90e15b98a979edfed2db8b452a7eaafb68
2016-07-21 18:43:53 +00:00
Liam Young
884942128a Pre 1607 release charm-helpers sync
Sync charmhelpers to pick up bug fixes for 1607 release

Change-Id: Ib526deed892f5bf53f2c9f61e7d28285a84782f9
2016-07-21 14:19:14 +00:00
Ryan Beisner
0b58504e87 Use bundletester for amulet test execution
Switch to using bundletester for execution of functional tests,
leveraging tox to build out test virtualenvs.

Rename amulet tests inline with gate-*, dev-* and dfs-*
naming standards.

Update README to refer to functional testing section of the charm
guide.

Change-Id: I1ee38355112d8c5062340546bd01b1cce6593a3f
2016-07-19 03:39:17 +00:00
David Ames
cab6858a9f 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: I5dd279a1a13b7b34c8392b576b6de4e029765b67
Partial-Bug: 1601972
2016-07-18 09:46:07 -07:00
David Ames
8020a96700 Pre-release charm-helpers sync
To begin release testing get each charm up to date with lp:charm-helpers

Change-Id: Ib14ceb4ec61c7b1a31f9b46b4406cd560e4a8857
2016-07-15 10:30:15 -07:00
Jenkins
3c17fd5ba1 Merge "Add ceph-pool-weight option for calculating pgs" 2016-07-14 20:23:06 +00:00
Billy Olsen
c837863cf2 Add ceph-pool-weight option for calculating pgs
Provide the weight option to the Ceph broker request API for requesting
the creation of a new Ceph storage pool. The weight is used to indicate
the percentage of the data that the pool is expected to consume. Each
environment may have slightly different needs based on the type of
workload so a config option labelled ceph-pool-weight is provided to
allow the operator to tune this value.

Closes-Bug: #1492742

Change-Id: I56c7de4d9213fe85ce89cbad957291b438f6f92f
2016-07-14 08:06:34 -07:00
Jenkins
b0cb553bcb Merge "Change worker-multiplier to float" 2016-07-14 09:34:57 +00:00
Corey Bryant
d754f184a6 Various deploy from source changes and c-h sync
* openstack-origin is no longer required when using openstack-origin-git.
* Drop kilo from openstack-origin-git default values because upper
  constraints doesn't work in kilo for openstack-dashboard and glance.
* Add flag to allow for disabling upper constraints when using
  openstack-origin-git with user-specified git repositories.

Change-Id: I017dfd20e3fe997558c13d15c7d05dd1692e7730
2016-07-13 19:25:29 +00:00
Billy Olsen
b825bd4747 Change worker-multiplier to float
Change the worker-multiplier to a floating point config option type
instead of integer. This allows users to specify workers to be less
than the number of CPUs, which is useful in deployments with multiple
services deployed into containers on top of bare metal.

The fix is to simply change the config option type and to sync in
the necessary update from lp:charm-helpers.

Partial-Bug: #1602444

Change-Id: I5f7b24d53f35c4a7ec9e5de563afa5e232ca83af
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2016-07-12 17:09:43 -07:00
James Page
e3e0d0d6b1 Resync charmhelpers
Some previously applied changes to charm-helpers where lost
due to the way that changes get merged into the master branch.

Perform a fresh sync and restore lost changes.

Change-Id: Ib2370a50e2e1d8d51c7d8b7952ced0991edf33b8
2016-07-07 10:04:45 +01:00
Jenkins
7ea4bc571c Merge "Sync charm helpers and drop icehouse default" 2016-07-07 08:58:07 +00:00
James Page
f4bdaea664 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: I2f0d52c539a7edbbf806c7ab7a4679274fd095d8
2016-07-06 16:33:39 +01:00