yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #13281
[Bug 1303759] [NEW] neutron net-create is failing and apiSrv is throwing an exception
Public bug reported:
When I run ./stack.sh with localrc configured to run as a controller node, stack.sh fails with the below error
neutron net-create --tenant-id a5ceeadae4c44781bfee71554f283362 private
2014-04-07 11:33:25.224 | ++ grep ' id '
2014-04-07 11:33:25.226 | ++ get_field 2
2014-04-07 11:33:25.228 | ++ read data
2014-04-07 11:33:26.119 | Request Failed: internal server error while processing your request.
2014-04-07 11:33:26.136 | + NET_ID=
2014-04-07 11:33:26.138 | + die_if_not_set 397 NET_ID 'Failure creating NET_ID for a5ceeadae4c44781bfee71554f283362'
2014-04-07 11:33:26.140 | + local exitcode=0
2014-04-07 11:33:26.142 | [Call Trace]
2014-04-07 11:33:26.144 | ./stack.sh:1188:create_neutron_initial_network
screen-apiSrv.log has the below exception at the beginning
ubuntu@oc-comp2:~/devstack$ python /usr/local/lib/python2.7/dist-packages/vnc_cf ^Mg_api_server/vnc_cfg_api_server.py --conf_file /etc/contrail/api_server.conf --r ^Mabbit_password contrail123 & echo $! >/opt/stack/status/contrail/apiSrv.pid; fg ^M|| echo "apiSrv failed to start" | tee "/opt/stack/status/contrail/apiSrv.failur ^Me"
[1] 28773
bash: /opt/stack/status/contrail/apiSrv.pid: No such file or directory
python /usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py --conf_file /etc/contrail/api_server.conf --rabbit_password contrail123
04/07/2014 11:32:37 AM [oc-comp2:ApiServer:Config:0]: Failed to import package "sandesh"
ERROR:oc-comp2:ApiServer:Config:0:Failed to import package "sandesh"
04/07/2014 11:32:37 AM [oc-comp2:ApiServer:Config:0]: Failed to import package "sandesh"
ERROR:oc-comp2:ApiServer:Config:0:Failed to import package "sandesh"
04/07/2014 11:32:37 AM [oc-comp2:ApiServer:Config:0]: SANDESH: Logging: LEVEL: [SYS_INFO] -> [SYS_DEBUG]
INFO:oc-comp2:ApiServer:Config:0:SANDESH: Logging: LEVEL: [SYS_INFO] -> [SYS_DEBUG]
04/07/2014 11:32:37 AM [oc-comp2:ApiServer:Config:0]: SANDESH: Logging: FILE: [<stdout>] -> [/var/log/contrail/api.log]
INFO:oc-comp2:ApiServer:Config:0:SANDESH: Logging: FILE: [<stdout>] -> [/var/log/contrail/api.log]
ERROR:stevedore.extension:Could not load 'xxx': No option 'admin_token' in section: 'KEYSTONE'
ERROR:stevedore.extension:No option 'admin_token' in section: 'KEYSTONE'
Traceback (most recent call last):
File "/opt/stack/stevedore/stevedore/extension.py", line 162, in _load_plugins
verify_requirements,
File "/opt/stack/stevedore/stevedore/extension.py", line 180, in _load_one_plugin
obj = plugin(*invoke_args, **invoke_kwds)
File "/usr/local/lib/python2.7/dist-packages/vnc_openstack/__init__.py", line 41, in __init__
self._admin_token = conf_sections.get('KEYSTONE', 'admin_token')
File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
raise NoOptionError(option, section)
NoOptionError: No option 'admin_token' in section: 'KEYSTONE'
Bottle v0.11.6 server starting up (using GeventServer())...
Listening on http://0.0.0.0:8084/
Hit Ctrl-C to quit.
.
Possible solution
-----------------------
By adding the below lines in the file "/usr/local/lib/python2.7/dist-
packages/vnc_openstack/__init__.py" seems to solve the problem at line
~26
try:
self._admin_token = conf_sections.get('KEYSTONE', 'admin_token')
except:
self._admin_token = None
I am not sure if this is the right solution, but this should be
addressed.
Thanks
** Affects: opencontrail
Importance: Undecided
Status: New
** Project changed: neutron => opencontrail
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1303759
Title:
neutron net-create is failing and apiSrv is throwing an exception
Status in OpenContrail:
New
Bug description:
When I run ./stack.sh with localrc configured to run as a controller node, stack.sh fails with the below error
neutron net-create --tenant-id a5ceeadae4c44781bfee71554f283362 private
2014-04-07 11:33:25.224 | ++ grep ' id '
2014-04-07 11:33:25.226 | ++ get_field 2
2014-04-07 11:33:25.228 | ++ read data
2014-04-07 11:33:26.119 | Request Failed: internal server error while processing your request.
2014-04-07 11:33:26.136 | + NET_ID=
2014-04-07 11:33:26.138 | + die_if_not_set 397 NET_ID 'Failure creating NET_ID for a5ceeadae4c44781bfee71554f283362'
2014-04-07 11:33:26.140 | + local exitcode=0
2014-04-07 11:33:26.142 | [Call Trace]
2014-04-07 11:33:26.144 | ./stack.sh:1188:create_neutron_initial_network
screen-apiSrv.log has the below exception at the beginning
ubuntu@oc-comp2:~/devstack$ python /usr/local/lib/python2.7/dist-packages/vnc_cf ^Mg_api_server/vnc_cfg_api_server.py --conf_file /etc/contrail/api_server.conf --r ^Mabbit_password contrail123 & echo $! >/opt/stack/status/contrail/apiSrv.pid; fg ^M|| echo "apiSrv failed to start" | tee "/opt/stack/status/contrail/apiSrv.failur ^Me"
[1] 28773
bash: /opt/stack/status/contrail/apiSrv.pid: No such file or directory
python /usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py --conf_file /etc/contrail/api_server.conf --rabbit_password contrail123
04/07/2014 11:32:37 AM [oc-comp2:ApiServer:Config:0]: Failed to import package "sandesh"
ERROR:oc-comp2:ApiServer:Config:0:Failed to import package "sandesh"
04/07/2014 11:32:37 AM [oc-comp2:ApiServer:Config:0]: Failed to import package "sandesh"
ERROR:oc-comp2:ApiServer:Config:0:Failed to import package "sandesh"
04/07/2014 11:32:37 AM [oc-comp2:ApiServer:Config:0]: SANDESH: Logging: LEVEL: [SYS_INFO] -> [SYS_DEBUG]
INFO:oc-comp2:ApiServer:Config:0:SANDESH: Logging: LEVEL: [SYS_INFO] -> [SYS_DEBUG]
04/07/2014 11:32:37 AM [oc-comp2:ApiServer:Config:0]: SANDESH: Logging: FILE: [<stdout>] -> [/var/log/contrail/api.log]
INFO:oc-comp2:ApiServer:Config:0:SANDESH: Logging: FILE: [<stdout>] -> [/var/log/contrail/api.log]
ERROR:stevedore.extension:Could not load 'xxx': No option 'admin_token' in section: 'KEYSTONE'
ERROR:stevedore.extension:No option 'admin_token' in section: 'KEYSTONE'
Traceback (most recent call last):
File "/opt/stack/stevedore/stevedore/extension.py", line 162, in _load_plugins
verify_requirements,
File "/opt/stack/stevedore/stevedore/extension.py", line 180, in _load_one_plugin
obj = plugin(*invoke_args, **invoke_kwds)
File "/usr/local/lib/python2.7/dist-packages/vnc_openstack/__init__.py", line 41, in __init__
self._admin_token = conf_sections.get('KEYSTONE', 'admin_token')
File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
raise NoOptionError(option, section)
NoOptionError: No option 'admin_token' in section: 'KEYSTONE'
Bottle v0.11.6 server starting up (using GeventServer())...
Listening on http://0.0.0.0:8084/
Hit Ctrl-C to quit.
.
Possible solution
-----------------------
By adding the below lines in the file "/usr/local/lib/python2.7/dist-
packages/vnc_openstack/__init__.py" seems to solve the problem at line
~26
try:
self._admin_token = conf_sections.get('KEYSTONE', 'admin_token')
except:
self._admin_token = None
I am not sure if this is the right solution, but this should be
addressed.
Thanks
To manage notifications about this bug go to:
https://bugs.launchpad.net/opencontrail/+bug/1303759/+subscriptions
Follow ups
References