2340 Commits

Author SHA1 Message Date
Hua Wang
138483a0bd Rename get_rpc_resource to get_resource
Rename get_rpc_resource to get_resource. Because there is no rpc
call in this method.

Change-Id: I4dfba86b9932c9def08959f7fb1df98b7bc41436
Closes-Bug: #1549650
2016-02-26 10:06:00 +08:00
Yang Hongyang
b0b3a3db00 Init oslo_context before magnum context init
Roles is added as a member of oslo.context since oslo 2.2.0
https://review.openstack.org/#/c/271928/
This causes magnum gate fail because roles is overwrited by
oslo_context. Let's init oslo_context first and then make
our local changes.

Change-Id: Iac8c568bd49fbc66d2d65c9b6083bc9895a8069c
Closes-Bug: #1549694
2016-02-25 21:39:06 +08:00
Jenkins
6fbae6c8ed Merge "Add trust info into heat params" 2016-02-25 04:01:31 +00:00
Jenkins
b7b2535f9f Merge "Create a trustee user for each bay" 2016-02-25 04:01:24 +00:00
Jenkins
687931fab1 Merge "Add tempest logging to bay_client and test_bay helper methods" 2016-02-25 01:30:37 +00:00
Jenkins
f9f866386e Merge "Updated from global requirements" 2016-02-25 01:11:47 +00:00
Jenkins
7a6f37a880 Merge "Add master_flavor_id to baymodel data funtion test" 2016-02-24 23:07:42 +00:00
Jenkins
55007d2803 Merge "Rename network driver name in Validator class" 2016-02-24 23:00:42 +00:00
Jenkins
7c349eafc6 Merge "Avoid to create $SCREEN_LOGDIR" 2016-02-24 23:00:21 +00:00
OpenStack Proposal Bot
5cbc6ef76e Updated from global requirements
Change-Id: Id84a7ab6ea861a7d5048db24718bd9ba489035a4
2016-02-24 21:46:00 +00:00
Jenkins
e236f3a5c8 Merge "Replace string format arguments with function parameters" 2016-02-24 21:36:29 +00:00
Corey O'Brien
8270d3cc7a Fix gate for client and devstack
These two changes have to merge together to pass the gate.

Update import because of magnum client change
  Magnum client has moved out apiclient and cliutils from
  oslo-incubator, update the import reference here.
  Refer to:
    https://review.openstack.org/#/c/280050
  for magnumclient change.

Change SERVICE_TENANT_NAME to SERVICE_PROJECT_NAME
  Devstack is converting from TENANT to PROJECT[1]. This patch changes
  SERVICE_TENANT_NAME to SERVICE_PROJECT_NAME in the devstack plugin to
  match.

[1] https://review.openstack.org/#/c/281779/

Change-Id: Ib03e421e48a3aa40c11cbc892a3ca724cbd644e7
Closes-Bug: #1548634
Co-Authored-By: Yang Hongyang <hongyang.yang@easystack.cn>
2016-02-23 23:48:26 -05:00
Eli Qiao
f58431d67d Rename network driver name in Validator class
The reason is:
We added volume driver to the validator so that we need to identify
network driver to make them as clear as them are.

Beside, fix a wrong case in volume driver validatior.

Change-Id: I128fcd3856fba49f0784e90fd6db3d591a7ed7ae
2016-02-23 17:52:29 +08:00
OTSUKA, Yuanying
32cfd6c2cc Avoid to create $SCREEN_LOGDIR
It is possible not to give SCREEN_LOGDIR variable in devstack.
And also, SCREEN_LOGDIR is creating in stack.sh itself [1].
So we can remove our code which is creating SCREEN_LOGDIR.
This code breaks stack.sh process if user doesn't give this
variable.

[1]: 2688eedc51/stack.sh (L454)

Change-Id: I5c6ce81a97635b60fc1633397a24f93dc590fad6
Closes-Bug: #1548197
2016-02-22 15:31:57 +09:00
Hua Wang
1d2db245b7 Add trust info into heat params
Add trust info into heat params. If any service wants to use the
trust, it can get the info from the heat params.

Change-Id: I406a80d0d4fc92c6045b902945198a0d765f1123
Partially-Implements: blueprint create-trustee-user-for-each-bay
2016-02-22 11:58:53 +08:00
ting.wang
b9aa042293 Replace string format arguments with function parameters
There are files containing string format arguments inside logging
messages. Using logging function parameters should be preferred.

