Initializing designate client with a pre-existing keystone session
won't work as designate expects keystone session to have the
'all_tenants' and 'edit_managed' attributes:
Example code:
keystone_session = ksc_session.Session(
auth=keystone_auth,
verify=True,
cert=my_cert
)
than later:
self._designate_client = designate_client(
session=keystone_session,
region_name=region_name
)
with that code, wrap_api_call() will raise an exception:
AttributeError: 'Session' object has no attribute 'all_tenants'
Same goes for 'edit_managed'.
This patch moves both attributes from Keystone session to designate
Client.
Closes-Bug: 1457821
Change-Id: I13d6c9ed46406fefc8cfa5de46811e4be009f1af
Currently record-create requires absolute names. This change allows to
provide relative (to the domain) names with the new option --relative.
Change-Id: I78258ea734a4105fae8f9f3ef30fe86e018b5388
Closes-Bug: #1444452
Currently designate allows to identify a resource only by its id. This
change allows to identify domains by name or id. This change defines
the method find_resourceid_by_name_or_id which could be reused to
identify other resources by name or id.
Change-Id: I8e64cdbc5572623d05781d0c4e735ff0c429ea91
Closes-Bug: #1443858
To allow the sync-all, sync-domain, sync-record, and touch-domain commands
to display errors correctly, the classes for these commands now extend the
base.DeleteCommand instead of the base.Command.
The base.Command has no formatter.
The base.DeleteCommand has the ShowOne formatter and does not show any
messages when the command is successful, but shows errors when there is
a failure.
Change-Id: I92ca95f167fec9fb36880024e6c84284186126df
Closes-Bug: #1357092
We now defer the majority of our auth to keystoneclient, rather
than continuing to maintain our custom code.
Change-Id: Ia8409940d3941bc82a8b54ec60e82efa6d043102
Closes-Bug: 1323435
According to http://docs.openstack.org/developer/hacking/ it should
be preferred to use six.add_metaclass instead of __metaclass__.
Added new requirement six >= 1.6.0.
Change-Id: Ic7e4f5cb03889cc6bfdb04a657d4654b5fedc985
designate record-list currently only displays id, type and name. It would be
very useful if the actual data was also displayed, as running a record-get on
each id to obtain this information is very time-consuming.
This patch improves the output so that it is in the following format:
+--------------------------------------+------+-----------------------------+--------------+
| id | type | name | data |
+--------------------------------------+------+-----------------------------+--------------+
| 8a6b789b-71bc-43b6-91eb-9a0790ee1052 | A | netapp-c1.rc.nectar.org.au. | 172.22.20.71 |
| aa609885-3f8d-4ed6-9de4-3204448281e1 | A | netapp-c2.rc.nectar.org.au. | 172.22.20.72 |
+--------------------------------------+------+-----------------------------+--------------+
Change-Id: I9ca85b64505d3331fd0bd458c31163cc243e7b34
Closes-Bug: #1308414
H306, module imports should be in alphabetical order
This hacking check actually improves readability quite
a bit, as module imports can be sorted in groups (python stdlibs,
external imports, in-module imports)
Change-Id: I11dc9155fbfc84389f2a5956f393f705388f83ba
This mirrors the layout on the server side.
I don't consider this a breaking change, as the existing sync commands were broken
to begin with.
Change-Id: Id80e148e2a0218d6bd64673bb09c15ab0d98418b
Python 3.x deprecated the form "except x,y:". Switch usage to
"except x as y:", which works with any Python version >= 2.6
Change-Id: Id276fdaee9e8753568227e638408e5bccff28e67