Commit Graph

313 Commits

Author SHA1 Message Date
OpenDev Sysadmins 9f48083747 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:27:58 +00:00
Doug Hellmann 0850ceba0c import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ic2511fc486798edb60b8f4ef7f60886663f898bd
Story: #2002586
Task: #24284
2018-08-31 07:55:44 -04:00
Adrian Turjak 83faf27e3e Update .gitreview for stable/rocky
Change-Id: Ia444a7f4f8cddd615630aadfc972ce6ae4d709dd
2018-08-22 18:01:44 +12:00
Zuul e8f909a343 Merge "fix tox python3 overrides" 2018-08-18 02:12:12 +00:00
Zuul 258abf61d3 Merge "fix typos in documentation" 2018-08-18 01:59:56 +00:00
huang.zhiping 99e52b0598 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I6e873ea38b4483ea477afcb8925fb8e60d65b60f
2018-08-18 01:53:08 +00:00
Doug Hellmann 82af9e72f3 fix the project setting in .gitreview
Story: #2002586
Task: #24284
Change-Id: Ic37c2a30705b203ced91ffdc8c630afb355be5e4
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-08-07 13:30:53 -04:00
Adrian Turjak efb6c732d1 Split quota matching functions, and fix percentage
Change-Id: I2620a6e89545f8379c01fd495331700a44028494
2018-06-20 15:25:57 +12:00
Adrian Turjak 4ee2820ebc Add util for action validation to standardise use
Adding a validation util function to help with standardising
how we do action validation, so that validation doesn't continue
after one failure.

Change-Id: I4b46fbfa1382ca94b0821a76439675120be5af60
2018-06-14 15:33:43 +12:00
melissaml e393a7ecc4 fix typos in documentation
Change-Id: I111dd574af43300c34c2a78380274ade0b57210b
2018-05-23 20:54:12 +08:00
Adrian Turjak fbe6067bdc Fix issues with missing service
When Adjutant has sizes defined for a service
that isn't in all regions, we need to skip that
service when doing size comparisons if the current
usage doesn't contain that service.

Change-Id: Iea6a03d97e03501fff6e0635d079759faafbd18b
2018-05-02 13:07:33 +12:00
Amelia Cordwell dab3938ab2 Move task error handling to function
* Replaces large amounts of repeated code on the task view with a
  _handle_task_error() function
* try and unify error handling to always return a list 'errors' or
  a dict when specific field name errors are known.

Change-Id: I9d140db0af204524eadc4ba3a6d3eb7299b239b4
2018-04-10 15:10:09 +12:00
Zuul 16be61428f Merge "Make datetime strings consistent for future parsing" 2018-04-10 00:58:34 +00:00
Adrian Turjak c569816902 Make datetime strings consistent for future parsing
Lets set a default timestamp format for any datetime
strings we know we need to parse later. While we can always
parse the direct output of what we have now, lets control it
so we always have a valid format as expected.

Change-Id: I4af359ea30ace9361c9c5d21e91a0528076eb892
2018-04-10 11:38:07 +12:00
Zuul 372d656ccf Merge "Removed unnessacary code in wsgi.py file" 2018-04-09 06:47:36 +00:00
Amelia Cordwell a6ecf47a32 Removed unnessacary code in wsgi.py file
* Code was not in use
* We are unsure why it was there in the first place

Change-Id: Iaf91e673eeab5e91e76abbd100f41db393f7183c
2018-04-05 15:21:56 +12:00
Adrian Turjak 59fc30c993 Properly use TLS in Django for email
This setting has been missing for quite some time and
needs to be added. While it is mostly assumed Adjutant
is running on the same network as the email server itself
TLS should really always have been used. We now have the
setting to properly turn this on and use it.

Change-Id: Ib6d54829d58df87a4b606ca316052418f5a1cfa5
2018-04-05 12:58:27 +12:00
Zuul f1531201f6 Merge "fix typo in history document" 2018-04-03 01:02:33 +00:00
Amelia Cordwell 45f9970cf2 Token not cancelled if task is invalid
* If a token is submitted to a task and that task becomes invalid
  then that task is not complete and the token should not be
  deleted

Change-Id: Ieb7610fd0fa9b626f0223e09661d167f92cfcaff
2018-04-03 11:14:35 +12:00
Doug Hellmann f1cb43076e fix typo in history document
As much as I agree that ERP systems tend to be "eternal", I think you
meant "external" here.

Change-Id: I1c2b8e9b984fef42b1dded444e165a907cd53f62
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-20 12:40:56 -04:00
Adrian Turjak 9fefbfe85b Add documentation for the project history and guide lines
Because of how vague the scope of Adjutant is (for a reason)
we need a way to define what actually fits in a sensible way.
The new guide lines are part of that, and we're also now
adding a section to our docs about the project history to
explain why the scope is so vague and how it got there.
Plus a section on project features, to help define what it
can do.

Change-Id: I7d05c1f43570843171a4144ece2228efc3227cce
2018-03-15 22:48:00 +13:00
Adrian Turjak 1a07c1ead2 Add a param to control is we include usage in quota data
Adjutant didn't have a way to control is usage was to be included
with the quota data, and this caused perfomance issues when
adjutant-ui would query for all regions but not need the
usage data.

Change-Id: I50b6c19792ccf1a264bd29174f7d3f95180e0564
2018-02-14 12:30:24 +13:00
Adrian Turjak e720a51152 Add notification link in email template
Change-Id: Ibe0f8e4fadeb080b8e621095879a146d1f3e3abe
2018-02-14 09:41:59 +13:00
Adrian Turjak 405a4e9f4a update quota completed template with project name
Change-Id: I7b4f51ec04a6bcf914a9e132a0ec9f3677dc9388
2018-02-13 12:13:23 +13:00
Amelia Cordwell 6508cc3804 Add Octavia (LBaaS) into quota management
* Turned off by default but can be configured

Change-Id: Ifa5a6e5b7a2c44cea5f799dc291c436eaa13d756
Implements: blueprint octavia-quota-service
2018-02-12 18:48:02 +13:00
Zuul 7f33678642 Merge "Don't catch exceptions in quota manager" 2018-02-12 04:42:19 +00:00
Adrian Turjak 7ccc5b28fa Smaller Quota changes ignore change history
Update the quota logic to ignore change history
if the current change in quota is downward.

Change-Id: Iacbab882c3031db3d126a15dfb42c3cc8baa713e
Fixes-Bug: 1746137
2018-02-12 17:25:09 +13:00
Zuul 2cf6791eba Merge "Lower quota sizes always in preapproved list" 2018-02-12 03:27:02 +00:00
Adrian Turjak 053ec934ce Don't catch exceptions in quota manager
For these exceptions it is probably safer to actually
raise them and throw a 500. That way a notification
goes out, and we deal with it and potentially rerun the
actions.

The responsibility is on the deployer to correctly configure
the QUOTA_SERVICES setting, and eventually we will also add
checking against the catalog for service types in a given
region.

Change-Id: I3fa6013cb3dd02ae40109a10c79211e55cb73ef8
2018-02-12 16:06:36 +13:00
Adrian Turjak 8d72c920dc Fix more issues around config of quota_services
Fix another issues introduced by 'Update the QUOTA_SERVICES
config to be a region mapping' and not properly testing my own
bloody logic.

Correctly process the region as a dict.

Change-Id: I69226879faf992b54727bef476aaaab4d63c737f
2018-02-12 15:35:25 +13:00
Amelia Cordwell 31a1d63559 Add Quota Docs and API references
Change-Id: I37de58f73993b20ff0be194f1c33271a2bfd4e26
2018-02-12 14:33:35 +13:00
Adrian Turjak 6790c51b3f Fix issues in quota manager editing settings module
Introduced in 'Update the QUOTA_SERVICES config to be a region mapping'
was a pop while processing a setting. This meant following calls
already popped the setting and incorrectly executed. This makes
a local copy of the settings dict and uses that instead.

Change-Id: I72d865d4456d5779c219cf3b48557dd699c45dbc
2018-02-12 13:33:46 +13:00
Adrian Turjak fa6256ddb3 Update the QUOTA_SERVICES config to be a region mapping
QUOTA_SERVICES is better setup as dict of region > services
so you can control which services are active in which region.

