Ask Your Question
0

quantum command line failed with 404 error

asked 2013-03-16 01:19:04 -0500

terry-gong gravatar image

I have a 3 nodes setup for the controller, network, and compute nodes. Many of the commands that I run on any of the nodes return the following errors (this example is using net-list):

stack@cld4b1ubuntu:~$ quantum --debug net-list 404 Not Found

The resource could not be found.

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/quantumclient/shell.py", line 497, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/quantumclient/shell.py", line 50, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/quantumclient/common/command.py", line 35, in run return super(OpenStackCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 84, in run column_names, data = self.take_action(parsed_args) File "/usr/lib/python2.7/dist-packages/quantumclient/common/command.py", line 41, in take_action return self.get_data(parsed_args) File "/usr/lib/python2.7/dist-packages/quantumclient/quantum/v2_0/__init__.py", line 530, in get_d ata data = self.retrieve_list(parsed_args) File "/usr/lib/python2.7/dist-packages/quantumclient/quantum/v2_0/__init__.py", line 499, in retri eve_list data = self.call_server(quantum_client, search_opts, parsed_args) File "/usr/lib/python2.7/dist-packages/quantumclient/quantum/v2_0/__init__.py", line 471, in call_ server data = obj_lister(*search_opts) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 107, in with_params ret = self.function(instance, *args, *kwargs) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 292, in list_networks *_params) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 996, in list for r in self._pagination(collection, path, *params): File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 1009, in _pagination res = self.get(path, params=params) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 982, in get headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 967, in retry_request headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 912, in do_request self._handle_fault_response(status_code, replybody) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 893, in _handle_fault_r esponse exception_handler_v20(status_code, des_error_body) File "/usr/lib/python2.7/dist-packages/quantumclient/v2_0/client.py", line 87, in exception_handle r_v20 message=message) QuantumClientException: 404 Not Found

The resource could not be found.

stack@cld4b1ubuntu:~$

Keystone is working. I am able to create volume and instance. I am also able to attach volume to the instance and to detach volume from the instance. I am also able to delete volume and to terminate the instance. I am not able to do anything with the network using quantum. I keep getting the 404 error. All the above operations were done using the command line utilities.

Anyone have any ideas on how to troubleshoot this problem?

edit retag flag offensive close merge delete

9 answers

Sort by ยป oldest newest most voted
0

answered 2013-03-16 06:03:34 -0500

How do you run quantum client? could you provide your env or command line?

edit flag offensive delete link more
0

answered 2013-03-16 06:20:59 -0500

Actually i think this is an issue of how you are running the server what are you passing to that. Also did you set core_plugin in quantum.conf?

edit flag offensive delete link more
0

answered 2013-03-16 06:49:57 -0500

Quantum server would not start without core_plugin properly set.

I've seen same error once when I passed incorrect endpoint to quantum client.

edit flag offensive delete link more
0

answered 2013-03-16 07:31:59 -0500

gongysh gravatar image

run 'quantum -v net-list' it will print out the URL it is using.

edit flag offensive delete link more
0

answered 2013-03-16 20:20:52 -0500

terry-gong gravatar image

My controller node IP address is 10.10.22.225 which is using the Ubuntu 12.04 server OS.

====================================================================================== env output: SHELL=/bin/bash TERM=screen SSH_CLIENT=10.10.27.59 50118 22 SSH_TTY=/dev/pts/1 NO_PROXY=localhost,127.0.0.1,localaddress,.localdomain.com,10.10.22.225 USER=stack http_proxy=http://web-proxy.rose.hp.com:8080/ LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;0 1:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arj=01;31 :.taz=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=0 1;31:.gz=01;31:.lz=01;31:.xz=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.d eb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.ace=01;31:.zoo=0 1;31:.cpio=01;31:.7z=01;31:.rz=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35 :.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:. svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mk v=01;35:.webm=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=0 1;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35 :.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.axv=01;35:.anx =01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.mid=00;36:.midi=00;36:.mka=00 ;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.axa=00;36:.oga=00;36:.spx=00;36: .xspf=00;36: TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\ :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\ :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\ :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\ :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\ :li#43:co#100:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E ... (more)

edit flag offensive delete link more
0

answered 2013-03-16 21:10:23 -0500

The url http://10.10.22.225:9696/v2/v2.0/networks.json (http://10.10.22.225:9696/v2/v2.0/netw...) is not a part of quantum API, so you're getting 404. This url is used because incorrect endpoint was specified for quantum service in keystone. Correct one would be http://10.10.22.225:9696/v2.0/networks.json (http://10.10.22.225:9696/v2.0/network...)

See the part of your data: [{"adminURL": "http://10.10.22.225:9696/v2", "region": "myregion", "internalURL": "http://10 .10.22.225:9696/v2", "id": "1d6a47ca668c4810a5af359781d20afc", "publicURL": "http://10.10.22.225:969 6/v2"}], "endpoints_links": [], "type": "network", "name": "quantum"}

urls should be http://10.10.22.225:9696/ , not http://10.10.22.225:9696/v2

You need to recreate your quantum endpoint using keystone endpoint-delete keystone endpoint-create

edit flag offensive delete link more
0

answered 2013-03-16 22:11:13 -0500

terry-gong gravatar image

Thanks Eugene Nikanorov, that solved my question.

edit flag offensive delete link more
0

answered 2013-03-16 22:19:16 -0500

terry-gong gravatar image

Various documents need to be updated with the correct example. For example, at URL and its corresponding PDF:

http://docs.openstack.org/trunk/openstack-compute/install/apt/content/osfolubuntu-identityservice.html (http://docs.openstack.org/trunk/opens...)

shows the following for creating the quantum endpoint:

$ keystone endpoint-create --region myregion --service-id 59877a8f97f04a2aad1e8164e14d7450 --publicurl "http://172.16.30.20:9696/v2" --adminurl "http://10.211.55.20:9696/v2" --internalurl "http://10.211.55.20:9696/v2"

which should be:

$ keystone endpoint-create --region myregion --service-id 59877a8f97f04a2aad1e8164e14d7450 --publicurl "http://172.16.30.20:9696" --adminurl "http://10.211.55.20:9696" --internalurl "http://10.211.55.20:9696"

edit flag offensive delete link more
0

answered 2013-03-18 01:16:04 -0500

gongysh gravatar image

filed a bug on document: https://code.launchpad.net/bugs/1156104

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-03-16 01:19:04 -0500

Seen: 103 times

Last updated: Mar 18 '13