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-20 12:29:43 -0500

msarma00 gravatar image

Anyone.. please help me solve this problem.

edit flag offensive delete link more
0

answered 2013-03-20 12:37:19 -0500

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

edit flag offensive delete link more
0

answered 2013-03-21 04:13:59 -0500

msarma00 gravatar image

This was the error :-

2013-03-21 09:42:36 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 09:42:36 ERROR [quantum.openstack.common.rpc.common] Returning exception No such RPC function 'sync_routers' to caller 2013-03-21 09:42:36 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 09:42:36 DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID is 0906bb7294444087b1bbbd4c2227f3ef.

edit flag offensive delete link more
0

answered 2013-03-21 04:19:28 -0500

msarma00 gravatar image

On giving the command : quantum net-create net1 This is the error log:-

2013-03-21 09:42:36 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 09:42:36 ERROR [quantum.openstack.common.rpc.common] Returning exception No such RPC function 'sync_routers' to caller 2013-03-21 09:42:36 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 09:42:36 DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID is 0906bb7294444087b1bbbd4c2227f3ef.

And on creating a network using the dashboard, this is the error log:-

2013-03-21 09:48:36 DEBUG [quantum.openstack.common.rpc.amqp] received {u'_context_roles': [u'admin'], u'_msg_id': u'139770d475e340698e277f7863d24548', u'_context_read_deleted': u'no', u'_context_tenant_id': None, u'args': {u'host': u'tcs-VirtualBox', u'router_ids': None, u'fullsync': None}, u'_unique_id': u'c3f801c97a3d4537949194c1b0ad60fc', u'_context_is_admin': True, u'version': u'1.0', u'_context_project_id': None, u'_context_timestamp': u'2013-03-21 04:18:36.414111', u'_context_user_id': None, u'method': u'sync_routers'} 2013-03-21 09:48:36 DEBUG [quantum.openstack.common.rpc.amqp] unpacked context: {'user_id': None, 'roles': [u'admin'], 'tenant_id': None, 'is_admin': True, 'timestamp': u'2013-03-21 04:18:36.414111', 'project_id': None, 'read_deleted': u'no'} 2013-03-21 09:48:36 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 09:48:36 ERROR [quantum.openstack.common.rpc.common] Returning exception No such RPC function 'sync_routers' to caller 2013-03-21 09:48:36 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 ... (more)

edit flag offensive delete link more
0

answered 2013-03-21 05:59:13 -0500

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.

edit flag offensive delete link more
0

answered 2013-03-21 06:06:40 -0500

msarma00 gravatar image

okay.. will do that. Also, do i have to enable internet connectivity this time when i run ./stack.sh ?

edit flag offensive delete link more
0

answered 2013-03-21 06:19:37 -0500

Yes, internet access should be enabled as devstack checks version of all packages it needs and also pull openstack sources from http://github.com .

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
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 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

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,613 times

Last updated: Mar 22 '13