As you request using the hostname and testing in different ports, 5000 and 
35357, both answer if you invoke the correct URL.


Below I capture using the same token but again wrong URL same error



[root@localhost bin]# curl -H "X-Auth-Token: 
gAAAAABaOuHu8_iU_h0ovdPIKYQyBtqbBm9S69ndBvPZymJDYZXakBO2Q5KnXnmBBrWzipoFNIZ37oR1BLJ8ZamQpj6wPOL5S_tV_p4Yt4RVSOKjVH8bWTJqPQKYYQSz9yJpMy1O1XUqKrYRTlTzZki5olgVB5wJCfH-Nhn8JwscmQdjLPafRSE"
 http://controller:5000/v2.0/tenants/
{"tenants_links": [], "tenants": [{"description": "Admin Project", "enabled": 
true, "id": "807323734fa043e883046e40af5dfeb1", "name": 
"admin"}]}[root@localhost bin]#
[root@localhost bin]#
[root@localhost bin]#
[root@localhost bin]#
[root@localhost bin]# curl -H "X-Auth-Token: 
gAAAAABaOuHu8_iU_h0ovdPIKYQyBtqbBm9S69ndBvPZymJDYZXakBO2Q5KnXnmBBrWzipoFNIZ37oR1BLJ8ZamQpj6wPOL5S_tV_p4Yt4RVSOKjVH8bWTJqPQKYYQSz9yJpMy1O1XUqKrYRTlTzZki5olgVB5wJCfH-Nhn8JwscmQdjLPafRSE"
 http://controller:35357/v2.0/tenants/
{"tenants_links": [], "tenants": [{"description": "Admin Project", "enabled": 
true, "id": "807323734fa043e883046e40af5dfeb1", "name": "admin"}, 
{"description": "Demo Project", "enabled": true, "id": 
"865c1927089b417aa5ffc84a18e29463", "name": "demo"}, {"description": "Service 
Project", "enabled": true, "id": "8e3f08d28dfa4e049389dbaf5069ba70", "name": 
"service"}]}[root@localhost bin]#




GET /v2/tenants HTTP/1.1

Host: controller:35357

Connection: keep-alive

Accept-Encoding: gzip, deflate

Accept: application/json

User-Agent: python-keystoneclient

X-Auth-Token: 
gAAAAABaOuHu8_iU_h0ovdPIKYQyBtqbBm9S69ndBvPZymJDYZXakBO2Q5KnXnmBBrWzipoFNIZ37oR1BLJ8ZamQpj6wPOL5S_tV_p4Yt4RVSOKjVH8bWTJqPQKYYQSz9yJpMy1O1XUqKrYRTlTzZki5olgVB5wJCfH-Nhn8JwscmQdjLPafRSE


HTTP/1.1 404 Not Found

Date: Wed, 20 Dec 2017 22:19:26 GMT

Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5

Vary: X-Auth-Token

Content-Length: 93

Keep-Alive: timeout=5, max=100

Connection: Keep-Alive

Content-Type: application/json


{"error": {"message": "The resource could not be found.", "code": 404, "title": 
"Not Found"}}


________________________________
From: Users <[email protected]> on behalf of Anderson 
Andrade <[email protected]>
Sent: Wednesday, December 20, 2017 8:17 PM
To: Kosala Atapattu
Cc: [email protected]
Subject: Re: [Users] Contrail Get BROKEN URL to Keystone


I will try but I think the difference btw the first one  GET /v2.0/tenants/ 
HTTP/1.1

and the second /v2/tenants HTTP/1.1  When you dont have (/) btw tenants and 
HTTP its the probably cause to resource not found, If the hostname cause some 
problem it would not even close the TCP connection prior to the HTTP 
transaction, because the hostname is settled in host file and if you dont have 
the entry the initial connection is not complete.

But I will try.

________________________________
From: Kosala Atapattu <[email protected]>
Sent: Wednesday, December 20, 2017 8:00 PM
To: Anderson Andrade
Cc: [email protected]
Subject: Re: [Users] Contrail Get BROKEN URL to Keystone

Just noticed a subtle difference between the two queries. Your curl uses the IP 
address, whereas keystone client is using the hostname. Can you try the curl 
with the same hostname.

Ko

Kosala



On Thu, Dec 21, 2017 at 10:19 AM, Anderson Andrade 
<[email protected]<mailto:[email protected]>> wrote:

During FAB Setup the keystone send resource not found when contrail get tenant 
list, after some research I found the contrail is sending a wrong URL.


Below the correct URL and after that the URL contrail is sending

GET /v2.0/tenants/ HTTP/1.1

User-Agent: curl/7.29.0

Host: 10.12.1.204:5000<http://10.12.1.204:5000>

Accept: */*

X-Auth-Token: gAAAAABaOsc0AVxBO8niQNQjQA3ErKUTO7J0quHUvQj4U- 
v_lLqstV60UPgghiaO7WkHvD3YzRVEo0UxAgeVpqwmbBiys1FxrL8cDveWPjXesIfo8loIdfuPfQw5OiLdVCEVbyMEnaiCmjN45z-
 vs0GLfGEX9wmUapwFVtues2A1IT2WWbxemQc


HTTP/1.1 200 OK

Date: Wed, 20 Dec 2017 20:30:24 GMT

Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5

Vary: X-Auth-Token

x-openstack-request-id: req-689b0442-f0b9-4ad6-8d4b-1f1aa82bb2a4

Content-Length: 144

Content-Type: application/json


{"tenants_links": [], "tenants": [{"description": "Admin Project", "enabled": 
true, "id": "807323734fa043e883046e40af5dfeb1", "name": "admin"}]}



URL FROM CONTRAIL

GET /v2/tenants HTTP/1.1

Host: controller:5000

Connection: keep-alive

Accept-Encoding: gzip, deflate

Accept: application/json

User-Agent: python-keystoneclient

X-Auth-Token: 
gAAAAABaOrlGZofdfWV8Ao47pA7LUskfzGvEg7iRZArOXXbJqpnYUFSg9ITYgWqpcNp8Cn15C08S71gbZ6xTEBmiAxMcANg18R5eMOW5_rdXxz9XF0k8UdwOripl8mEhG5O4Sa3HruURYGvTnyjnL7hgYpu0sz44YDAKUeuHSg-5u30haBxp8rg


HTTP/1.1 404 Not Found

Date: Wed, 20 Dec 2017 19:25:58 GMT

Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5

Vary: X-Auth-Token

Content-Length: 93

Keep-Alive: timeout=5, max=100

Connection: Keep-Alive

Content-Type: application/json


{"error": {"message": "The resource could not be found.", "code": 404, "title": 
"Not Found"}}





_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org


_______________________________________________
Users mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/users_lists.opencontrail.org

Reply via email to