Frode Nordahl
6c5e06ed86
Merge pull request #109 from n-pochet/unit-from-name
...
Make `get_unit_from_name` use `model_name`
2018-08-17 09:01:48 +02:00
Nicolas Pochet
7b1441d953
Make get_unit_from_name use model_name
2018-08-17 08:58:16 +02:00
Frode Nordahl
2c39eb2c7a
Merge pull request #110 from n-pochet/add-exception
...
Add `CommandRunFailed` exception
2018-08-17 08:44:50 +02:00
Nicolas Pochet
fb39813bb1
Add CommandRunFailed exception
...
Add exception to make the exception's message building easier.
2018-08-17 08:23:39 +02:00
Frode Nordahl
968a61a922
Merge pull request #116 from fnordahl/issues/115
...
Check already applied config before attempting to set
2018-08-17 08:05:44 +02:00
Frode Nordahl
76d2576046
Check already applied config before attempting to set
...
Fixes #115
2018-08-17 07:35:46 +02:00
Frode Nordahl
b6ecef8eec
Merge pull request #114 from fnordahl/issue/113
...
Fix race in `test_utils.config_change()`
2018-08-16 14:54:59 +02:00
Frode Nordahl
4726db35af
Fix race in test_utils.config_change()
...
When changing config we have a race that make the idle/ready
check run *before* the `config-changed` hook has started executing
on units. Subsequently tests are sometimes executed before or while
configuration change is in progress, leading to intermittent false
negative test failures.
Fixes #113
2018-08-16 14:48:20 +02:00
Liam Young
8157e3bbfb
Merge pull request #112 from n-pochet/bug/111
...
Fix parameters passed to `async_run_on_unit`
2018-08-14 10:25:47 +01:00
Liam Young
4416ff9cb8
Merge pull request #103 from fnordahl/add-keystone-charm-tests
...
Add keystone setup and test code
2018-08-14 10:23:47 +01:00
Nicolas Pochet
b84b24b72a
Fix parameters passed to async_run_on_unit
...
Fixes #111
2018-08-14 11:02:33 +02:00
Frode Nordahl
cf53191e3c
Add keystone setup and test code
2018-08-14 08:03:33 +02:00
Liam Young
8b98b2369e
Merge pull request #108 from fnordahl/add-keystonev2-session-client
...
Add keystonev2 session client
2018-08-10 11:29:59 +01:00
Frode Nordahl
811c91aec5
Add ability to get a v2 client
...
If you want to set up tenants and other v2-only constructs
you need a real v2 client.
2018-08-10 11:15:22 +02:00
Ryan Beisner
c68e5c6d18
Merge pull request #107 from gnuoy/update-global-readme
...
Add some pointers to docs etc in global readme
2018-08-09 10:32:58 -05:00
Liam Young
c29a5f3ad9
Merge pull request #106 from n-pochet/handle-unit-not-found
...
Handle unit or app not found
2018-08-09 15:53:38 +01:00
Liam Young
0918582233
Add some pointers to docs etc in global readme
2018-08-09 15:51:04 +01:00
Liam Young
b277cd75d4
Merge pull request #105 from fnordahl/fix-docs-virt-type
...
Fix error in documentation
2018-08-09 15:45:49 +01:00
Nicolas Pochet
90491103ce
Handle unit or app not found
...
Fixes #104
2018-08-09 16:42:21 +02:00
Frode Nordahl
bf96b9b063
Fix error in documentation
...
virt-type is not a model setting but a model constraint.
2018-08-09 16:02:40 +02:00
Frode Nordahl
41a8f7af51
Merge pull request #102 from n-pochet/add-copyright
...
Add copyright header everywhere.
2018-08-09 12:08:26 +02:00
Nicolas Pochet
193e2657ff
Add copyright header everywhere.
...
Also make flake8 happy in setup.py by adding docstrings.
2018-08-09 11:55:13 +02:00
Liam Young
f8fdc65e50
Merge pull request #101 from fnordahl/add-config-change-helper
...
Add config_change helper
2018-08-09 09:39:24 +01:00
Liam Young
ac88e9aad5
Merge pull request #99 from fnordahl/openstack-auth-specify-address
...
openstack: Allow specifying address to keystone
2018-08-09 09:37:24 +01:00
Liam Young
11cb656e41
Merge pull request #97 from n-pochet/feature/add-openstack-utilities
...
Add a way to compare OS release pair
2018-08-09 09:36:29 +01:00
Frode Nordahl
dcc07d893a
Add config_change helper
...
Also fix wrong arguments to model.wait_for_application_states()
2018-08-09 10:05:30 +02:00
Frode Nordahl
910a6ba6e2
openstack: Allow specifying address to keystone
2018-08-09 07:26:43 +02:00
Nicolas Pochet
d8f07e66ab
Make exception more generic
2018-08-08 23:21:07 +02:00
David Ames
923049f9a8
Merge pull request #98 from openstack-charmers/license
...
Add license, copyright and update package info
2018-08-08 14:16:39 -07:00
Ryan Beisner
ac0b7995c5
Add license, copyright and update package info
2018-08-08 16:11:04 -05:00
Nicolas Pochet
f0e0cdd3c2
Add get_machine_series
2018-08-08 18:46:00 +02:00
Nicolas Pochet
077f2af87c
Make get_current_os_release_pair variable
...
It is possible to use `get_current_os_release_pair` with an argument or
to use the default one (`keystone`)
2018-08-08 18:44:09 +02:00
Nicolas Pochet
d891227494
Add a way to compare OS release pair
...
It was a functionality available in charm helpers. It is implemented in
a similar way:
* Get the current series from the `keystone` machine
* Get the OS version from `get_current_os_versions`
* Try to find the built string in `OPENSTACK_RELEASES_PAIRS`
It is thus possible to compare release pairs as it returns integers.
2018-08-08 15:23:40 +02:00
Chris MacNaughton
6dda9c70a8
Merge pull request #96 from fnordahl/fix-model-name-fallout
...
Fix model name fallout
2018-08-08 12:09:02 +02:00
Frode Nordahl
7d56d781c5
Fix order of arguments passed to model.run_action()
...
Fixes #95
2018-08-08 11:36:55 +02:00
Frode Nordahl
8dbe371d62
Make it possible to call run_action() without passing action_params
...
Fixes #94
2018-08-08 11:34:18 +02:00
Chris MacNaughton
43e2375537
Merge pull request #92 from fnordahl/issue/91
...
Fix ordering of arguments in call to `async_run_on_unit`
2018-08-08 11:11:01 +02:00
Frode Nordahl
e408be6719
Fix ordering of arguments in call to async_run_on_unit
...
Fixes #91
2018-08-08 10:56:25 +02:00
Chris MacNaughton
31b68a7806
Merge pull request #89 from fnordahl/bgp-speaker-remove-add-workaround
...
Remove and add BGP speaker from dragent
2018-08-06 11:48:34 +02:00
Frode Nordahl
820ed8083d
Remove and add BGP speaker from dragent
...
Workaround for LP: #1784083
2018-08-06 00:03:32 +02:00
Chris MacNaughton
252a008d23
Merge pull request #88 from fnordahl/retrieve-password-from-keystone
...
Retrieve password from keystone
2018-08-01 16:08:52 +02:00
Frode Nordahl
97c8c69675
Improve password security
...
Retrieve password from leader settings on keystone leader
unit.
2018-08-01 15:36:10 +02:00
Frode Nordahl
200ba35d57
Add functions: run command on leader, get leader settings
2018-08-01 15:31:24 +02:00
Frode Nordahl
a67edfb444
Merge pull request #87 from gnuoy/feature/launch-instance
...
Changes to enable testing creating a guest
2018-08-01 10:25:56 +02:00
Liam Young
7a901108c4
Changes to enable testing creainting a guest
...
This is a bundle of disparate changes that enable testing the
creating of a guest instance. At a high level these are:
* Add helpers for downloading ubuntu images.
* Add method for setting up a basic overcloud network. This is very
similar to zaza.configure.network.run_from_cli
* Add nova setup module that includes create_flavors and
manage_ssh_key
* Add nova test base class for launching an instance and two
derived classes for launching a cirros and lts image respectively.
* Fixes to zaza.charm_tests.test_utils after the refactor of the model
argument in zaza.models
* New certs.is_keys_valid function to check if a public and private
key are a pair.
* Methods in utilities.openstack for managing ssh keys. On creation of
a new key the private key is stored locally and the public key is
retrieved from Openstack
* Methods in utilities.openstack for testing guests at various points
of the creation process.
2018-08-01 07:30:24 +00:00
Frode Nordahl
43dea67b00
Merge pull request #85 from gnuoy/feature/charm-overide-local-overlay
...
Allow charms to override local overlay
2018-08-01 07:42:40 +02:00
Frode Nordahl
23201ccc4d
Merge pull request #86 from gnuoy/feature/add-glance-setup
...
Add method for setting up cirros image.
2018-08-01 07:41:41 +02:00
Liam Young
0d49aaa009
Add method for setting up cirros image.
...
add_cirros_image is designed to be called by the configure step
of charms to setup a cirros image in the deployment.
2018-07-30 08:58:59 +00:00
Liam Young
f830aaa90c
Allow charms to override local overlay
...
The local overlay ('local-charm-overlay.yaml') is generated on the
fly during deploy time and it assumes that the application name
will match the charm name. However this is not always the case so
allow charms to override the deploy time generated template with
one from the local tests/bundle/overlay directory.
This is really another stop-gap until the whole bundle generation
piece is rewritten.
2018-07-30 07:32:18 +00:00
Liam Young
511103e2af
Merge pull request #84 from openstack-charmers/enable-dev-bundles
...
Enable dev_bundles flag and add unit tests
2018-07-17 18:07:20 +01:00