8599 Commits

Author SHA1 Message Date
Jenkins
9f95d171a9 Merge "Delete unnecessary groupadd in multinode-lab" 2017-03-24 00:21:31 +00:00
Jenkins
c36b08248e Merge "Create /opt/stack and make it home directory" 2017-03-24 00:21:24 +00:00
Jenkins
0ab27e89f4 Merge "Apache Keystone Template: reduce the number of processes to 3" 2017-03-23 17:15:23 +00:00
Sean Dague
5ae945244e run memory_tracker as root
In order to get memlocked pages this needs to be run as root, just
start it as root so that we don't have issues with the inability to
run sudo later in the run.

Change-Id: I7adab8cbb6d89d4717e427aec22e316d27bea075
2017-03-23 12:45:29 -04:00
kesper
d18d7c8658 Change for the 'running_in_container' check
This commit change check of 'running_in_container'
method so that other services ironic, nova and neutron
will not break.

Change-Id: I42eb587cfaebf37944cb10e459b8b8f7b4b4e4ba
2017-03-23 06:32:57 +00:00
Huan Xie
9e64bad03a Use br-int when XenServer is hypervisor
Previously we use a specific integration bridge for neutron ovs agent
which is running in compute node, but this isn't necessary, this
patch is to remove the specific integration bridge for XenSever and
remove the custom integration bridge definition

Depends-On: I675565e1ea6c887d40d7a53f62968c4aa385ecca

Change-Id: If5886e3711765a97f40f20e478f958b988b5a620
2017-03-22 19:11:34 -07:00
Jenkins
63666a2079 Merge "Make running_in_container work in more containers" 2017-03-22 22:36:18 +00:00
David Rabel
530d90c9c2 Delete unnecessary groupadd in multinode-lab
Change-Id: I13c86a19c421d8ef102f35bcae63f6dc69317268
Closes-Bug: #1674897
2017-03-22 08:25:26 +01:00
David Rabel
fca0da5069 Create /opt/stack and make it home directory
single-machine.rst and index.rst

Before this, one had to create /opt/stack
manually and chown it to the stack user.
Now it is created when the user is created.

This is the same way the multi-node guide
handles it. A stack group is created too.

Change-Id: I5363d81c8fb38796f565cc6ebf6ab2dee2673989
Closes-Bug: #1673787
Closes-Bug: #1671409
2017-03-22 08:23:10 +01:00
Huan Xie
c779b00840 Remove XenServer specific ovs agent config
With XenServer we have two neutron-openvswitch-agent(q-agt, q-domua)
For the q-domua it is specific for XenServer, this patch is to move
the specific configurations to os-xenapi which we have devstack plugin
in that repo

Depends-On: Ic816404c84f6a8899d01a77cb67fbfb421653e6b

Change-Id: I8a31c81d9475387fe4ed7030b70b26098e588771
2017-03-21 20:56:58 -07:00
Jim Rollenhagen
983cccb75b Enable baremetal scheduler filters when using ironic
These are recommended for all ironic deploys; turn them on.

Change-Id: Ia3df144e626266ed1774c4cd9863aedb876c409f
2017-03-21 18:37:24 -04:00
Jenkins
11296708c0 Merge "Replace "sid" and "testing" by "stretch"" 2017-03-21 15:40:40 +00:00
Sean Dague
583c52066d rebuild the tempest tox env during install
When redoing a stack.sh over and over again, tempest venv can get out
of sync and cause issues until deleted. We should rebuild that tempest
venv on every stack.

Change-Id: I2f66bb1a7ccf9f89e11db1326d8553589e52fbf2
2017-03-21 11:15:05 -04:00
Armando Migliaccio
bacfb94390 Enable openSUSE to work in Python 3.x environments
Add packages required to run devstack with USE_PYTHON3=True.

Change-Id: Iee43c9335bd82c10cfaeffb02d1d99290c34bb83
2017-03-20 22:33:56 -07:00
Jenkins
fc2919ffdf Merge "Tune apache connection limits down" 2017-03-20 18:41:31 +00:00
David Rabel
a4c57cadf2 Replace "sid" and "testing" by "stretch"
Supported Debian distros (codenames) are "sid", "testing",
and "jessie", but it should be "stretch" and "jessie".

"testing" is no codename and therefore should be replaced by
"stretch".

"sid" changes all the time and cannot be guaranteed to run
correctly or is at least not tested.

Change-Id: Id4b80a055452bbff69036d4dc1adeda46ce99664
Closes-Bug: #1673810
Closes-Bug: #1674416
2017-03-20 17:41:19 +01:00
Julian Edwards
4ae92b846b Make running_in_container work in more containers
Instead of grepping for 'lxc' in /proc/1/cgroup, use systemd's
features. This now at least also works in LXD containers.

Change-Id: I35e807c26f0b1fbba83ddbe04cfb4901a7a95cbe
2017-03-18 11:45:16 +10:00
Clark Boylan
8cf9acd577 Tune apache connection limits down
We are facing memory pressure in gate testing. Apache is fairly large so
tune its connection limits down to try and squeeze out more useable
memory. THis should be fine for dev envs, also tlsproxy is not enabled
by default so we can check that this tuning works well on a subset of
jobs before making it default everywhere.

