Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1347475 - [NEC BP Review request][Ironic]IPMINative: add NativeIPMISocatConsole class
[NEC BP Review request][Ironic]IPMINative: add NativeIPMISocatConsole class
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ironic (Show other bugs)
10.0 (Newton)
Unspecified Unspecified
medium Severity medium
: rc
: 10.0 (Newton)
Assigned To: Dmitry Tantsur
Raviv Bar-Tal
https://review.openstack.org/#/c/293874/
: FutureFeature, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-16 22:25 EDT by Yoshiki Ohmura
Modified: 2018-02-06 15:06 EST (History)
14 users (show)

See Also:
Fixed In Version: openstack-ironic-6.2.1-4.el7ost
Doc Type: Enhancement
Doc Text:
This update adds a socat-based serial console for IPMItool drivers. This was added because users may want to access a bare metal node's serial console in the same way that they access a virtual node's console. As a result, the new driver `pxe_ipmitool_socat` was added, with support for the serial console using the `socat` utility.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-12-14 10:40:24 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
conductor executes shellinabox instead of socat (4.73 KB, text/plain)
2016-11-03 13:08 EDT, mkovacik
no flags Details
ironic ipmi SOL over the socat working (10.91 KB, text/plain)
2016-11-07 13:12 EST, mkovacik
no flags Details
Socat error in a unpatched conductor (1.68 KB, text/plain)
2016-11-08 04:41 EST, mkovacik
no flags Details
verifying screen log (45.25 KB, text/plain)
2016-11-14 17:04 EST, mkovacik
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3113821 None None None 2017-07-13 09:52 EDT
OpenStack gerrit 393746 None None None 2016-11-07 13:20 EST
Red Hat Product Errata RHEA-2016:2948 normal SHIPPED_LIVE Red Hat OpenStack Platform 10 enhancement update 2016-12-14 14:55:27 EST

  None (edit)
Description Yoshiki Ohmura 2016-06-16 22:25:12 EDT
This is a request for a review of an upstream blueprint.

https://review.openstack.org/#/c/293874/
Comment 5 Dmitry Tantsur 2016-08-17 05:24:26 EDT
Hello!

Now that we have AgentAndIPMIToolAndSocatDriver, is there anything else we can do here? Is using IPMINative a hard requirement for you?
Comment 6 Yoshiki Ohmura 2016-08-17 06:24:32 EDT
Hi Dmirty, 

I filed this on behalf of our EPM partner NEC.
I've asked NEC members if we can close this, and now waiting for feedback/checking by NEC.

I believe we would be able to close if NEC have further request on this.

Best Regards,
Yoshiki
Comment 7 Yoshiki Ohmura 2016-08-19 02:17:53 EDT
> I believe we would be able to close if NEC have further request on this.

Should be:
I believe we would be able to close if NEC doesn't have further request on this.
Comment 8 Takashi Torii 2016-08-19 02:26:39 EDT
Sorry for reply late. Please close this.
Comment 9 Dmitry Tantsur 2016-08-19 04:19:32 EDT
Thanks! I'm putting this bug to modified to indicate that we now have support for nova-compatible console in some of our drivers (though not exactly the ones mentioned in the title).
Comment 11 Yoshiki Ohmura 2016-08-23 22:51:18 EDT
Hi Dmirty,

Thank you for your update.
As Torii-san wrote in his last comment, NEC agreed to close this.
I believe that NEC will open new ticket if they find that using IPMINative a hard requirement for them, and we can close this once.
However, I'm not sure what's the right status for this situation, I just remove NEC's tracker from blocks field once instead of closing this.

Regards,
Yoshiki
Comment 12 Dmitry Tantsur 2016-08-24 07:11:38 EDT
Thanks! I've put it to MODIFIED for our QE to pick and test it for OSP 10.
Comment 14 mkovacik 2016-10-17 09:05:00 EDT
Could you please state what exactly should be checked here in terms of Expected results?
Thanks,
milan
Comment 15 Dmitry Tantsur 2016-10-17 09:27:50 EDT
Milan, we need to test this bit: http://docs.openstack.org/developer/ironic/deploy/console.html#node-serial-console. The expected result is possibility to enable serial console in Ironic. It's not required to be available out-of-box at this stage, so some manual configuration is expected (see the link).
Comment 17 mkovacik 2016-11-03 13:08 EDT
Created attachment 1217095 [details]
conductor executes shellinabox instead of socat

