Commit Graph

1206 Commits

Author SHA1 Message Date
OpenDev Sysadmins 1620532615 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:42:29 +00:00
Dean Troyer 9bacc2b564 Merge remote-tracking branch 'origin/master' into f4-merge-branch
Change-Id: I537980d23e8c674ebf2f48279f2d5a898cddeda8
2017-09-14 11:20:33 -05:00
OpenStack Proposal Bot 026f05678f Updated from global requirements
Change-Id: I7f26059c77170d0cf049adccdf15745188cc508c
2017-09-13 13:00:26 +00:00
OpenStack Proposal Bot 0bafd1fcd0 Updated from global requirements
Change-Id: I376c065f2a44287658e96d39aac80673c49e07dc
2017-09-11 21:46:45 +00:00
OpenStack Proposal Bot 64f1816429 Updated from global requirements
Change-Id: I8ea0ddd1d44461282c2651a2bec6b0a534f5ea87
2017-09-01 12:45:01 +00:00
OpenStack Proposal Bot cad406de2c Updated from global requirements
Change-Id: I28d3e707399a0be2e4847493d0846438a5f13dc7
2017-08-18 11:39:44 +00:00
Dean Troyer 512f414fe5 Refactor initialize_app() to allow overriding
This breaks down initialize_app() into the components that an
application needs to be able to override to subclass objects:
OSC_Config, ClientManager

Change-Id: Icce81e69e94a1d96a5d9bf6358e7c2ae09be1a44
2017-08-08 11:12:08 -05:00
Akihiro Motoki 4e3882c0dc Revert "Update UPPER_CONSTRAINTS_FILE for feature/osc4"
There is no feature/osc4 branch in openstack/requirements repository.
osc-lib itself has no dependency on a specific branch related to
feature/osc4, so this is no need for this kind of stuffs.

This change breaks tox jobs when running them in local env.

Note that the upstream gate succeeded because UPPER_CONSTRAINTS_FILE
envvar is specified in our gate job.

This reverts commit ef967cbeba.

Change-Id: I3acacbb1d4190a18f05838f1aea4c37254b50b10
2017-08-01 16:44:07 +00:00
OpenStack Release Bot ef967cbeba Update UPPER_CONSTRAINTS_FILE for feature/osc4
Change-Id: I0ad62803e09126d0896e040087cfcc14138d1be3
2017-07-31 19:09:33 +00:00
OpenStack Release Bot 388539b8d0 Update .gitreview for feature/osc4
Change-Id: I16b27b1e913c2725da59cda0a85d1ba7e723d059
2017-07-31 19:09:32 +00:00
OpenStack Release Bot d84776cd03 Update reno for stable/pike
Change-Id: Iba350a7f8643f9dc9ad02376efef04916615c73d
2017-07-28 21:04:26 +00:00
Jenkins f57126eadf Merge "Updated from global requirements" 2017-07-28 16:53:38 +00:00
Jenkins d7e37562b2 Merge "Update the documentation link for doc migration" 2017-07-28 16:53:32 +00:00
OpenStack Proposal Bot 2dc5d886e6 Updated from global requirements
Change-Id: I5bdfc1fcbdd68a899a0e845bdf938eda78ea7440
2017-07-27 20:30:51 +00:00
Hangdong Zhang f00e215ab4 Update the documentation link for doc migration
Change-Id: If8a28c8cc314b0d8c6aaae216240744c5e54f694
2017-07-26 16:11:31 +00:00
OpenStack Proposal Bot 3f004e20ed Updated from global requirements
Change-Id: Ib854212fdcfe5508b005c8a5e136161362f6b0fd
2017-07-23 13:50:27 +00:00
OpenStack Proposal Bot 47e28fabc3 Updated from global requirements
Change-Id: I4742b1dbdfeef37962c15de59f0c0a536006de99
2017-07-21 04:44:16 +00:00
Akihiro Motoki 8cbdcde607 Emit warnings to encourage cliff FormattableColumn
cliff has a concept of FormattableColumn which allows CLI implementors
to convert data into human-readable format only when a human-readable
format is requested and keep data unconverted for manchine-readable
formats like JSON or YAML.

Deprecation warnings is now emitted in favor of using FormattableColumn.

Partially implement blueprint osc-formattable-columns
Change-Id: Ia55bc950ecfc666d4a957507beab98eef74390aa
Related-Bug: #1687955
2017-07-08 21:18:04 +00:00
Jenkins 7e7cecbde3 Merge "Add test methods to compare formattable column values" 2017-07-05 21:03:13 +00:00
Jenkins 14b75d6ba7 Merge "Optimize find_resource: do not run the same query twice" 2017-07-05 19:44:26 +00:00
Jenkins 50cea39981 Merge "Deprecate --profile and remove after Apr 2017" 2017-07-05 19:23:27 +00:00
Jenkins 7487c51bb3 Merge "Make --os-profile load from environment variables" 2017-07-05 19:23:19 +00:00
Akihiro Motoki 596af360fb Add test methods to compare formattable column values
When formattable columns are used we cannot compare two items
just using assertEqual(item1, item2). We need to compare
two items column by column calling human_readable or
machine_readable methods.

This commit add convenient assert methods to encourage
the usage of cliff formattable columns in OSC.

An example of the usage of the new methods is found at:
https://review.openstack.org/#/c/462170/ or related reviews.

Related-Bug: #1687955
Related to blueprint osc-formattable-columns

Change-Id: Ib801f6204e7a694c597d93a3a6d40dc500212f65
2017-07-01 14:53:15 +09:00
Jenkins 6150e09202 Merge "use openstackdocstheme html context" 2017-06-27 21:55:56 +00:00
OpenStack Proposal Bot a5996213cf Updated from global requirements
Change-Id: Id3cb0e7141fe0c11424e431fa8a656bfd47aec13
2017-06-27 12:19:52 +00:00
Doug Hellmann 4a6883c5e6 use openstackdocstheme html context
Set some of the new config values and enable openstackdocstheme as an
extension so it will inject values into the page context as it writes
each documentation page. This ensures the pages link to the right bug
tracker, etc.

Change-Id: Ifee9dcb2982313210fd66479b32e3c1203ce14de
Depends-On: Icf3a40ed104cfd828f532f6f2b112ed02f996ff5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-23 14:51:31 -04:00
Doug Hellmann 8f08eed13d update links to docs in readme
Change-Id: If2e320002452a014538e3f4ea82a6161020a5603
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-22 15:02:02 -04:00
Doug Hellmann 8e164af6bb switch from oslosphinx to openstackdocstheme
Change-Id: Ifa30f6c05cc2e6fd5467c4d3b20fd76218c3c90a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-22 14:47:09 -04:00
Doug Hellmann 5b80552b11 turn on warning-is-error for sphinx
Update a docstring that had an rst formatting error and then turn on the
warning-is-error flag to prevent future issues with documentation.

Change-Id: I29fc90a2eb1599c9da88489415a9e080d88cc707
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-22 14:38:17 -04:00
Doug Hellmann bdfa70956f rearrange existing documentation to fit the new standard layout
Change-Id: I91657e96ef29f8b36b2089a11c9c4966418cfcdb
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-22 14:36:41 -04:00
Ilya Shakhat ca5864d7e3 Optimize find_resource: do not run the same query twice
utils.find_resource tries to query the resource in multiple ways:
first as ID, second as name but with parameters and so on.
If no extra parameters are given, the second query would be
the same as the first and thus is not needed.

Change-Id: I37fd4c8c75d354df95cd7f9ce2af092c9ac6962c
2017-06-22 15:43:10 +02:00
Tovin Seven db9673f16f Make --os-profile load from environment variables
--os-profile argument can be loaded from OS_PROFILE environment variables
to avoid repeating --os-profile in openstack commands.

Change-Id: I8615a972e8a1e8a39e97c3d6e7f07add4b6ab599
2017-06-14 15:40:45 +07:00
Tovin Seven b0b03b2a17 Deprecate --profile and remove after Apr 2017
NOTE(dtroyer):
This global option should have been named --os-profile as --profile
interferes with at least one existing command option.
Deprecate --profile and remove after Apr 2017.

