Ask Your Question

oodograss's profile - activity

2014-04-09 06:34:38 -0600 received badge  Famous Question (source)
2014-04-09 06:34:38 -0600 received badge  Notable Question (source)
2013-09-03 19:44:13 -0600 received badge  Popular Question (source)
2013-08-28 19:50:08 -0600 commented answer glance-control argument parse error

There's olso >= 1.2.0 in my requirement.txt, and olso 1.1.0 just works for me too. Happy to get it going, thanks Vishnu!

2013-08-28 19:50:05 -0600 received badge  Supporter (source)
2013-08-28 19:49:18 -0600 received badge  Scholar (source)
2013-08-27 20:00:13 -0600 commented question glance-control argument parse error

Seems code went wrong here has a lot to do with oslo, I will try to dig in.

2013-08-27 08:28:09 -0600 received badge  Student (source)
2013-08-27 06:13:31 -0600 received badge  Editor (source)
2013-08-27 06:09:39 -0600 asked a question glance-control argument parse error

Hi all, I'm new to OpenStack and Python, and it seems I'm the only one with this weird question.

I am using Ubuntu 12.10, with default python 2.7.3, I followed the installation doc to set up glance from github. Then I tried to run glance-control and got the following:

vinc@aa:/etc/glance$ sudo glance-control 
Traceback (most recent call last):
File "/usr/local/bin/glance-control", line 10, in <module>
  sys.exit(main())
 File "/usr/local/lib/python2.7/dist-packages/glance/cmd/control.py", line 314, in main
   config.parse_args(usage=USAGE)
 File "/usr/local/lib/python2.7/dist-packages/glance/common/config.py", line 103, in parse_args
    default_config_files=default_config_files)
File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1593, in __call__
   else sys.argv[1:])
File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2065, in _parse_cli_opts
   opt._add_to_cli(self._oparser, group)
File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 986, in _add_to_cli
   self.handler(subparsers)
File "/usr/local/lib/python2.7/dist-packages/glance/cmd/control.py", line 273, in add_command_parsers
   parser = subparsers.add_parser(server, parents=[cmd_parser])
File "/usr/lib/python2.7/argparse.py", line 1064, in add_parser
  parser = self._parser_class(**kwargs)
TypeError: __init__() got an unexpected keyword argument 'parents'

And when I run glance-api or glance-regristry, the process is up, looks all right. (No further test yet)

I'm pretty sure the glance source is corret, and the argparse.py is of latest version 1.2.1. And the oslo should come with glance. So where possibly could be wrong? My python's problem? I just can't find a place telling me the required python version.

Thanks for any tips!