Commit Graph

151 Commits

Author SHA1 Message Date
Rosario Di Somma b99776a6b1 Merge OpenstackCloud and OperatorCloud files
Change-Id: I4b70a37aec20e4d807f4a0c258eb306116f00a06
Signed-off-by: Rosario Di Somma <rosario.disomma@dreamhost.com>
2017-12-04 17:35:22 +00:00
Julia Kreger b85cf134d9 Remove python-ironicclient
After an epic battle with time, the python-ironicclient has been
driven from the land of shade, and there will be joy!

Change-Id: I234e2fc9d1800607c22eb447dd3e77428221695e
2017-12-04 04:06:16 +00:00
Julia Kreger 6f5bfd16a1 De-client-ify fixed method get_nic_by_mac
Additionally removed traces of ironic exceptions
being parsed in operatorcloud.py and removed legacy
tasks related to port lookups.

Also remove patch machine task wrapper as that appears
to have been migrated previously.

Change-Id: Iee9e15f44b8375fdcf00ddba2b44afe217faf478
2017-12-04 04:06:07 +00:00
Julia Kreger bd38f39243 Fix operator cloud get_nic_by_mac
Apparently, this method either never worked or was silently
broken at some point in the past, since we didn't have tests.

Added two tests and got the method back into working shape.

Change-Id: I26591549c082a2cd206f20fbcb7f1e3a1dde91c7
2017-12-04 04:05:57 +00:00
Julia Kreger f9465f5abe De-client-ify many baremetal calls
Update calls for numerous baremetal methods to utilize
the _baremetal_client calls instead of python-ironicclient.

Also corrected a minor baremetal port test and fixed the
base noauth test endpoint override as python-ironicclient
was previously injecting that for us.

Change-Id: I358a63a52067f7d48d71f0b23652491b2497fe43
2017-12-03 17:35:27 -05:00
Julia Kreger e70e5a586f Add helper to wait until baremetal locks clear
Add a halper to allow the methods to wait until locks
have cleared before proceeding.

Change-Id: I36175cc570fec47484297fd7fc7b6aa7da466d9f
2017-12-03 13:09:41 -05:00
Julia Kreger 23da974bb4 Remove version arg from updated ironic calls
Based upon discusison and feedback in change
I783fd47db368035d283b4984e4daacf9dc4ac4bd,
I am removing the ability for the caller to
specify the version, as it is not presently
needed.

Change-Id: I14866a407f17849a6699c128ec999a9c71143e4c
2017-11-30 16:13:40 -05:00
Julia Kreger 376352a453 De-client-ify machine patch operations
Change-Id: I83fa30169e454fb9bf55b85ef73acfba8eb306e1
2017-11-30 16:01:05 -05:00
Julia Kreger c447d2e840 De-client-ify baremetal machine port list
Change-Id: Iccf27ec9431d00a2f76ac59864d4cd4d57f6e624
2017-11-30 16:00:39 -05:00
Julia Kreger 3767e31c0d De-clientify baremetal create/delete
Change-Id: I6fabe9b92061526374c91436f721c3d1af76e1f5
2017-11-30 15:57:06 -05:00
Julia Kreger f1cd4019cd de-client-ify baremetal get_machine
Change-Id: I783fd47db368035d283b4984e4daacf9dc4ac4bd
2017-11-28 17:19:14 -05:00
Julia Kreger f667eab384 De-client-ify baremetal node_set_provision_state
Change-Id: I6166ecdac0cf3056d84fad631b7e962ac0873606
2017-11-28 16:55:29 -05:00
Zuul e11ecfaf98 Merge "Allow grant_role to select users outside default domain" 2017-11-27 15:13:17 +00:00
Tobias Brox d4148ff9d6 Allow grant_role to select users outside default domain
Task: 5853
Story: 2001302

Changeset works for me.  Unit tests have mended.

I should still try to write up some functional test.

Change-Id: I7dfb45e5c6c4f7a7318ae6705269dd9d3e6100b2
2017-11-27 13:40:58 +01:00
Julia Kreger 15263d36b3 Switch baremetal nics/ports tests over
Moved baremetal port tests to a separate file and
updated them to utilize the new testing method.

