905 Commits

Author SHA1 Message Date
chen-li
a345559d9b Disable dhclient requests the default route info
Closes-Bug: #1555235

Change-Id: I7a7e3a9361f7ce45f92ff52e98c547026f44cc0c
2016-06-08 00:14:16 -05:00
Jenkins
3bf6ccb736 Merge "Update nova api version to 2.1" 2016-06-07 21:38:46 +00:00
Jenkins
140cfca29b Merge "[docs] Fixes to octavia-api docs" 2016-06-07 21:38:43 +00:00
Jenkins
5d9932454a Merge "Using utils function to get the network driver" 2016-06-07 21:38:22 +00:00
Jenkins
63524a885a Merge "Fixes small typos in comments in source files of api" 2016-06-06 17:43:19 +00:00
Jenkins
df1f0e1b67 Merge "Updated from global requirements" 2016-06-06 17:40:15 +00:00
Jenkins
93ed80c197 Merge "Use devstack RABBIT_HOST to point to rabbit, instead of localhost" 2016-06-05 17:48:05 +00:00
OpenStack Proposal Bot
15fef273a7 Updated from global requirements
Change-Id: I32d5d9465835e25c9fd331e74db6b12c5c6b6ea9
2016-06-05 16:25:38 +00:00
Lubosz Kosnik
d5137d1733 Fix Mac OS X socket.AF_INET6 code
Linux is using AF_INET6 code equal to 10 on Mac OS X it's 30 because of that
numeric codes changed for socket reference.
Additionally a few lines changed to be more pythonic - removed unnecessary plus
signs from beginning of line.

Change-Id: Ie5afa2a98ea1b98d8e4148f258c071971975d9b9
Closes-Bug: #1540662
2016-06-04 10:23:31 -05:00
Sergey Belous
3e7872a6b7 Fixes small typos in comments in source files of api
Change-Id: I3bdf2e1dd7a122145ef3ab9194c53621a5af5b22
2016-06-03 19:16:16 +03:00
Elena Ezhova
c6a9be4b74 Fix vrrp_success_count help string
Change-Id: I56335b03eddc8c6559e3e279d8ef62922d4eeecf
2016-06-03 14:17:37 +00:00
Elena Ezhova
2a2e1f5ec7 [docs] Fixes to octavia-api docs
Fixes descriptions for a couple of parameters

Change-Id: Ic7506b1ac9fe1be2d1d3fc48630f376a91171441
2016-06-03 17:11:52 +03:00
Jenkins
e040d5926e Merge "validate the subnet id for create loadbalancer and member" 2016-06-03 06:19:34 +00:00
BANASHANKAR KALEBELAGUNDI VEERA
f3013cdc59 Using utils function to get the network driver
Use get_network_driver from the utils to get the network
driver in the netowrk tasks

Change-Id: I3d2c2d9738fb17627d0c790cfcb73e9583442c12
2016-06-02 19:42:23 -07:00
ZhaoBo
1896dfed5c Update nova api version to 2.1
The nova team has decided to remove nova v2 API code completely. And it
had merged: https://review.openstack.org/#/c/311653/

we should bump to use v2.1 ASAP

Change-Id: Iee5582b5a74bceead2484684b214fca685dbaede
Closes-Bug: #1588171
2016-06-03 09:10:33 +08:00
Jenkins
2af58f2918 Merge "Allow deployment with pre-generated ssh keys and certificates" 2016-06-02 18:14:12 +00:00
BANASHANKAR KALEBELAGUNDI VEERA
a4a8fa2e09 validate the subnet id for create loadbalancer and member
Validating the subnet id to check if it exists
while creating loadbalancer and adding member

Closes-Bug:1453484
Change-Id: Id7d62570f7b91eeea5ad285694122ec2a20dd2a6
2016-06-02 10:26:17 -07:00
Jenkins
b0590abe18 Merge "Use upper-constraints.txt file for all tox targets" 2016-06-02 15:48:02 +00:00
Miguel Angel Ajo
c599f9b80f Use devstack RABBIT_HOST to point to rabbit, instead of localhost
Otherwise, in a multiple controller devstack deployment, all services
point to localhost, which won't work.

