nova raises ConfigFileValueError for URLs with dashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | ||
Mitaka |
Fix Committed
|
Undecided
|
Unassigned | ||
Newton |
Fix Committed
|
Undecided
|
Unassigned | ||
Ocata |
Fix Released
|
Undecided
|
Unassigned | ||
oslo.config |
Fix Released
|
Undecided
|
ChangBo Guo(gcb) | ||
python-rfc3986 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned | ||
Zesty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
nova version: newton
dpkg version: 2:14.0.
distribution: nova @ xenial with ubuntu cloud archive, amd64.
Nova fails with exception ConfigFileValue
Steps to reproduce:
Take a working openstack with nova+neutron.
Put (in [neutron] section) url= http://
Put url = http://
nova[18937]: TRACE Traceback (most recent call last):
nova[18937]: TRACE File "/usr/bin/
nova[18937]: TRACE sys.exit(main())
nova[18937]: TRACE File "/usr/lib/
nova[18937]: TRACE service.wait()
nova[18937]: TRACE File "/usr/lib/
nova[18937]: TRACE _launcher.wait()
nova[18937]: TRACE File "/usr/lib/
nova[18937]: TRACE self.conf.
nova[18937]: TRACE File "/usr/lib/
nova[18937]: TRACE _sanitize(opt, getattr(group_attr, opt_name)))
nova[18937]: TRACE File "/usr/lib/
nova[18937]: TRACE return self._conf.
nova[18937]: TRACE File "/usr/lib/
nova[18937]: TRACE value = self._do_get(name, group, namespace)
nova[18937]: TRACE File "/usr/lib/
nova[18937]: TRACE % (opt.name, str(ve)))
nova[18937]: TRACE ConfigFileValue
Expected behavior: do not crash.
summary: |
- nova (newton) raises ConfigFileValueError for urls with dashes + nova raises ConfigFileValueError for URLs with dashes |
Changed in python-rfc3986 (Ubuntu Zesty): | |
status: | Confirmed → Fix Released |
Changed in nova (Ubuntu Zesty): | |
status: | Confirmed → Fix Released |
no longer affects: | nova |
no longer affects: | nova |
no longer affects: | nova |
no longer affects: | nova (Ubuntu) |
no longer affects: | nova (Ubuntu Xenial) |
no longer affects: | nova (Ubuntu Yakkety) |
no longer affects: | nova (Ubuntu Zesty) |
I found source of the bug: python-rfc3986 is to blame (it is used by oslo-config). Version 0.2.0-2 contains bug which violates RFC3986. It was fixed in 0.2.2. Version of python-rfc3986 from zesty (0.3.1-2) fix this problem.
I believe this bug should be fixed by bumping up version of python-rfc3986 in UCA to 0.2.2 or higher.