← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1230416] Re: glance-control fails with oslo.config 1.2

 

** Also affects: oslo
   Importance: Undecided
       Status: New

** Changed in: oslo
       Status: New => In Progress

** Changed in: oslo
   Importance: Undecided => Critical

** Changed in: oslo
     Assignee: (unassigned) => Mark McLoughlin (markmc)

** Changed in: glance
       Status: New => Invalid

** Changed in: glance/grizzly
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1230416

Title:
  glance-control fails with oslo.config 1.2

Status in OpenStack Image Registry and Delivery Service (Glance):
  Invalid
Status in Glance grizzly series:
  Invalid
Status in Oslo - a Library of Common OpenStack Code:
  In Progress

Bug description:
  This popped in stable/grizzly glance jobs up after oslo.config 1.2 was released:
  https://jenkins01.openstack.org/job/periodic-glance-python27-stable-grizzly/30/console

  2013-09-25 06:05:09.718 | STDERR: Traceback (most recent call last):
  2013-09-25 06:05:09.719 |   File "./bin/glance-control", line 312, in <module>
  2013-09-25 06:05:09.719 |     config.parse_args(usage=USAGE)
  2013-09-25 06:05:09.719 |   File "/home/jenkins/workspace/periodic-glance-python27-stable-grizzly/glance/common/config.py", line 98, in parse_args
  2013-09-25 06:05:09.719 |     default_config_files=default_config_files)
  2013-09-25 06:05:09.719 |   File "/home/jenkins/workspace/periodic-glance-python27-stable-grizzly/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1625, in __call__
  2013-09-25 06:05:09.719 |     else sys.argv[1:])
  2013-09-25 06:05:09.720 |   File "/home/jenkins/workspace/periodic-glance-python27-stable-grizzly/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 2124, in _parse_cli_opts
  2013-09-25 06:05:09.720 |     opt._add_to_cli(self._oparser, group)
  2013-09-25 06:05:09.720 |   File "/home/jenkins/workspace/periodic-glance-python27-stable-grizzly/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1018, in _add_to_cli
  2013-09-25 06:05:09.720 |     self.handler(subparsers)
  2013-09-25 06:05:09.720 |   File "./bin/glance-control", line 274, in add_command_parsers
  2013-09-25 06:05:09.720 |     parser = subparsers.add_parser(server, parents=[cmd_parser])
  2013-09-25 06:05:09.720 |   File "/usr/lib/python2.7/argparse.py", line 1064, in add_parser
  2013-09-25 06:05:09.721 |     parser = self._parser_class(**kwargs)
  2013-09-25 06:05:09.721 | TypeError: __init__() got an unexpected keyword argument 'parents'

  But it also happens in Havana master, tested with RDO Havana openstack-glance-2013.2-0.7.b3.el6
  # glance-control 
  Traceback (most recent call last):
    File "/usr/bin/glance-control", line 10, in <module>
      sys.exit(main())
    File "/usr/lib/python2.6/site-packages/glance/cmd/control.py", line 310, in main
      config.parse_args(usage=USAGE)
    File "/usr/lib/python2.6/site-packages/glance/common/config.py", line 106, in parse_args
      default_config_files=default_config_files)
    File "/usr/lib/python2.6/site-packages/oslo/config/cfg.py", line 1595, in __call__
      else sys.argv[1:])
    File "/usr/lib/python2.6/site-packages/oslo/config/cfg.py", line 2067, in _parse_cli_opts
      opt._add_to_cli(self._oparser, group)
    File "/usr/lib/python2.6/site-packages/oslo/config/cfg.py", line 988, in _add_to_cli
      self.handler(subparsers)
    File "/usr/lib/python2.6/site-packages/glance/cmd/control.py", line 272, in add_command_parsers
      parser = subparsers.add_parser(server, parents=[cmd_parser])
    File "/usr/lib/python2.6/site-packages/argparse.py", line 1085, in add_parser
      parser = self._parser_class(**kwargs)
  TypeError: __init__() got an unexpected keyword argument 'parents'

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1230416/+subscriptions