Locking host failed when primary_reselect not specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Teresa Ho |
Bug Description
Brief Description
-----------------
On a system configured with AE interface in active/standby mode without specifying the primary_reselect attribute, after locking a controller, it gets be rebooted automatically and returned to unlocked state.
Severity
--------
Critical: System/Feature is not usable after the defect
Steps to Reproduce
------------------
- Install lab with active/standby AE interface without specifying primary_reselect
- lock a controller-1
- wait till the host get locked (check the status of host continuously, as it may start rebooting)
- After the host is locked, check system host-show controller-1 and task will be booting after few min
Expected Behavior
------------------
After system host-lock controller-1, it is expected that the host be locked and stay in that state.
Actual Behavior
----------------
host get rebooted after system host-lock controller-1
Reproducibility
---------------
100%
System Configuration
-------
IPv4 lab, duplex, bond interface configuration with default parameter
Branch/Pull Time/Commit
-------
BUILD_ID=
Last Pass
---------
N/A
Timestamp/Logs
--------------
[sysadmin@
+----+-
| id | hostname | personality | administrative | operational | availability |
+----+-
| 1 | controller-0 | controller | unlocked | enabled | available |
| 2 | controller-1 | controller | unlocked | enabled | available |
+----+-
[sysadmin@
Wed Apr 21 14:04:40 UTC 2021
[sysadmin@
+------
| Property | Value |
+------
| action | none |
| administrative | unlocked |
| availability | available |
| bm_ip | 128.224.64.63 |
| bm_type | dynamic |
| bm_username | root |
| boot_device | /dev/disk/
| capabilities | {u'stor_function': u'monitor'} |
| clock_synchroni
| config_applied | 89167117-
| config_status | None |
| config_target | 89167117-
| console | ttyS0,115200n8 |
| created_at | 2021-04-
| device_image_update | None |
| hostname | controller-1 |
| id | 2 |
| install_output | text |
| install_state | completed |
| install_state_info | None |
| inv_state | inventoried |
| invprovision | provisioned |
| location | {} |
| mgmt_ip | 192.168.204.3 |
| mgmt_mac | 24:8a:07:58:d0:d0 |
| operational | enabled |
| personality | controller |
| reboot_needed | False |
| reserved | False |
| rootfs_device | /dev/disk/
| serialid | None |
| software_load | 21.05 |
| subfunction_avail | available |
| subfunction_oper | enabled |
| subfunctions | controller,worker |
| task | Locking |
| tboot | false |
| ttys_dcd | None |
| updated_at | 2021-04-
| uptime | 73313 |
| uuid | f185f4d4-
| vim_progress_status | services-enabled |
+------
system host-show controller-1
+------
| Property | Value |
+------
| action | none |
| administrative | unlocked |
| availability | offline |
| bm_ip | 128.224.64.63 |
| bm_type | dynamic |
| bm_username | root |
| boot_device | /dev/disk/
| capabilities | {u'stor_function': u'monitor', u'Personality': u'Controller-
| clock_synchroni
| config_applied | 89167117-
| config_status | None |
| config_target | 89167117-
| console | ttyS0,115200n8 |
| created_at | 2021-04-
| device_image_update | None |
| hostname | controller-1 |
| id | 2 |
| install_output | text |
| install_state | completed |
| install_state_info | None |
| inv_state | inventoried |
| invprovision | provisioned |
| location | {} |
| mgmt_ip | 192.168.204.3 |
| mgmt_mac | 24:8a:07:58:d0:d0 |
| operational | disabled |
| personality | controller |
| reboot_needed | False |
| reserved | False |
| rootfs_device | /dev/disk/
| serialid | None |
| software_load | 21.05 |
| subfunction_avail | online |
| subfunction_oper | disabled |
| subfunctions | controller,worker |
| task | Booting |
| tboot | false |
| ttys_dcd | None |
| updated_at | 2021-04-
| uptime | 0 |
| uuid | f185f4d4-
| vim_progress_status | services-disabled |
+------
Wed Apr 21 14:07:00 UTC 2021
[sysadmin@
+----+-
| id | hostname | personality | administrative | operational | availability |
+----+-
| 1 | controller-0 | controller | unlocked | enabled | available |
| 2 | controller-1 | controller | unlocked | disabled | offline |
+----+-
Test Activity
-------------
Feature Testing
Workaround
----------
Always specify the primaryReselect value
Changed in starlingx: | |
assignee: | nobody → Teresa Ho (teresaho) |
summary: |
- DM sync failed when primary_reselect not specified in config model + Locking host failed when primary_reselect not specified |
description: | updated |
Fix proposed to branch: master /review. opendev. org/c/starlingx /config/ +/791448
Review: https:/