[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -p controller
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -p controller -n controller-1
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -p controller -o graphical -c tty1
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -p controller -m 00:1e:67:38:bc:9 -o graphical -c tty1
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -p controller -m ABCDEFGHIJKLMNOPQ -o graphical -c tty1
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -p controller -n controller-1
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -p controller -n controller-1 -o graphical -c tty1
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -p controller -n controller-1 -o text -c tty1
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -p controller -n controller-1 -m 00:1e:67:38:bc:9 -o text -c tty1
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -n worker-0 -p worker -o graphical -c tty0 -m 00:1e:67:4d:f2:8
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -n worker-0 -p worker -s lowlatency -o graphical -c tty0 -m 00:1e:67:4d:f2:8
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -n worker-0 -p worker -s lowlatency -o graphical -c tty0
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -n worker-1 -p worker -s lowlatency -o graphical -c tty0 -m 00:1e:67:4e
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -n worker-1 -p worker -s lowlatency -o graphical -c tty0 -m 00
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@controller-0 ~(keystone_admin)]$ system host-add -n worker-1 -p worker -s lowlatency -o graphical -c tty0
Host-add Rejected: Must provide MAC Address of the host mgmt interface
# Testing Status
PASSED
- host-add command is rejected with the expected message if the mgmt MAC is missing or incorrect format
# Configuration
2 + 2 Controller Storage Config
# Load Tested
2019-09-05_00-10-00
# Test host-add mgmt MAC with controller node
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-list ------- ------+ ------- ------+ ------- ------- --+---- ------- --+---- ------- ---+ ------- ------+ ------- ------+ ------- ------- --+---- ------- --+---- ------- ---+ ------- ------+ ------- ------+ ------- ------- --+---- ------- --+---- ------- ---+
+----+-
| id | hostname | personality | administrative | operational | availability |
+----+-
| 1 | controller-0 | controller | unlocked | enabled | available |
| 2 | None | None | locked | disabled | offline |
+----+-
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -p controller
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -p controller -n controller-1
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -p controller -o graphical -c tty1
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@ controller- 0 ~(keystone_admin)]$ id=`system host-list | grep -i none | awk '{print $2}'` controller- 0 ~(keystone_admin)]$ system host-show ${id} | grep mgmt_mac | awk '{print $4}'
[sysadmin@
00:1e:67:38:bc:91
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -p controller -m 00:1e:67:38:bc:9 -o graphical -c tty1
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -p controller -m ABCDEFGHIJKLMNOPQ -o graphical -c tty1
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -p controller -n controller-1
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -p controller -n controller-1 -o graphical -c tty1
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -p controller -n controller-1 -o text -c tty1
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -p controller -n controller-1 -m 00:1e:67:38:bc:9 -o text -c tty1
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -p controller -n controller-1 -m 00:1e:67:38:bc:91 -o text -c tty1 ------- ------- -+----- ------- ------- ------- ------- ------- -+ ------- ------- -+----- ------- ------- ------- ------- ------- -+ Standby' } | ------- ------- -+----- ------- ------- ------- ------- ------- -+
+------
| Property | Value |
+------
....
| capabilities | {u'Personality': u'Controller-
| hostname | controller-1 |
| install_output | text |
| mgmt_ip | 192.168.204.4 |
| mgmt_mac | 00:1e:67:38:bc:91 |
| personality | controller |
....
+------
# Test host-add mgmt MAC with worker nodes
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -n worker-0 -p worker -o graphical -c tty0 -m 00:1e:67:4d:f2:8
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -n worker-0 -p worker -s lowlatency -o graphical -c tty0 -m 00:1e:67:4d:f2:8
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -n worker-0 -p worker -s lowlatency -o graphical -c tty0
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -n worker-0 -p worker -s lowlatency -o graphical -c tty0 -m 00:1e:67:4d:f2:84 ------- ------- -+----- ------- ------- ------- ------- -----+ ------- ------- -+----- ------- ------- ------- ------- -----+ ------- ------- -+----- ------- ------- ------- ------- -----+
+------
| Property | Value |
+------
....
| hostname | worker-0 |
| install_output | graphical |
| mgmt_ip | 192.168.204.7 |
| mgmt_mac | 00:1e:67:4d:f2:84 |
| personality | worker |
| subfunctions | worker,lowlatency |
....
+------
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -n worker-1 -p worker -s lowlatency -o graphical -c tty0 -m 00:1e:67:4e
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -n worker-1 -p worker -s lowlatency -o graphical -c tty0 -m 00
Host-add Rejected: Must provide a valid format of a MAC Address
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -n worker-1 -p worker -s lowlatency -o graphical -c tty0
Host-add Rejected: Must provide MAC Address of the host mgmt interface
[sysadmin@ controller- 0 ~(keystone_admin)]$ system host-add -n worker-1 -p worker -s lowlatency -o graphical -c tty0 -m 00:1e:67:4e:00:0d ------- ------- -+----- ------- ------- ------- ------- -----+ ------- ------- -+----- ------- ------- ------- ------- -----+ ------- ------- -+----- ------- ------- ------- ------- -----+
+------
| Property | Value |
+------
...
| hostname | worker-1 |
| install_output | graphical |
| mgmt_ip | 192.168.204.9 |
| mgmt_mac | 00:1e:67:4e:00:0d |
| personality | worker |
| subfunctions | worker,lowlatency |
....
+------