Data comparisons done with gate-tempest-dsvm-neutron-full-ubuntu-xenial
jobs.

Old: http://logs.openstack.org/37/447037/2/check/gate-tempest-dsvm-neutron-full-ubuntu-xenial/721fc6f/logs/screen-peakmem_tracker.txt.gz
       PID   %MEM             RSS       PPID       TIME     NLWP WCHAN                     COMMAND
     20504    0.2           16660      19589   00:00:00       34 -                         /usr/sbin/apache2 -k start
     20505    0.2           16600      19589   00:00:00       34 -                         /usr/sbin/apache2 -k start
     20672    0.2           16600      19589   00:00:00       34 -                         /usr/sbin/apache2 -k start
     20503    0.1           14388      19589   00:00:00       34 -                         /usr/sbin/apache2 -k start
     19589    0.1            9964          1   00:00:00        1 -                         /usr/sbin/apache2 -k start
Total RSS: 74212

New: http://logs.openstack.org/41/446741/1/check/gate-tempest-dsvm-neutron-full-ubuntu-xenial/fa4d2e6/logs/screen-peakmem_tracker.txt.gz
       PID   %MEM             RSS       PPID       TIME     NLWP WCHAN                     COMMAND
      8036    0.1           15316       8018   00:00:01       34 -                         /usr/sbin/apache2 -k start
      8037    0.1           15228       8018   00:00:01       34 -                         /usr/sbin/apache2 -k start
      8018    0.1            8584          1   00:00:00        1 -                         /usr/sbin/apache2 -k start
Total RSS: 39128

Note RSS here is in KB. Total difference is 35084KB or about
34MB. Not the biggest change, but we seem to be functional and it
almost halves the apache overhead.

Change-Id: If82fa347db140021197a215113df4ce38fb4fd17
2017-03-17 11:42:41 -07:00
Jenkins
7da8e7c5cf Merge "Fix IPv6 provider networks" 2017-03-17 16:07:32 +00:00
Jenkins
f7c0a2e214 Merge "Remove glare from glance" 2017-03-17 16:07:23 +00:00
Jenkins
aff17b14f1 Merge "Use string comparison to compare UUID values" 2017-03-17 16:07:16 +00:00
Jenkins
21c8d6b2b5 Merge "Install same packages for neutron-* services as for q-*" 2017-03-17 15:49:47 +00:00
Jenkins
8ae0a2ea3b Merge "FAQ: remove references to stable/kilo: use stable/ocata instead" 2017-03-17 15:49:40 +00:00
Jenkins
c292223f13 Merge "Xen: restrict devstack VM use upto 8 vCPUs." 2017-03-17 15:49:33 +00:00
Jordan Pittier
fe1d3d6a7b Apache Keystone Template: reduce the number of processes to 3
Now Apache2 has 5 dedicated processes for Keystone Admin and 5 for
Keystone Public. As each Apache process consumes some memory and
we arbitrarly decided 5 was a good number more than 2 years ago,
maybe now (with the recent memory pressure we feel) is a good time
to reconcider.

With 5 processes our peakmem_tracker.py script reports a max RSS size
for the "wsgi:keystone-ad" and "wsgi:keystone-pu" processes of
2 (public and admin) * 5 (number of processes) * 90 Mo (RSS of each
process) = 900 Mo.

With 3 processes, the overall max RSS for Keystone is
2 * 3 * 90 = 540 Mo.

Note that this is RSS memory, but using the "smem" linux command on
my laptop, I noticed that the USS (Unique set size, i.e RSS excluding
shared memory) is around 80Mo per process. So reducing the number of
processes will actually reduce memory consumption.

Change-Id: Iba72d94aa15ecaa87c0115ad26d6bpeakmem_tracker62d5b3bea0a
2017-03-17 15:43:36 +00:00
Jenkins
0f3a7ada8d Merge "Added list of mlock-using processes to peakmem_tracker output" 2017-03-17 14:31:22 +00:00
jianghua
5f8bd0e452 Xen: restrict devstack VM use upto 8 vCPUs.
Change-Id: Iea6086a3feb03dff581d9c04560133c4f57a6f6c
Closes-Bug: 1672642
2017-03-16 08:44:44 +00:00
OpenStack Proposal Bot
dab52d7554 Updated from generate-devstack-plugins-list
Change-Id: I55dea8141046350f9cf06afb7edc957c35397b38
2017-03-16 07:51:22 +00:00
Jenkins
07d612e460 Merge "Revert "put mysql on a memory diet"" 2017-03-16 03:55:54 +00:00
Jens Rosenboom
4b59fbb857 Revert "put mysql on a memory diet"
The diet seems to be too strict, jobs failing with "out of sort memory". Needs more investigation before resubmitting.

This reverts commit 1e66388c5f2b81b4fc5d544dbf5fde2935218bd0.

Change-Id: Ic10effaaf047eb3527082baab889772c5e57fa90
2017-03-15 21:58:48 +00:00
Jenkins
27b1b21f01 Merge "put mysql on a memory diet" 2017-03-15 19:57:54 +00:00
Jenkins
92cc930dc7 Merge "Don't create keystone account for disabled service" 2017-03-15 18:54:50 +00:00
Jordan Pittier
99d5d1ce82 FAQ: remove references to stable/kilo: use stable/ocata instead
It's 2017, some of our newest OpenStack developers/users may not
even know what stable/kilo is/was.

Change-Id: I00f39cc80af7e1632293bf057d95040b6bfa48e0
2017-03-15 13:42:25 +01:00
Jenkins
b06229070e Merge "Update the enabled service on compute nodes" 2017-03-14 02:36:04 +00:00
Jenkins
15da6f5e5c Merge "Updated from generate-devstack-plugins-list" 2017-03-14 02:32:46 +00:00
John L. Villalovos
3345a6d316 Use string comparison to compare UUID values
Was using the '-ne' integer comparison operator to compare UUID
values. This caused error messages like:

/opt/stack/new/devstack/lib/tempest: line 226: [[: dfae26ac-1780-4677-902d: value too great for base (error token is "902d")

Change it to use '!=' string comparison operator

Change-Id: Ib7c9197dd0fe58addf33b4f82beea6de64f6b10b
2017-03-13 13:47:34 -07:00
wangxiyuan
b763dbda73 Remove glare from glance
glare has been removed from glance already. Now error will be raised
if enable g-glare in local.conf.

Remove the glare support by glance.

Change-Id: I9a389af194dd2b8aed75d3c921293d800f8c591b
2017-03-13 22:51:18 +08:00
Jenkins
477c55866b Merge "lib/neutron: set variables needed for sane l3 agent setup" 2017-03-13 12:57:17 +00:00
Jenkins
21fcb028ec Merge "Disable glance v1 by default" 2017-03-13 12:56:28 +00:00
Ben Swartzlander
d15f222e2b Fix IPv6 provider networks
Add a missing --subnet-range argument when creating an ipv6 provider
network. Also changed SUBNET_V6_ID to IPV6_SUBNET_ID. And remove the
--ipv6-address-mode arg because it doesn't apply to subnets on routers.

Change-Id: I82796804a06e758e458606dc9eb400bcd08ad6e4
2017-03-11 01:50:01 +00:00
OpenStack Proposal Bot
1be04a0769 Updated from generate-devstack-plugins-list
Change-Id: I95309e2857f0361b65dc6fbaf686aab94626c086
2017-03-10 08:05:05 +00:00
Jenkins
cb484abf80 Merge "Use KEYSTONE_SERVICE_URI consistently" 2017-03-10 00:50:22 +00:00
Dave Chen
9bc7708c80 Update the enabled service on compute nodes
Change the service from 'n-network' to 'q-agt' since
Nova network is not supported by default.

Change-Id: I085aac75d4c1b721498afa568c8ecfd5abc7b20c
2017-03-10 05:34:21 +08:00
Édouard Thuleau
93a4156015 Don't create keystone account for disabled service
If service is disabled, don't expect to create the corresponding
keystone account.

Change-Id: I007088862de1c8643eca3a6b9b313f0125b9b8d1
2017-03-09 19:07:07 +01:00
Jenkins
e4b224928f Merge "Adding haproxy package to Neutron" 2017-03-09 12:38:52 +00:00
Jenkins
485b8f1375 Merge "Change auth_version to v3 on Tempest" 2017-03-09 07:43:03 +00:00
Jenkins
6523d6e097 Merge "Make declared variables global" 2017-03-08 13:31:57 +00:00
jeremy.zhang
d5919d08ba Restrict enabling the manage_volume volume feature
Not all Cinder backends support the 'manage volume' feature. The test that
in tempest for this feature is specific to LVM and will *not* work for
other work backends regardless of them supporting the feature.

Change-Id: I055aa66738deb5ae2fb925429cec565e3901340c
2017-03-08 15:27:37 +08:00
Sean Dague
afef8bf097 Make declared variables global
When variables use the 'declare' directive, it is by default a local
variable. While other variables have global scope.

For example:
   declare -A AN_ARRAY   # local in scope
   foo=1                 # global in scope

This causes errors to occur as some of the variables will be local only
and others will be global.

Update the code, as appropriate, so that variables using the 'declare'
directive also include the '-g' flag to have them also be global. Not
every instance of a declared variable has been updated.

Closes-Bug: #1669509
Co-Authored-By: John L. Villalovos <john.l.villalovos@intel.com>
Change-Id: I2180b68fe861ad19c6d4ec0df0f9f8a528347862
2017-03-07 22:07:29 -08:00
Ihar Hrachyshka
f511c368f8 lib/neutron: allow to add more ml2 extension drivers
The patch will allow jobs to append new ml2 extension drivers without
overriding port_security.

Change-Id: I45f017d1b8a3054452c3166ed4fb460d21959adb
2017-03-07 10:39:41 +00:00