quantum command line failed with 404 error
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@cld4b1ubu
404 Not Found
The resource could not be found.
Traceback (most recent call last):
File "/usr/lib/
return run_command(cmd, cmd_parser, sub_argv)
File "/usr/lib/
return cmd.run(known_args)
File "/usr/lib/
return super(OpenStack
File "/usr/lib/
column_names, data = self.take_
File "/usr/lib/
return self.get_
File "/usr/lib/
ata
data = self.retrieve_
File "/usr/lib/
eve_list
data = self.call_
File "/usr/lib/
server
data = obj_lister(
File "/usr/lib/
ret = self.function(
File "/usr/lib/
**_params)
File "/usr/lib/
for r in self._paginatio
File "/usr/lib/
res = self.get(path, params=params)
File "/usr/lib/
headers=
File "/usr/lib/
headers=
File "/usr/lib/
self.
File "/usr/lib/
esponse
exception_
File "/usr/lib/
r_v20
message=
QuantumClientEx
The resource could not be found.
stack@cld4b1ubu
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?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- neutron Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Eugene Nikanorov
- Solved:
- Last query:
- Last reply:
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
How do you run quantum client? could you provide your env or command line?
Revision history for this message
|
#2 |
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?
Revision history for this message
|
#3 |
Quantum server would not start without core_plugin properly set.
I've seen same error once when I passed incorrect endpoint to quantum client.
Revision history for this message
|
#4 |
run 'quantum -v net-list' it will print out the URL it is using.
Revision history for this message
|
#5 |
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=
SSH_TTY=/dev/pts/1
NO_PROXY=
USER=stack
http_proxy=http://
LS_COLORS=
1:su=37;
:*.taz=
1;31:*.
eb=01;31:
1;31:*.
:*.pgm=
svg=01;
v=01;35:
1;35:*.
:*.gl=01;
=01;35:
;36:*.mp3=
.xspf=00;36:
TERMCAP=
ftp_proxy=http://
FTP_PROXY=http://
PATH=/usr/
MAIL=/var/
STY=3080.
PWD=/home/stack
OS_PASSWORD=
LANG=en_US.UTF-8
OS_AUTH_URL=http://
https_proxy=http://
HTTPS_PROXY=http://
HOME=/home/stack
SHLVL=2
OS_USERNAME=admin
no_proxy=
HTTP_PROXY=http://
OS_TENANT_
LOGNAME=stack
WINDOW=0
SSH_CONNECTION=
LESSOPEN=| /usr/bin/lesspipe %s
SERVICE_ENDPOINT=http://
SERVICE_TOKEN=admin
LESSCLOSE=
_=/usr/bin/env
stack@cld4b1ubu
=======
Command line executed:
quantum --debug net-list
which is visible in the above original description.
=======
The core_plugin in quantum.conf is set. Here is /etc/quantum/
root@cld4b1ubun
[DEFAULT]
# Default log level is INFO
# verbose and debug has the same result.
# One of them will set DEBUG log level output
# debug = False
# verbose = False
debug = True
verbose = True
# Where to store Quantum state files. This directory must be writable by the
# user executing the agent.
# state_path = /var/lib/quantum
log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s
log_date_format = %Y-%m-%d %H:%M:%S
# use_syslog -> syslog
# log_file and log_dir -> log_dir/log_file
# (not log_file) and log_dir -> log_dir/
# use_stderr -> stderr
# (not user_stderr) and (not log_file) -> stdout
# publish_errors -> notification system
# use_syslog = False
# syslog_log_facility = LOG_USER
# use_stderr = True
log_file = quantumdebug.log
log_dir = /var/log/quantum
# publish_errors = False
# Address to bind the API server
bind_host = 0.0.0.0
# Port the bind the API server to
bind_port = 9696
# Path to the extensions. Note that this can be a colon-separated list of
# paths. For example:
# api_extensions_path = extensions:
# The __path__ of quantum.extensions is appended to this, so if your
# extensions are in there you don't need to specify them here
# api_extensions_path =
# Quantum plugin provider module
# core_plugin =
core_plugin = quantum.
# Advanced service modules
# service_plugins =
# Paste configuration file
api_paste_config = /etc/quantum/
# The strategy to be used for auth.
# Supported values are 'keystone'
# auth_strategy = keystone
# Base MAC address. The first 3 octets will remain unchanged. If the
# 4h octet is not 00, it will also used. The others will be
# randomly generated.
# 3 octet
# base_mac = fa:16:3e:00:00:00
# 4 octet
# base_mac = fa:16:3e:4f:00:00
# Maximum amount of retries to generate a unique MAC address
# mac_generation_
# DHCP Lease duration (in seconds)
# dhcp_lease_duration = 120
# Allow sending resource operation notification to DHCP agent
# dhcp_agent_
# Enable or disable bulk create/
# allow_bulk = True
# Enable or disable pagination
# allow_pagination = False
# Enable or disable sorting
# allow_sorting = False
# Enable or disable overlapping IPs for subnets
# Attention: the following parameter MUST be set to False if Quantum is
# being used in conjunction with nova security groups and/or metadata service.
# allow_overlappi
# Ensure that configured gateway is on subnet
# force_gateway_
# RPC configuration options. Defined in rpc __init__
# The messaging module to use, defaults to kombu.
# rpc_backend = quantum.
# Size of RPC thread pool
# rpc_thread_
# Size of RPC connection pool
# rpc_conn_pool_size = 30
# Seconds to wait for a response from call or multicall
# rpc_response_
# Seconds to wait before a cast expires (TTL). Only supported by impl_zmq.
# rpc_cast_timeout = 30
# Modules of exceptions that are permitted to be recreated
# upon receiving exception data from an rpc call.
# allowed_
# AMQP exchange to connect to if using RabbitMQ or QPID
control_exchange = quantum
# If passed, use a fake RabbitMQ provider
# fake_rabbit = False
# Configuration options if sending notifications via kombu rpc (these are
# the defaults)
# SSL version to use (valid only if SSL enabled)
# kombu_ssl_version =
# SSL key file (valid only if SSL enabled)
# kombu_ssl_keyfile =
# SSL cert file (valid only if SSL enabled)
# kombu_ssl_certfile =
# SSL certification authority file (valid only if SSL enabled)'
# kombu_ssl_ca_certs =
# IP address of the RabbitMQ installation
# rabbit_host = localhost
rabbit_host = 10.10.22.225
# Password of the RabbitMQ server
# rabbit_password = guest
# Port where RabbitMQ server is running/listening
# rabbit_port = 5672
# User ID used for RabbitMQ connections
# rabbit_userid = guest
# Location of a virtual RabbitMQ installation.
# rabbit_virtual_host = /
# Maximum retries with trying to connect to RabbitMQ
# (the default of 0 implies an infinite retry count)
# rabbit_max_retries = 0
# RabbitMQ connection retry interval
# rabbit_
# QPID
# rpc_backend=
# Qpid broker hostname
# qpid_hostname = localhost
# Qpid broker port
# qpid_port = 5672
# Username for qpid connection
# qpid_username = ''
# Password for qpid connection
# qpid_password = ''
# Space separated list of SASL mechanisms to use for auth
# qpid_sasl_
# Seconds between connection keepalive heartbeats
# qpid_heartbeat = 60
# Transport to use, either 'tcp' or 'ssl'
# qpid_protocol = tcp
# Disable Nagle algorithm
# qpid_tcp_nodelay = True
# ZMQ
# rpc_backend=
# ZeroMQ bind address. Should be a wildcard (*), an ethernet interface, or IP.
# The "host" option should point or resolve to this address.
# rpc_zmq_
# ============ Notification System Options =======
# Notifications can be sent when network/subnet/port are create, updated or deleted.
# There are three methods of sending notifications: logging (via the
# log_file directive), rpc (via a message queue) and
# noop (no notifications sent, the default)
# Notification_driver can be defined multiple times
# Do nothing driver
# notification_driver = quantum.
# Logging driver
# notification_driver = quantum.
# RPC driver. DHCP agents needs it.
notification_driver = quantum.
# default_
default_
# default_
# host = myhost.com
# default_
# Defined in rpc_notifier, can be comma separated values.
# The actual topic names will be %s.%(default_
notification_topics = notifications
# Default maximum number of items returned in a single response,
# value == infinite and value < 0 means no max limit, and value must
# greater than 0. If the number of items requested is greater than
# pagination_
# of number of items.
# pagination_
# Maximum number of DNS nameservers per subnet
# max_dns_nameservers = 5
# Maximum number of host routes per subnet
# max_subnet_
# Maximum number of fixed ips per port
# max_fixed_
# =========== items for agent management extension =============
# Seconds to regard the agent as down.
# agent_down_time = 5
# =========== end of items for agent management extension =====
# =========== items for agent scheduler extension =============
# Driver to use for scheduling network to DHCP agent
# network_
# Driver to use for scheduling router to a default L3 agent
# router_
# Allow auto scheduling networks to DHCP agent. It will schedule non-hosted
# networks to first DHCP agent which sends get_active_networks message to
# quantum server
# network_
# Allow auto scheduling routers to L3 agent. It will schedule non-hosted
# routers to first L3 agent which sends sync_routers message to quantum server
# router_
# =========== end of items for agent scheduler extension =====
[QUOTAS]
# resource name(s) that are supported in quota features
# quota_items = network,subnet,port
# default number of resource allowed per tenant, minus for unlimited
# default_quota = -1
# number of networks allowed per tenant, and minus means unlimited
# quota_network = 10
# number of subnets allowed per tenant, and minus means unlimited
# quota_subnet = 10
# number of ports allowed per tenant, and minus means unlimited
# quota_port = 50
# default driver to use for quota checks
# quota_driver = quantum.
[DEFAULT_
# Description of the default service type (optional)
# description = "default service type"
# Enter a service definition line for each advanced service provided
# by the default service type.
# Each service definition should be in the following format:
# <service>
[AGENT]
# Use "sudo quantum-rootwrap /etc/quantum/
# root filter facility.
# Change to "sudo" to skip the filtering and just run the comand directly
# root_helper = sudo
root_helper = sudo quantum-rootwrap /etc/quantum/
# =========== items for agent management extension =============
# seconds between nodes reporting state to server, should be less than
# agent_down_time
# report_interval = 4
# =========== end of items for agent management extension =====
[keystone_
#auth_host = 127.0.0.1
auth_host = 10.10.22.225
auth_port = 35357
auth_protocol = http
#admin_tenant_name = %SERVICE_
#admin_user = %SERVICE_USER%
#admin_password = %SERVICE_PASSWORD%
admin_tenant_name = service
admin_user = quantum
admin_password = hpinvent
signing_dir = /var/lib/
root@cld4b1ubun
=======
Here is content of /etc/api-paste.ini:
root@cld4b1ubun
[composite:quantum]
use = egg:Paste#urlmap
/: quantumversions
/v2.0: quantumapi_v2_0
[composite:
use = call:quantum.
noauth = extensions quantumapiapp_v2_0
keystone = authtoken keystonecontext extensions quantumapiapp_v2_0
[filter:
paste.filter_
[filter:authtoken]
paste.filter_
auth_host = 10.10.22.225
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = quantum
admin_password = hpinvent
[filter:extensions]
paste.filter_
[app:quantumver
paste.app_factory = quantum.
[app:quantumapi
paste.app_factory = quantum.
root@cld4b1ubun
=======
The quantum-server is started by using:
service quantum-server start
=======
Output from running "quantum -v net-list:
stack@cld4b1ubu
DEBUG: quantumclient.
er_specs=[], formatter='table', page_size=None, quote_mode=
_details=False, sort_dir=[], sort_key=[]))
DEBUG: quantumclient.
REQ: curl -i http://
cept: application/json" -H "User-Agent: python-
passwordCredent
DEBUG: quantumclient.
content-length': '6851', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {
"issued_at": "2013-03-
NAQcCoIIL8TCCC+
1ZWRfYXQiOiAiMj
pZCI6ICJwbGFjZW
iZjY4OGQ4Zjc3ZG
iZW5kcG9pbnRzIj
lYjA2ZjQwMjQ2OG
3NzQvdjIvZjY4OG
0OGEwYjgiLCAicH
0MDI0NjhhZiJ9XS
uZHBvaW50cyI6IF
iLCAiaW50ZXJuYW
mMzU5NzgxZDIwYW
ua3MiOiBbXSwgIn
6ICJodHRwOi8vMT
xMC4xMC4yMi4yMj
iaHR0cDovLzEwLj
iOiAiZ2xhbmNlIn
kOGY3N2RlZjQ1Ym
vMTAuMTAuMjIuMj
1NGU0MDg4Njg4OD
kZWY0NWJhYjI4ZW
6ICJ2b2x1bWUifS
vQWRtaW4iLCAicm
2aWNlcy9DbG91ZC
vLzEwLjEwLjIyLj
sICJuYW1lIjogIm
sICJyZWdpb24iOi
4OGQ4Zjc3ZGVmND
icHVibGljVVJMIj
2OGFmIn1dLCAiZW
iZW5kcG9pbnRzIj
lZ2lvbiIsICJpbn
0ZmY5ODNkNjE3ND
wb2ludHNfbGlua3
uYW1lIjogImFkbW
sICJyb2xlcyI6IF
kYXRhIjogeyJpc1
1NmQyMjIzNDdjZj
OMAwGA1UEBxMFVW
IhvcNAQEBBQAEgY
IKSzQjAvmjpRzJ5
: {"description": null, "enabled": true, "id": "f688d8f77def45
, "serviceCatalog": [{"endpoints": [{"adminURL": "http://
6f402468af", "region": "myregion", "internalURL": "http://
06f402468af", "id": "bb6b5af4f23c4d
88d8f77def45bab
oints": [{"adminURL": "http://
.10.22.
6/v2"}], "endpoints_links": [], "type": "network", "name": "quantum"}, {"endpoints": [{"adminURL": "
http://
db5e6f8859d4475
"type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://
77def45bab28eb0
f77def45bab28eb
.225:8776/
volume"}, {"endpoints": [{"adminURL": "http://
", "internalURL": "http://
", "publicURL": "http://
name": "ec2"}, {"endpoints": [{"adminURL": "http://
ernalURL": "http://
228a9743bece6cf
f"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "
http://
", "id": "16e0376309644f
nts_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links
": [], "id": "651b1ea1ccc944
name": "admin"}, "metadata": {"is_admin": 0, "roles": ["773eecc4171b4
222347cf8a6cd2b
DEBUG: quantumclient.
REQ: curl -i http://
ent" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: MIIMAAYJKoZ
IhvcNAQcCoIIL8T
pc3N1ZWRfYXQiOi
sICJpZCI6ICJwbG
iOiAiZjY4OGQ4Zj
gW3siZW5kcG9pbn
iMjhlYjA2ZjQwMj
1Ojg3NzQvdjIvZj
0OGM0OGEwYjgiLC
wNmY0MDI0NjhhZi
7ImVuZHBvaW50cy
pb24iLCAiaW50ZX
hNWFmMzU5NzgxZD
fbGlua3MiOiBbXS
STCI6ICJodHRwOi
6Ly8xMC4xMC4yMi
iOiAiaHR0cDovLz
hbWUiOiAiZ2xhbm
2ODhkOGY3N2RlZj
wOi8vMTAuMTAuMj
mNjU1NGU0MDg4Nj
mNzdkZWY0NWJhYj
tZSI6ICJ2b2x1bW
jZXMvQWRtaW4iLC
zZXJ2aWNlcy9DbG
0cDovLzEwLjEwLj
jMiIsICJuYW1lIj
2MSIsICJyZWdpb2
fZjY4OGQ4Zjc3ZG
iLCAicHVibGljVV
wMjQ2OGFmIn1dLC
sIHsiZW5kcG9pbn
teXJlZ2lvbiIsIC
5NjQ0ZmY5ODNkNj
lbmRwb2ludHNfbG
zZXJuYW1lIjogIm
mYiIsICJyb2xlcy
ldGFkYXRhIjogey
4ZDM1NmQyMjIzND
ldDEOMAwGA1UEBx
JKoZIhvcNAQEBBQ
4f+FIKSzQjAvmjp
DEBUG: quantumclient.
-length': '52', 'content-type': 'text/plain; charset=UTF-8'} 404 Not Found
The resource could not be found.
DEBUG: quantumclient.
The resource could not be found.
ERROR: quantumclient.shell 404 Not Found
The resource could not be found.
DEBUG: quantumclient.shell clean_up ListNetwork
DEBUG: quantumclient.shell got an error: 404 Not Found
The resource could not be found.
stack@cld4b1ubu
Revision history for this message
|
#6 |
The url http://
This url is used because incorrect endpoint was specified for quantum service in keystone.
Correct one would be http://
See the part of your data:
[{"adminURL": "http://
.10.22.
6/v2"}], "endpoints_links": [], "type": "network", "name": "quantum"}
urls should be http://
You need to recreate your quantum endpoint using
keystone endpoint-delete
keystone endpoint-create
Revision history for this message
|
#7 |
Thanks Eugene Nikanorov, that solved my question.
Revision history for this message
|
#8 |
Various documents need to be updated with the correct example. For example, at URL and its corresponding PDF:
shows the following for creating the quantum endpoint:
$ keystone endpoint-create --region myregion --service-id 59877a8f97f04a2
which should be:
$ keystone endpoint-create --region myregion --service-id 59877a8f97f04a2
Revision history for this message
|
#9 |
filed a bug on document:
https:/