0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ironicでサーバ状態が取れない > IPMIオーバーLAN

Last updated at Posted at 2019-01-19

概要

openstack ironicでサーバ構築をしようとした際にうまくいかなかった
原因はサーバ側のIPMIオーバーLAN設定が無効になっていた
気づくまで時間かかったのでメモを残す

問題

ironicがうまくうごかない
そもそもサーバの情報が取れていなかった(Power stateとかが空)

# ironic node-list
+--------------------------------------+---------------------------------------+--------------------------------------+-------------+--------------------+-------------+
| UUID                                 | Name                                  | Instance UUID                        | Power State | Provisioning State | Maintenance |
+--------------------------------------+---------------------------------------+--------------------------------------+-------------+--------------------+-------------+
| 9283de27-c9dc-4e15-a01e-1d7d180ca5fb | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |                                      |             |                    | False       |
+--------------------------------------+---------------------------------------+--------------------------------------+-------------+--------------------+-------------+

原因と対応内容

IPMIオーバーLAN設定を有効にして解決
idrac.png

調査時のログ

ironic log (ipmitoolでerror出ていた)

ERROR ironic.drivers.modules.ipmitool [-] IPMI Error while attempting "ipmitool -I lanplus -H x.x.x.x -L ADMINISTRATOR -U root -R 12 -N 5 -f /tmp/xxx power status" for node f413c021-82a8-41d9-9759-d4fc98a66cfe. Error: Unexpected error while running command.

ipmitool error

コマンド単体で確認してみると、エラーがでている

# ipmitool -I lanplus -H x.x.x.x -L ADMINISTRATOR -U root -R 12 -N 5 -f /tmp/tmps8gPxz power status -vv
 :
Get Auth Capabilities error
Error issuing Get Chanestablishnel Authentication Capabilies request
Error: Unable to  IPMI v2 / RMCP+ session
Running Get PICMG Properties my_addr 0x20, transit 0, target 0x20

ipmiのポート確認

ポートはあいていた(STATE:open)

# nmap -p 623 -sU -P0 x.x.x.x

Starting Nmap 6.40 ( http://nmap.org ) at 2019-01-11 15:09 JST
Nmap scan report for x.x.x.x
Host is up.
PORT    STATE         SERVICE
623/udp open|filtered asf-rmcp

Nmap done: 1 IP address (1 host up) scanned in 2.12 seconds

なので設定を確認していく

サーバ管理ツールの設定確認

(原因と対応内容に画像記載)
今回はDellサーバだったのでiDRACの設定画面を確認
IPMIオーバーLAN無効になっていた
有効に変更

ipmitool success

ipmitoolが実行できるようになった

# ipmitool -I lanplus -H x.x.x.x -L ADMINISTRATOR -U USERID -R 12 -N 5 -P PASS power status -vv

Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1
Chassis Power is on

>> Sending IPMI command payload
>>    netfn   : 0x06
>>    command : 0x3c
>>    data    : 0x00 0x5d 0x00 0x02

Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 0
Closed Session 02005d00

ironic ok

ironicからもサーバ状態がとれるようになった

# ironic node-list
+--------------------------------------+---------------------------------------+--------------------------------------+-------------+--------------------+-------------+
| UUID                                 | Name                                  | Instance UUID                        | Power State | Provisioning State | Maintenance |
+--------------------------------------+---------------------------------------+--------------------------------------+-------------+--------------------+-------------+
| 9283de27-c9dc-4e15-a01e-1d7d180ca5fb | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |                                      | power on    | active             | False       |
+--------------------------------------+---------------------------------------+--------------------------------------+-------------+--------------------+-------------+

以後ironicも問題なく利用でき、構築も問題なくすすんだ

参考にしたサイト

以下サイトを参考に切り分けしていきました
https://support.hpe.com/hpsc/doc/public/display?docId=c03481170

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?