Re: [Openstack] Closr.it
Found the problem, in the endpoint list i had an url with http:/10.x.. so it was missing a / I'm writing just to keep track of this possible error. Best -- Alessandro Tagliapietra | VISup srl piazza 4 novembre 7 20124 Milano http://www.visup.it Il giorno 22/ago/2012, alle ore 11:55, Alessandro Tagliapietra ha scritto: > Hi Salvatore, > > sorry but in nova i don't see any --no_cache option nor a .novaclient folder > in user home. :/ > > -- > Alessandro Tagliapietra | VISup srl > piazza 4 novembre 7 > 20124 Milano > > http://www.visup.it > > Il giorno 22/ago/2012, alle ore 11:52, Salvatore Orlando > ha scritto: > >> Hi Alessandro, >> >> When I get 400 errors from nova command line it is usually because of >> invalid values in the cache. >> Try executing your commands with the --no_cache option or destroying the >> cache altogether by removing the .novaclient directory in your home dir. >> >> Salvatore >> >> On 22 August 2012 11:45, Alessandro Tagliapietra >> wrote: >> Sorry for the wrong subject, it was another mail that i was sending. >> >> -- >> Alessandro Tagliapietra | VISup srl >> piazza 4 novembre 7 >> 20124 Milano >> >> http://www.visup.it >> >> Il giorno 22/ago/2012, alle ore 11:40, Alessandro Tagliapietra >> ha scritto: >> >>> Hello guys, >>> >>> I'm having a problem with nova command line. I've added this to .bashrc: >>> >>> export OS_TENANT_NAME=admin >>> export OS_USERNAME=admin >>> export OS_PASSWORD=admin >>> export OS_AUTH_URL="http://127.0.0.1:5000/v2.0/"; >>> >>> but when i do nova --debug list i get: >>> >>> connect: (127.0.0.1, 5000) >>> send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: >>> 127.0.0.1:5000\r\nContent-Length: 115\r\ncontent-type: >>> application/json\r\naccept-encoding: gzip, deflate\r\naccept: >>> application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": >>> {"tenantName": "admin", "passwordCredentials": {"username": "admin", >>> "password": "admin"}}}' >>> reply: 'HTTP/1.1 200 OK\r\n' >>> header: Content-Type: application/json >>> header: Vary: X-Auth-Token >>> header: Date: Wed, 22 Aug 2012 09:39:20 GMT >>> header: Transfer-Encoding: chunked >>> DEBUG (shell:416) n/a (HTTP 400) >>> Traceback (most recent call last): >>> File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, in >>> main >>> OpenStackComputeShell().main(sys.argv[1:]) >>> File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 364, in >>> main >>> args.func(self.cs, args) >>> File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line >>> 520, in do_list >>> utils.print_list(cs.servers.list(search_opts=search_opts), columns, >>> File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line >>> 279, in list >>> return self._list("/servers%s%s" % (detail, query_string), "servers") >>> File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 71, in >>> _list >>> resp, body = self.api.client.get(url) >>> File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 136, >>> in get >>> return self._cs_request(url, 'GET', **kwargs) >>> File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 124, >>> in _cs_request >>> **kwargs) >>> File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107, >>> in request >>> raise exceptions.from_response(resp, body) >>> BadRequest: n/a (HTTP 400) >>> ERROR: n/a (HTTP 400) >>> >>> I've dumped the traffic with tcpdump and i see a correct response from >>> keystone, this is the output: >>> >>> http://pastie.org/private/ms7c5jlpatolsgiosjsva >>> >>> How can i solve this? >>> >>> Best Regards >>> >>> -- >>> Alessandro Tagliapietra | VISup srl >>> piazza 4 novembre 7 >>> 20124 Milano >>> >>> http://www.visup.it >>> >> >> >> ___ >> Mailing list: https://launchpad.net/~openstack >> Post to : openstack@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~openstack >> More help : https://help.launchpad.net/ListHelp >> >> > ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Closr.it
Hi Salvatore, sorry but in nova i don't see any --no_cache option nor a .novaclient folder in user home. :/ -- Alessandro Tagliapietra | VISup srl piazza 4 novembre 7 20124 Milano http://www.visup.it Il giorno 22/ago/2012, alle ore 11:52, Salvatore Orlando ha scritto: > Hi Alessandro, > > When I get 400 errors from nova command line it is usually because of invalid > values in the cache. > Try executing your commands with the --no_cache option or destroying the > cache altogether by removing the .novaclient directory in your home dir. > > Salvatore > > On 22 August 2012 11:45, Alessandro Tagliapietra > wrote: > Sorry for the wrong subject, it was another mail that i was sending. > > -- > Alessandro Tagliapietra | VISup srl > piazza 4 novembre 7 > 20124 Milano > > http://www.visup.it > > Il giorno 22/ago/2012, alle ore 11:40, Alessandro Tagliapietra > ha scritto: > >> Hello guys, >> >> I'm having a problem with nova command line. I've added this to .bashrc: >> >> export OS_TENANT_NAME=admin >> export OS_USERNAME=admin >> export OS_PASSWORD=admin >> export OS_AUTH_URL="http://127.0.0.1:5000/v2.0/"; >> >> but when i do nova --debug list i get: >> >> connect: (127.0.0.1, 5000) >> send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length: >> 115\r\ncontent-type: application/json\r\naccept-encoding: gzip, >> deflate\r\naccept: application/json\r\nuser-agent: >> python-novaclient\r\n\r\n{"auth": {"tenantName": "admin", >> "passwordCredentials": {"username": "admin", "password": "admin"}}}' >> reply: 'HTTP/1.1 200 OK\r\n' >> header: Content-Type: application/json >> header: Vary: X-Auth-Token >> header: Date: Wed, 22 Aug 2012 09:39:20 GMT >> header: Transfer-Encoding: chunked >> DEBUG (shell:416) n/a (HTTP 400) >> Traceback (most recent call last): >> File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, in >> main >> OpenStackComputeShell().main(sys.argv[1:]) >> File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 364, in >> main >> args.func(self.cs, args) >> File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line >> 520, in do_list >> utils.print_list(cs.servers.list(search_opts=search_opts), columns, >> File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line >> 279, in list >> return self._list("/servers%s%s" % (detail, query_string), "servers") >> File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 71, in >> _list >> resp, body = self.api.client.get(url) >> File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 136, in >> get >> return self._cs_request(url, 'GET', **kwargs) >> File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 124, in >> _cs_request >> **kwargs) >> File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107, in >> request >> raise exceptions.from_response(resp, body) >> BadRequest: n/a (HTTP 400) >> ERROR: n/a (HTTP 400) >> >> I've dumped the traffic with tcpdump and i see a correct response from >> keystone, this is the output: >> >> http://pastie.org/private/ms7c5jlpatolsgiosjsva >> >> How can i solve this? >> >> Best Regards >> >> -- >> Alessandro Tagliapietra | VISup srl >> piazza 4 novembre 7 >> 20124 Milano >> >> http://www.visup.it >> > > > ___ > Mailing list: https://launchpad.net/~openstack > Post to : openstack@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp > > ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Closr.it
Hi Alessandro, When I get 400 errors from nova command line it is usually because of invalid values in the cache. Try executing your commands with the --no_cache option or destroying the cache altogether by removing the .novaclient directory in your home dir. Salvatore On 22 August 2012 11:45, Alessandro Tagliapietra < tagliapietra.alessan...@gmail.com> wrote: > Sorry for the wrong subject, it was another mail that i was sending. > > -- > Alessandro Tagliapietra | VISup srl > piazza 4 novembre 7 > 20124 Milano > > http://www.visup.it > > Il giorno 22/ago/2012, alle ore 11:40, Alessandro Tagliapietra < > tagliapietra.alessan...@gmail.com> ha scritto: > > Hello guys, > > I'm having a problem with nova command line. I've added this to .bashrc: > > export OS_TENANT_NAME=admin > export OS_USERNAME=admin > export OS_PASSWORD=admin > export OS_AUTH_URL="http://127.0.0.1:5000/v2.0/"; > > but when i do nova --debug list i get: > > connect: (127.0.0.1, 5000) > send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length: > 115\r\ncontent-type: application/json\r\naccept-encoding: gzip, > deflate\r\naccept: application/json\r\nuser-agent: > python-novaclient\r\n\r\n{"auth": {"tenantName": "admin", > "passwordCredentials": {"username": "admin", "password": "admin"}}}' > reply: 'HTTP/1.1 200 OK\r\n' > header: Content-Type: application/json > header: Vary: X-Auth-Token > header: Date: Wed, 22 Aug 2012 09:39:20 GMT > header: Transfer-Encoding: chunked > DEBUG (shell:416) n/a (HTTP 400) > Traceback (most recent call last): > File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, > in main > OpenStackComputeShell().main(sys.argv[1:]) > File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 364, > in main > args.func(self.cs, args) > File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line > 520, in do_list > utils.print_list(cs.servers.list(search_opts=search_opts), columns, > File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line > 279, in list > return self._list("/servers%s%s" % (detail, query_string), "servers") > File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 71, in > _list > resp, body = self.api.client.get(url) > File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 136, > in get > return self._cs_request(url, 'GET', **kwargs) > File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 124, > in _cs_request > **kwargs) > File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107, > in request > raise exceptions.from_response(resp, body) > BadRequest: n/a (HTTP 400) > ERROR: n/a (HTTP 400) > > I've dumped the traffic with tcpdump and i see a correct response from > keystone, this is the output: > > http://pastie.org/private/ms7c5jlpatolsgiosjsva > > How can i solve this? > > Best Regards > > -- > Alessandro Tagliapietra | VISup srl > piazza 4 novembre 7 > 20124 Milano > > http://www.visup.it > > > > ___ > Mailing list: https://launchpad.net/~openstack > Post to : openstack@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp > > ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Closr.it
Sorry for the wrong subject, it was another mail that i was sending. -- Alessandro Tagliapietra | VISup srl piazza 4 novembre 7 20124 Milano http://www.visup.it Il giorno 22/ago/2012, alle ore 11:40, Alessandro Tagliapietra ha scritto: > Hello guys, > > I'm having a problem with nova command line. I've added this to .bashrc: > > export OS_TENANT_NAME=admin > export OS_USERNAME=admin > export OS_PASSWORD=admin > export OS_AUTH_URL="http://127.0.0.1:5000/v2.0/"; > > but when i do nova --debug list i get: > > connect: (127.0.0.1, 5000) > send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length: > 115\r\ncontent-type: application/json\r\naccept-encoding: gzip, > deflate\r\naccept: application/json\r\nuser-agent: > python-novaclient\r\n\r\n{"auth": {"tenantName": "admin", > "passwordCredentials": {"username": "admin", "password": "admin"}}}' > reply: 'HTTP/1.1 200 OK\r\n' > header: Content-Type: application/json > header: Vary: X-Auth-Token > header: Date: Wed, 22 Aug 2012 09:39:20 GMT > header: Transfer-Encoding: chunked > DEBUG (shell:416) n/a (HTTP 400) > Traceback (most recent call last): > File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, in > main > OpenStackComputeShell().main(sys.argv[1:]) > File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 364, in > main > args.func(self.cs, args) > File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 520, > in do_list > utils.print_list(cs.servers.list(search_opts=search_opts), columns, > File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line > 279, in list > return self._list("/servers%s%s" % (detail, query_string), "servers") > File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 71, in > _list > resp, body = self.api.client.get(url) > File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 136, in > get > return self._cs_request(url, 'GET', **kwargs) > File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 124, in > _cs_request > **kwargs) > File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107, in > request > raise exceptions.from_response(resp, body) > BadRequest: n/a (HTTP 400) > ERROR: n/a (HTTP 400) > > I've dumped the traffic with tcpdump and i see a correct response from > keystone, this is the output: > > http://pastie.org/private/ms7c5jlpatolsgiosjsva > > How can i solve this? > > Best Regards > > -- > Alessandro Tagliapietra | VISup srl > piazza 4 novembre 7 > 20124 Milano > > http://www.visup.it > ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] Closr.it
Hello guys, I'm having a problem with nova command line. I've added this to .bashrc: export OS_TENANT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=admin export OS_AUTH_URL="http://127.0.0.1:5000/v2.0/"; but when i do nova --debug list i get: connect: (127.0.0.1, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 127.0.0.1:5000\r\nContent-Length: 115\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "admin"}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: application/json header: Vary: X-Auth-Token header: Date: Wed, 22 Aug 2012 09:39:20 GMT header: Transfer-Encoding: chunked DEBUG (shell:416) n/a (HTTP 400) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, in main OpenStackComputeShell().main(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 364, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 520, in do_list utils.print_list(cs.servers.list(search_opts=search_opts), columns, File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 279, in list return self._list("/servers%s%s" % (detail, query_string), "servers") File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 71, in _list resp, body = self.api.client.get(url) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 136, in get return self._cs_request(url, 'GET', **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 124, in _cs_request **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107, in request raise exceptions.from_response(resp, body) BadRequest: n/a (HTTP 400) ERROR: n/a (HTTP 400) I've dumped the traffic with tcpdump and i see a correct response from keystone, this is the output: http://pastie.org/private/ms7c5jlpatolsgiosjsva How can i solve this? Best Regards -- Alessandro Tagliapietra | VISup srl piazza 4 novembre 7 20124 Milano http://www.visup.it ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp