Commit Graph

508 Commits

Author SHA1 Message Date
Tony Breeds 06050c7421 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I131bb2372ca52fd232da417e02693af5e36350cf
2017-09-12 16:04:44 -06:00
Dirk Mueller 623593a693 Manually sync with g-r
Change-Id: I4298bb7c2d66632b716b0dbeae64c9dca2b3434d
2017-07-24 21:46:26 +02:00
Doug Hellmann f74902b0b9 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: Id9cc61e81aa43f4b69883d338090716005477d0a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-29 15:27:53 -04:00
Doug Hellmann 30c8729f78 switch from oslosphinx to openstackdocstheme
Change-Id: Ie45909df0b5a118d0200a1ee71277f4dbfe41d08
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-22 15:26:16 -04:00
Doug Hellmann 412f0fdd85 turn on warning-is-error in documentation build
Change-Id: I18cdecec84f8dd5f11741ac1ffc35630f7eb64b8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-22 15:17:54 -04:00
Doug Hellmann 95f44f171c rearrange existing documentation to follow the new standard layout
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454
Change-Id: Ib68812eda4ab0ce09c6d438f9f236111d61ef38b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-22 15:16:06 -04:00
Jenkins fe39a9f020 Merge "Revert "Revert "Use interface not endpoint_type for keystoneclient""" 2017-05-25 23:10:41 +00:00
Jenkins 2f377fc9f7 Merge "Don't pop from os.environ" 2017-05-25 22:55:30 +00:00
Jenkins 0020d9c192 Merge "Keep a singleton to support multiple get_config calls" 2017-05-25 22:55:25 +00:00
Jenkins 357244a2d1 Merge "Add ironicclient to constructors list" 2017-05-25 22:55:19 +00:00
Jenkins 9332c5acfd Merge "Add helper method to fetch service catalog" 2017-05-25 22:55:10 +00:00
Matthew Booth 990cfa3ce2
Don't pop from os.environ
It's rude to other users and subsequent callers.

Change-Id: I7789f381c99311bfd1c1e0a9869cbacbc96b17d6
2017-05-25 08:31:42 -05:00
Monty Taylor 8235e0ce6c
Keep a singleton to support multiple get_config calls
We are destructive to os.environ in the OpenStackConfig constructor- so
it really should only ever be called once. Make sure get_config does
this.

Change-Id: I279bdf68408a807ec18fba634df3769c9b8fc4dc
Closes-Bug: #1691294
2017-05-16 18:13:48 -05:00
Monty Taylor a483534123
Revert "Revert "Use interface not endpoint_type for keystoneclient""
Unrevert the endpoint_type/interface patch. But this time around, put in
a check for API version 2.0 and only apply the interface arg if it's for
v3.

This reverts commit 4493871824.

Change-Id: Ib347ec686d4d01788ee943c4c4f809aad06d9ccf
2017-05-13 08:56:41 -05:00
Jordan Pittier 4493871824 Revert "Use interface not endpoint_type for keystoneclient"
This reverts commit 38e5eba621.

This patch introduced a bug when using Keystone v2. With this patch, the
following works:

python -c "import os_client_config; print(os_client_config.make_client('identity', auth_url='http://localhost/identity_admin', username='admin', project_name='admin', password='testtest', identity_api_version='3').roles.list())"

But changing identity_api_version from 3 to 2.0 raises an exception.

Without this patch, both 3 and 2.0 works.

Change-Id: I8d2ad71ff51a08af1166d36805b740ea272939ed
2017-05-13 08:35:02 +00:00
Monty Taylor 7a3acde3ed
Add ironicclient to constructors list
Change-Id: I29db3c830759a80d8ea9f0d93a213b4bae4c8b59
2017-05-12 12:05:50 -05:00
Monty Taylor 347fe82c92
Add helper method to fetch service catalog
Grabbing the catalog is weird. OCC should help.

Change-Id: I6e7176568311c1f0e644a8e8876f56c3e153d6e8
2017-05-08 07:20:53 -04:00
Monty Taylor 17debbb099
Fix interactions with keystoneauth from newton
keystoneauth in newton did not have app_name or app_version
as Session parameters. Although it isn't a super common combination,
user agent strings aren't a reason to break something. Add a
simple workaround.

Change-Id: Ib5774389fefdbc190a4b78dd6784c8006afbb270
2017-04-28 15:06:27 -05:00
Jenkins f6804f6b0d Merge "Make _fix_argv() somewhat compatible with Argparse action='append'" 2017-04-25 22:58:22 +00:00
Jenkins d300678f40 Merge "Add designateclient to constructors list" 2017-04-25 15:07:20 +00:00
Jordan Pittier ff2c06c305 Make _fix_argv() somewhat compatible with Argparse action='append'
Python Argparse supports the 'append' action [1] which is super handy to allow
a user to repeat several times the same argument, each time with different
values.

This doesn't work with occ that tries to "fix argv" but raises this error:

os_client_config.exceptions.OpenStackConfigException: The following options
were given: '--foo,--foo' which contain duplicates except that one has _
and one has -. There is no sane way for us to know what you're doing.
Remove the duplicate option and try again

This patch tweak the _fix_argv() function so that it doesn't explode
if the duplicate option has no '_' not '-' in its name.

Change-Id: I4f06b6aff8d3ab1df45637399bc3a9b4b61764a9
Related-bug: #1685630
2017-04-23 17:47:49 +02:00
Jenkins e5e8f5617f Merge "Add ability to pass in user_agent" 2017-04-18 21:41:04 +00:00
Monty Taylor 64b28d42ed
Add ability to pass in user_agent
keystoneauth supports adding a user_agent info to the Session and
Adapter via app_name. Allow users to add app_name/app_name and versions as
desired. Also, add os-client-config into additional_user_agent.

As an example, once this is landed and plumbed through shade,
nodepool will set app_name='nodepool' and we'll have:

  User-Agent: nodepool/0.4.0 os-client-config/1.26.1 shade/1.19.1
              keystoneauth1/2.18.0 python-requests/2.13.0 CPython/2.7.12

Change-Id: I1eb4dbd2587dcbe297b5c060c3c34b68ef51ef5e
2017-04-18 03:51:04 -05:00
Jim Rollenhagen b31e9aa777 Docs: add a note about rackspace API keys
Some users are forced to use these instead of passwords (whether because
they use 2-factor auth or by policy). Document it so they know how.

Change-Id: I558c2e8d3e8b0fad0a96a361232f14443e82a35f
2017-03-29 16:55:14 -04:00
Monty Taylor 451ec8daad
Remove out of date comment
Change-Id: I8a26f5952456a96429ff1413b90aef3091a8b5bf
2017-03-28 10:59:32 -05:00
Monty Taylor 01ff292e07
Stop special-casing idenity catalog lookups
We have a special case to work around a thing we're pretty sure
keystoneclient used to do but apparently doesn't do anymore. Remove the
workaround.

Co-Authored-By: Jamie Lennox <jamielennox@gmail.com>
Change-Id: I873ad91816150b593d4aef13dcd1520e8c91b22a
2017-03-28 07:24:26 -05:00
Jenkins c9c1a8d8d3 Merge "Add support for bailing on invalid service versions" 2017-03-22 01:22:47 +00:00
Monty Taylor bd0a40ecc6
Add designateclient to constructors list
We've had this mapping over in shade for a while. No sense in keeping
the fun all to ourselves.

Change-Id: Icb2b98b621cfa8cff86c534bfba8f5de2c818e95
2017-03-21 08:39:15 -05:00
Clark Boylan 194e53c84e OVH supports qcow2
OVH supports qcow2 images too. Update the docs and vendor json file to
reflect this. You can continue to use raw images just fine as well.

Change-Id: Ic7dc4c70c681947a0475bbabf5621672825dfb3c
2017-03-13 11:36:28 -07:00
Monty Taylor 38e5eba621 Use interface not endpoint_type for keystoneclient
keystoneclient wants the interface argument.

Change-Id: I5898d8621259256f962fc006df38049d0cb059f8
2017-03-09 13:30:03 -05:00
Monty Taylor b2f7ceadb1
Add support for bailing on invalid service versions
At least for cinder for now, allow a consumer of get_legacy_client to
express the minimum version they find acceptable. This will use
cinder_client logic to figure out the version from the url.

As a follow on, expand this to all of the clients and make it support
microversions for the clients that support microversions. (Right now
it's just going to be major versions, so min_version=1 will throw an
exception if the cinder service returns a v1 endpoint.

Also, because we override the volume/volumev2/volumev3 service type
stuff, we need to do extra special logic in get_session_endpoint to try
all three in the case where do not have a configured api_version.

Change-Id: I7b6b3588fec9a6be892cf20d344667f0b9a62f0a
2017-03-09 09:17:48 -06:00
Jenkins 8acef660cd Merge "modify test-requirement according to requirements project" 2017-03-09 14:58:23 +00:00
xhzhf 0a956c1d28 modify test-requirement according to requirements project
the OpenStack requirements project has modify version requirement of docutils/oslosphinx.
The link is below
https://review.openstack.org/#/c/418772/
So modify test-requirement like other project
Closes-Bug: #1666149

Change-Id: I145ba596926cac0efab75fb4a1548eea338a2d5a
2017-03-09 11:33:54 +08:00
Jenkins aec9a78442 Merge "Pass ironic microversion through from api_version" 2017-03-07 22:04:26 +00:00
Jenkins 9c550021d3 Merge "Add ability to skip yaml loading" 2017-03-07 19:21:48 +00:00
Jenkins d6908f93a7 Merge "Remove the keystoneclient auth fallback" 2017-03-04 17:10:54 +00:00
Jenkins 474db2d18b Merge "Add support for overriding mistral service type" 2017-03-04 17:10:50 +00:00
ricolin 40c416cbad [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: I09ae994782889aae05250a8e5bf9f5b630b2d502
2017-03-02 22:27:07 +08:00
Monty Taylor d321a14ecb
Pass ironic microversion through from api_version
If someone sets baremetal_api_version to 1.29 right now, we don't really
do anything with that information. Pass it through to the constructor
for ironicclient in get_legacy_client().

Change-Id: I470fbb8852eac7d5cb35aef549ac591d63f3636f
2017-02-28 11:31:11 -06:00
Monty Taylor 81e04fcec6
Add ability to skip yaml loading
Added a flag, 'load_yaml_config' that defaults to True.
If set to false, no clouds.yaml files will be loaded. This
is beneficial if os-client-config wants to be used inside of
a service where end-user clouds.yaml files would  make things
more confusing.

Change-Id: Idbc82bb931e9edf1bbcc575237c0e202e219c218
2017-02-27 09:36:57 -06:00
Monty Taylor e6755872ad
Remove the keystoneclient auth fallback
OSC doesn't use this codepath anyway (to my knowledge) and it masks
errors in exceptionally strange ways.

Change-Id: I15ec5aacb037813a98ac9ea8e9504a5d1cc90837
2017-02-15 10:30:12 -06:00
Monty Taylor 0e039e67c2
Add support for overriding mistral service type
The mistral team copied the heinous pervsion that the cinder team
propagated upon the world and appended a version to their service_type.
That's ok - there is nice copy-pastable code here we can use to prevent
users from feeling the pain.

Change-Id: Icf280f932014e4d9abeab3e944aece125988562e
2017-02-15 09:31:12 -06:00
Monty Taylor cbb38f38bc
Add helper scripts to print version discovery info
These are simple scripts I made to investigate things. Each show the
version discovery info for all of the clouds in a clouds.yaml.

Change-Id: I742a59c737c53c05851015b9734c7aa85a5466ca
2017-02-15 08:05:44 -06:00
Monty Taylor 50efb434d8
Add support for indicating required floating IPs
Some clouds require that users add a floating IP to a server if the user
wants that server to be able to talk to things that are not on the
cloud. Some clouds do not require this and instead give servers a
directly attached IP. The only way a user can know is to boot a server,
then ask neutron for the port associated with that server, then find the
network the port came from and then try to infer whether or not that
network has the ability to route packets northbound. Of course, networks
don't actually communicate that quality directly, (router:external
doesn't mean a network routes externally, it means the network can have
a router attached to it to provide floating ips) so it's still hit and
miss.

Where we can, save the user the stress and strain of not knowing how
their cloud wants them to get an externally routable IP.

Change-Id: I1baf804ce28bc1997b2347c4648c5cc56c750ead
2017-02-08 08:25:21 -06:00
Jenkins a9deb602fa Merge "fix location of team tags in README" 2017-02-01 00:06:57 +00:00
OpenStack Release Bot 707adab1bc Update reno for stable/ocata
Change-Id: Iace25f1919632b5de8d6bf81add7ce0416a874ef
2017-01-31 21:04:24 +00:00
Doug Hellmann 02116c41ef fix location of team tags in README
Remove the extraneous title markup and move the team tag include
instructions below the main project title in the readme so it renders
more nicely.

Change-Id: Icd384c81a455a3e1a86abd1f2ef84e775e06c307
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-01-31 16:03:05 -05:00
Andy Botting 08b7ce9331 Fix typo for baremetal_service_type
Fix a copy-and-paste error for the baremetal service.

Change-Id: Ifbef9d0ad01c57bd98f06f7f10f9d632753d8221
2017-01-19 15:30:25 +11:00
Monty Taylor 3c47e251c9
Revert "Fix interface_key for identity clients"
This patch breaks stable/newton devstack-gate of shade.

This reverts commit fa4e1bd21d.

Change-Id: I31a7831693f567a0717a9b41c242453fb937d6d7
2017-01-18 14:26:34 -06:00
Andy Botting cc2b337dcd Add support for Murano
Add Murano support with the service name 'application-catalog'

Change-Id: I42794993b8f6208d40786e83ec80ee64a0879415
2017-01-18 16:10:17 +11:00