Hi Hongbin, Thank you for your help
As per the our discussion here is the output for my current api on pike. I am not sure which version of zun client client I should use for pike root@cluster3-2:~/python-zunclient# zun service-list ERROR: Not Acceptable (HTTP 406) (Request-ID: req-be69266e-b641-44b9-9739-0c2d050f18b3) root@cluster3-2:~/python-zunclient# zun --debug service-list DEBUG (extension:180) found extension EntryPoint.parse('vitrage-keycloak = vitrageclient.auth:VitrageKeycloakLoader') DEBUG (extension:180) found extension EntryPoint.parse('vitrage-noauth = vitrageclient.auth:VitrageNoAuthLoader') DEBUG (extension:180) found extension EntryPoint.parse('noauth = cinderclient.contrib.noauth:CinderNoAuthLoader') DEBUG (extension:180) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token') DEBUG (extension:180) found extension EntryPoint.parse('none = keystoneauth1.loading._plugins.noauth:NoAuth') DEBUG (extension:180) found extension EntryPoint.parse('v3oauth1 = keystoneauth1.extras.oauth1._loading:V3OAuth1') DEBUG (extension:180) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken') DEBUG (extension:180) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode') DEBUG (extension:180) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password') DEBUG (extension:180) found extension EntryPoint.parse('v3samlpassword = keystoneauth1.extras._saml2._loading:Saml2Password') DEBUG (extension:180) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password') DEBUG (extension:180) found extension EntryPoint.parse('v3adfspassword = keystoneauth1.extras._saml2._loading:ADFSPassword') DEBUG (extension:180) found extension EntryPoint.parse('v3oidcaccesstoken = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAccessToken') DEBUG (extension:180) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword') DEBUG (extension:180) found extension EntryPoint.parse('v3kerberos = keystoneauth1.extras.kerberos._loading:Kerberos') DEBUG (extension:180) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token') DEBUG (extension:180) found extension EntryPoint.parse('v3oidcclientcredentials = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectClientCredentials') DEBUG (extension:180) found extension EntryPoint.parse('v3tokenlessauth = keystoneauth1.loading._plugins.identity.v3:TokenlessAuth') DEBUG (extension:180) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token') DEBUG (extension:180) found extension EntryPoint.parse('v3totp = keystoneauth1.loading._plugins.identity.v3:TOTP') DEBUG (extension:180) found extension EntryPoint.parse('v3applicationcredential = keystoneauth1.loading._plugins.identity.v3:ApplicationCredential') DEBUG (extension:180) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password') DEBUG (extension:180) found extension EntryPoint.parse('v3fedkerb = keystoneauth1.extras.kerberos._loading:MappedKerberos') DEBUG (extension:180) found extension EntryPoint.parse('v1password = swiftclient.authv1:PasswordLoader') DEBUG (extension:180) found extension EntryPoint.parse('token_endpoint = openstackclient.api.auth_plugin:TokenEndpoint') DEBUG (extension:180) found extension EntryPoint.parse('gnocchi-basic = gnocchiclient.auth:GnocchiBasicLoader') DEBUG (extension:180) found extension EntryPoint.parse('gnocchi-noauth = gnocchiclient.auth:GnocchiNoAuthLoader') DEBUG (extension:180) found extension EntryPoint.parse('aodh-noauth = aodhclient.noauth:AodhNoAuthLoader') DEBUG (session:372) REQ: curl -g -i -X GET http://ubuntu16:35357/v3 -H "Accept: application/json" -H "User-Agent: zun keystoneauth1/3.4.0 python-requests/2.18.1 CPython/2.7.12" DEBUG (connectionpool:207) Starting new HTTP connection (1): ubuntu16 DEBUG (connectionpool:395) http://ubuntu16:35357 "GET /v3 HTTP/1.1" 200 248 DEBUG (session:419) RESP: [200] Date: Thu, 05 Apr 2018 23:11:07 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-request-id: req-3b1a12cc-fb3f-4d05-87fc-d2a1ff43395c Content-Length: 248 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json RESP BODY: {"version": {"status": "stable", "updated": "2017-02-22T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.8", "links": [{"href": "http://ubuntu16:35357/v3/", "rel": "self"}]}} DEBUG (session:722) GET call to None for http://ubuntu16:35357/v3 used request id req-3b1a12cc-fb3f-4d05-87fc-d2a1ff43395c DEBUG (base:175) Making authentication request to http://ubuntu16:35357/v3/auth/tokens DEBUG (connectionpool:395) http://ubuntu16:35357 "POST /v3/auth/tokens HTTP/1.1" 201 10333 DEBUG (base:180) {"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "4000a662be2d47fd8fdf5a0fef66767d", "name": "admin"}], "expires_at": "2018-04-06T00:11:08.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "a391261cffba4f4c827ab7420a352fe1", "name": "admin"}, "catalog": [{"endpoints": [{"url": " http://cluster3-2:9517/v1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "5a634bafa38c45dbb571f0edb3702101"}, {"url": "http://cluster3-2:9517/v1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "8926d37d276a4fe49df66bb513f7906a"}, {"url": "http://cluster3-2:9517/v1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "a74e1b4faf39436aa5d6f9b446ceee92"}], "type": "container-zun", "id": "025154eef222461da9edcfe32ae79e5e", "name": "zun"}, {"endpoints": [{"url": " http://ubuntu16:9001", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "3a94c0df20da47d1b922541a87576ab0"}, {"url": "http://ubuntu16:9001", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "5fcab2a59c72433581510d7aafe29961"}, {"url": "http://ubuntu16:9001", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "71e314291a4b4c648aa5ba662b216fa6"}], "type": "dns", "id": "07677b58ad4d469d80dbda8e9fa908bc", "name": "designate"}, {"endpoints": [{"url": "http://ubuntu16:8776/v2/a391261cffba4f4c827ab7420a352fe1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "4d56ee7967994c869239007146e52ab8"}, {"url": " http://ubuntu16:8776/v2/a391261cffba4f4c827ab7420a352fe1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "9845138d25ec41b1a7102d8365f1b9c7"}, {"url": " http://ubuntu16:8776/v2/a391261cffba4f4c827ab7420a352fe1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "f99f9bf4b0eb4e19aa8dbe72fc13e648"}], "type": "volumev2", "id": "077bd5ecfc59499ab84f49e410efef4f", "name": "cinderv2"}, {"endpoints": [{"url": "http://ubuntu16:8004/v1/a391261cffba4f4c827ab7420a352fe1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "355c6c323653469c8315d5dea2998b0d"}, {"url": " http://ubuntu16:8004/v1/a391261cffba4f4c827ab7420a352fe1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "841768ec3edb42d7b18fe6a2a17f4dbc"}, {"url": " http://10.11.142.2:8004/v1/a391261cffba4f4c827ab7420a352fe1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "afdbc1d2a5114cd9b0714331eb227ba9"}], "type": "orchestration", "id": "116243d61e3a4c90b7144d6a8b5a170a", "name": "heat"}, {"endpoints": [{"url": "http://ubuntu16:8778", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "2dacce3eed484464b3f521b7b2720cd9"}, {"url": "http://ubuntu16:8778", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "5300f9ae336c41b8a8bb93400db35a30"}, {"url": "http://ubuntu16:8778", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "5c7e2cc977f74051b0ed104abb1d46a9"}], "type": "placement", "id": "1d270e2d3d4f488e82597097af933e7a", "name": "placement"}, {"endpoints": [{"url": "http://ubuntu16:8042", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "337f147396f143679e6cf7fbdd3601ab"}, {"url": "http://ubuntu16:8042", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a97d660772e64894b4b13092d7719298"}, {"url": "http://ubuntu16:8042", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "bb5caf186c9947aca31e6ee2a37f6bbd"}], "type": "alarming", "id": "2a19c1a28a42433caa8eb919910ec06f", "name": "aodh"}, {"endpoints": [], "type": "volume", "id": "39c740b891764e4a9081773709269848", "name": "cinder"}, {"endpoints": [{"url": "http://ubuntu16:8041", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "9d455913a5fb4f15bbe15740f4dee260"}, {"url": "http://ubuntu16:8041", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "c5c2471db1cb4ae7a1f3e847404d4b37"}, {"url": "http://ubuntu16:8041", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "cc12daed5ea342a1a47602720589cb9e"}], "type": "metric", "id": "39fdf2d5300343aa8ebe5509d29ba7ce", "name": "gnocchi"}, {"endpoints": [{"url": "http://cluster3-2:9890", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "1c7ddc56ba984afd8187cd1894a75bf1"}, {"url": "http://cluster3-2:9890", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "888925c4fc8b48859f086860333c3ab4"}, {"url": "http://cluster3-2:9890", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "9bfd7198dab14f6a8b7eba444f920020"}], "type": "nfv-orchestration", "id": "3da88eae843a4949806186db8a9a3bd0", "name": "tacker"}, {"endpoints": [{"url": "http://10.11.142.2:8999", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "32880f809a2f45598a9838e4b168ce5b"}, {"url": "http://10.11.142.2:8999", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "530711f56f234ad19775fae65774c0ab"}, {"url": "http://10.11.142.2:8999", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "8d7493ad752b453b87d789d0ec5cae93"}], "type": "rca", "id": "55f78369ea5e40e3b9aa9ded854cb163", "name": "vitrage"}, {"endpoints": [{"url": "http://10.11.142.2:5000/v3/", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "afba4b58fd734baeaed94f8f2380a986"}, {"url": "http://ubuntu16:5000/v3/", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "b4b864acfc1746b3ad2d22c6a28e1361"}, {"url": " http://ubuntu16:35357/v3/", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "bf256df5f8d34e9c80c00b78da122118"}], "type": "identity", "id": "58b4ff04dc764fc2aae4bfd9d0f1eb8e", "name": "keystone"}, {"endpoints": [{"url": " http://ubuntu16:8776/v3/a391261cffba4f4c827ab7420a352fe1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "260f8b9e9e214cc1a39407517b3ca826"}, {"url": " http://ubuntu16:8776/v3/a391261cffba4f4c827ab7420a352fe1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "81adeaccba1c4203bddb7734f23116a8"}, {"url": " http://ubuntu16:8776/v3/a391261cffba4f4c827ab7420a352fe1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "e63332e8b15e43c6b9c331d9ee8551ab"}], "type": "volumev3", "id": "8cd6101718e94ee198cf9ba9894bf1c9", "name": "cinderv3"}, {"endpoints": [{"url": "http://ubuntu16:9696", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "65a0b4233436428ab42aa3b40b1ce53f"}, {"url": "http://ubuntu16:9696", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "b8354dd727154056b3c9b81b89054bab"}, {"url": "http://ubuntu16:9696", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "ca44db85238b46cf9fbb6dc6f1d9dff5"}], "type": "network", "id": "ade912885a73431f95a3a01d8a8e6498", "name": "neutron"}, {"endpoints": [{"url": "http://ubuntu16:8000/v1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "5d7559010ea94cca9edd7ab6213f6b2c"}, {"url": "http://ubuntu16:8000/v1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "af77025677284808b0715488e22729d4"}, {"url": " http://10.11.142.2:8000/v1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "c17b650eccf14045af49d5e9d050e875"}], "type": "cloudformation", "id": "b04f735f46e743969e2bb0fff3aee1b5", "name": "heat-cfn"}, {"endpoints": [{"url": " http://ubuntu16:8774/v2.1/a391261cffba4f4c827ab7420a352fe1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "18580f7a6dea4c53bc66d161e7e0a71e"}, {"url": " http://ubuntu16:8774/v2.1/a391261cffba4f4c827ab7420a352fe1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "b4a8575704a4426494edc57551f40e58"}, {"url": " http://ubuntu16:8774/v2.1/a391261cffba4f4c827ab7420a352fe1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "c41ec544b61c41098c07030bc84ba2a0"}], "type": "compute", "id": "b06f4aa21a4a488c8f0c5a835e639bd3", "name": "nova"}, {"endpoints": [{"url": "http://ubuntu16:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "4ed27e537ca34b6fb93a8c72d8921d24"}, {"url": "http://ubuntu16:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "ab0c37600ecf45d797e7972dc6a4fde2"}, {"url": "http://ubuntu16:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "f4a0f97be4f343d698ea12633e3823d6"}], "type": "image", "id": "bbe4fbb4a1d7495f948faa9baf1e3828", "name": "glance"}, {"endpoints": [{"url": "http://ubuntu16:8777", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "3d160f2286634811b24b8abd6ad72c1f"}, {"url": "http://ubuntu16:8777", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "a988e821ff1f4760ae3873c17ab87294"}, {"url": "http://ubuntu16:8777", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "def8c07174184a0ca26e2f0f26d60a73"}], "type": "metering", "id": "f4450730522d4342ac6626b81567b36c", "name": "ceilometer"}, {"endpoints": [{"url": "http://ubuntu16:9511/v1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "19e14e5c5c5a4d3db6a6a632db728668"}, {"url": "http://10.11.142.2:9511/v1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "28fb2092bcc748ce88dfb1284ace1264"}, {"url": " http://10.11.142.2:9511/v1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "c33f5b4a355d4067aa2e7093606cd153"}], "type": "container", "id": "fdbcff09ecd545c8ba28bfd96782794a", "name": "magnum"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "3b136545b47b40709b78b1e36cdcdc63"}, "audit_ids": ["Ad1z5kAmRBehcgxG6-8IYA"], "issued_at": "2018-04-05T23:11:08.000000Z"}} DEBUG (session:372) REQ: curl -g -i -X GET http://10.11.142.2:9511/v1/services -H "OpenStack-API-Version: container 1.2" -H "X-Auth-Token: {SHA1}7523b440595290414cefa54434fc7c8adbec5c3d" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: None" DEBUG (connectionpool:207) Starting new HTTP connection (1): 10.11.142.2 DEBUG (connectionpool:395) http://10.11.142.2:9511 "GET /v1/services HTTP/1.1" 406 166 DEBUG (session:419) RESP: [406] Content-Type: application/json Content-Length: 166 x-openstack-request-id: req-63b7de1b-ef63-4be8-93c1-a27972c9b4c0 Server: Werkzeug/0.10.4 Python/2.7.12 Date: Thu, 05 Apr 2018 23:11:09 GMT RESP BODY: {"errors": [{"status": 406, "code": "", "links": [], "title": "Not Acceptable", "detail": "Invalid service type for OpenStack-API-Version header", "request_id": ""}]} DEBUG (session:722) GET call to container for http://10.11.142.2:9511/v1/services used request id req-63b7de1b-ef63-4be8-93c1-a27972c9b4c0 DEBUG (shell:705) Not Acceptable (HTTP 406) (Request-ID: req-63b7de1b-ef63-4be8-93c1-a27972c9b4c0) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/zunclient/shell.py", line 703, in main map(encodeutils.safe_decode, sys.argv[1:])) File "/usr/local/lib/python2.7/dist-packages/zunclient/shell.py", line 639, in main args.func(self.cs, args) File "/usr/local/lib/python2.7/dist-packages/zunclient/v1/services_shell.py", line 22, in do_service_list services = cs.services.list() File "/usr/local/lib/python2.7/dist-packages/zunclient/v1/services.py", line 70, in list return self._list(self._path(path), "services") File "/usr/local/lib/python2.7/dist-packages/zunclient/common/base.py", line 128, in _list resp, body = self.api.json_request('GET', url) File "/usr/local/lib/python2.7/dist-packages/zunclient/common/httpclient.py", line 368, in json_request resp = self._http_request(url, method, **kwargs) File "/usr/local/lib/python2.7/dist-packages/zunclient/common/httpclient.py", line 351, in _http_request error_json.get('debuginfo'), method, url) NotAcceptable: Not Acceptable (HTTP 406) (Request-ID: req-63b7de1b-ef63-4be8-93c1-a27972c9b4c0) ERROR: Not Acceptable (HTTP 406) (Request-ID: req-63b7de1b-ef63-4be8-93c1-a27972c9b4c0) Thanks -Murali
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev