Some of MagnumService's function doesn't require context at all, we
should clear document these and correct some of wrong usage.
Closes-Bug: #1539438
Change-Id: I2b576e8e7fa0b048f022940dc23422d822b68681
Instead of allowing any volume_driver value to be accepted by the
baymodel API. When creating baymodel, the patch can limit the
volume_driver value for the different coe.
Kubernetes <=> volume_driver = "cinder"
Swarm <=> volume_driver = "rexray"
Mesos <=> volume_driver = "rexray"
Co-Authored By: Kai Qiang Wu(Kennan)<wkqwu@cn.ibm.com>
Co-Authored By: Ton Ngo<ton@us.ibm.com>
Partially-Implements: blueprint magnum-integrate-with-cinder
Depends-On: I52c97e2b04ac636ddac611e3677c4ea3972220eb
Change-Id: I25f1cd005a39950c47f31a8b925f664909b79ee3
In k8s minion node, kube-proxy container failed to start because
the path of TLS certificates is not configured correctly. By
debuging further, it looks the script that write down the path
exited unexpectedly with the following error:
/etc/sysconfig/heat-params: line 25: WAIT_CURL: unbound variable
Therefore, the fix is to fill that variable.
Change-Id: I3e510f5bd52c20090696da8030b7203e395d960b
Closes-Bug: #1538796
Add initial terminology definitions for bay, baymodel, and
container orchestration engine in the context of Magnum.
Change-Id: Iae80d86421517c25cce4e46d1c9683bebf475d54
We hard code configure options in tox.ini to generate Magnum config
sample file, and we keep this config sample file in our repository
before.
It is inconvenient for developer if the add/remove/change some
configuration options cause they need to take care about the
config.sample file.
This patch removes magnum.config.sample instead of letting admin generate it
from magnum-config-generator.conf(picked from tox.ini).
P.S. Make tox.ini cleanup since it is not a good idea we mess up tox.ini
with configuration options.
Closes-Bug: #1538374
Change-Id: I80d019b5c98e0282cd0fe50fd4ad66286287e2cb
There is no need to add dev as prefix since all of the documents
are under dev directory.
Change-Id: I37b9ee7a4a105c1591c73d9b2ac86a82c293fda1
Closes-Bug: #1532403
Adds volume_driver to the following:
1. api baymodel attribute
2. a new column to the baymodel db
3. objects.Note: Updates baymodel object version
4. Unit tests
Co-Authored By: Kai Qiang Wu(Kennan)<wkqwu@cn.ibm.com>
Co-Authored By: Ton Ngo<ton@us.ibm.com>
Partially-Implements: blueprint magnum-integrate-with-cinder
Change-Id: I25506bd39ab4be513ef99c39f8c52a502b300d92
Typo in the spelling of 'against' (written as 'agaist') is observed
in the comment of several files. Not everything was covered as part of
Idefb5d70dba554e2ea732af9d53f4bbe7e49e557.
Change-Id: Ie2ac2be3e18afdf644e02288f13f10c10f6bc723
Add local variable to indicate the response of a bay(baymodel) should be.
A new private helper function is added to do attribute verification.
This patch adds some missing attrs which are missed when new attrs are
added to bay/baymodel.
Change-Id: I32dbf746bf30298eed90c2a73f5b0e63d81ac856
Typo in the spelling of 'against' (written as 'agaist') is observed
in the comment of several files.
Change-Id: Idefb5d70dba554e2ea732af9d53f4bbe7e49e557
Originally BayModel#fixed_network was used for setting which
fixed_network was set to Bay [1].
But this attribute changed to setting fixed_network_cidr [2].
This patch removes mapping for fixed_network_cidr.
And also, fixed_network_cidr attribute will be add to
baymodel [3].
Magnum user want to specify fixed_network for bay, so I'll add
a mapping to template definition to set fixed_network
next patch.
[1]: bc3bc6190d/magnum/conductor/handlers/bay_k8s_heat.py (L101)
[2]: I624b95930f9eb506abfb2e29beea8d83878ea142
[3]: Ia74ed924b3058b4891775f34f1b9624774c02ddb
Change-Id: Ia9820213bcc0e2a451450dd014e774843b881fd1
Closes-Bug: #1536484
Instead of getting a DynamicCredentialProvider directly, use the
get_credentials_provider function. This allows for configuration via
TEMPEST_ variables, but the default will still be dynamic credentials.
Only create the default keypair for tests if it doesn't already exist.
Ensure that credentials are freed by calling clear_creds in all cases.
Change-Id: I62ad5ed9fe7c9f6675989df459f92194bb8d67a8
Implements: blueprint magnum-tempest
Now, we update the network_driver value. The invalid value can be update.
The network_driver validate function dosen't work.
Change-Id: If3672fa7a11ec8c414ce9c94c676c90ede216115
Closed-Bug: #1536098
Cover the scenario when nodes cannot connect to internet
The nodes need to connect to the internet for discovery and
image download. No network connection is a basic failure
and can happen at any time. This patch describes some
techniques for debugging.
If you have encountered a scenario not described here, please
mention in the review.
Partially implements: blueprint magnum-troubleshooting-guide
Change-Id: I69ca9d624b960329109fbbed8634646e63aa5118
When sign a self-signed certificate, bay.name is used as issuer_name,
but when we create a bay without name, this process will fail. Fix it.
Change-Id: I02c73769b97ab58b435e3211c218e62f7aaef4e4
Closes-Bug: #1535825
The CoreOS template has been fixed [1]. This patch is for updating
the CoreOS template definition.
[1] https://review.openstack.org/#/c/262628/
Partial-Implements: blueprint coreos-k8s-bay
Change-Id: I19660bfa702f8349090fd66d098bd037f2316f0d
By default if a value is empty or an attibute is not present, None
will be returned. Adding is specifically is not needed. Cleanup
parts of code which does this check.
Change-Id: I3f355db5788a1fc0fe7b8e3332d926306bf35e03
Option "notification_driver" from group "DEFAULT" is deprecated.
Use option "driver" from group "oslo_messaging_notifications"
Reference link:
[1] https://github.com/openstack/oslo.messaging/blob/master/
oslo_messaging/notify/notifier.py#L34
Change-Id: I3e211ac315bb582961ad03e2cf06d4409eb20ed3
Closes-Bug: #1535611
This patch follows the CoreOS guidance for kubernetes:
https://coreos.com/kubernetes/docs/latest/getting-started.html
CoreOS doesn't support multi-part mime user-data, so we cannot pack
multiple scripts into one (which we did in Atomic). The major work of
this patch is to wrap each cloud-init script with a systemd unit,
which will be executed one-by-one at the first boot.
Note that this patch only enable a basic CoreOS support. Advanced
features (i.e. TLS, Cinder volume, HA, external load balancing) are
not included. These features need to be ported from Atomic as a
future work.
Partially-Implements: blueprint coreos-k8s-bay
Change-Id: Ib6fe76718ac9b198e0aae57618d3edd98792f15d
After repeated trouble digging into gate failures,
this documentation should help a new or seasoned
Magnum developer simulate gate test failures for
troubleshooting purposes.
Partially implements: blueprint magnum-troubleshooting-guide
Change-Id: Ib015b404027af30d82f6aa2538f78cba820cbce4