Commit Graph

9 Commits

Author SHA1 Message Date
Monty Taylor 071e567b32
Use discovery instead of config to create proxies
Since the dawn of time we've labored under the crippling burden of
needing to explicitly request a version via configuration in order to
get a usable handle to the cloud. This is despite the hilarity of the
existence of a system for discovering available versions since basically
the beginning of the entire OpenStack project.

Today we shall be liberated from the tyranny of terrible past life
decisions on the part of our forefathers and shall usher forth the
shining freedom of actually using the discovery system.

Change-Id: I11c16d37d3ab3d77bed3a0bcbd98f1fa33b9555f
2018-10-06 07:44:29 -05:00
Monty Taylor f44ed7ab35
Update python-openstacksdk references to openstacksdk
Now that the repo is renamed, update all of the references.
While we're at it, remote unused translation config.

Change-Id: Ib9f80eb809317483f83f79952470c2b57b2bb7c6
2018-03-23 12:31:24 -05:00
Yuanbin.Chen 5d3d9de9ce fix doc title format error
This patch fixes the file title format inconsistent.

Change-Id: I6ffff6f006cfb5c9b6663713acc55e2b2e30c28a
Signed-off-by: Yuanbin.Chen <cybing4@gmail.com>
2018-03-23 21:41:19 +08:00
Monty Taylor 0a6083b876
Merge Connection and OpenStackCloud
There's no good reason to have the shade functions in a cloud attribute.
Go ahead and dive all the way in and make OpenStackCloud a mixin class.

There was one wrapped exception that got removed and thus the test to test
that we were wrapping it.

Change-Id: Iebd80fe5bc511ea879ea71aa88ce7d79c5e8fa58
2018-01-31 11:25:21 -06:00
Monty Taylor a50a784375
Merge OpenstackCloud and OperatorCloud files
Change-Id: I4db00729eb9668baac25e722ee49263609c7dbb9
2018-01-27 12:38:20 -06:00
Monty Taylor 15e78f5d56
Rename resource2 and proxy2 to resource and proxy
This caps off a bunch of work to get to the new and improved
Resouce2/Proxy2 interfaces. All of the services have been migrated and
the old classes have been removed. Rename openstack.resource2 to
openstack.resource and openstack.proxy2 to openstack.proxy.

Change-Id: I0b7e1c679358e1f60b5316a255aad3a59fbbc8a9
2018-01-24 11:02:16 -06:00
Monty Taylor da2406bace
Rationalize logging helpers and docs
shade and openstacksdk each have a logging doc and a logging setup helper
function. They both basically do the same thing, and we have a TODO item
about collapsing them.

This moves openstack.utils.enable_logging to openstack.enable_logging
(leaving behind a compat piece at openstack.utils.enable_logging) It
adds the shade functionality to it, and also changes the behavior to
match shade's WRT behavior when no parameters are passed (defaults to
logging to stdout)

Update the codebase to call openstack._log.setup_logging instead of
logging.getLogger directly, as setup_logging attaches a NullHandler by
default.

Collapse the docs into a single document.

There were only two places where openstacksdk was already logging to
something other than 'openstack'. Collapse those down to 'openstack'
until we come up with a reason to break them out more logically.

Change-Id: I45fd5ffd18255450d38a1f56c80f5c157ea19ae3
2018-01-16 14:46:44 -06:00
Monty Taylor 392e2c4856
Update the shade-merge document
There are a few more discussions that have been had that have not been
captured. Capture them.

Change-Id: Ie1422bc9a48b600c61d8c906cdfaf9fe4d26c924
2017-11-30 15:30:16 -06:00
Monty Taylor c469caedc7
Add notes about moving forward
As we look at this stack, having a summary and then a path forward
seemed like a good idea.

Change-Id: Ie43bf0e1f911a452c3ad101e804a8cb03a84ca36
2017-11-15 11:56:28 -06:00