_start_console provides wrong ipmi command for socat console
Bug #1611285 reported by
Andrey Shestakov
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Medium
|
Galyna Zholtkevych |
Bug Description
_start_console method makes command for run SOL in shellinabox format:
"/:%(uid)
But socat is not support these variables in command line and fails to establish client connection with error:
2016/08/09 08:42:45 socat[11439] E "EXEC:": wrong number of parameters (5 instead of 1)
Changed in ironic: | |
assignee: | nobody → Andrey Shestakov (ashestakov) |
Changed in ironic: | |
assignee: | Andrey Shestakov (ashestakov) → Galyna Zholtkevych (gzholtkevych) |
Changed in ironic: | |
importance: | Undecided → Medium |
To post a comment you must log in.
Upon investigation, it seems the common code (https:/ /github. com/openstack/ ironic/ blob/master/ ironic/ drivers/ modules/ ipmitool. py#L1192) provides an ipmi_cmd in the format the shellinabox expects (uid/git/cwd). Manpage for shellinaboxd supports this theory. Additionally, socat does not support this syntax. This is what the reporter is encountering. Removing extraneous parameters allows reporter to correctly launch socat.