Additionally, normalized the output of the port lists as
noise is introduced that is not needed.

Change-Id: I60492cca893e823cb2f9937405c75e23cc42807d
2017-11-26 20:41:06 -05:00
Julia Kreger 395d927081 Complete move of baremetal machine tests
Migrating tests to wrap up machine actions.

Ports will be migrated separately as there
will also need to be portgroups, which could
be wrapped into the same file/class depending
on how that ends up being implemented.

Change-Id: I239bbc134f42a47e8df75531dbd50916a97a6068
2017-11-19 01:34:33 -05:00
Monty Taylor c39d98ccaf Move role normalization to normalize.py
Location has specific semantics for identity resources. Add a method to
get a projectless location. Add domain_id to project since all of the
identity resources have it already, but keep the parent-project
semantics already in place for project.

Change-Id: Ife37833baabf58d9e329071acb4187842815c7d2
2017-10-12 21:43:28 +00:00
Sam Yaple 835d6555c3 Allow domain_id for roles
Roles can be domain specific but there is no current way for shade to
allow us to set that value.

Additionally the role name can be updated so this add update_role()

Change-Id: I3279f17cb8871e91fcc3aa3bd18ae8457a0016bb
2017-10-12 21:41:16 +00:00
Sławek Kapłoński 482b313b10 Add support for network quota details command
Neutron recently introduced API call to get details
about current usage of quota by given project.
This patch adds support for this command in Shade.

Related-Bug: #1716043
Change-Id: I74682c6b2a287f54acef91686e7281f45cbe9684
2017-09-14 19:32:08 +00:00
Sam Yaple f545e8ebea Fix search_groups
Change-Id: Ibb79be4ea42994b481ff484d5ae2b0aa0a97f4db
Related-Id: I5be672c3eae5e013525cc7c0a4d73f9166f379ba
2017-09-12 17:53:32 -04:00
Jenkins 94403a3574 Merge "De-client-ify Endpoint Create" 2017-09-12 14:45:45 +00:00
Jenkins 06688404de Merge "Refactor the create endpoint code" 2017-09-12 14:44:47 +00:00
Jenkins 3e7cd47f98 Merge "Reorganize endpoint create code" 2017-09-12 14:44:41 +00:00
Jenkins aba214e3a6 Merge "De-client-ify Endpoint Update" 2017-09-12 14:44:34 +00:00
Jenkins e73c40644f Merge "De-client-ify List Role Assignments" 2017-09-11 17:20:31 +00:00
Jenkins ce064367a6 Merge "De-client-ify Endpoint List" 2017-09-11 14:41:54 +00:00
Jenkins d3f279c0c4 Merge "De-client-ify List Roles for User in v2.0" 2017-09-11 14:41:48 +00:00
Jenkins 43d47df231 Merge "De-client-ify Role Grant and Revoke" 2017-09-11 00:47:21 +00:00
Jenkins e89cd56769 Merge "De-client-ify Endpoint Delete" 2017-09-10 21:43:16 +00:00
Samuel de Medeiros Queiroz d0ca641f8e De-client-ify Endpoint Create
Change-Id: I916dea906886955e8c7d074d5d1d69f29ff5bdf3
2017-09-10 16:42:46 -03:00
Samuel de Medeiros Queiroz 941e179e53 Refactor the create endpoint code
The code is rather complex, this patches improves its readability

Change-Id: I0b79217b89fdd636cbf8da241cd7e1af24f07371
2017-09-10 16:41:57 -03:00
Samuel de Medeiros Queiroz f3e6225043 Reorganize endpoint create code
Group the code for v2.0 in a single if statement. Idem for v3

Change-Id: I12f9a571b33b38e9e0e75fe11c877cca4905e78c
2017-09-10 16:34:47 -03:00
Julia Kreger e8d37f8281 Migrate additional machine tests
Migrated a number of simpler machine tests to using rest calls,
while removing the mocked client versions of the tests.