Change-Id: Id558f66de13146f6ae76a7a69f49721b6c3d6257
Closes-Bug: #1321274
2016-02-20 23:39:33 +08:00
wangqun
671e3d5f6c Add master_flavor_id to baymodel data funtion test
Previously when testing function baymodel, The baymodel
data don't add master_flavor_id data to test

The patch adds the master_flavor_id to baymodel data
funtion test
Change-Id: Ib31f9d9f2214a44fbd620097b7de5ce3ce8a0402
2016-02-20 12:38:22 +00:00
OpenStack Proposal Bot
39288ea1dd Updated from global requirements
Change-Id: I18f9f21f2a0a05a750c35bb0d16086c865690c49
2016-02-19 22:13:56 +00:00
Jenkins
6cebbbb44e Merge "Add q-lbaas to manual-devstack.rst" 2016-02-19 21:49:54 +00:00
Jenkins
9632d12065 Merge "Troubleshooting Kubernetes networking" 2016-02-19 19:51:14 +00:00
dimtruck
8f5952fa6b Add tempest logging to bay_client and test_bay helper methods
This patch will add tempest logs to bay_client and
test_bay helper methods to provide ability in debugging
gate issues as well as ability to run analysis on logs

Closes-Bug: 1545124
Change-Id: Id5bda1a8776c29ec7cbe2366b3139358811b57c7
2016-02-19 10:53:53 -06:00
Jenkins
f48946fb95 Merge "devstack: Comment out logging configuration" 2016-02-19 10:48:13 +00:00
YAMAMOTO Takashi
1b2332dfbf devstack: Comment out logging configuration
And move them into "Modify to your environment" section
because they are not appropriate for every environment.

Change-Id: I6d49e1df1f114dc8abc4404f469e25bb3a2a0a8b
2016-02-19 12:19:45 +09:00
OTSUKA, Yuanying
80a3be735e Add q-lbaas to manual-devstack.rst
Currently, magnum needs q-lbaas. So manual must refer to
`q-lbaas`. This adds it.

Change-Id: I4332b4813f952dfc7c80737b2b95c647ce50f70d
Closes-Bug: #1547266
2016-02-19 09:10:47 +09:00
Chaozhe.Chen
76a6456781 Add missing test-requirements
pytz is needed in our unit tests.

Change-Id: I748a7bce87ba1ce01b2a89a77b5da72566f5c0ea
2016-02-18 22:00:18 +08:00
Hua Wang
725bd5c99d Create a trustee user for each bay
Docker registry, k8s load balancer and volume driver have a similar
need to use trust, so we need to create a trustee for each bay.

Change-Id: If034e74ce2ea80a7faa886d4edf789e576c30eb5
Partially-Implements: blueprint create-trustee-user-for-each-bay
2016-02-18 18:16:35 +08:00
Jenkins
c89f4f8ae9 Merge "Fix misleading M310 unit test outputs" 2016-02-17 22:00:45 +00:00
Yang Hongyang
6ef50348db Fix misleading M310 unit test outputs
Filename here makes no sense, let remove it to avoid misleading
outputs.

Change-Id: I75be802928d338ef050913990989198c85d19012
Closes-Bug: #1546318
2016-02-17 05:59:03 +08:00
OpenStack Proposal Bot
3cb4b42da2 Updated from global requirements
Change-Id: Ib34bda2b2d9d17022accf572dfd6214b8e40fe33
2016-02-16 21:51:42 +00:00
Jenkins
18a6cf6f97 Merge "Fix string formatting bug" 2016-02-16 21:34:39 +00:00
Corey O'Brien
f4f94e9b4b Fix string formatting bug
Change-Id: I2dc6e64879eafa5aeb7179c5067b6066d27893ec
Closes-Bug: 1546123
2016-02-16 09:41:16 -05:00
Jenkins
e15a6421f1 Merge "Remove node object from Magnum" 2016-02-16 14:36:00 +00:00
Michael Still
7e6a2e81e0 Cleanup unused conf variables
I noticed in nova that we had a lot of unused conf variables. I
wondered if this was a thing in other projects as well. Turns out
it is.

