internal server error
Hi,
I installed openstack using devstack (single node install). And i am able to use the openstack dashboard. I could successfully create users as well, but i am not able to create networks. On submitting the 'create network' button, i got the following error :-
There was an error submitting the form. Please try again.
Also, i tried creating a network using the cli :-
quantum net-create net1
But it gave the following error:-
Request failed: internal server error while processing your request.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- neutron Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Anyone.. please help me solve this problem.
Revision history for this message
|
#2 |
Can you go to devstack directory and run ./rejoin_stack.sh
That will bring up screen session with tabs related to all openstack services running.
Switch to the tab with name q-svc (ctrl-a-<num> to switch to tab #N, or ctrl-a-n to switch to the next tab)
Then try to create network again.
You should see some errors printed in quantum-server log.
Please provide them for further analyzis
Revision history for this message
|
#4 |
On giving the command : quantum net-create net1
This is the error log:-
2013-03-21 09:42:36 ERROR [quantum.
Traceback (most recent call last):
File "/opt/stack/
rval = self.proxy.
File "/opt/stack/
quantum_ctxt, version, method, **kwargs)
File "/opt/stack/
raise AttributeError("No such RPC function '%s'" % method)
AttributeError: No such RPC function 'sync_routers'
2013-03-21 09:42:36 ERROR [quantum.
2013-03-21 09:42:36 ERROR [quantum.
2013-03-21 09:42:36 DEBUG [quantum.
And on creating a network using the dashboard, this is the error log:-
2013-03-21 09:48:36 DEBUG [quantum.
2013-03-21 09:48:36 DEBUG [quantum.
2013-03-21 09:48:36 ERROR [quantum.
Traceback (most recent call last):
File "/opt/stack/
rval = self.proxy.
File "/opt/stack/
quantum_ctxt, version, method, **kwargs)
File "/opt/stack/
raise AttributeError("No such RPC function '%s'" % method)
AttributeError: No such RPC function 'sync_routers'
2013-03-21 09:48:36 ERROR [quantum.
2013-03-21 09:48:36 ERROR [quantum.
2013-03-21 09:48:36 DEBUG [quantum.
Revision history for this message
|
#5 |
That seems strange as if l3 agent code was newer than quantum server code
Could you try to do the following:
1) run ./unstack.sh
2) sudo rm -rf /opt/stack/quantum
3) ./stack.sh
Check if issue still exist.
Revision history for this message
|
#6 |
okay.. will do that. Also, do i have to enable internet connectivity this time when i run ./stack.sh ?
Revision history for this message
|
#7 |
Yes, internet access should be enabled as devstack checks version of all packages it needs and also pull openstack sources from github.com.
Revision history for this message
|
#8 |
stack.sh ended with the following :-
++ [[ stack == \u\n\s\t\a\c\k ]]
+ [[ -x /home/stack/
+ service_check
+ local service
+ local failures
+ SCREEN_NAME=stack
+ SERVICE_
+ [[ ! -d /opt/stack/
++ ls /opt/stack/
+ failures=
+ for service in '$failures'
++ basename /opt/stack/
+ service=
+ service=q-agt
+ echo 'Error: Service q-agt is not running'
Error: Service q-agt is not running
+ '[' -n /opt/stack/
+ echo 'More details about the above errors can be found with screen, with ./rejoin-stack.sh'
More details about the above errors can be found with screen, with ./rejoin-stack.sh
+ set +o xtrace
Horizon is now available at http://
Keystone is serving at http://
Examples on using novaclient command line is in exercise.sh
The default users are: admin and demo
The password: password
This is your host ip: 10.0.2.15
stack.sh completed in 727 seconds.
So q-agt is not working. How do i resolve that? Tell me if you require any more logs.
Revision history for this message
|
#9 |
And creating a network gives the same error:-
2013-03-21 12:28:19 ERROR [quantum.
Traceback (most recent call last):
File "/opt/stack/
rval = self.proxy.
File "/opt/stack/
quantum_ctxt, version, method, **kwargs)
File "/opt/stack/
raise AttributeError("No such RPC function '%s'" % method)
AttributeError: No such RPC function 'sync_routers'
2013-03-21 12:28:19 ERROR [quantum.
2013-03-21 12:28:19 ERROR [quantum.
2013-03-21 12:28:19 DEBUG [quantum.
Revision history for this message
|
#10 |
Please run ./rejoin-stack.sh
That will start screen session with all services that devstack starts. q-svc (quantum server) is usually on 6th tab, you can switch there by pressing ctrl-a-6 ("ctrl-a-n" to switch to the next tab, "ctrl-a-p" to switch to previous)
Check if there are logs explaining quantum server failure.
Also, could you provide contents your localrc file?
Revision history for this message
|
#11 |
I've mistaken, it's not q-svc, but q-agt (quantum agent) is failing, so you need to check logs on corresponding tab (it should be near tab with q-svc)
Revision history for this message
|
#12 |
This is the localrc file:-
ADMIN_PASSWORD=
MYSQL_PASSWORD=
RABBIT_
SERVICE_
SERVICE_
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-meta
enable_service q-l3
enable_service quantum
enable_service bigswitch_
Q_PLUGIN=
Revision history for this message
|
#13 |
and there is no q-agt tab there. Am i doing something wrong?
Revision history for this message
|
#14 |
The Big Switch plugin is a proxy to floodlight, which manages L2 & L3.
Agents should be not running at all, as I think tney're not required.
Your agents are crashing because the plugin does not implement the RPC functions they call for synchronization (e.g.: sync-routers)
Try removing q-agt, and q-l3 from your localrc file.
Also, try and have a look at this document: http://
Revision history for this message
|
#15 |
Hi,
i removed q-agt and q-l3 from localrc and then run stack.sh again. This time there was no error. But on trying to create a network, this was the error :-
\n </div>\n\n <div id="explanation">\n <p>\n You\'re seeing this error because you have <code>DEBUG = True</code> in\n your Django settings file. Change that to <code>False</code>, and Django\n will display a standard 404 page.\n </p>\n </div>\
2013-03-21 14:22:29 DEBUG [quantum.
2013-03-21 14:22:29 ERROR [quantum.
2013-03-21 14:22:29 ERROR [quantum.
2013-03-21 14:22:29 ERROR [quantum.
2013-03-21 14:22:29 ERROR [quantum.
Traceback (most recent call last):
File "/opt/stack/
result = method(
File "/opt/stack/
obj = obj_creator(
File "/opt/stack/
raise
TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
Revision history for this message
|
#16 |
What's wrong with quantum now? Can anyone please help?
Revision history for this message
|
#17 |
I am afraid this traceback is not really helpful (probably a little bug in the plugin, but I'd check this with Sumit Naiksatam first).
Looking at the code it seems the floodlight proxy is returning an error code (anything not in 200-207 range), but this puzzles me too as in that case you should have more meesages in the log.
I am sorry but we need to hear from somebody more informed on the BSN plugin.
Revision history for this message
|
#18 |
Sorry, but I missed a few bits in your log that clearly state the REST call is failing,
Unfortunately, the log does not return the exact HTTP error code.
One thing to check would be the correctness of the information in /etc/quantum/
In particular the 'servers' and 'server_auth' parameters.
Revision history for this message
|
#19 |
This is the restproxy.ini file :-
# Config file for quantum-
[DATABASE]
# This line MUST be changed to actually run the plugin.
# Example:
# sql_connection = mysql:/
# Replace 127.0.0.1 above with the IP address of the database used by the
# main quantum server. (Leave it as is if the database runs on this host.)
sql_connection = mysql:/
# Database reconnection retry times - in event connectivity is lost
# set to -1 implies an infinite retry count
# sql_max_retries = 10
# Database reconnection interval in seconds - if the initial connection to the
# database fails
reconnect_interval = 2
# Enable the use of eventlet's db_pool for MySQL. The flags sql_min_pool_size,
# sql_max_pool_size and sql_idle_timeout are relevant only if this is enabled.
# sql_dbpool_enable = False
# Minimum number of SQL connections to keep open in a pool
# sql_min_pool_size = 1
# Maximum number of SQL connections to keep open in a pool
# sql_max_pool_size = 5
# Timeout in seconds before idle sql connections are reaped
# sql_idle_timeout = 3600
[RESTPROXY]
servertimeout = 10
# All configuration for this plugin is in section '[restproxy]'
#
# The following parameters are supported:
# servers : <host:port>
# server_auth : <username:password> (default: no auth)
# server_ssl : True | False (default: False)
# sync_data : True | False (default: False)
# server_timeout : 10 (default: 10 seconds)
#
servers=
#server_
#server_ssl=True
#sync_data=True
#server_timeout=10
Revision history for this message
|
#20 |
Just wondering why [RESTPROXY] servers parameter is 127.0.0.1:80
Isn't this address used by Horizon dashboard?
Is it possible that your floodlight service is trying to use the same address as Horizon?
If so, you need to reconfigure either Horizon or floodlight service to use different ports.
Can you help with this problem?
Provide an answer of your own, or ask meenakshi for more information if necessary.