Change-Id: I84d547fa87f8e2281638c1c93c18fb34e1d3d430
2018-02-09 16:54:42 +13:00
Zuul f5be57b1ab Merge "Fix notifications not being auto acknowledged" 2018-02-08 05:58:08 +00:00
Zuul 4cecfb4d62 Merge "Fix non-generic email error msg" 2018-02-08 05:38:52 +00:00
Amelia Cordwell 94c077be50 Move more quota logic into QuotaManager
* Makes it easier to add more services to the quota actions
* Fixes issues with endpoints that don't exist
* Allows deployers to override the services using the quotas
  available

Change-Id: Iff64d33a7f3773d5c9b1674c3dccb4804804b0a0
2018-02-08 18:23:18 +13:00
Adrian Turjak a6978f6542 Fix non-generic email error msg
Change-Id: Ic80cd8438352917e90bc0e28ba2f49884ee079a2
2018-02-08 16:13:40 +13:00
Adrian Turjak feff951dd9 Fix notifications not being auto acknowledged
Add tests to confirm this is the case, and fix and edge
case that when notifications engines are incorrectly configured
for a task, to skip them.

Change-Id: Ib715924b4e068e3d0c9a43b55183fe86eb27e38f
2018-02-08 16:10:20 +13:00
Amelia Cordwell a0fb0b1339 Add pagination for notifications
* Same api changes as for pagination for task list
* Also cleans up the code for task list pagnation a little bit.

Change-Id: I45885fd6fa583fe256b2dbbb87ed92f138b75428
2018-02-08 14:33:01 +13:00
Zuul 4e7e951640 Merge "List IDs of parent projects" 2018-02-08 01:29:02 +00:00
chenxiangui 09448a3a9a Remove the redundant word
Removed redundant 'the' in tasks.py

Change-Id: I8080364f6ed802a807d5f06aeb1a4e046983c306
2018-02-02 15:17:04 +08:00
Amelia Cordwell 6635a30c32 Lower quota sizes always in preapproved list
* Adds a test to check this as well
* Also modifies the large_cinder_only quota size
  to ensure that it is not matching the same amount
  as the actual large amount

Change-Id: Idd66560d27b0867c2532b8ecbfe5268bee76da8c
Fixes-Bug: 1746137
2018-01-30 17:29:24 +13:00
Amelia Cordwell b25617a357 List IDs of parent projects
* Also adds support for both subtree and parent ids to
  the fake manager

Change-Id: I1e3de42fe45ebbb9b078bfc99a06ff70880ba46f
2018-01-30 13:00:36 +13:00
Adrian Turjak 88cfb3c48b Ensure actions are setup before pre_approve
Fixes an issue where a failure during pre_approve will
incorrectly setup a task that can be revalidated and approved,
but should not be since actions will be missing.

Change-Id: I733f947851ec1dc6492ed2055df95d838d381e67
Closes-bug: bug/1745053
2018-01-24 12:29:59 +13:00
Adrian Turjak 6ea0993e34 fix doc codeblock missing extra space
Change-Id: I17fa9be569cdd8b12a8bdf73c0eea52e1aec4f75
2018-01-19 11:35:48 +13:00
Amelia Cordwell 571c89f98f Add support for Credentials in Identity Manager
* Needed for later plugins and MFA

Change-Id: I0bcf290c047e218089f6c8f85b97ed76a903ed5f
2018-01-15 15:37:56 +13:00
Amelia Cordwell f8b8e0c97f Fix internal error at preapprove now responds 500
* Previously it had been responding 200 (OK)

Change-Id: Iac5f9fa9562b3c1c3bfb0f5fb9be377139447998
2018-01-11 16:38:33 +13:00
Zuul d55a580e3c Merge "Bump keystonemiddleware version due to cache bug" 2018-01-10 13:59:22 +00:00
Zuul 4b52b8ec55 Merge "Add Project Admin Decorator" 2018-01-10 13:59:21 +00:00
Adrian Turjak 96e6291bad Bump keystonemiddleware version due to cache bug
4.19.0 introduced use of oslo.cache which made memcache
a requirement, this broke some things, version 4.20.0
makes that lazy loaded to stop unexpected import
requirements.

Change-Id: I7bdf02307be1ce559b92da1a43b8f02c122193ce
2018-01-10 16:57:21 +13:00