Bug 1419719
| Summary: | API version 1.29 (introducing NMI) is not supported by ironicclient OSC plugin | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Alexander Chuzhoy <sasha> |
| Component: | python-ironicclient | Assignee: | Lucas Alvares Gomes <lmartins> |
| Status: | CLOSED ERRATA | QA Contact: | Raviv Bar-Tal <rbartal> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 11.0 (Ocata) | CC: | apevec, dtantsur, lhh, lmartins, mburns, racedoro, rhel-osp-director-maint, sasha |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 11.0 (Ocata) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-ironicclient-1.11.1-1.el7ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-05-17 19:45:08 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Alexander Chuzhoy
2017-02-06 21:11:02 UTC
Hi Sasha, I think the problem here is because the code we have in OSP 11 still a little behind from the upstream version and the NMI endpoint still doesn't exist. I see you are using the 1.28 version of the API is that the latest ? Because NMI was included in the 1.29 [0]. [0] https://review.openstack.org/#/c/348191/ I think Lucas is right, and you should use --os-baremetal-api-version 1.29 Here's what I get: openstack --os-baremetal-api-version 1.29 baremetal node inject nmi 113befaa-9f02-4e08-a249-04a27c13abb0 openstack: error: argument --os-baremetal-api-version: invalid choice: u'1.29' (choose from '1', '1.1', '1.2', '1.3', '1.4', '1.5', '1.6', '1.7', '1.8', '1.9', '1.10', '1.11', '1.12', '1.13', '1.14', '1.15', '1.16', '1.17', '1.18', '1.19', '1.20', '1.21', '1.22', '1.23', '1.24', '1.25', '1.26', '1.27', '1.28', 'latest') [stack@undercloud ~]$ openstack --os-baremetal-api-version=latest baremetal node inject Resource could not be found. (HTTP 404) FWIW I don't believe it's a blocker as the 'ironic node-inject-nmi' command seems to understand the new version. That's right, the 'ironic' command understands it in version 1.29: $ ironic --ironic-api-version 1.29 node-inject-nmi compute-1 Driver pxe_ssh does not support inject_nmi (disabled or not implemented). (HTTP 400) But as reported by Sasha the 'openstack' client only understands up to API version 1.28. With regards to Lucas' comment#2, the current OSP 11 where I checked this has the NMI code in it: # grep -n nmi /usr/lib/python2.7/site-packages/ironic/conductor/manager.py 2264: @METRICS.timer('ConductorManager.inject_nmi') 2268: def inject_nmi(self, context, node_id): 2277: support management or management.inject_nmi. 2282: LOG.debug('RPC inject_nmi called for node %s', node_id) 2285: purpose='inject nmi') as task: 2292: task.driver.management.inject_nmi(task) Not a blocker but relevant for documentation. Verified: Environment: python-ironicclient-1.11.1-1.el7ost.noarch [stack@undercloud-0 ~]$ openstack --os-baremetal-api-version 1.29 baremetal node inject nmi a864ab86-2dfb-44b2-a3c3-0d312e775269 Message from syslogd@compute-1 at Mar 22 15:49:29 ... kernel: Uhhuh. NMI received for unknown reason 20 on CPU 0. Message from syslogd@compute-1 at Mar 22 15:49:29 ... kernel: Do you have a strange power saving mode enabled? Message from syslogd@compute-1 at Mar 22 15:49:29 ... kernel: Dazed and confused, but trying to continue [stack@undercloud-0 ~]$ Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1245 |