13 Commits

Author SHA1 Message Date
Davide Guerri
34d14b06d9 Move all_tenants and edit_managed attributes to designate Client
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
2015-05-22 13:40:52 +00:00
Graham Hayes
7b865686ee Add --edit-managed flag to cli
Allows users with the right role to edit managed records

Change-Id: I5502da0ca1f04e428b2723038d369d317338ce51
2015-05-06 17:13:49 +01:00
Satyanarayana Patibandla
debf39a629 Added extra previllege to list all domains from all tenants
The user has to use the command "designate --all-tenants domain-list" to list all domains from all tenants.
When the above command is used "X-Auth-All-Projects" value is set to true and it is passed as a header to
designate.This will allow us to list all domains from all tenants.

Change-Id: I4cd4dd5427f5f35cdec95dbdf36c7386b60a2949
Fixes: bug #1418156
2015-02-24 12:44:24 +05:30
Kiall Mac Innes
7363e3b4e9 Refactor KS session creation and support CA certs
Change-Id: Ib3fc33b1825b16cc4537d979d5ab5ed0b39633d5
2014-11-26 23:07:38 +00:00
Endre Karlson
04f627647f Move session creation up to shell
Change-Id: I65d3f37f60f97240b52b0234da6160121ec292e1
2014-11-13 14:28:06 +01:00
Jenkins
975bc5418d Merge "Support Keystone V3 authentication" 2014-07-11 12:15:28 +00:00
Kiall Mac Innes
11425c0d01 Support Keystone V3 authentication
We now defer the majority of our auth to keystoneclient, rather
than continuing to maintain our custom code.

Change-Id: Ia8409940d3941bc82a8b54ec60e82efa6d043102
Closes-Bug: 1323435
2014-07-07 22:44:36 +02:00
Endre Karlson
d4498bde1e Support better logging (Fixes --debug option)
Change-Id: Ib809f301f1e71ad2e8f7fab07c1b94601b8288bb
2014-07-06 00:10:14 +02:00
Jordan Cazamias
9d4544fd51 Update hacking package, fix/ignore new style errors
Change-Id: I49d26c3a9772c409b038b06e8256fb5823169c50
Implements: blueprint update-hacking
2014-07-01 17:14:26 -05:00
Pavel Kirpichyov
7655ba80da Disable verbose logging by default
cliff app will manage logging level instead of making it manually

Closes-Bug: #1269729
Change-Id: I8f75c1c086c7c7bca6531e7244785caaa69d4a88
2014-01-16 18:30:33 +02:00
Dirk Mueller
109ea08546 Fix and enable gating on H306
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
2013-12-16 15:41:51 +01:00
Kiall Mac Innes
5fe58dac71 Add a --insecure arg to ignore invalid SSL certs
Change-Id: I7350c2f9d8f857300784955b2b776f3f1dc69933
2013-09-18 12:55:40 +01:00
Kiall Mac Innes
67c14f0573 Rename Moniker -> Designate
Change-Id: Idf7153aa287adc874a2878dc829950fda52a4879
2013-06-09 22:08:11 +01:00