Commit Graph

752 Commits

Author SHA1 Message Date
Monty Taylor c7082fa72a Retire stackforge/libra 2015-10-17 16:03:27 -04:00
Michael Johnson a0e8b91e16 LBAAS-583 - VIP assignment can fail without us noticing
LBAAS-621 - Correct libra to send gearman unique messages

Change-Id: I522493e1691de876a4500ca57ddbdb21ca9ad398
2014-07-30 20:12:47 +00:00
Min Wang ca0fd483d5 This is for jira ticket lbaas-487
edit the path versin from 2.0 to v2.0

Change-Id: Iecc72aee1ef8b3fecef455c4afac2682651c40d9
2014-07-21 14:33:28 -07:00
Jamie McCarthy 2ff2fbb1a3 Add more info to logging for devices which fail ping checks
Change-Id: Ia287753734164814169475b625772499300e8a09
2014-07-08 12:59:23 -04:00
German Eichberger 80e7bae30c backporting...
Change-Id: I894cfb152297dd175105d8f35023a090bc5d8bb5
2014-07-08 12:58:38 -04:00
German Eichberger 43e8447bdd backporting gear worker into a Yelp gearman environment.
Change-Id: Id7ee1056fd2a6e35fd2a8c12e514767031e490c6
2014-07-08 12:52:59 -04:00
Michael Johnson 6cb22c40cf Config setting for build diag timeoute
Change-Id: Ia1cac035d1fc640394ac0e933a7c3e69ef55081a
2014-07-02 17:58:49 +00:00
Longgeek 00ca8ee9a4 Update requirements file matching global requ
Change-Id: I5dd2800b4e1ccfa29adafc5fbbbebb692fc1bf02
2014-07-01 00:49:15 +08:00
German Eichberger dc82de4a3e api serve rnow uses gear library; remove yelp's gearman
Change-Id: Iaa81fc34161992a98a9449b8c58e80484d048d16
2014-06-04 14:52:37 -07:00
German Eichberger 771f6bd76d changes the admin_api server to use the gear library
Change-Id: I0a9d28665d1ba63eed570fba96517b89f2a2bdde
2014-06-04 09:42:58 -07:00
Jenkins 90de590e5e Merge "enable hacking check H234" 2014-06-03 09:28:08 +00:00
Michael Johnson (johnsom) 3c3f3cb507 Replaced gearman python library with gear python library in the pool manager
Change-Id: I3b4b0440bb1e0a925cee93909e6f1c44e578ae95
2014-06-02 14:12:45 -07:00
German Eichberger c30b7af004 [GOOD] switch tox back on
Change-Id: I3fffbf258fcf8fff261cf8101c32def681f0486e
2014-05-30 12:18:07 -07:00
German Eichberger 5867eb8b52 [BAD] silence tox to get some cherry picked chnages in
Change-Id: I61eb149439efe769801995f01c7908446c563381
2014-05-30 12:18:07 -07:00
Min Wang 05f491043b min switch gearman to gear worker
Change-Id: I0dad4364f15a81ee17d4a1e1aa6585364b14a439
2014-05-29 12:46:10 -07:00
Christian Berendt 9ab1625156 enable hacking check H234
assertEquals() logs a DeprecationWarning in Python 3.x,
use assertEqual() instead. The same goes for assertNotEquals().

Change-Id: Id3491b278018736f2e41bc85aa475e8aafe5723d
2014-05-29 21:37:31 +02:00
German Eichberger 2300c8952a make pep8 happy
Change-Id: I4ef5583432cc4f9c1aeb095bcd37bc31cc82aa75
2014-04-01 10:14:50 -07:00
Marc Pilon f0bdbb4cd9 [API] Added LB options to docs
Change-Id: Ie92df36802812928849f9bd34100753758449745
2014-03-20 16:22:30 -04:00
Marc Pilon add847dde4 [API] Changed copyright for demo
Change-Id: I83fc6df28dea87554ee2c4ebf5c479fc29a0096f
2014-03-18 17:47:11 -04:00
Jenkins e536a2ddb1 Merge "[DOCS] Add v2 Admin API docs" 2014-03-14 14:31:40 +00:00
Andrew Hutchings 622eda08c1 [DOCS] Add v2 Admin API docs
Change-Id: I471eb79c06b7c12645a8a133759fb3cef96740be
2014-03-14 10:48:29 +00:00
Andrew Hutchings 2d8948833c [ADMIN_API] Version 2.0 of the Admin API
Change-Id: I3ef16e525cdd2fa30c921888d1061f848e5fa287
2014-03-14 10:19:09 +00:00
Marc Pilon 796b760868 [API] Fix validation for multi lbs per device
Change-Id: I2bf3b82b4c755f7d9cc456c873521f84df0c05a5
2014-02-26 16:12:15 -05:00
Marc Pilon f50921e25e [API] Completed TCP Timeout work
Change-Id: Ie512dc5758609d0d0601f448984846b124647e24
2014-02-25 10:37:48 -05:00
Marc Pilon 6aabea4b51 [API] Document all MnB config options
Change-Id: If8cb83f90deb7f1e55c53f09582777bdbc7505b4
2014-02-11 11:13:09 -05:00
Marc Pilon 304ab84192 [ADMIN_API] Fixed MnB metrics to be an array
Change-Id: I5886f2e5feedc66b2635e6f0235aa2f237c32f13
2014-02-10 16:27:29 -05:00
Jenkins 2d1a302a4d Merge "[API] Fixed license date" 2014-02-10 15:33:25 +00:00
Jenkins eb8a0d469a Merge "[API] Protocols are now in the DB" 2014-02-10 15:32:42 +00:00
Marc Pilon 039a5949f8 [API] Fixed license date
Change-Id: I04280610f5f2704045c129a732bda04d48439264
2014-02-10 10:28:42 -05:00
Marc Pilon e9a52977b6 [API] Protocols are now in the DB
Change-Id: Ib0908a6dc1b8dcd2594f463bd46b676db85da4ad
2014-02-09 19:38:58 -05:00
David Shrewsbury 0a44742dd7 [API] Support for LB timeout options
NOTE: Database schema altering change.

Companion commit for commit 0eb56f. Timeout values (for client,
server, connect) and connect retry values can now be specified
in the UPDATE request. E.g.:

    {
      "hpcs_action": "UPDATE",
      "loadBalancers": [
         "protocol": "http",
         "options": {
             "client_timeout": "30000",
             "server_timeout": "30000",
             "connect_timeout": "30000",
             "connect_retries": "3"
         },
         ...
      ]
    }

Default values are saved to the LOADBALANCERS table in the database
if no values are given in the JSON message. The current defaults
match the defaults in the HAProxy worker driver so pre-existing LBs
will match new LBs.

Change-Id: I2edb67e462f314837fc89ac82eaf1140291a939e
2014-02-09 17:35:32 -05:00
David Shrewsbury 2b829118b3 [API] Support per-tenant max loadbalancers
Note: Schema altering change

Adds a new table that allows maximum number of load balancers to
be set per tenant ID. If a value is not set, the global value is
used. The per-tenant value always overrides the global value.

Change-Id: Ib7911742510756e34a4ef0ecf9380abb2a759e8e
2014-02-09 16:35:04 -05:00
Jenkins 42bcd83362 Merge "General updates for Development Installation docs" 2014-02-07 00:47:30 +00:00
Adam Harwell e00ea60312 General updates for Development Installation docs
Change-Id: I916962332792fcc78d64cb46af91866b59eb5d91
2014-02-05 13:51:29 -06:00
Marc Pilon e66c35175f [ADMIN_API] Move MnB create/delete msgs
MnB create and deletes have been moved out of the API calls
to the gearman client, after the creates / deletes have completed.
Also had to move billing_enable to the defaul config group.

Change-Id: I289e84d96d72a1fd493231938360f482c7820d41
2014-02-05 08:22:04 -05:00
Marc Pilon 84de5791b3 [ADMIN_API] Cast byte_count to int in usage message
Change-Id: I70b08feef27104c4938f137957c59f623dbeae87
2014-01-15 16:30:16 -05:00
Jenkins 670387d982 Merge "[WORKER] Change PING -> STATS, STATS -> METRICS" 2014-01-09 20:51:53 +00:00
David Shrewsbury 1be91d326f [WORKER] Change PING -> STATS, STATS -> METRICS
Gearman message actions need to change to maintain backward
compatibility. PING will revert back to STATS, and METRICS
will replace the STATS message.

Worker message documentation is also updated.

Change-Id: I1aa7478abcf29ffe5dbd512b2175dc5633548064
2014-01-09 10:14:13 -05:00
Marc Pilon 04b72659f4 [ADMIN_API] Adjusting worker messages
Changing PING back to STATS and STATS to METRICS to simplify deployments

Change-Id: I959f968a9a298c66b7e4fbfa6b6818acd95d8718
2014-01-09 09:43:40 -05:00
David Shrewsbury f35ddd0b1d Whitelist external mysql-connector-python req
Pip 1.5 changes how it deals with external packages:

http://www.python.org/dev/peps/pep-0438/

This is affecting OpenStack projects all over:

https://bugs.launchpad.net/openstack-ci/+bug/1266513

Applying this temporary fix for the mysql-connector-python
package.

Change-Id: I6f5a9f97a42336dc94c66b09ba81dd68bdab7803
2014-01-07 14:57:42 -05:00
Marc Pilon 4b4bd96553 [API] Fixed vip duplications on multi LBs
Change-Id: I00478f37d237c1697b988497c315143a03fd8697
2013-12-19 15:52:23 -05:00
Jenkins 07c05f229a Merge "[API] Disallow MnB messages if disabled" 2013-12-18 18:24:07 +00:00
Marc Pilon 76282bbcb4 [API] Disallow MnB messages if disabled
Change-Id: If912fcf573217afe65d1b330274db335d34d199a
2013-12-18 13:20:09 -05:00
David Shrewsbury dd02b5ef4e [API] Fix logging line
Old style logging was causing an exception, and IP deletes to fail.

Change-Id: Ifc3b7cfed6c6140d3327d863840c79c03df8ffbd
2013-12-18 12:52:30 -05:00
David Shrewsbury d47bf8aa95 [WORKER] Remove unused stats_client.py file
This code was originally used to start a new thread that polled
the worker for statistics. This is gathered via the STATS message
now, so this is unused code.

Change-Id: I1cc7a1af1717f910308ac83967c21df1f705d8f8
2013-12-17 17:46:18 -05:00
David Shrewsbury 0eb56f8c62 [WORKER] Support LB timeout options
Parse the new loadBalancers.options section of the UPDATE JSON
message to set various timeouts and retry values. These options
can be set per-protocol. Timeout values are assumed to be in
milliseconds, with the default being 30000 ms for the timeouts
and 3 for the retry value.

Example JSON message:

{
  "hpcs_action": "UPDATE",
  "loadBalancers": [
     "protocol": "http",
     "options": {
         "client_timeout": "30000",
         "server_timeout": "30000",
         "connect_timeout": "30000",
         "connect_retries": "3"
     },
     ...
  ]
}

Change-Id: I45a6b9c85e8fc282ac80fa3f0eae0193e08e9756
2013-12-12 18:04:57 +00:00
Jenkins 833b775321 Merge "Add -U option to pip install command" 2013-12-12 17:55:19 +00:00
Jenkins 1529fd72c3 Merge "[WORKER] Fix for saving stats on initial UPDATE" 2013-12-12 17:42:05 +00:00
David Shrewsbury c18ed6aa40 Add -U option to pip install command
Ask pip to upgrade packages in the virtualenv so that a long-lived
virtualenv is still kept up to date as external dependencies change.

Change-Id: I6a7da0a46ec8897f34cfeb38e5741e9ce0167cb2
2013-12-12 12:39:11 -05:00
David Shrewsbury d6388ca0e6 [WORKER] Fix for saving stats on initial UPDATE
The HAProxy statistics socket file will not exist on a new device,
so attempts to save the stats before a reload would fail.

Change-Id: Ib31509bb7d68424d63f41b1c3032f15a1ca786e2
2013-12-12 11:42:39 -05:00