So, my recommendation should be to configure the BMC in order to reach the host in other way like this:

 

~(keystone_admin)$ system host-update <hostname> bm_username=user_name bm_password=<password> bm_type=bmc

~(keystone_admin)$ system host-update <hostname> bm_ip=<bmc ip>.

 

Just remember that you should have bmc network on your infra.

 

BR

 

Elio

 

From: Ezpeer Chen [mailto:ezpeerchen@gmail.com]
Sent: Tuesday, August 20, 2019 9:13 PM
To: Martinez Monroy, Elio <elio.martinez.monroy@intel.com>
Cc: Xie, Cindy <cindy.xie@intel.com>; Hu, Yong <yong.hu@intel.com>; starlingx-discuss@lists.starlingx.io
Subject: Re: [Starlingx-discuss] How to power off an active controller via VM? (STX R1.0)

 

Dear Elio,

 

From the STX R1.0 testplan:
https://wiki.openstack.org/wiki/StarlingX/stx.2018.10_Testplan_Instructions

 

Testplan: 

- An active controller can be power off/on via VM.  

 

 

 

 

I want to know how to power off an active controller via VM?

 

I can't find any command about this.

 

Thanks

 

 

 

Martinez Monroy, Elio <elio.martinez.monroy@intel.com> 2019820 週二 下午11:58寫道

Hi Chen, it seems that you want to turn off  the active controller, the system is protecting for doing that. That is because is saying that you need to lock it first.

 

My suggestion should be to swact controller in case that you have more than one controller nodes. If you don’t then you can try to turn it down using your BMC ip with ipmitool.

 

Besides that. Im guessing that when you say VM , it is a virtual environment. Then you can use virsh.

 

Please correct me if I’m making wrong asummptions.

 

BR

 

Elio

 

From: Xie, Cindy
Sent: Tuesday, August 20, 2019 7:52 AM
To: Ezpeer Chen <
ezpeerchen@gmail.com>; Hu, Yong <yong.hu@intel.com>; Martinez Monroy, Elio <elio.martinez.monroy@intel.com>
Cc:
starlingx-discuss@lists.starlingx.io
Subject: RE: [Starlingx-discuss] How to power off an active controller via VM? (STX R1.0)

 

Hi, Ezpeer,

I am adding Elio, who may know how to execute those test steps.

 

Thanks. - cindy

 

From: Ezpeer Chen [mailto:ezpeerchen@gmail.com]
Sent: Tuesday, August 20, 2019 11:53 AM
To: Hu, Yong <
yong.hu@intel.com>
Cc:
starlingx-discuss@lists.starlingx.io
Subject: Re: [Starlingx-discuss] How to power off an active controller via VM? (STX R1.0)

 

Dear Yong,

 

=============================================================

[wrsroot@controller-0 ~(keystone_admin)]$ system host-power-off controller-0
Can not 'Power-Off' an 'unlocked' host controller-0; Please 'Lock' first
[wrsroot@controller-0 ~(keystone_admin)]$ system host-lock controller-0
controller-0 : Rejected: Can not lock an active controller.
[wrsroot@controller-0 ~(keystone_admin)]$
[wrsroot@controller-0 ~(keystone_admin)]$
=============================================================  

 

I don't know how to power off an active controller via VM?

 

There's no Instructions about VM.?

 

 

Thanks

 

 

Yong Hu <yong.hu@intel.com> 2019820 週二 上午12:32寫道

Did the test steps in this test_plan page answer your question?
Or you tried the steps but saw issues?


On 18/08/2019 8:29 PM, Ezpeer Chen wrote:
> Dear all,
>
>
> How to power off an active controller via VM?
>
>  From the STX R1.0 testplan:
>
https://wiki.openstack.org/wiki/StarlingX/stx.2018.10_Testplan_Instructions
>
> - An active controller can be power off/on via VM.
>
>
>
>
> Thanks
>
> _______________________________________________
> Starlingx-discuss mailing list
>
Starlingx-discuss@lists.starlingx.io
>
http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
>

_______________________________________________
Starlingx-discuss mailing list
Starlingx-discuss@lists.starlingx.io
http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss