8026 Commits

Author SHA1 Message Date
Jenkins
5dbb826a54 Merge "Use -y on zypper remove to avoid hanging" 2016-11-20 23:52:33 +00:00
Jenkins
ab797201e8 Merge "Allow running nova compute with docker group" 2016-11-20 10:39:25 +00:00
Jenkins
2f99e882ce Merge "Always set ALLOWED_HOSTS for horizon" 2016-11-20 10:36:07 +00:00
Clark Boylan
a5afa7d81a Fix default ipv6 fixed range var
The intent was to make any ipv6 safe addr range bigger than a /64 a /64
when setting the fixed range. Unfortunately the awk only emited the mask
and not the addr. Fix this by sprinkling the address back in.

Fixes-Bug: 1643055
Change-Id: I526d4c748fd404ecb3c77afcbb056aa95090c409
2016-11-18 12:35:50 -08:00
Jenkins
a79aa4783b Merge "Derive IP ranges from new ADDRS_SAFE_TO_USE vars" 2016-11-18 18:01:22 +00:00
Jordan Pittier
d038b60e65 Neutron: use "OSC show -f value -c id" instead of "OSC list + grep"
We should leverage server-side filtering.

Change-Id: I3deef791868769b0b7cfc405d73dff57458ca427
2016-11-18 12:18:09 +01:00
Tomasz Trębski
37f48f3c20 Always set ALLOWED_HOSTS for horizon
If devstack is deployed in the VM with defined
public IP address (like 192.168.10.6) it is not possible to
access the Horizon from the browser.
This is because DEBUG=True means that ALLOWED_HOSTS, if not set,
is equal to ['localhost', '127.0.0.1', '[::1]'] according
to Django's documentation.

Change-Id: I74ae99569dafa10eee7066713a05fb49183e3fca
2016-11-18 04:54:38 +00:00
Jenkins
1493bdeba2 Merge "Stop setting route pointing back to tenant router" 2016-11-18 01:50:50 +00:00
Jenkins
3c251b8023 Merge "Move certificate setup earlier in deployment" 2016-11-17 20:48:09 +00:00
Michael Turek
7938d83d3b Allow provider network to be used for ssh validation
Currently devstack assumes that the network used for ssh
validation is the private network. This patch adds a hook that
sets the network used for ssh validation based on whether or not
provider networking is being used. It also moves the function
'is_provider_network' into functions-common as it will now be
used by both tempest and neutron.

Change-Id: I265c9e26c9bfb18b7e201f27d8912b8bec235872
2016-11-17 13:40:01 -05:00
Jordan Pittier
f5069f35a1 lib/lvm: don't use $VOLUME_GROUP variable anymore
We should be using $VOLUME_GROUP_NAME instead since Icehouse.
$VOLUME_GROUP_NAME has been introduced in
I93b8ef32832269d730c76a6dc24ddb4f20c6d9df and $VOLUME_GROUP is nowadays
only use as a fallback to $VOLUME_GROUP_NAME.

As a code comment in lib/lvm says it we kept the $VOLUME_GROUP around as
"for compatibility with icehouse-generation Grenade". Icehouse is long
gone so now seems a good time to remove any usage of $VOLUME_GROUP.

Change-Id: Id3051b5a196c45266c39fde4f08401aaacf0f6bd
2016-11-17 17:05:49 +00:00
Gary W. Smith
56b3912685 Use -y on zypper remove to avoid hanging
When using zypper remove, include the -y option to avoid stack.sh from
hanging waiting for user confirmation.  Due to output buffering, the
script could hang before giving the user the prompt to enter Y to
continue, making it unclear why the script was hanging.

Change-Id: I5ea761e5ae0829439953c385f8e7d0546acba886
Closes-Bug: 1642736
2016-11-16 22:10:37 -08:00
Jordan Pittier
ea1abcde18 Swift: fix rsyncd.conf, ports were incorrect
Swift port base was changed in Ifd95b99004aead5ddc8ae1a8dd3ccd9c4f2abe91
but we forgot to update the rsyncd.conf. This patch update the rsyncd.conf
file.

Change-Id: Id457c047c672a810c4c0c7721b6beeb01b719879
2016-11-16 18:47:44 +01:00
John L. Villalovos
21d84c29b2 If plugin is enabled multiple times fail
When using the enable_plugin command and grenade jobs it can be
easy to enable the same plugin twice, as the grenade job has a
registration section and the configuration in project-config can also
enable it due to code-reuse in project-config.

If a plugin is enabled twice it will likely fail, though it won't be
obvious that it was due to the plugin being enabled multiple times.

This change makes it so if it sees the same plugin name is enabled
more than once it will die and an error message outputted.

Change-Id: I9f1d7e58b861b04473b6a57c9ad404203fb7277a
2016-11-16 08:55:40 -08:00
Kevin Benton
4bfbc291ee Derive IP ranges from new ADDRS_SAFE_TO_USE vars
The switch to using subnetpools caused quite a bit of confusion
because it didn't respect the value of FIXED_RANGE. This caused
conflicts in the gate with it's default IPv4 value of 10.0.0.0/8.

This patch does a few things to address the issue:
* It introduces the IPV4_ADDRS_SAFE_TO_USE and IPV6_ADDRS_SAFE_TO_USE
  values and adjusts all of the FIXED_RANGE and SUBNETPOOL_PREFIX values
  to dervive from them by default.
  * This addresses the concern that was raised about implying that
    SUBNETPOOL_PREFIX and FIXED_RANGE are equivalent when setting
    SUBNETPOOL_PREFIX=FIXED_RANGE by default. Now we have a new value
    for the operator specify a chunk of addresses that are safe to
    use for private networks without implementation implications.
  * Backwards compatibility is maintained by alloing users to override
    override all of these values.
* The default for IPV4_ADDRS_SAFE_TO_USE uses /22 instead of /24
  * Because we want to be able to use subnetpools for auto allocated
    topologies and we want to be able to have a large chunk of
    instances on each network, we needed a little more breathing room
    in the default v4 network size.
* SUBNET_POOL_SIZE_V4 default is changed from 24 to 26
  * In conjuction with this change and the one above, the default
    subnetpool will support up to 16 64-address allocations.
  * This should be enough to cover any regular gate scenarios.
  * If someone wants a bigger/smaller subnet, they can ask for that
    in the API request, change this value themselves, or use a different
    network entirely.
* FIXED_RANGE_V6 defaults to a max prefix of /64 from IPV6_ADDRS_SAFE_TO_USE
  * This avoids the private subnet in the non-subnetpool case from being
    larger than /64 to avoid issues identified in rfc 7421.
  * Users can still explicitly set this value to whatever they want.
    This 'max' behavior is only for the default.
  * This allows IPV6_ADDRS_SAFE_TO_USE to default to a /56, which leaves
    tons of room for v6 subnetpools.

Closes-Bug: #1629133
Change-Id: I7b32804d47bec743c0b13e434e6a7958728896ea
2016-11-16 05:26:03 +00:00
Kevin Benton
df5e69114f Stop setting route pointing back to tenant router
This removes the logic to add a route pointing to the IPv4
tenant private network range since the router is performing
SNAT. If reaching the IPs via the route worked at all, it was
by accident since this behavior is certainly not guaranteed
by Neutron.

Change-Id: If45e3fc15c050cfbac11b57c1eaf137dd7ed816f
2016-11-16 02:05:35 +00:00
Jenkins
7976f31fb9 Merge "Unset admin_project config options for Keystone" 2016-11-16 00:04:44 +00:00
Jenkins
29d13df1a2 Merge "Adopt openstack client for neutron commands" 2016-11-15 15:34:51 +00:00
Daniel P. Berrange
c30b8def82 Move certificate setup earlier in deployment
Currently the x509 certificate setup is done after all the
openstack services have been deployed. This is OK because
none of the services require that the x509 certs exist
when they are being deployed. With the integration of TLS
into the nova novnc proxy (and later spice & serial proxy)
service, x509 certs will need to exist before Nova is
deployed.

The CA setup must thus be moved earlier in the devstack
deployment flow, prior to the setup of any services. One
part of the CA setup, however, fixes up the global cert
bundle locations and this can only be done after the
python requests module is install, thus must remain in
its current location.

Change-Id: Idcd264fb73bb88dc2f4280c53c013dfe4364afff
2016-11-15 11:24:04 +00:00
Jenkins
ac65a5cac0 Merge "yum_install: fix awk return code" 2016-11-15 01:35:44 +00:00
Jenkins
5ff21b3d63 Merge "Update local.sh sample file to use OSC" 2016-11-14 11:21:02 +00:00
Jianghua Wang
2b3ac6dc64 Specify the correct image parameters for XenServer
The deprecated AMI image file opts will be removed soon.
See https://review.openstack.org/#/c/338377.
So we can't use the fallback mechanism anymore. This patch is to
specify the correct image parameters for XenServer.

Change-Id: Ic287a3ed1725c42ea29022158bc9720c9a96533f
2016-11-14 17:46:20 +08:00
Jenkins
53649947e1 Merge "Removing config values no longer in tempest.conf" 2016-11-14 09:24:01 +00:00
Jenkins
ed2a82bd4b Merge "Updated from generate-devstack-plugins-list" 2016-11-14 00:54:58 +00:00
John L. Villalovos
bd42d4918e Remove call to undefined teardown_neutron_debug
Previously the usage of neutron debug ports was removed by
5e01c47e4d671166b9396c507a7105a5ac8256dc but there was still call to
teardown_neutron_debug. Recently a change to devstack-gate
1d6cc0771a3399300117f488e9d71e7ea46a4d82 caused that call to be
triggered and breaking the gate-devstack-dsvm-updown job.

This patch deletes the call and comments regarding setup_neutron_debug
and teardown_neutron_debug.

Change-Id: Ifdacb0cec1307db469bd66f551474539184cf2cd
2016-11-12 11:11:43 -08:00
Carlos Goncalves
bac2e4ddc2 Update local.sh sample file to use OSC
Besides updating to OSC CLI, this patch also fixes an argument name typo
present before in 'nova keypair-add' (--pub_key should be --pub-key).

Specifying $OS_PROJECT_NAME in case user is associated to multiple
projects containing security groups with same name (e.g. 'default').

Change-Id: I776f6edfc4c6c798a39d3260827a18c695f05c87
2016-11-11 15:11:54 +01:00
OpenStack Proposal Bot
7c0af1bfb8 Updated from generate-devstack-plugins-list
Change-Id: Ifce4376733d55452a1ce85df75a4203ac2f2aff9
2016-11-10 06:49:01 +00:00
Jenkins
319abcaf85 Merge "Switch fernet to be the default token provider" 2016-11-09 20:03:04 +00:00
Jenkins
e8f776cda0 Merge "Fix stevedore warning with neutron firewall_driver" 2016-11-08 04:09:31 +00:00
Jenkins
4972bbcfbe Merge "Use userrc_early for all nodes" 2016-11-07 23:41:30 +00:00
OpenStack Proposal Bot
8c7cec52d0 Updated from generate-devstack-plugins-list
Change-Id: Id23209fa26e39d569b7e4b4e95d42e72fd92c32e
2016-11-04 11:31:22 +00:00
Armando Migliaccio
4f11ff30cf Adopt openstack client for neutron commands
The neutron client is going to be deprecated during the
Ocata timeframe, so it is time to start switching to the
openstack client to invoke networking commands.

use of neutron client in neutron-legacy has been left as is.

The command for setting the router gateway is left as follow up.

Change-Id: I0a63e03d7d4a08ad6c27f2729fc298322baab397
2016-11-03 10:37:58 -07:00
Pierre Riteau
62f29a98d7 Update stable branch example
The stable/juno branch was deleted 11 months ago:
http://lists.openstack.org/pipermail/openstack-announce/2015-December/000869.html

Update the example to Newton, which should keep it valid for a while.

Change-Id: I4cd8738862a529fd319be2ec5694d00defd94f84
2016-11-03 10:10:03 +00:00
Huan Xie
f881a0e4ee XenAPI: Enable linux bridge in Dom0 for neturon
When using neutron network under xenserver, we must enable linux bridge
in Dom0 as neutron will use linux bridge qbr in compute node for
security group. But by default XenServer use openvswitch and disabled
linux bridge. This patch is to remove this restriction.

Change-Id: I0e8124ff2323810fdc46c717a750ce7e8f4aa0c6
2016-11-02 20:50:41 -07:00
Brian Haley
30ab23cd9b Fix stevedore warning with neutron firewall_driver
The initial start of the neutron OVS agent always prints
a warning:

 WARNING stevedore.named [] Could not load
 neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

There's an alias for that in setup.cfg called
iptables_hybrid that would avoid it.

Change-Id: I3f5bf782f4f27dc123e462e494741a8a941641ec
2016-11-02 17:05:48 -04:00
Jenkins
928b3cd36e Merge "Setup the Cinder image-volume cache by default" 2016-11-02 17:09:47 +00:00
Jenkins
f8da15791b Merge "remove OS_AUTH_TYPE from the userrc files" 2016-11-02 17:09:40 +00:00
Jenkins
ef9d31f6ac Merge "Make unstack.sh more independently deterministic" 2016-11-02 17:08:58 +00:00
Jenkins
f1ede394a5 Merge "Updated from generate-devstack-plugins-list" 2016-11-02 03:36:03 +00:00
Castulo J. Martinez
2d9959c53b Removing config values no longer in tempest.conf
This commit removes some config values for tempest that no
longer exist in tempest/config.py therefore are no longer needed
in tempest.conf.

