[Starlingx-discuss] Looking a command that changes Virtual host node MAC Addr.

Hernandez Gonzalez, Fernando fernando.hernandez.gonzalez at intel.com
Mon Jan 28 17:07:10 UTC 2019


Hi guys, thanks both of you.

The motivation is because I am working with a Security Test Cases where at the end I am doing a backup and restore for a Virtual Dedicated Storage lab, our automation creates the nodes automatically and nodes' MAC Address are assigned randomly making the restore not get completed because of the mismatch of MAC Addresses. 

Based on your feedback I will proceed to specify MAC Addresses on .xmls nodes structures with a couple of some other tweaks seems to be simpler.

Thanks.

Fernando Hernandez Gonzalez
Software Engineer

Avenida del Bosque #1001 Col, El Bajío
 Zapopan, Jalisco MX, 45019
 ____________________________________
Office: +52.33.16.45.01.34   inet 86450134

-----Original Message-----
From: Michel Thebeau [mailto:michel.thebeau at windriver.com] 
Sent: Monday, January 28, 2019 8:17 AM
To: Hu, Yong <yong.hu at intel.com>; Hernandez Gonzalez, Fernando <fernando.hernandez.gonzalez at intel.com>; starlingx-discuss at lists.starlingx.io
Subject: Re: [Starlingx-discuss] Looking a command that changes Virtual host node MAC Addr.

Hi Yong, Fernando,

To register the new MAC address for Host Inventory management, the host must be deleted and re-added (not merely reinstalled).

In general hardware changes can be made in this way for controller
nodes:
 - swact away from the controller - system host-swact
 - host lock the controller - system host-lock
 - shutdown the controller machine
 - delete the controller - system host-delete
 - make hardware changes
 - power the machine, assign controller personality - system host- update
 - etc. install and configure.

I am not prepared to offer a list of hardware changes requiring host- delete, but if you have questions please feel free post again to the list.

M



On Sun, 2019-01-27 at 03:09 +0000, Hu, Yong wrote:
> Hi Fernando,
> This mgt port is used since at the beginning of installation, written 
> into system inventory and is being used all the time in StarlingX 
> system.
> My understanding is that it is less likely StarlingX provides an 
> interface to change it after the system is deployed.
>  
> Anyway, what’s your motivation to make such a change??
>  
> regards,
> Yong
>  
> From: "Hernandez Gonzalez, Fernando" <fernando.hernandez.gonzalez at int 
> el.com>
> Date: Friday, 25 January 2019 at 11:41 PM
> To: "starlingx-discuss at lists.starlingx.io" <starlingx-discuss at lists.s 
> tarlingx.io>
> Subject: [Starlingx-discuss] Looking a command that changes Virtual 
> host node MAC Addr.
>  
> Hi,
>  
> ** Does anybody know how can I change a MAC Address for a Virtual host 
> node?
>  
> Let’s supposed I want to change controller-1 MAC Address from my 
> cluster, please check following steps to identify Virtual host
> Controller-1 MAC Addr:
> [wrsroot at controller-0 ~(keystone_admin)]$ system host-list
> +----+--------------+-------------+----------------+-------------+---
> -----------+
> | id | hostname     | personality | administrative | operational |
> availability |
> +----+--------------+-------------+----------------+-------------+---
> -----------+
> | 1  | controller-0 | controller  | unlocked       | enabled     |
> degraded     |
> | 2  | compute-0    | compute     | locked         | disabled    |
> offline      |
> | 3  | compute-1    | compute     | locked         | disabled    |
> offline      |
> | 4  | controller-1 | controller  | locked         | disabled    |
> offline      |
> | 5  | storage-0    | storage     | locked         | disabled    |
> offline      |
> | 6  | storage-1    | storage     | unlocked       | disabled    |
> offline      |
> Display host show “mgmt_mac” attribute from controller-1
> [wrsroot at controller-0 ~(keystone_admin)]$ system host-show
> controller-1
> +---------------------+--------------------------------------------
> ---------------------------+
> | Property            |
> Value
> |
> +---------------------+--------------------------------------------
> ---------------------------+
> | action              |
> none
> |
> | administrative      |
> locked
> |
> | availability        | offline
>                                                               |
> | bm_ip               |
> None
> |
> | bm_type             |
> None
> |
> | bm_username         |
> None
> |
> | boot_device         |
> sda
> |
> | capabilities        | {u'stor_function': u'monitor',
> u'Personality': u'Controller-Standby'} |
> | config_applied      | 0695bac9-2b2b-4c0d-9c86-
> aee9ce3bf250                                  |
> | config_status       |
> None
> |
> | config_target       | 0695bac9-2b2b-4c0d-9c86-
> aee9ce3bf250                                  |
> | console             |
> ttyS0,115200
> |
> | created_at          | 2019-01-
> 23T13:07:55.354151+00:00                                      |
> | hostname            | controller-
> 1                                                          |
> | id                  |
> 4
> |
> | install_output      | text
>                               |
> | install_state       |
> completed
> |
> | install_state_info  |
> None
> |
> | invprovision        |
> provisioned
> |
> | location            |
> {}
> |
> | mgmt_ip             |
> 192.168.204.4
> |
> | mgmt_mac            |
> 52:54:00:2b:56:bf
> |
> | operational         |
> disabled
> |
> | personality         | controller
>                               |
> | reserved            |
> False
> |
> | rootfs_device       |
> sda
> |
> | serialid            | None
>                                                               |
> | software_load       |
> 18.10
> |
> | task
> |                                                                    
>    |
> | tboot               |
> false
> |
> | ttys_dcd            |
> None
> |
> | updated_at          | 2019-01-24T15:39:05.227227+00:00
>                               |
> | uptime              |
> 0
> |
> | uuid                | 81edcd37-fbe2-43f0-98fa-
> a9d8dd975a74                                  |
> | vim_progress_status | services-
> disabled                                                     |
> +---------------------+--------------------------------------------
> ---------------------------+
>  
> ** Is there a way to change the “mgmt_mac = 52:54:00:2b:56:bf”?
>  
> Many Thanks!
> Fernando Hernandez Gonzalez
> Software Engineer
>  
> Avenida del Bosque #1001 Col, El Bajío Zapopan, Jalisco MX, 45019 
> ____________________________________
> Office: +52.33.16.45.01.34   inet 86450134
>  
> _______________________________________________
> Starlingx-discuss mailing list
> Starlingx-discuss at lists.starlingx.io
> http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss


More information about the Starlingx-discuss mailing list