This random error is due to the different swap space at different
test hosts. In particular, there is a provider who provides VMs with
0 swap space, while other providers provide VMs with 8G swap space.
As a result, Magnum jobs failed at VMs with 0 swap space.
This commit reduces memory consumption of Magnum jobs by reducing the
bay node flavor from 2G to 1G. I consider this as a temporary fix.
A permanent fix should be from infra side to make the swap space
consistent across test nodes.
Partial-Bug: #1521237
Change-Id: Ia043fab1f7665f7299e4094634e02c42b43dcce1
After python-novaclient upgrade from 2.X to 3.X, the gate started
failing with the error below:
nova keypair-add --pub-key /home/jenkins/.ssh/id_rsa.pub default
ERROR (EmptyCatalog): The service catalog is empty.
This commit temporarily works around it by unseting OS_AUTH_TYPE
variable.
See: https://bugs.launchpad.net/python-keystoneclient/+bug/1519624
Change-Id: Ie194c5b4e3555572eba61767621e53b0b06b9ece
Closes-Bug: #1528059
Currently, we require pass bay_ident to rc actions, but this bay_ident's
type is only enforced by creation actions.
If we pass a bad type bay(e.g. swarm bay or mesos bay), REST API will return
500 error. This patch will enforce bay type before every API method.
Closes-Bug: #1526173
Change-Id: I93bd4362c6c084c29100d0c19564e49ca62a1927
This patch will improve tox -e cover when it will be run a summary of
coverage report will be shown afterwards.
Change-Id: I5d10a4ec756dcfea74dfb2bc3d43893caf3f6b26
clean.sh in devstack removes $LOGFILE, $LOGDIR, $SCREEN_LOGDIR,
however $LOGDIR is set "$HOME"("${LOGFILE%/*}") now.
If you run clean.sh, $HOME will be deleted.
This patch avoids removing $HOME directory.
Change-Id: Ic1270134b40f581bb6ec3eb80d642e1e3fb5c5c3
Closes-bug: 1526433
Add bay_ident as an optional parameter when try to list containers.
Partially implements: blueprint add-bay-column-to-container
Change-Id: Ie9461fb672abfc50f4648bae0999db2caf3939f6
This patch addes filters when doing container.list().
One example is when list containter, we might want only list some specify
contianers with given bay_uuid:
objects.Container.list(context, filters={'bay_uuid': 'uuid'})
Partially implements: blueprint add-bay-column-to-container
Change-Id: Ia2f7e6664b8dce77c61bdf18c1ffecd28c8c49b8
All bays use the same trustee_user and different trust. A trust is
created for a bay when the bay is created, and is deleted when the
bay is deleted.
Partially-Implements: blueprint registryv2-in-master
Change-Id: Iab2037677f683fe4c562915b98303da02c59c299
Object "stack" returned by Heat doesn't necessary have the "outputs"
attribute. This could happen when a stack is in failure state. Magnum
needs to handle this case robustly.
Closes-Bug: #1525678
Change-Id: I288af63bd9e2704f9869f3eaf8d8d4c6495a7973
Currently, docker conductor conditionally log the exception. It could
cause lose of debug information.
Change-Id: I13d8a15e4731e5a4bae8d6cb80b054baf5a3dd42
Related-Bug: #1521395
Magnum run several services (Swarm master/agent, Kub
api/scheduler/proxy) as Docker containers. For debugging any gate
issues we need output/configs from these running containers.
Change-Id: I7754b2479dc44e0213c542ee47b2804626ad21b9
In k8s_conductor, lots of code will use bay_ident to get bay_uuid, kinds of
duplicated code, use retrieve_bay_uuid in conductor_utils to replace them.
retrieve_bay_uuid will return bay's uuid from bay_ident
Closes-Bug: #1525035
Change-Id: Id4878e6f834aab095a74ef116257292aff09d6e1
number_of_masters, number_of_minions and number_of_nodes
should be number, not string.
Change-Id: Iac20023f0448aab313302c174e3743b95cd42d7a
Closes-Bug: #1524236
With this patch it will no longer be required to write each
single proxy variable. It will let pass more variable just
in a single line in future if we add more env variables.
passenv = *_proxy will get all variables like http_proxy,
https_proxy, no_proxy and any_proxy etc.
Change-Id: I8fd137d115380bfeb558706edb52d1ac2d95ca79
A new magnum.api.attr_validator.py module is introduced to do the
validation towards OpenStack resources. Currently in Baymodel-creation,
the image validation code is duplicated. We should reduce the
duplicated code and unify the validation both in Bay and Baymodel.
Change-Id: I8517024c77c6dc4082bf2ff6d0205d86e32fbfdc
Partial-Bug: #1522060
For good user experience, we should validate Baymodel's image
in Bay creation. The following 3 conditions will be checked:
1. Image not existed - 404 Not Found
2. Found multiple images with same image name - 409 Conflict
3. Image 'os_distro' field is None or empty string - 404 Not Found
Patially-Implements: blueprint api-parameter-validation
Change-Id: I54a75c005cd7dbf406e6dd31a2f27e8e46c0612c