110 Commits

Author SHA1 Message Date
Corey Bryant
7dd8357b06 Enable SSL termination for nova-placement-api
determine_ports() was not adding the nova-placement-api port to the
ports list because it is run under the apache2 service. This fix
enables determine_ports() to get 'nova-placement-api' from the list
of services rather than 'apache2', allowing it to determine the port
that nova-placement-api uses.

Also enable tests/gate-basic-xenial-ocata in this commit.

Change-Id: I8113e911272ee671026bace9f6e0e8c4ce072e6b
2017-03-01 14:27:35 +00:00
Corey Bryant
1e2647a9b5 Enable minimal cells v2 support
A minimal cells v2 setup is required in Ocata, which includes the
following databases:
 1. An API database (named nova_api)
 2. A special cell0 database (named cell0)
 3. A "cell1" database (named nova - we're using the nova db as cell1)

The order of nova-manage commands is also updated in this commit.
The 'nova-manage api_db sync' must occur first because 'nova-manage
cell_v2' commands use the API database. 'nova-manage db sync' must
then be run after the 'nova-manage cell_v2' commands.

Finally, 'nova-manage cell_v2 discover_hosts' must be run whenever a
new compute node is introduced to add the host to cell1.

This commit includes a sync of charm-helpers to pick up AMQPContext
updates for transport_url.

Change-Id: Ia6f36ca8a360dc8490e9f41b62d499fa4d73d0b9
2017-02-16 18:23:21 +00:00
Corey Bryant
2564cf5a5f Enable nova-placement-api
This change installs the nova-placement-api, runs it under
mod_wsgi with apache2, updates nova.conf accordingly, and
registers its endpoints.

Change-Id: I4af4afa591cf68964e6146ca0ca0c51d1ddb8a64
2017-02-09 21:30:13 +00:00
Liam Young
dfd8208354 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 neutron-server
to use memcache for token caching.

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

Change-Id: I747d107d28474d545e4a3612a927d46cae34e6b6
2016-12-13 09:31:19 +00:00
Ryan Beisner
24df5f451d 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: I42776be9284b0eee2fd58b62b0269a5a3c556453
2016-11-28 14:55:42 -06:00
Ryan Beisner
2bd1f60d7c 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: Idab48a7831008c5353eeb56da5deb49ce1305a41
2016-10-12 13:34:02 -05:00
David Ames
94966e0e59 Pre-release charm-helpers sync 16.10
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: Iab6950c48e91266f5471a4180e9e94479d955e34
2016-09-30 09:10:55 -07:00
James Page
58bf5b0628 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: I8c1d6b9b6d42bcc357d764ec1bd04a36e9982f57
2016-09-20 12:35:19 +01:00
Liam Young
3f4998bd06 Pre 1607 release charm-helpers sync
Sync charmhelpers to pick up bug fixes for 1607 release

Change-Id: Ibfb7df5b0240496affa95cd665d7a4ed7f6cb549
2016-07-21 14:21:56 +00:00
James Page
3e0520aef7 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-* and dfs-* naming standards.

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

Change-Id: Id353b3a1c8a74d8b2bed7fe0490090b5273e228f
2016-07-19 10:21:50 +01:00
Billy Olsen
8d35070586 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: I2c846832d24f709a3d019b766f5f23c28c4371f4
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2016-07-12 17:39:11 -07:00
James Page
a05c9c6beb 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: I8746721aea508fa01d2b616d580b38f84197759b
2016-07-06 16:39:15 +01:00
James Page
c103450dbb Re-license charm as Apache-2.0
All contributors to this charm have agreed to the switch
from GPL v3 to Apache 2.0; switch to Apache-2.0 license
as agreed so we can move forward with official project status.

Change-Id: I20448e0370138e103a00c7fcf0f49949c82d33a9
2016-07-03 16:38:27 +00:00
James Page
8e3d71ea82 Switch to using charm-store for amulet tests
All OpenStack charms are now directly published to the charm store
on landing; switch Amulet helper to resolve charms using the
charm store rather than bzr branches, removing the lag between
charm changes landing and being available for other charms to
use for testing.

This is also important for new layered charms where the charm must
be build and published prior to being consumable.

Change-Id: Ia4cbe14575851c0f54cbb5845ffd6b8669fb7fa2
2016-06-17 11:52:35 +01:00
Liam Young
44a5cc737c Update keystone_auth section for Mitaka
The keystone_auth section has changed for Mitaka. The Liberty format
,which is currently being used, is incompatible with keystone v3 on
Mitaka as it assumes the id of the default domain is default where
as in Mitaka it is a uuid.

The install documentation for Mitaka dictates that domain name should
be used rather than id when setting project_domain and user_domain

Change-Id: Id79a3dc10f3f08f837e6efdfb446380bb00a5891
Partial-Bug: 1571347
2016-04-17 16:59:46 +00:00
Liam Young
b89b7cf93c Charmhelper sync before 1604 testing
Change-Id: Ie00b1a39d14fc44f702aa6b664e8d12ec4fc5de7
2016-04-12 14:09:23 +00:00
Corey Bryant
902224c44b Update config templates for Mitaka
Update api-paste.ini to align with the upstream Mitaka version.

Add nova.conf for Mitaka, dropping all EC2 config options as the
EC2 API was dropped from the nova source tree in Mitaka.

Change-Id: I341d0043d2580db2aa7974537321913dac70c3b7
2016-04-08 15:40:59 +00:00
James Page
e844145fcb Add Juju Network Space support
Juju 2.0 provides support for network spaces, allowing
charm authors to support direct binding of relations and
extra-bindings onto underlying network spaces.

Resync charm-helpers to pickup support in API endpoint
resolution code and add API extra-bindings to the charm
metadata.

Change-Id: Ib9820251c6196c76c726a1854052a855ecb6ffbe
2016-03-31 12:57:57 +01:00
Jenkins
25c7a5968e Merge "Add Liberty template with keystone v3 support" 2016-03-30 08:37:29 +00:00
Liam Young
0e58516b13 Add Liberty template with keystone v3 support
This change adds a template for liberty or above that works with a keystone
v3 endpoint. It also removes the Mitaka template as it duplicated the liberty
one.

Change-Id: Ic0bd24c8516b541c44dac9c8a92357050e75fcf6
Partial-Bug: 1522397
2016-03-29 08:20:24 +00:00
Liam Young
bb9ef8b039 Add pause/resume actions and sync charm-helpers
Adds pause and resume unit to the charm such that the
charm stays paused during maintenance operations.

Change-Id: Ia422aa4077fbdd8cdb0353306c14f5633e2affb8
Partial-Bug: 1558642
2016-03-23 15:41:30 +00:00
Ryan Beisner
e573053e59 Update amulet test for Mitaka; Refactor conf dict checks for clarity and simplicity; Remove Essex conditionals and definition. 2016-02-17 19:36:02 +00:00
James Page
8b03321b06 Drop ec2 and objectstore checks from restart tests for liberty or greater 2016-02-16 18:59:48 +00:00
James Page
56702af828 Disable mitaka tests until all merges land 2016-02-12 12:07:34 +00:00
James Page
a33bded635 Drop tests for ec2 and objectstore on >= liberty 2016-02-12 11:57:24 +00:00
James Page
cdd0ebd146 Enable testing of xenial 2016-02-11 16:54:28 +00:00
James Page
374a284b20 Initial stab at xenial support 2016-02-09 11:19:34 +00:00
Ryan Beisner
55e4482824 Fix typo in mitaka amulet test definition 2016-01-19 12:47:46 +00:00
Ryan Beisner
2dc7d63d61 Update bundletester testplan yaml file 2016-01-08 21:45:55 +00:00
Ryan Beisner
00f36bd6cc Update tests/README 2016-01-08 21:45:40 +00:00
Ryan Beisner
dc76e08f52 Re-number amulet test file names; add missing combos as not-executable for now. 2016-01-08 21:45:21 +00:00
Ryan Beisner
2679026d2c Move 00-setup to prevent extra, unnecessary bootstrap in test runs. 2016-01-08 21:44:57 +00:00
Ryan Beisner
94210e535e remove amulet tests for unsupported releases 2016-01-08 21:44:37 +00:00
Corey Bryant
c4020b6d0a [corey.bryant,r=trivial] Sync charm-helpers. 2016-01-04 16:29:34 -05:00
Ryan Beisner
027dc7c9e0 stop using deprecated delete helpers 2015-10-16 05:41:09 +00:00
Ryan Beisner
0f8976fb18 resync tests/charmhelpers 2015-10-15 20:35:43 +00:00
Ryan Beisner
a80619a289 wait for unit extended status message to determine when the deployment is ready for testing 2015-10-15 16:57:48 +00:00
Ryan Beisner
498f049ee0 expect nova-conductor service 2015-10-14 02:33:13 +00:00
Ryan Beisner
59ab56f858 disable failing essex amulet test 2015-10-14 02:27:48 +00:00
Ryan Beisner
9360af4c41 add api check/wait 2015-10-08 13:35:50 +00:00
Ryan Beisner
f60578ba31 add debug logging to tests 2015-10-07 18:42:13 +00:00
Ryan Beisner
b76c87f181 prep liberty amulet tests, update readme 2015-10-07 18:03:38 +00:00
Ryan Beisner
3e90a323fb clean up really old lint 2015-10-07 17:59:55 +00:00
Ryan Beisner
e891107b9d sync tests/charmhelpers 2015-10-07 17:39:14 +00:00
Ryan Beisner
8698f03e01 update bundletester test plan yaml file 2015-10-06 14:11:50 +00:00
Ryan Beisner
8d60e33fad update amulet test dependency setup file 2015-10-06 14:11:50 +00:00
Christopher Glass
63f63d03c2 Don't assign the same dict to both nova-compute and nova-cloud-controller. 2015-10-05 08:50:03 +02:00
Christopher Glass
9e3d27dcb5 An actual missing semicolon. 2015-10-02 20:02:11 +02:00
Christopher Glass
321717d75d Setting expectations right for the failing test. 2015-10-02 17:36:05 +02:00
Christopher Glass
ca94f0699d Enable rate-limiting for the API. 2015-10-02 14:05:06 +02:00