Devstack fails with ValueError when trying to parse Tempest tox.ini

Bug #1525352 reported by Ryan Hsu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Davanum Srinivas (DIMS)

Bug Description

Currently, Devstack fails at stacking when getting to lib/tempest trying to run tox operations on Tempest's tox.ini. The following error is seen:

Traceback (most recent call last):
  File "/usr/local/bin/tox", line 11, in <module>
    sys.exit(cmdline())
  File "/usr/local/lib/python2.7/dist-packages/tox/session.py", line 38, in main
    config = prepare(args)
  File "/usr/local/lib/python2.7/dist-packages/tox/session.py", line 26, in prepare
    config = parseconfig(args)
  File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 229, in parseconfig
    parseini(config, inipath)
  File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 729, in __init__
    self.make_envconfig(name, section, reader._subs, config)
  File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 760, in make_envconfig
    res = meth(env_attr.name, env_attr.default)
  File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 893, in getdict_setenv
    definitions = self._getdict(value, default=default, sep=sep)
  File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 905, in _getdict
    name, rest = line.split('=', 1)
ValueError: need more than 1 value to unpack

Root cause is due to Tox releasing 2.3.0 today which has some behavior that causes the broken parsing. Reverting to 2.2.1 fixes this.

Changed in devstack:
assignee: nobody → Ryan Hsu (rhsu)
status: New → In Progress
Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
Matt Riedemann (mriedem) wrote :

(2:18:41 PM) clarkb: we deleted new images as the workaround

Revision history for this message
Matt Riedemann (mriedem) wrote :
Changed in devstack:
assignee: Ryan Hsu (rhsu) → Davanum Srinivas (DIMS) (dims-v)
Changed in devstack:
assignee: Davanum Srinivas (DIMS) (dims-v) → Ryan Hsu (rhsu)
Revision history for this message
Bob Ball (bob-ball) wrote :

tox 2.3.1 has been released which appears to fix this issue

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on devstack (master)

Change abandoned by Ryan Hsu (<email address hidden>) on branch: master
Review: https://review.openstack.org/256620
Reason: Aww :( Well thanks to everyone who helped to review!

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Changed in devstack:
assignee: Ryan Hsu (rhsu) → Davanum Srinivas (DIMS) (dims-v)
status: In Progress → Fix Committed
Revision history for this message
Sean Dague (sdague) wrote :

This devstack bug was last updated over 180 days ago, as devstack
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.

Changed in devstack:
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.