While we're at it I removed oslo_messaging_rabbit rabbit_port, since
rabbit_hosts option overrides the former setting.

Change-Id: Ib3c9b75a24ae9351ac7e6f2b4b748ccd6bcb2236
2016-06-02 13:52:29 +00:00
Miguel Angel Ajo
dee7043f2f Allow deployment with pre-generated ssh keys and certificates
This patch is part of a series that will allow the deployment
of a simple multinode octavia devstack, where the certs and
ssh keys are uniform over all the controllers.

Orchestrating the deployment of the same ssh keys or certificates
becomes difficult without making use of tools like ansible otherwise.

The provided certificate is valid for 10 years.

Change-Id: I45e8e54d58a725281636a61fdb769265de50d9ba
2016-06-02 13:40:39 +00:00
Jenkins
43932ce506 Merge "Make registering error handlers compliant with Flask 0.11" 2016-06-02 00:32:45 +00:00
Ihar Hrachyshka
acbf4f9a1d Use upper-constraints.txt file for all tox targets
The only targets that are left unconstrained are those that belong to
post merge queues where constraints are not yet available.

Change-Id: I0546be87a0bb2a34b8c030d883ede3c45e6d6f54
2016-06-01 19:08:53 +00:00
OpenStack Proposal Bot
c3f4f8f65c Updated from global requirements
Change-Id: I0894a4b687e2cf5168b9b8bb0f50ef6f4a21c90b
2016-06-01 19:05:03 +00:00
Elena Ezhova
685f7c17fd Make registering error handlers compliant with Flask 0.11
With Flask 0.11 setting error handlers by directly modifying
app.error_handler_spec dictionary leads to AttributeErrors.
It should be done by using register_error_handler method or
errorhandler decorator.

Change-Id: I2f41ab2b9ea8c4a964b16acdf77def1b08b64a6e
Closes-Bug: #1587849
2016-06-01 16:33:40 +03:00
Jenkins
b01c87fbd8 Merge "Updated from global requirements" 2016-05-28 02:05:09 +00:00
Jenkins
38f0b5f0b9 Merge "Network driver should generate network configs" 2016-05-28 02:02:42 +00:00
Jenkins
1144456a5c Merge "Allowing for a host amphora configuration" 2016-05-28 01:47:45 +00:00
OpenStack Proposal Bot
1023441a0a Updated from global requirements
Change-Id: I8ab1c7394e54b921549d1a61c234cd5e9f9af9f5
2016-05-28 00:37:50 +00:00
ptoohill1
b3a97e3887 Allowing for a host amphora configuration
Currently there is no way to for the haproxy templater
to know any data about the current host configuration.
This patch passes the 'host amphora' to the templater
allowing deployer the ability to use this information
if needed. This information is not currently needed in
the default configuration.

Change-Id: Ifbc07618e470c375f7c574a1bc82ae24f080f1c3
Closes-Bug: #1582507
2016-05-27 18:10:46 -05:00
Jenkins
d532e920ec Merge "Attach port to amphora when adding member to shared pool" 2016-05-27 22:43:27 +00:00
ptoohill1
65cc70ec26 Network driver should generate network configs
Currently the network task configures the network
configs, this means other driver cannot use the data
they need to.

Change-Id: I3b6e25f3c7f7343d89b9e6844382e7696ea5d4be
Closes-Bug: #1581303
2016-05-26 04:21:36 -05:00
Jenkins
80a323b230 Merge "Small cleanup of plugin.sh" 2016-05-26 06:58:30 +00:00
Jenkins
f483c01bb4 Merge "Implement custom header support for Octavia" 2016-05-26 00:21:16 +00:00
Sergey Belous
b27a507b61 Small cleanup of plugin.sh
Remove uncommenting the 'username' option in sample config that actually
does not exist in config since commit 42c12d7e8c5b7dd4ba4f0c7630ad5124f63441e9

Change-Id: I6dc8aef8d2a9f12c6d0a067ecf0b63e532303255
2016-05-25 19:28:28 +03:00
Jenkins
7cc0bfb9fc Merge "Use the local /vagrant dir for copying the config and support scripts" 2016-05-25 05:59:17 +00:00
Jenkins
351640d03c Merge "Remove oslo.serialization module requirement" 2016-05-25 05:59:11 +00:00
Bertrand Lallau
d8d74fa9af Remove oslo.serialization module requirement
oslo.serialization module is not used anymore in Octavia.

Change-Id: If9c2fac33229b0aa70c28a66218187d7b48aaed2
2016-05-24 22:49:04 +02:00
Miguel Angel Ajo
4a96ad96c4 Add env variables for memory and vcpu in the Vagrantfile
Now we can do:

 	VM_CPUS=4 VM_MEMORY=6000 vagrant up

And this will spawn an instance with 4 VCPUs, 6GB of RAM, and devstack
+ octavia deployed.

This allows for better adjustment of resources and capabilities, based
on the type of development or test we inted to perform.

Change-Id: I3f22a43a1a4cf4af907222fd46c015d8a5c269be
2016-05-24 22:39:41 +02:00
Jenkins
4fe4cd3297 Merge "Add libvirt provider support" 2016-05-24 18:36:44 +00:00
Miguel Angel Ajo
c71e6f8a7c Add libvirt provider support
Add libvirt provider support, the image, although non ubuntu official,
is built by an openstack contributor (apuimedo

It can be used with:
   vagrant plugin install vagrant-libvirt
   vagrant up --provider libvirt

You can fix the provider in your system by adding to /etc/profile
   export VAGRANT_DEFAULT_PROVIDER=libvirt

And enable kvm nested virtualization by:
   sudo rmmod kvm-intel
   sudo sh \
    -c "echo 'options kvm-intel nested=y' >> /etc/modprobe.d/dist.conf"
   sudo modprobe kvm-intel

Change-Id: I604523e6bc247edee480e881db4e66f3df039af3
2016-05-24 05:10:41 +00:00
OpenStack Proposal Bot
497f602f11 Updated from global requirements
Change-Id: I0b820834311334642b90efe03f4891eaa0735136
2016-05-23 20:47:38 +00:00
Jenkins
ee99f7dca0 Merge "Make sure ~/.ssh/known_hosts exists before calling ssh-keygen -R" 2016-05-23 15:56:19 +00:00
Miguel Angel Ajo
8db658b02b Make sure ~/.ssh/known_hosts exists before calling ssh-keygen -R
Our vagrant file makes use of ssh-keygen -R to remove any old key
related to an IP address from known_hosts.

But ssh-keygen fails and makes the local.sh exit with failure
(error 2) if the ~/.ssh/known_hosts file does not exist.

Change-Id: I404e79ca644c6c15f51a0f3db6695cc5a895b238
2016-05-23 11:55:29 +00:00
Miguel Angel Ajo
32f48f144c Use the local /vagrant dir for copying the config and support scripts
Vagrant rsyncs or mounts by default the directory containing the Vagrantfile
under /vagrant inside the instance.

With this change, it's possible to modify local scripts and redeploy,
eliminating the build dependency on the remote git server.

Change-Id: Ibb016a8c433644c18c033c66bd3a3cc9571af9f4
2016-05-23 11:55:23 +00:00
Kobi Samoray
2194758bcf Implement custom header support for Octavia
Implements support for custom header insertion in Octavia.
A listener may be configured to insert custom headers which are
supported by Octavia. Currently implemented support for
X-Forwarded-For header, and X-Forwarded-Port

Change-Id: I784f4939225c3acef362fcb5df57e77dbfb0f774
2016-05-23 08:34:16 +03:00
Jenkins
f629671974 Merge "Support db-manage command for db migration" 2016-05-22 08:19:21 +00:00
Jenkins
0303836ecf Merge "Whitespace bug in sysvinit jinja template" 2016-05-22 08:15:14 +00:00
ZhiQiang Fan
632ab41a03 [Trivial] Remove unnecessary executable privilege
They are modules, should be imported rather than running in shell,
hence not require for executable privilege.

Change-Id: I869d73411ec8e308a80d780e10e77dcc48097d42
2016-05-21 13:17:04 +00:00
Jenkins
ff059e03f3 Merge "Add WSGI support for octavia api" 2016-05-19 22:05:09 +00:00
Jenkins
749261786c Merge "Wait for loadbalancer to be ready instead of sleeping" 2016-05-19 18:13:47 +00:00