Unit tests fail with oslo.config from master
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic Inspector |
Fix Released
|
High
|
Javier Peña |
Bug Description
oslo.config is becoming strict by default with type enforcement [1], and that is causing some unit tests to fail. Initially, they are failing with:
=======
ERROR: test_prefix_
ironic_
-------
_StringException: Traceback (most recent call last):
File "ironic_
self.session = db.get_session()
File "ironic_
facade = create_
File "ironic_
_FACADE = db_session.
File "/usr/lib/
expire_
File "/usr/lib/
slave_
File "/usr/lib/
engine_args, maker_args)
File "/usr/lib/
sql_
File "/usr/lib/
url = sqlalchemy.
File "/usr/lib64/
return _parse_
File "/usr/lib64/
"Could not parse rfc1738 URL from string '%s'" % name)
sqlalchemy.
Once the issue with the slave_connection string is fixed, we get a new error:
=======
ERROR: test_wrong_
ironic_
-------
_StringException: Traceback (most recent call last):
File "ironic_
CONF.
File "/usr/lib/
return f(*args, **kwargs)
File "/usr/lib/
result = f(self, *args, **kwargs)
File "/usr/lib/
opt_
File "/usr/lib/
converted = self._convert_
File "/usr/lib/
return opt.type(value)
File "/usr/lib/
repr(value)))
ValueError: Valid values are [all, active, pxe], but found 'foobar'
The second issue is caused by oslo.config checking the valid values and failing before we reach ValidateInterfa
Changed in ironic-inspector: | |
assignee: | nobody → Javier Peña (jpena-c) |
status: | New → In Progress |
Changed in ironic-inspector: | |
importance: | Undecided → High |
Fix proposed to branch: master /review. openstack. org/457572
Review: https:/