To start translation, we need to initially import the
translation file - and place it at the proper place so that
the usual CI scripts can handle it.
The proper place is for all python projects
$PROJECT/locale/$PROJECT.pot - see setup.cfg.
Note that we were using _i18n.py from openstack/common
which is likely to go away, so created our own i18n.py
module per best practices:
http://docs.openstack.org/developer/oslo.i18n/usage.html#creating-an-integration-module
Further imports will be done by the OpenStack Proposal bot.
implements blueprint magnum-i18n-support
Change-Id: Ib34bfbe1ae47e077e92a4262642842c845d1a5d6
* If there is localrc exists, devstack will ignore local.conf.
Add some note to clarify this.
* Add VOLUME_BACKING_FILE_SIZE=20G when create cinder volume.
Since when create a default bay, it will require at least 5G * 2
volume, but the default cinder volume group size is only 10G, even
it will sitify 5G *2, but I got failed when use default volume group
size.
* And some other nit fixes.
Change-Id: I24c894d3799ee5aecde551a47c15b6a98546874a
This blocks the heat stack from going into CREATE_COMPLETE status until
all of the swarm services have completely started. This also means that
if the swarm services fail to start, the bay will eventually timeout
instead of going into CREATE_COMPLETE.
Change-Id: I050e206b99793e0a07ba670d141b64592549c61b
Closes-bug: #1452936
Closes-bug: #1457596
The check-functional-dsvm-magnum gate job was failing due to the
functional tests not picking up valid OpenStack credentials.
Update how we aquire credentials -- fixes side effect of how tox 2.0
handles environment variables
Closes-Bug: #1455102
Change-Id: I56ecd8003594fd436874681670bb9ead19b95dea
The quickstart guide requires users to copy-and-paste UUIDs to a
command, which is not user-friendly. This commit walk-around it.
Change-Id: Ie9f9f5525d1a067f0d8ebfcbaeb1471f63a70faf
Closes-Bug: 1454414
Right now the jenkins jobs all failed with ipv4address validate.
We make ipaddress check logic use netaddr
If wsme have better IPv4AddressType changes or magnum api types usage
was not right, we can change latter. Right now, we should
make magnum work.
For netaddr it has been include in global-requirements
For wsme IPv4AddressType, check
ttps://github.com/stackforge/wsme/blob/master/wsme/types.py
Closes-Bug: #1455405
Co-Authored-By: Davanum Srinivas <davanum@gmail.com>
Change-Id: I67e6c9e0377103bf5b0cd4d120c146ef2366f440
Right now, we have templates only vm, we not have baremetal
support now, so I did not doc the baremetal. You can check
template_definition.py for details.
Closes-Bug: #1454591
Change-Id: Ic3bb36bfbdd3a1c68bb40c745db0d38c46f32b86
Now that kubectl is not used in magnum, we need to update the docs.
This patch does the necessary changes.
Change-Id: I99067af163b51ef4ee279498d85c6bd223210e7a
Implements: blueprint python-k8sclient
The current quickstart guide instructs user to create container.json
under current directory, which is not desired. Better to place
the file to home directory.
Change-Id: Ie357cc81e62d4016f009031114af5debff0dbc3b
Closes-Bug: 1454415
This patch removes the use of Kubernetes CLI i.e kubectl
from magnum and adds the support of Kubernetes API.
Change-Id: Ibe7354abba962dde6855225471f468f6a19a41ff
Partially-Implements: blueprint python-k8sclient
This patch implements the status for containers:
1) Error: means container is not exist in docker or container is
exist in docker but status is error.
2) Running: means container is running.
3) Stopped: means container is stopped.
4) Paused: means container is paused.
This patch don't timing sync the status with docker, it sync the status
only when the container-show api is called.
Change-Id: I6a5eea341ed507afb4895408b2e2ed429094785a
Implements: blueprint container-status
* Since the volume is being hot plugged after instance boot, there
is a chance cloud-init could get to the volume config script before
the volume has been hot plugged. So, this adds a check that waits
for the volume to be present.
* In order to make absolutely sure the disk by-id symlinks have been
created by udev, we trigger udev before we check for the volume.
Change-Id: Ibeef639bd14bc85eeb65ba0d687f64ccf11f3c59
Closes-Bug: #1452853
This change adds support for using a Container's name instead of
it's UUID in Container API calls. If there is more than one
Container with the same name, an exception will be raised and the
user will need to provide a UUID instead.
Closes-Bug: #1452650
Change-Id: I058bde5f41016c91cf68a5b5c574d181a58e4836
In oslo.versionedobjects, objects are registered inside a separate
ObjectRegistry class. Each object is registered with a decorator
(with less magic). Also remove unused check_object_version method.
Related to blueprint versioned-objects
Change-Id: I0f9fd3fdaa754480ccd9e18b6c15501900aa46ee
As part of migrating to oslo.versionedobjects, use decorators from Oslo.
Related to blueprint versioned-objects
Change-Id: I71bbb723e7dd102b598ad4c92f31802a8b4bdc3d
Slim down MagnumObject to accomodate the newest implementation from Oslo,
migrate all fields to their types defined in oslo_versionedobjects.fields.
This migrates almost all of the versioned objects code to Oslo, next patch
will implement the new registration scheme.
Related to blueprint versioned-objects
Change-Id: I75a77280042469ede05158683bc4f94e3b76abbd
Query db first to make sure container exist or not, and then
call remote api for container
Closes-Bug: #1453709
Change-Id: Ib74120a5d7f560e878b7dd26183173679c6cc75c
Using the old manifests raises an error, update the path in the guide to
point to the correct manifests.
Change-Id: Ifd47746e1261da43d3a2d72fe2e9c655f8f58be0
Closes-Bug: 1453078
Now that Kubernetes 0.15.0 release is supported and it has
v1beta3, the manifest structure has changed from v1beta1 to
v1beta3. This change implements the v1beta3 manifest parsing
logic for service resource of Kubernetes.
Change-Id: I1200473f91118eaa48b1cec386f30cf8a50708b5
Partially-Implements: blueprint python-k8sclient
A previus commit introduced a regression which caused kubectl not
to configure properly. This results in kube minions staying in the
NotReady state and this script not completing execution.
Change-Id: I336c21ac2660c4c19c401b8ecbd8015cc44dbfdd
Closes-Bug: #1453470