Change-Id: Icac979e0828e0b7bccecb97c806db8fe766f4652
2017-06-14 11:31:19 +07:00
OpenStack Proposal Bot 2c9d95912e Updated from global requirements
Change-Id: I5697430ab8af3119acc47c8cac42cf00cda63896
2017-05-23 11:57:41 +00:00
Jenkins 0dbf12d81c Merge "Remove log translations" 2017-05-04 19:58:49 +00:00
Jenkins 689c46461e Merge "Add endpoint hook to BaseAPI" 2017-05-04 13:47:44 +00:00
Jenkins 361789fb59 Merge "Fix shell saving OpenStackConfig object" 2017-05-04 06:19:37 +00:00
Jenkins 57b3f937cd Merge "Follow-up to headers handler to fix find_bulk()" 2017-05-04 00:33:38 +00:00
Dean Troyer 473f4fc32d Fix shell saving OpenStackConfig object
When this was brough over from OSC we did not save the OpenStackConfig
object created in shell.initialize_app().  Others have come to rely
on it being in shell.cloud_config so save it.

Change-Id: I1a82cd94febb1775bcd9fae05d5d5ed860c5baa7
2017-05-03 16:48:40 -05:00
Dean Troyer 6b5c27ea38 Follow-up to headers handler to fix find_bulk()
The headers keyword arg was missed on api.find_bulk() resulting
in no results being returned as it was handled as a filter attribute.

Change-Id: I703a0231046587d9ed546561fbf5dd7fa313c443
2017-05-03 16:15:59 -05:00
OpenStack Proposal Bot 538e431101 Updated from global requirements
Change-Id: I70bb7a58b1105b944ac279d835592e5813a8d0ad
2017-05-03 12:21:17 +00:00
OpenStack Proposal Bot 27117c6157 Updated from global requirements
Change-Id: I1b728ba964557f5935638cd08c36e07411867743
2017-05-01 14:06:02 +00:00
Dean Troyer ed8ef0df9f Tell ClientManager when auth is required
Commands that do not reuire authentication still call things that want
to check the service catalog; no auth means no service catalog.
(I'm looking at you OSC's is_networking_enabled())  Get more aggressive
at not doing auth when it is not required.

The cost of this is commands with auth_required=False need to be more
selective about what they do with ClientManager.auth_ref as it will
now happily return None when auth is not required _and_ no credentials
are present, rather than throw up all over the place.

Change-Id: I72ae6154268bdf26be6054c0fef6a4c67c71119c
2017-04-25 07:27:17 -05:00
Dean Troyer f0819efe6b Add endpoint hook to BaseAPI
Duplicate the basic endpoint cleanup (removing trailing '/') into
a method that can be overridden in subclasses to do additional things
like API-specific version handling.

Add more tests for the combinations of endpoint and url and some
corner-case checking.

Change-Id: I4b4f2abdec29e4d29b61338077f9c1320cec5bb8
2017-04-21 11:49:15 -05:00
Jenkins aa31cbb63d Merge "Add token auth test" 2017-04-20 20:18:16 +00:00
Jenkins a33b92613c Merge "Revert "Avoid to authenticate twice"" 2017-04-20 20:18:09 +00:00
Dean Troyer 897e623252 Add token auth test
Add a ClientManager test for Token authentication (specifically
keystoneauth's admin_token) that got dropped in the move from
OSC because OSC uses its own token_endpoint plugin loader, but
creates the same AdminToken object.

This would have prevented the issues seen with the merging of
https://review.openstack.org/452711 that were subsequently reverted
in https://review.openstack.org/458586.

Change-Id: I516682057d759d4becd8f6675cf7fa262d224eb9
2017-04-20 12:16:47 -05:00
Dean Troyer aec3f4a831 Revert "Avoid to authenticate twice"
This reverts commit ffd548c774.

Token plugin doesn't have get_access.

Change-Id: I624b1bc557a195bdf8a7c5a32dc0e72a6fa8b075
2017-04-20 16:35:29 +00:00
Jenkins c36c9a0600 Merge "Add more API support" 2017-04-19 14:39:01 +00:00
Jenkins 7cbadcbe86 Merge "Avoid to authenticate twice" 2017-04-19 14:30:02 +00:00