set-console-mode should validate the configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Invalid
|
Medium
|
chenglch |
Bug Description
node-set-
[root@localhost ~]# ironic node-set-
[root@localhost ~]# ironic node-get-console 65fe14d5-
+------
| Property | Value |
+------
| console_enabled | False |
| console_info | None |
+------
And can not get console info, check the conductor log, found there are some message as below:
2014-12-15 02:55:22.947 9530 DEBUG oslo.messaging.
2014-12-15 02:55:22.949 9530 DEBUG ironic.
2014-12-15 02:55:22.959 9530 WARNING ironic.
Command: shellinaboxd -t -p 1234 --background=
Can not find the 1234 port is listening:
[root@localhost ~]# netstat -an|grep 1234
[root@localhost ~]#
The operation is failed, but we just see some WARNING in the log, so we need to valid all the required operation during node-set-
Changed in ironic: | |
assignee: | nobody → Haomeng,Wang (whaom) |
summary: |
- set-console + set-console-mode should valid the configuration |
summary: |
- set-console-mode should valid the configuration + set-console-mode should validate the configuration |
Changed in ironic: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in ironic: | |
assignee: | Haomeng,Wang (whaom) → nobody |
Changed in ironic: | |
assignee: | nobody → Rakesh H S (rh-s) |
Changed in ironic: | |
assignee: | Rakesh H S (rh-s) → nobody |
Changed in ironic: | |
assignee: | nobody → Sandhya Balakrishnan (sandhya-balakrishnan) |
Changed in ironic: | |
assignee: | Sandhya Balakrishnan (sandhya-balakrishnan) → nobody |
Changed in ironic: | |
assignee: | nobody → chenglch (chenglch) |
[root@localhost ~]# ironic node-show 65fe14d5- df35-4895- 90ab-377a79c643 75 ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --+ ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --+ deploy_ ramdisk' : u'0aec86cf- 55d1-4ed8- 83a5-3d4fe35651 f2', | terminal_ port': u'1234', u'ipmi_username': u'USERID', | kernel' : u'287a200f- 5356-47c5- 9753-839ea8ff86 1c'} | df35-4895- 90ab-377a79c643 75. | /tmp/65fe14d5- df35-4895- 90ab-377a79c643 75.pid -s | HOME:ipmitool -H 9.119.58.64 -I lanplus -U USERID -f | df35-4895- 90ab-377a79c643 75.pw -v sol activate | 09T01:15: 01+00:00 | provision_ state | None | 15T10:32: 37+00:00 | e6f3-4621- 80f0-a322656454 d7', u'kernel': | 56e1-4a70- 8f3d-58c3bd1e9c d0', u'root_gb': u'10', | 7ea0-4205- 882e-933192a598 ea', u'deploy_key': | QJ3U5UWESUVAFL3 H2RV'} |
+------
| Property | Value |
+------
| instance_uuid | None |
| target_power_state | None |
| properties | {} |
| maintenance | False |
| driver_info | {u'pxe_
| | u'ipmi_
| | u'ipmi_address': u'9.119.58.64', u'ipmi_password': u'passw1rd', |
| | u'pxe_deploy_
| extra | {} |
| last_error | Error enabling the console on node 65fe14d5-
| | Reason: Console subprocess failed to start. [Errno 2] No such file or |
| | directory Command: shellinaboxd -t -p 1234 |
| | --background=
| | /:989:987:
| | /tmp/65fe14d5-
| created_at | 2014-12-
| target_
| driver | pxe_ipmitool |
| updated_at | 2014-12-
| instance_info | {u'ramdisk': u'afa3c3c4-
| | u'7e218480-
| | u'image_source': u'caf889d0-
| | u'MVSDO4978Z3YH
| chassis_uuid | |
| provision_state | active |
| reservation | None |
| power_state | power on |
| console_enabled | False ...