Added additional patch_machine tests, which raised the fact that
patch method was not normalizing the data being returned.

Added normalization since those fields are not normally returned
by get_machine.

Change-Id: I1c5f4ebd06fff40da45dbcc0d6ea0f7b108ce8fa
2017-09-07 06:10:27 +00:00
Samuel de Medeiros Queiroz 8cc1483cc1 De-client-ify Endpoint Update
Change-Id: I823414cbee3b8f38fcbddd16271ff61005eaf35d
2017-09-06 13:55:47 -03:00
Samuel de Medeiros Queiroz 8afeaf60b1 De-client-ify List Role Assignments
Change-Id: Ief3fd56ccab977399c71cd603e42b52296e2a002
2017-09-06 10:57:21 -03:00
Samuel de Medeiros Queiroz 179430c986 De-client-ify Endpoint List
Change-Id: If711f71ec05a03e5613cf25849c7b6a68f23eb55
2017-09-06 09:33:29 -03:00
Samuel de Medeiros Queiroz eb28fa5751 De-client-ify List Roles for User in v2.0
Change-Id: Ic652a38ba86594540ac4a4f5d944a8cd627d60f5
2017-09-06 09:26:21 -03:00
Samuel de Medeiros Queiroz 8d310b7818 De-client-ify Role Grant and Revoke
Change-Id: Ie0a9748132ef7f417aabf976be21ec2d32085c8b
2017-09-05 21:01:09 -03:00
Samuel de Medeiros Queiroz a4f94bf4de De-client-ify Endpoint Delete
Change-Id: Ieea67d733a20af6ecb7fde88d6af85f8b0cf2c18
2017-09-05 18:26:47 -03:00
Rosario Di Somma 149a9fbc78
Use direct calls to get_<resource>_by_id
This commit adds a `use_direct_get` flag to the OpenStackCloud
object. The goal is to enable direct calls to the
get_<resource>_by_id methods when a UUID is passed and default
to the `list` and `search` calls otherwise.

Change-Id: I6aebfe7cb40adace0568d8f131e64d6555736712
Signed-off-by: Rosario Di Somma <rosario.disomma@dreamhost.com>
2017-09-01 15:21:31 -05:00
Jenkins 83491e309c Merge "Switch to _is_client_version in list_services" 2017-08-30 17:17:09 +00:00
Jenkins 02f30a6e45 Merge "Add domain_id to groups" 2017-08-30 13:28:08 +00:00
Jenkins 2c1dd823fa Merge "De-client-ify Service Delete" 2017-08-30 05:01:00 +00:00
Jenkins af29110abd Merge "Fix switched params" 2017-08-30 02:16:17 +00:00
Sam Yaple 4695f5c1b6 Add domain_id to groups
When groups are hosted in ldap you must query the domain explictly to
list the groups

Change-Id: I5be672c3eae5e013525cc7c0a4d73f9166f379ba
2017-08-29 19:23:23 -04:00
Sam Yaple 68f0947ba0 Fix switched params
Fixes a reversal of params in get_domain()

Change-Id: I3f6e763a2378f52954c9d835a233867fb46f3e56
2017-08-28 19:09:39 -04:00
Samuel de Medeiros Queiroz 7fb83a668d Switch to _is_client_version in list_services
Change-Id: Ie7e77c4a766d01557222decdab48fb206086e57f
2017-08-24 06:33:45 -03:00
Samuel de Medeiros Queiroz 522f51cdf6 De-client-ify Service Delete
Change-Id: I9a034bf240450574dfcc6ab8074db708002d0659
2017-08-24 06:30:32 -03:00
Samuel de Medeiros Queiroz 4cd71a139d De-client-ify Service Update
Change-Id: I161b680c6f165d298538ec4e13264deeb92a8453
2017-08-24 06:18:40 -03:00
Samuel de Medeiros Queiroz bda65e7265 De-client-ify Service List
Change-Id: I22149f4dd2d63b0f3b809015f4e9633f20a0a1d0
2017-08-23 14:05:24 -03:00