Change-Id: Id0bee1b96d005b8fa9a9ee07f7bdbf73515811ce
2016-02-16 16:28:25 +11:00
Jenkins
fa7e2f0482 Merge "Turn selinux back on after cloud-init" 2016-02-15 23:07:38 +00:00
Jenkins
3279334987 Merge "API: Move validate_properties to REST API layer" 2016-02-14 08:40:42 +00:00
Jenkins
8261e7df40 Merge "Updated from global requirements" 2016-02-13 03:10:48 +00:00
OpenStack Proposal Bot
0242aaa6c4 Updated from global requirements
Change-Id: I62364f794a82b10c12403837c6bfb6a8c903acc6
2016-02-12 20:02:06 +00:00
dimtruck
6ccda1ad10 Add magnum certificate api tests
This patch will add cert API test for signing and showing
certificates.

The tests for certificates are integrated into test_bay
tests in order to reuse an already existing bay for
cert testing.  As a side effect, this patch also
combines update bay test with create, list, and delete
to minimize the time spent waiting on bay create.

Implements: blueprint magnum-tempest

Change-Id: Ifbb4c779376fa401ca2538aba5097f7af8b4973e
2016-02-12 09:47:41 -06:00
Jenkins
ad21348330 Merge "Make bandit job voting" 2016-02-12 02:13:24 +00:00
Jenkins
77023b0134 Merge "Bay test cleanup" 2016-02-12 01:36:06 +00:00
Jenkins
8dd45bbab7 Merge "Reduce memory consumption of gate tests" 2016-02-12 01:08:31 +00:00
Jenkins
e7c62ed9b0 Merge "Change BayModel#coe type to wtypes.Enum" 2016-02-11 23:21:11 +00:00
Corey O'Brien
7dff331a96 Bay test cleanup
Removed some COE tests that duplicate the functional-api tests.
Consolidated duplicate code around certificates and made BayTest
always create and delete a bay so that the COE api tests can all
work off of a single bay per class.

Change-Id: I2ff7e2fd587657fb4dd171c1470c5bb208c331b5
Closes-Bug: 1544196
2016-02-10 12:49:42 -05:00
Hongbin Lu
dca02f1d98 Reduce memory consumption of gate tests
Recently, the gate jobs took too long to complete (between 2 to 8
hours). The reason is jenkins slave agent die during the test, which
cause the CI to re-start the whole test in a new VM.

The failure mainly occurred at magnum-api pipeline, but also occurred
at other pipelines. In term of distribution of test nodes, this
failure mainly occurred at OVH nodes, in which there is no dedicated
swap device. As a result, at OVH nodes, local disk is used for swap
when memory is over-consuming. It looks this leads to resource
starvation, which cause the failure.

This patch attempted to reduce the memory consumption of the gate
tests. In the api test, the number of worker nodes was reduced from
2 to 1. In all tests (api/k8s/swarm/mesos), the memory of worker node
was reduced from 1G to 512M.

Closes-Bug: #1542386
Change-Id: If7822d07f95ebc935a8763b92f038f10cf07b5ca
2016-02-09 14:05:19 -05:00
Jenkins
7ebad29899 Merge "Enable Tempest without devstack" 2016-02-09 17:07:31 +00:00
Jenkins
026f230b99 Merge "Enable swift services" 2016-02-09 17:06:08 +00:00
Andreas Jaeger
d077045d78 Make bandit job voting
Merge bandit job into the voting pep8 target. Pep8 is used here as
general target for lint-like jobs. This will make the bandit job voting.

Looking at recent runs, bandit passes fine, so it's time to enable it.

Once this change is in, the non-voting bandit change can be removed from
OpenStack CI to reduce node usage and the entry in tox.ini can also be
removed.

Change-Id: I9bf1a741336abf830a092f0fb372116d08e6127c
2016-02-09 17:50:17 +01:00
Corey O'Brien
cf85c5ac03 Turn selinux back on after cloud-init
After cloud-init has run configuration steps, turn on selinux again
for security reasons.

Change-Id: I12a5b2ff3e71be39aa84093fce8b1c2b1be9d473
Closes-Bug: 1543308
2016-02-09 10:19:51 -05:00
Jenkins
2d6b4c6cce Merge "Fix invalid import order" 2016-02-09 04:16:42 +00:00
Jenkins
4a9f879775 Merge "Updated from global requirements" 2016-02-08 22:29:04 +00:00