[rhos-list] novaclient issue

Lutz Christoph lchristoph at arago.de
Tue Jun 25 12:41:31 UTC 2013


Hello!

> Von: rhos-list-bounces at redhat.com im Auftrag von Matthias Runge
> Gesendet: Dienstag, 25. Juni 2013 14:12
> An: rhos-list at redhat.com
> Betreff: Re: [rhos-list] novaclient issue


> could you please explain a bit more, how you installed your OpenStack
> deployment as well? ... is it a multi-node environment? SELinux enforcing?

Everything but nova is on a VM running on RHEL 6.4 and KVM (RHEV). I have one nova node that refers back to the "all the rest" VM running on hardware that supports KVM.

> By any chance, is your Dashboard host able to connect to the nova host,
> given by keystone catalog (Service compute)?

Dashboard is doing a login, authenticated by keystone. The request from the browser that fails is this:

GET /dashboard/admin/ HTTP/1.1
Host: rhopenstack.example.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: 
en-us,en;q=0.8,de-de;q=0.5,de;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Referer: http://rhopenstack.example.com/dashboard
Cookie: csrftoken=KdRnLZQvRfAtBcyHmGlQuHEmoxU1L2QO; sessionid=52e5ec63b1e720e255dd1791cfe9ec56
Connection: keep-alive

That triggers an internal request to the nova API daemon:

GET /os-simple-tenant-usage?start=2013-06-01T00:00:00&end=2013-06-25T10:52:36.348852&detailed=1 HTTP/1.1
Host: 192.168.104.62:8774
X-Auth-Project-Id: 4922a6443b9347d18f67c86bfb72022b
Accept-Encoding: gzip, deflate, compress
Content-Length: 0
Accept: application/json
User-Agent: python-novaclient
X-Auth-Token: 28734c23bdf049d0b03b34a784c152b2

Nova answers with:

HTTP/1.1 300 Multiple Choices
Content-Type: application/json
Content-Length: 337
Date: Tue, 25 Jun 2013 10:51:37 GMT

{\"choices\": [{\"status\": \"CURRENT\", \"media-types\": [{\"base\": \"application/xml\", \"type\": \"application/vnd.openstack.compute+xml;version=2\"}, {\"base\": \"application/json\", \"type\": \"application/vnd.openstack.compute+json;version=2\"}], \"id\": \"v2.0\", \"links\": [{\"href\": \"http://192.168.104.62:8774/v2/os-simple-tenant-usage\", \"rel\": \"self\"}]}]}

> What about nova usage? Does that work for you? (Since the failing call
> is hard-coded in novaclient) and I'm not aware of anybody else seeing
> this issue.

I don't understand what you mean by "nova usage". I'm quite sure that the installation instructions from Red Hat are missing something, so far they proved not to be exact. Many copy-and-pastoes, etc. Very entertaining. Anyway, I have no idea *what* needs to be done to make the nova API daemon return the tenant_usage data. I can't use the dashboard to create any objects...

Best regards / Mit freundlichen Grüßen 
Lutz Christoph 

-- 

Lutz Christoph 

arago Institut für komplexes Datenmanagement AG 

Eschersheimer Landstraße 526 - 532 
60433 Frankfurt am Main 

eMail: lchristoph at arago.de - www: http://www.arago.de 
Tel: 0172/6301004 
Mobil: 0172/6301004 

-- 
Bankverbindung: Frankfurter Sparkasse, BLZ: 500 502 01, Kto.-Nr.: 79343 
Vorstand: Hans-Christian Boos, Martin Friedrich 
Vorsitzender des Aufsichtsrats: Dr. Bernhard Walther 
Sitz: Kronberg im Taunus - HRB 5731 - Registergericht: Königstein i.Ts 
Ust.Idnr. DE 178572359 - Steuernummer 2603 003 228 43435 




More information about the rhos-list mailing list