Ask Your Question
0

internal server error

asked 2013-03-20 11:57:58 -0500

msarma00 gravatar image

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.

edit retag flag offensive close merge delete

20 answers

Sort by ยป oldest newest most voted
0

answered 2013-03-22 05:59:17 -0500

msarma00 gravatar image

This is the restproxy.ini file :-

Config file for quantum-proxy-plugin.

[DATABASE]

This line MUST be changed to actually run the plugin.

Example:

sql_connection = mysql://root:pass@127.0.0.1:3306/restproxy_quantum

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://root:password@localhost/restproxy_quantum?charset=utf8

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>[,<host:port>]* (Error if not set)

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=127.0.0.1:80 #server_auth=username:password #server_ssl=True #sync_data=True #server_timeout=10

edit flag offensive delete link more
0

answered 2013-03-21 13:31:50 -0500

salvatore-orlando gravatar image

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/plugins/bigswitch/restproxy.ini In particular the 'servers' and 'server_auth' parameters.

edit flag offensive delete link more
0

answered 2013-03-21 13:28:43 -0500

salvatore-orlando gravatar image

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.

edit flag offensive delete link more
0

answered 2013-03-21 07:57:41 -0500

salvatore-orlando gravatar image

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://www.openflowhub.org/display/floodlightcontroller/Install+Floodlight+and+OpenStack+on+Your+Own+Ubuntu+VM (http://www.openflowhub.org/display/fl...)

edit flag offensive delete link more
0

answered 2013-03-21 07:34:57 -0500

msarma00 gravatar image

and there is no q-agt tab there. Am i doing something wrong?

edit flag offensive delete link more
0

answered 2013-03-21 07:32:25 -0500

msarma00 gravatar image

This is the localrc file:-

ADMIN_PASSWORD=password MYSQL_PASSWORD=password RABBIT_PASSWORD=password SERVICE_PASSWORD=password SERVICE_TOKEN=tokentoken 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_floodlight Q_PLUGIN=bigswitch_floodlight

edit flag offensive delete link more
0

answered 2013-03-21 07:26:16 -0500

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)

edit flag offensive delete link more
0

answered 2013-03-21 07:01:16 -0500

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?

edit flag offensive delete link more
0

answered 2013-03-21 07:00:27 -0500

msarma00 gravatar image

And creating a network gives the same error:-

2013-03-21 12:28:19 ERROR [quantum.openstack.common.rpc.amqp] Exception during message handling Traceback (most recent call last): File "/opt/stack/quantum/quantum/openstack/common/rpc/amqp.py", line 430, in _process_data rval = self.proxy.dispatch(ctxt, version, method, *args) File "/opt/stack/quantum/quantum/common/rpc.py", line 43, in dispatch quantum_ctxt, version, method, *kwargs) File "/opt/stack/quantum/quantum/openstack/common/rpc/dispatcher.py", line 136, in dispatch raise AttributeError("No such RPC function '%s'" % method) AttributeError: No such RPC function 'sync_routers' 2013-03-21 12:28:19 ERROR [quantum.openstack.common.rpc.common] Returning exception No such RPC function 'sync_routers' to caller 2013-03-21 12:28:19 ERROR [quantum.openstack.common.rpc.common] ['Traceback (most recent call last):\n', ' File "/opt/stack/quantum/quantum/openstack/common/rpc/amqp.py", line 430, in _process_data\n rval = self.proxy.dispatch(ctxt, version, method, *args)\n', ' File "/opt/stack/quantum/quantum/common/rpc.py", line 43, in dispatch\n quantum_ctxt, version, method, *kwargs)\n', ' File "/opt/stack/quantum/quantum/openstack/common/rpc/dispatcher.py", line 136, in dispatch\n raise AttributeError("No such RPC function \'%s\'" % method)\n', "AttributeError: No such RPC function 'sync_routers'\n"] 2013-03-21 12:28:19 DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID is 48dc09d075a949b08c34267befb00e52.

edit flag offensive delete link more
0

answered 2013-03-21 06:55:29 -0500

msarma00 gravatar image

stack.sh ended with the following :-

++ [[ stack == \u\n\s\t\a\c\k ]] + [[ -x /home/stack/devstack/local.sh ]] + service_check + local service + local failures + SCREEN_NAME=stack + SERVICE_DIR=/opt/stack/status + [[ ! -d /opt/stack/status/stack ]] ++ ls /opt/stack/status/stack/q-agt.failure + failures=/opt/stack/status/stack/q-agt.failure + for service in '$failures' ++ basename /opt/stack/status/stack/q-agt.failure + service=q-agt.failure + service=q-agt + echo 'Error: Service q-agt is not running' Error: Service q-agt is not running + '[' -n /opt/stack/status/stack/q-agt.failure ']' + 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://10.0.2.15/ Keystone is serving at http://10.0.2.15:5000/v2.0/ 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.

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-20 11:57:58 -0500

Seen: 2,411 times

Last updated: Mar 22 '13