14 Commits

Author SHA1 Message Date
James E. Blair
3bf800b5a2 Rename oslo-config to oslo.config.
Change-Id: Ic6f17676ba597a055c89425ecd3c3164dfe30db2
Reviewed-on: https://review.openstack.org/24466
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-03-16 04:06:02 +00:00
Mark McLoughlin
7e3791d225 Add oslo-config project
oslo-config is the first set of APIs to graduate from oslo-incubator:

  https://blueprints.launchpad.net/oslo/+spec/oslo-config-package

oslo-core has approval rights

The repo is seeded from github:markmc/oslo-config which is the oslo-incubator
repo translated using 'git filter-branch'.

Change-Id: I07bbbf2d2c8974d5be736bcdb2511f79cb3bd8a2
Reviewed-on: https://review.openstack.org/20117
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2013-01-28 19:56:02 +00:00
Monty Taylor
74460853d1 Rename CI to Infra in MANY MANY places.
Change-Id: I409bd50ae374e0288531f07cfeea34856c5f8067
Reviewed-on: https://review.openstack.org/17319
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: James E. Blair <corvus@inaugust.com>
2012-12-16 17:30:47 +00:00
Julien Danjou
52c2139ba5 Add python-ceilometerclient
Change-Id: I0fbfc5aa71888373b728ff485009bf4b01ffedfa
Signed-off-by: Julien Danjou <julien@danjou.info>
Reviewed-on: https://review.openstack.org/17537
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-12-05 21:40:42 +00:00
James E. Blair
305fa9f640 Flush gerrit caches after the db commit.
Change-Id: I5eeffdafdcb0b7fc1d09885fa14088a58b9f3cac
Reviewed-on: https://review.openstack.org/17383
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-12-03 17:35:36 +00:00
James E. Blair
559dc91e51 Fix errors in sync script.
We were ignoring launchpad team membership because of a programming
error (person instead of person.name).

We were also removing people from some gerrit-only groups like
"Administrators".  This adds several kinds of protection to
make sure we don't sync inappropriate groups.

Change-Id: Id7952591c54cf3532a37631408b386ebacd653b4
Reviewed-on: https://review.openstack.org/17317
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-12-02 21:54:25 +00:00
James E. Blair
0087c4956f Clean up after sync-script update.
Remove one-time identify-unused-accounts script.

Remove stray print statement in sync script.

Change-Id: I05e86f3ae698f6cf33cc2341c6ba4171459a3289
Reviewed-on: https://review.openstack.org/17314
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-12-02 21:54:06 +00:00
James E. Blair
eae0e69432 Rework user sync script.
identify_unused_accounts.py is a one-time script to be run manually
to clean up the database to make the sync script run much faster.

Change-Id: I0e954f86dd6bb2fedd6ea65aa9be3d5188e04eab
Reviewed-on: https://review.openstack.org/17169
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-12-02 17:23:47 +00:00
Ray Chen
3e23f97451 Indentation fix
Fix several formatting issues following the guideline of PEP8:
1. List the import statements in alphabetical order.
2. Fix a lot of indentation issues.
3. Adjust the length of several lines.
4. Other PEP8 issues fixed.

Change-Id: I8fefa4db882d4fb72146052852a27b6994fc5d5b
Reviewed-on: https://review.openstack.org/12250
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-09-11 13:39:53 +00:00
Clark Boylan
13f336900d Test gerrit user sync with normal api endpoint.
The development endpoint for the LP api has been in use for about a week
giving is log data on its performance. Switch to the non development
endpoint to gather data on that endpoint.

Change-Id: I153dd396feddba47ea7576e53e6f34172732c02d
Reviewed-on: https://review.openstack.org/12141
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2012-08-31 18:36:59 +00:00
Clark Boylan
de77b7df8c Add proper logging to gerrit user sync script.
Use the logging package to properly log in the lp to gerrit user sync
script.

Change-Id: I329ea96a5257f7ea140406127b27621dd0253c09
Reviewed-on: https://review.openstack.org/11663
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-21 02:02:18 +00:00
Clark Boylan
92ede36c64 Log start/stop times of gerrit user sync script.
Add rudimentary logging to the gerrit user sync script. Log the start
and stop times of script runs. Also modify timeout in the cronjob to
allow the job to run for up to 8 hours in order to get better log data.

Change-Id: I193911e2d4dcd6448ef8a61360e6fc9fff287c1a
Reviewed-on: https://review.openstack.org/11658
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-08-20 17:39:41 +00:00
Clark Boylan
b0e002d520 Use devel version of LP API.
For consistency use development version of the LP API in the scripts
that query the Launchpad API.

Change-Id: I39b145684563738dd5615d863720ec364c4987c3
Reviewed-on: https://review.openstack.org/11508
Reviewed-by: linuxjedi <andrew@linuxjedi.co.uk>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-18 13:58:28 +00:00
Monty Taylor
d20c4523bf Broke launchpad user sync into its own class.
Additionally, the file installation of the scripts wasn't working,
so the sync script wasn't actually getting installed. This moves
the underlying scripts to be installed by the gerrit module,
because it owns /usr/local/gerrit/scripts, and then manages the
gerrit hooks which call those scripts in the openstack_project
class, since that's where the config choice to enable those
functions really should live.

Change-Id: I54fb9edd9fb0c634d8d9de4e57f9ddad6af63a99
2012-07-29 13:04:17 -05:00