| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The code has been moved into openstacksdk. Make os-client-config a
thin wrapper around that code.
The legacy client code needs to stay, as it was removed in openstacksdk.
We also have to plumb os_client_config.defaults and
os_client_config.cloud_region.CloudRegion in so that users get the
os-client-config versions from the openstacksdk methods that return the
relevant objects.
Support for per-service region_name has been dropped. This was never
used anywhere and was added for compatibility with openstacksdk Profile
objects. Since Profile objects are no more, we can remove it. It never
made any sense.
Change-Id: I7180e20aa675c0ccbe3718493a6eff2be7e1b8b6
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The right way to update these globals is to use a lock
and ensure that nobody else is updating them at the same
time. Also update a temporary dictionary before setting
the global one so that nobody sees partial updates to the
global one.
This should help fix the thread-safety of shade (and other
tooling built ontop of this library).
Change-Id: Ie0e0369d98ba6a01edcbf447378a786eec3f13f9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In preparation for sharing the default and vendor data with other
projects, potentially even non-python ones, move the data into json
format, which is slighly less exciting to read, but has more widespread
standard library support. The user-facing config file will still be in
yaml format, because that's easier on the eyes and it's expected to be
read and edited by humans.
Continue to accept yaml everywhere, because an end user may have dropped
a yaml config file into a dir somewhere, and that's fine.
Change-Id: I269d31e61da433ac20abb39acdde0f9f9fe12837
|
|
|
|
|
|
|
| |
If defaults.yaml is empty, a TypeError is thrown
because the result of yaml.load is not iterable.
Change-Id: Ic3283ebaf9dd325e4f430e70bce08c6d716f60bc
|
|
|
|
|
|
|
|
| |
There are some clear central defaults. Call them out and don't repeat
them. Also, ran the yaml files through a flamel conversion so they're
all consistently formatted.
Change-Id: Id19116c5e8266c109cf015d097cb6cb35f1beae8
|
|
|
|
|
|
| |
It's easier logic when we have default values for things.
Change-Id: I2d66dcee68ea95371609640677fd41cca4b0a7cf
|
|
|
|
|
|
|
|
|
|
| |
Some clouds have an in-instance agent to handle things like online
password resets and other such activities. When building and uploading
images, it's often advantageous to not install such an agent and instead
handle such things via config management... but doing so requires data
to be set on the image itself.
Change-Id: I5b7c9d72fd2d49890bc466d7dd22a3cb9595f670
|
|
|
|
|
|
|
|
|
| |
Security groups can be handled by either nova, neutron, or just
not be supported. This adds a flag for that. Values will be one
of 'neutron' (the default), 'nova', or None. None indicates that
security groups are not supported.
Change-Id: I81a2e10e14e53acc9ffc328771d8ef721e2fd370
|
|
|
|
|
|
|
|
|
| |
shade needs sane defaults for some of these too, but it's entirely
legitimate to use shade without having first created an os_client_config
object. Adding a function to get a copy of the defaults dict allows it to be
consumed as a single source or truth for default values.
Change-Id: I616d9492c7e0f53c48519cc8dacf3dfbd0082e36
|
|
|
|
| |
Change-Id: Ib7af38664cfbe75c78c70693117f1193c4beb7e6
|
|
|
|
| |
Change-Id: Ic27c50f745a093cc20e3f22f09698f7ae643bc83
|
|
|
|
|
|
|
|
| |
One of the things that's not possible to discover is where floating ips
come from. You'd think that looking for a neutron endpoint would do it,
but you'd be oh-so-wrong.
Change-Id: I10a0c6f37afb409af0078cede3eac2eaa0ff4f04
|
|
openstackclient needs a bit richer support for api version defaults.
Namely, it knows what defaults it wants to have - but we need to do
defaults processing in os-client-config to get sequencing correct. So
provide an API call to set new defaults that can be used before config
processing. Also, flesh out the dict of known default values with good
defaults to match osc behavior, and add the known v1 default of HP to
the vendors.py values.
Change-Id: I45e2550af58aee616ca168d20a557077beeab007
|