Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cinder Error: arguments already parsed: cannot register CLI option

Hi All,

I have a problem when installing cinder (havana), cinder-scheduler and cinder-volume failed to start. My installation was in Ubuntu 12.04.4, and my cinder-* log was:

cinder-scheduler.log

2014-02-02 15:35:05.356 29389 AUDIT cinder.service [-] Starting cinder-scheduler node (version 2013.2.1)

2014-02-02 15:35:06.108 29389 CRITICAL cinder [-] arguments already parsed: cannot register CLI option

2014-02-02 15:35:06.108 29389 TRACE cinder Traceback (most recent call last):

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/bin/cinder-scheduler", line 60, in <module>

2014-02-02 15:35:06.108 29389 TRACE cinder     service.wait()
2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 624, in 
wait

2014-02-02 15:35:06.108 29389 TRACE cinder     _launcher.wait()

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 135, in wait
2014-02-02 15:35:06.108 29389 TRACE cinder     service.wait()

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait

2014-02-02 15:35:06.108 29389 TRACE cinder     return self._exit_event.wait()

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait

2014-02-02 15:35:06.108 29389 TRACE cinder     return hubs.get_hub().switch()

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch

2014-02-02 15:35:06.108 29389 TRACE cinder     return self.greenlet.switch()

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main

2014-02-02 15:35:06.108 29389 TRACE cinder     result = function(*args, **kwargs)

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 96, in run_server

2014-02-02 15:35:06.108 29389 TRACE cinder     server.start()

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 369, in start

2014-02-02 15:35:06.108 29389 TRACE cinder     self.conn = rpc.create_connection(new=True)

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/__init__.py", line 95, in create_connection

2014-02-02 15:35:06.108 29389 TRACE cinder     return _get_impl().create_connection(CONF, new=new)

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/__init__.py", line 305, in _get_impl

2014-02-02 15:35:06.108 29389 TRACE cinder     _RPCIMPL = importutils.import_module(impl)

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/importutils.py", line 59, in import_module

2014-02-02 15:35:06.108 29389 TRACE cinder     __import__(import_str)

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/__init__.py", line 35, in <module>

2014-02-02 15:35:06.108 29389 TRACE cinder     from nova.openstack.common import log as logging

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/log.py", line 159, in <module>

2014-02-02 15:35:06.108 29389 TRACE cinder     CONF.register_cli_opts(common_cli_opts)

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1579, in __inner

2014-02-02 15:35:06.108 29389 TRACE cinder     result = f(self, *args, **kwargs)

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1739, in register_cli_opts

2014-02-02 15:35:06.108 29389 TRACE cinder     self.register_cli_opt(opt, group, clear_cache=False)

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1583, in __inner

2014-02-02 15:35:06.108 29389 TRACE cinder     return f(self, *args, **kwargs)

2014-02-02 15:35:06.108 29389 TRACE cinder   File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1731, in register_cli_opt

2014-02-02 15:35:06.108 29389 TRACE cinder     raise ArgsAlreadyParsedError("cannot register CLI option")

2014-02-02 15:35:06.108 29389 TRACE cinder ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option

The similar symptoms also recorded in my cinder-volume.log. Both cinder-scheduler and cinder-volume failed to start.

I was able to access cinder by executing:

cinder list

And I did not find any problem accessing nova services

But, whenever I tried to execute:

cinder create --display-name testvol 2

I got error:

ERROR: The server has either erred or is incapable of performing the requested operation.

and similar errors in cinder-scheduler.log arise in my cinder-api.log

I really appreciate if somebody can tell me what is the culprit here.

Thanks,