2234 Commits

Author SHA1 Message Date
YangLiYun
28f7f0bbd1 Cleanup MagnumService Object usage
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
2016-01-29 15:39:28 +08:00
Jenkins
511b9df1c6 Merge "Fixed an issue that prevent kube-proxy to start" 2016-01-28 23:01:51 +00:00
Jenkins
3fe7513185 Merge "Validates baymodel volume_driver requests" 2016-01-28 23:01:44 +00:00
Jenkins
fb2e675057 Merge "Add initial terminology definitions" 2016-01-28 10:22:26 +00:00
wangqun
f2629f288c Validates baymodel volume_driver requests
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
2016-01-28 03:15:39 +00:00
Hongbin Lu
22af82e37d Fixed an issue that prevent kube-proxy to start
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
2016-01-27 19:07:50 -05:00
Stephen Gordon
9d8c9466ae Add initial terminology definitions
Add initial terminology definitions for bay, baymodel, and
container orchestration engine in the context of Magnum.

Change-Id: Iae80d86421517c25cce4e46d1c9683bebf475d54
2016-01-27 17:54:15 -05:00
Jenkins
ca8268f8b9 Merge "Updated from global requirements" 2016-01-27 10:35:52 +00:00
Jenkins
c15fe398de Merge "Adds volume_driver in db api" 2016-01-27 09:45:49 +00:00
Eli Qiao
022bba9c06 Use magnum-config-generator.conf to generate Magnum config sample file
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
2016-01-27 11:28:26 +08:00
OpenStack Proposal Bot
d2a05e1188 Updated from global requirements
Change-Id: I6610fb67fb613f221fa126470d030f7c80ca1824
2016-01-26 23:24:15 +00:00
Jenkins
ac0e251df2 Merge "Remove dev prefix in magnum/doc/source/dev" 2016-01-26 17:03:06 +00:00
Jenkins
9260fc8038 Merge "Fix typo in comment of several files" 2016-01-26 11:08:08 +00:00
Jenkins
1107feb9d1 Merge "Improve Tempest credential provider usage" 2016-01-26 10:24:29 +00:00
Jenkins
9a14bd770b Merge "Revert "fixed_network should be fixed_network_cidr"" 2016-01-26 10:17:29 +00:00
Jay Lau
0427694a9d Remove dev prefix in magnum/doc/source/dev
There is no need to add dev as prefix since all of the documents
are under dev directory.

Change-Id: I37b9ee7a4a105c1591c73d9b2ac86a82c293fda1
Closes-Bug: #1532403
2016-01-26 03:54:42 -05:00
wangqun
6dc4816521 Adds volume_driver in db api
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
2016-01-26 05:42:11 +00:00
Jenkins
e5397eabeb Merge "Propose Magnum Volume Integration Model" 2016-01-26 01:12:46 +00:00
Vilobh Meshram
3732045c44 Fix typo in comment of several files
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
2016-01-25 16:36:03 -08:00
Jenkins
bc6dc11339 Merge "Fixing typo in comment of several files" 2016-01-26 00:12:24 +00:00
Jenkins
16b2594bf6 Merge "UT: cleanup in API test cases for response attr verification" 2016-01-25 23:56:40 +00:00
Eli Qiao
3da0e70726 UT: cleanup in API test cases for response attr verification
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
2016-01-25 17:22:15 +08:00
Yash Bathia
b0a5e3b631 Fixing typo in comment of several files
Typo in the spelling of 'against' (written as 'agaist') is observed
in the comment of several files.

Change-Id: Idefb5d70dba554e2ea732af9d53f4bbe7e49e557
2016-01-25 00:16:04 -08:00
OTSUKA, Yuanying
cb211c165e Revert "fixed_network should be fixed_network_cidr"
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
2016-01-25 11:31:57 +09:00
OpenStack Proposal Bot
d78bc0006e Updated from global requirements
Change-Id: Ic7f191c5ade8773d9955c3de3705d742846d0bac
2016-01-24 22:06:08 +00:00
Corey O'Brien
d52965d2d0 Improve Tempest credential provider usage
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
2016-01-22 15:13:42 -05:00
Jenkins
ada8eed31e Merge "Add troubleshooting for network" 2016-01-22 19:58:14 +00:00
Jenkins
e15fcebadb Merge "Fix the network_driver update invalid parameter can be update" 2016-01-22 19:54:24 +00:00
Jenkins
5302b88a1b Merge "Add volume to Kub master" 2016-01-22 09:15:34 +00:00
Jenkins
dc6aee868b Merge "Fix the CoreOS template definition" 2016-01-22 09:01:50 +00:00
wangqun
c46681ae2b Fix the network_driver update invalid parameter can be update
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
2016-01-22 07:17:42 +00:00
Ton Ngo
1d1eacceb9 Add troubleshooting for network
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
2016-01-21 22:39:12 +00:00
OpenStack Proposal Bot
4717e94e8a Updated from global requirements
Change-Id: I268b6a3bdc198a352b848f48ec559d86ceec7539
2016-01-21 17:43:00 +00:00
Egor Guz
ca34c5d813 Add volume to Kub master
Add Cinder volume to the master and configure Docker DeviceMapper to use it

Change-Id: I87a69175bae941d4e3bea95fce71fe3974b7cdc5
Related-Bug: #1500062
2016-01-20 23:12:58 -08:00
houming-wang
c09af59f0f properly sign a certificate without bay name
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
2016-01-21 11:39:28 +08:00
Jenkins
96a6a369f6 Merge "Add initial documentation for troubleshooting gate" 2016-01-20 22:47:53 +00:00
Jenkins
fc41768cbc Merge "Updated from global requirements" 2016-01-20 18:48:37 +00:00
Jenkins
ec14d69f62 Merge "Remove redundant checks" 2016-01-20 17:45:53 +00:00
Hongbin Lu
3509dbcbd5 Fix the CoreOS template definition
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
2016-01-20 11:16:46 -05:00
Jenkins
1bad2946dd Merge "Fix the CoreOS Heat templates" 2016-01-20 10:20:16 +00:00
Vilobh Meshram
fc7b173f26 Remove redundant checks
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
2016-01-19 12:26:16 -08:00
OpenStack Proposal Bot
3930d99a42 Updated from global requirements
Change-Id: I017360f47cc82076bb748a5a9ee0dc35d8abb8fb
2016-01-19 13:48:23 +00:00
houming-wang
92450109b1 "notification_driver" from group "DEFAULT" is deprecated
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
2016-01-19 18:09:37 +08:00
Jenkins
4c0864d2bb Merge "Fix Docker storage configuration for Swarm" 2016-01-19 09:22:34 +00:00
Jenkins
d83a27adba Merge "Imported Translations from Zanata" 2016-01-19 00:40:34 +00:00
Hongbin Lu
dc1eacee60 Fix the CoreOS Heat templates
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
2016-01-18 20:42:25 +00:00
Thomas Maddox
af95b3fb48 Add initial documentation for troubleshooting gate
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
2016-01-18 19:07:30 +00:00
Jenkins
b4abeeafa7 Merge "Add debug testenv in tox" 2016-01-18 08:26:47 +00:00
Jenkins
997f80238a Merge "Add copying tempest.conf instructions to guide" 2016-01-18 08:26:41 +00:00
Jenkins
5f841f38c4 Merge "Change 404 to 400 when resource not found exception raises" 2016-01-18 08:26:34 +00:00