Change-Id: I5778973012e57e8d9df9bf864590f8ed7fe05561
2016-11-01 13:36:54 -07:00
Matt Riedemann
c9c9d31d3e tempest: set network-feature-enabled.port_security
Sets the port_security feature flag in tempest.conf
if the port_security extension is enabled, which it's not
by default in neutron but is set by default in devstack.

This adds global variable for setting the port_security
extension in ml2.conf and in tempest.conf so we only have
to set this in one place.

Depends-On: I1efd5c838aa0d73cc6e8864e3041eea25850198d

Change-Id: I6334b200e42edd785f74cfb41520627393039619
Related-Bug: #1624082
2016-11-01 10:52:08 -04:00
OpenStack Proposal Bot
ade65b813b Updated from generate-devstack-plugins-list
Change-Id: I1b357b2e668ff5ed56c5deb9d71709a7526e17ea
2016-11-01 06:46:36 +00:00
Steve Martinelli
dc486bc12f Switch fernet to be the default token provider
this is the first patch in a series to actually make fernet the default
token provider in keystone. the patches for grenade, release notes, and
actually switching the value in keystone all depend on this patch first.

reasons for switching over:

- fernet tokens are the recommended token provider
- the install guide for newton recommends deployers use fernet tokens [0]
- we previously attempted this switch but ran into timing issues [1],
  the timing issues have been resolved [2]

[0] http://docs.openstack.org/newton/install-guide-ubuntu/keystone-install.html
[1] 153db269705f37d4144ad3fcf26dc67269755d7d
[2] https://review.openstack.org/#/q/topic:make-fernet-default

Change-Id: I3b819ae8d2924f3bece03902e05d1a8c5e5923f1
2016-10-31 14:57:11 +00:00
Jenkins
1f84d45757 Merge "lib/neutron: Remove remaining references to Q_ variables" 2016-10-30 10:13:53 +00:00
Eric Brown
fb73d85afe Remove unused KEYSTONE_CATALOG_BACKEND
This patch simply removes a var noted to be removed back in Newton.

Change-Id: I7c66e1d8d65f562596543ed8ca402dba8c8ea271
2016-10-28 02:03:37 -07:00
Eric Brown
7b07ccf5e4 Remove deprecated/obsolete ldap options
The devstack ldap configuration for keystone is still using some
old options that are no longer valid. The write support is
being removed this release. And in previous releases, the ldap
assignment driver support was removed and was not removed here.

Change-Id: I538626b681eaee6a7ac10dfbc29605b73fbe13bf
2016-10-27 16:24:16 +00:00
YAMAMOTO Takashi
07edde1c14 lib/neutron: Create initial topology only on controller node
To avoid it being created multiple times for multinode setup.

Note: This reverts "Enable neutron to work in a multi node setup"
(commit 88f8558d874072536e7660a233f24207a7089651) partly and fixes
the issue differently.
The configuration in question uses the new lib/neutron. (not neutron-legacy)
In that case, calling create_neutron_initial_network from stack.sh directly
is a wrong way, as create_neutron_initial_network is sourced by
neutron-legacy.  The new neutron code should not rely on the legacy one.

Closes-Bug: #1613069
Change-Id: I868afeb065d80d8ccd57630b90658e330ab94251
2016-10-26 11:57:48 +02:00
YAMAMOTO Takashi
d5f730caf4 lib/neutron: Remove remaining references to Q_ variables
Q_ variables belong to neutron-legacy.

These are True by default in neutron.
Remove them in favor of post-config meta section.

Change-Id: If691a79b09003f85a07c9f33e0379a2b21e48141
2016-10-26 11:55:40 +02:00
Adam Young
4440da8563 Unset admin_project config options for Keystone
Until the policy changes land for Nova, Glance, etc, this
value is not used.  Additionally, by having it set, it actually
makes it hard/impossible for the required changes to land in
the other services.  Disable/comment out the changes in the
Keystone specific lib file for now, and we will re-enable once
the Services can make use of them.

Change-Id: Ia1de9083c21107dac2f0abb56bda166bdb37a69d
2016-10-26 11:40:08 +02:00
Jenkins
e0fdcd5ff2 Merge "fix ceph config file path variable" 2016-10-24 01:37:18 +00:00