--os-endpoint is not working in python designate client

Bug #1469992 reported by Pradeep Kumar Singh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-designateclient
Fix Released
Medium
Endre Karlson

Bug Description

when i execute command with --os-endpoint, designate client ignores it and work on the value returned from keystone.

pksingh@myvm:~/devstack$ designate --debug server-list --os-endpoint http://127.0.0.3:9001/
DEBUG: found extension EntryPoint.parse('yaml = clifftablib.formatters:YamlFormatter')
DEBUG: found extension EntryPoint.parse('json = clifftablib.formatters:JsonFormatter')
DEBUG: found extension EntryPoint.parse('html = clifftablib.formatters:HtmlFormatter')
DEBUG: found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG: found extension EntryPoint.parse('csv = cliff.formatters.commaseparated:CSVLister')
DEBUG: found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')
DEBUG: found extension EntryPoint.parse('touch = designateclient.v1.touch:TouchController')
DEBUG: found extension EntryPoint.parse('quotas = designateclient.v1.quotas:QuotasController')
DEBUG: found extension EntryPoint.parse('reports = designateclient.v1.reports:ReportsController')
DEBUG: found extension EntryPoint.parse('servers = designateclient.v1.servers:ServersController')
DEBUG: found extension EntryPoint.parse('sync = designateclient.v1.sync:SyncController')
DEBUG: found extension EntryPoint.parse('records = designateclient.v1.records:RecordsController')
DEBUG: found extension EntryPoint.parse('diagnostics = designateclient.v1.diagnostics:DiagnosticsController')
DEBUG: found extension EntryPoint.parse('domains = designateclient.v1.domains:DomainsController')
DEBUG: REQ: curl -g -i --cacert "" -X GET http://127.0.0.1:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO: Starting new HTTP connection (1): 127.0.0.1
DEBUG: "GET /v2.0 HTTP/1.1" 200 335
DEBUG: RESP: [200] content-length: 335 vary: X-Auth-Token keep-alive: timeout=5, max=100 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Tue, 30 Jun 2015 07:58:05 GMT content-type: application/json x-openstack-request-id: req-01d93347-1557-456b-acd5-9ef641066411
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://127.0.0.1:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG: Making authentication request to http://127.0.0.1:5000/v2.0/tokens
DEBUG: "POST /v2.0/tokens HTTP/1.1" 200 1077
DEBUG: REQ: curl -g -i --cacert "" -X GET http://127.0.0.1:9001/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO: Starting new HTTP connection (1): 127.0.0.1
DEBUG: "GET / HTTP/1.1" 200 433
DEBUG: RESP: [200] date: Tue, 30 Jun 2015 07:58:05 GMT content-length: 433 content-type: application/json connection: keep-alive
RESP BODY: {
  "versions": {
    "values": [
      {
        "id": "v1",
        "links": [
          {
            "href": "http://127.0.0.1:9001/v1",
            "rel": "self"
          }
        ],
        "status": "DEPRECATED"
      },
      {
        "id": "v2",
        "links": [
          {
            "href": "http://127.0.0.1:9001/v2",
            "rel": "self"
          }
        ],
        "status": "CURRENT"
      }
    ]
  }
}

DEBUG: REQ: curl -g -i --cacert "" -X GET http://127.0.0.1:9001/v1/servers -H "User-Agent: python-designateclient-1.2.1" -H "Content-Type: application/json" -H "X-Auth-Token: {SHA1}acd0417073938d2753774d2a9ab4e890a6e0a378"
DEBUG: "GET /v1/servers HTTP/1.1" 200 196
DEBUG: RESP: [200] date: Tue, 30 Jun 2015 07:58:05 GMT connection: keep-alive content-type: application/json content-length: 196 x-openstack-request-id: req-c179a8a6-67c5-446a-88a5-c59843f0846f
RESP BODY: {
  "servers": [
    {
      "created_at": "2015-06-18T13:59:23.000000",
      "id": "26c19e6f-6c3e-4278-b9a5-9ed8a1b09a16",
      "name": "ns1.devstack.org.",
      "updated_at": null
    }
  ]
}

+--------------------------------------+-------------------+
| id | name |
+--------------------------------------+-------------------+
| 26c19e6f-6c3e-4278-b9a5-9ed8a1b09a16 | ns1.devstack.org. |
+--------------------------------------+-------------------+
pksingh@myvm:~/devstack$

Changed in python-designateclient:
assignee: nobody → pradeep kumar singh (pradeep-singh-u)
Tim Simmons (timsim)
Changed in python-designateclient:
status: New → Triaged
importance: Undecided → Medium
Changed in python-designateclient:
status: Triaged → In Progress
Changed in python-designateclient:
assignee: Pradeep Kumar Singh (pradeep-singh-u) → Endre Karlson (endre-karlson)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-designateclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/241941

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-designateclient (master)

Reviewed: https://review.openstack.org/241941
Committed: https://git.openstack.org/cgit/openstack/python-designateclient/commit/?id=aeeac455207105aea860a5dcdeb9e23a187e7cec
Submitter: Jenkins
Branch: master

commit aeeac455207105aea860a5dcdeb9e23a187e7cec
Author: Endre Karlson <email address hidden>
Date: Thu Nov 5 10:18:45 2015 +0100

    Fix support for --os-endpoint

    Closes-Bug: 1469992

    Change-Id: Ie63450a82f07da183756d1c04c34872f7e35d6c8

Changed in python-designateclient:
status: In Progress → Fix Committed
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-designateclient 2.0.0

This issue was fixed in the openstack/python-designateclient 2.0.0 release.

Changed in python-designateclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.