Ironic: "api_version" configuration option should support microversion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Lucas Alvares Gomes |
Bug Description
The Nova Ironic driver supports setting the API version that it will use to when talking to the Ironic API, to do it one should change the "api_version" configuration option under the "ironic" section. The problem is that, since Ironic supports microversion we can't set a version to be "1.8" for e.g, which is a complete valid version for Ironic but the "api_version" field is expecting a Int() instead of a Float() or Str().
How to reproduce:
1- Set the "api_version" under the "ironic" section in nova.conf to some float value, i.e 1.8
2- Restart nova-compute
Error log:
2015-09-07 16:32:31.899 CRITICAL nova [req-f9380d3d-
2015-09-07 16:32:31.899 TRACE nova Traceback (most recent call last):
2015-09-07 16:32:31.899 TRACE nova File "/usr/local/
2015-09-07 16:32:31.899 TRACE nova sys.exit(main())
2015-09-07 16:32:31.899 TRACE nova File "/opt/stack/
2015-09-07 16:32:31.899 TRACE nova service.wait()
2015-09-07 16:32:31.899 TRACE nova File "/opt/stack/
2015-09-07 16:32:31.899 TRACE nova _launcher.wait()
2015-09-07 16:32:31.899 TRACE nova File "/usr/local/
2015-09-07 16:32:31.899 TRACE nova status, signo = self._wait_
2015-09-07 16:32:31.899 TRACE nova File "/usr/local/
2015-09-07 16:32:31.899 TRACE nova self.conf.
2015-09-07 16:32:31.899 TRACE nova File "/usr/local/
2015-09-07 16:32:31.899 TRACE nova _sanitize(opt, getattr(group_attr, opt_name)))
2015-09-07 16:32:31.899 TRACE nova File "/usr/local/
2015-09-07 16:32:31.899 TRACE nova return self._conf.
2015-09-07 16:32:31.899 TRACE nova File "/usr/local/
2015-09-07 16:32:31.899 TRACE nova value = self._do_get(name, group, namespace)
2015-09-07 16:32:31.899 TRACE nova File "/usr/local/
2015-09-07 16:32:31.899 TRACE nova % (opt.name, str(ve)))
2015-09-07 16:32:31.899 TRACE nova ConfigFileValue
2015-09-07 16:32:31.899 TRACE nova
tags: | added: ironic |
Changed in nova: | |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
summary: |
- Ironic: "api_version" configuration option should be float (to support - microversion) + Ironic: "api_version" configuration option should support microversion |
description: | updated |
Changed in nova: | |
status: | Confirmed → In Progress |
I think this is a duplicate of https:/ /bugs.launchpad .net/nova/ +bug/1459874, but I'll leave it for the two assignees to discuss.