Seems this feature is broken;
Following http://docs.openstack.org/developer/ironic/deploy/console.html#node-serial-console leads to the conductor starting the shellinabox console instead of the socat one even though I've set the driver_info parameter: 'ipmi_terminal_port': 54321 (see the last_error field in the attached ironic node-show output)

[stack@seal01 ~]$ rpm -qa openstack-ironic*
openstack-ironic-conductor-6.2.1-2.el7ost.noarch
openstack-ironic-api-6.2.1-2.el7ost.noarch
openstack-ironic-inspector-4.2.0-2.el7ost.noarch
openstack-ironic-common-6.2.1-2.el7ost.noarch
Comment 18 Dmitry Tantsur 2016-11-03 13:18:13 EDT
Could you please try applying https://review.openstack.org/#/c/363647/? maybe we should backport it.
Comment 19 Dmitry Tantsur 2016-11-04 08:27:41 EDT
Ignore me, you're using the wrong driver:

| driver                 | pxe_ipmitool 

Please take another look at http://docs.openstack.org/developer/ironic/deploy/console.html#node-serial-console.

I'm still backporting the bug I mentioned above just in case.
Comment 21 mkovacik 2016-11-07 13:12 EST
Created attachment 1218173 [details]
ironic ipmi SOL over the socat working

I was able to get a telnet connection to the ipmi SOL having changed the node driver to pxe_ipmi_socat and having applied the patch: https://review.openstack.org/#/c/393746
Comment 22 mkovacik 2016-11-08 04:41 EST
Created attachment 1218462 [details]
Socat error in a unpatched conductor
Comment 23 Dmitry Tantsur 2016-11-08 06:06:56 EST
Backport is awaiting review.
Comment 24 Dmitry Tantsur 2016-11-08 09:47:38 EST
Backport merged
Comment 26 mkovacik 2016-11-14 17:04 EST
Created attachment 1220552 [details]
verifying screen log

This feature works indeed.
There may be several caveats:

* install socat&telnet
* enable the pxe_ipmitool_socat driver in /etc/ironic/ironic.conf [1]
* change the driver of existing baremetal nodes to pxe_ipmitool_socat
* update pxe_append_params in /etc/ironic/ironic.conf [1]
* you may need to use different tty (for me ttyS0 didn't work but ttyS1 did)
* the image you're deploying has to have console forwarding set the same way (in grub)

[1] http://docs.openstack.org/developer/ironic/deploy/console.html#node-serial-console
Comment 27 mkovacik 2016-11-14 17:07:20 EST
verified in:

[stack@seal01 ~]$ rpm -qa '*ironic*'
openstack-ironic-common-6.2.1-4.el7ost.noarch
python-ironicclient-1.7.0-1.el7ost.noarch
openstack-ironic-api-6.2.1-4.el7ost.noarch
openstack-ironic-conductor-6.2.1-4.el7ost.noarch
python-ironic-lib-2.1.1-1.el7ost.noarch
python-ironic-inspector-client-1.9.0-1.el7ost.noarch
openstack-ironic-inspector-4.2.0-2.el7ost.noarch
puppet-ironic-9.4.1-1.el7ost.noarch
[stack@seal01 ~]$ rpm -q --changelog openstack-ironic-common-6.2.1-4.el7ost.noarch
* Thu Nov 10 2016 Jon Schlueter <jschluet@redhat.com> 1:6.2.1-4
- [install-guide] describe service clients auth
- IPMI command should depend on console type (rhbz#1347475)

# ---%<----
Comment 29 errata-xmlrpc 2016-12-14 10:40:24 EST
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://rhn.redhat.com/errata/RHEA-2016-2948.html

Note You need to log in before you can comment on or make changes to this bug.