Backup & Restore: Network range checking is not enforced during initial bootstrap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
David Sullivan |
Bug Description
Brief Description
-----------------
In default lab setup, both management and multicast-subnet networks are configured as /28 subnet and the initial bootstrap will pass (I think it is because these subnets were not defined in the override file). When backing up the system, we generate following two entries in the override file (e.g. localhost.yml). But when using this override file to restore the platform, address validation done by the bootstrap will fail due to this check:
elif (("{{ network }}" == 'pxeboot' or "{{ network }}" == 'multicast' or "{{ network }}" == 'management') and
raise Exception("Failed validation, {{ network }} address range must contain at least %d addresses." %
management_subnet: 192.168.204.0/28
management_
if /28 subnet is not allowed for pxeboot, management and multicast, It should be checked in initial bootstrap.
Also in the “system addrpool-list” output, The IP ranges for cluster-
if not start < end:
raise Exception("Failed validation, {{ network }} start address must be less than end address.")
or
if (("{{ network }}" == 'cluster_pod' or "{{ network }}" == 'cluster_service') and
raise Exception("Failed validation, {{ network }} address range must contain at least %d addresses." %
cluster_
cluster_
cluster_
Here is the output of “system addrpool-list”
[sysadmin@
+------
| uuid | name | network | prefix | order | ranges | floating_address | controller0_address | controller1_address | gateway_address |
+------
| f1ab47a6-
| 73fbf749-
| 57f12119-
| b54ac8b2-
| d076ff59-
| a210f34e-
| 7491a66e-
+------
Severity
--------
Major: System/Feature is usable but degraded>
Steps to Reproduce
------------------
1. Create an environment for ansible remote host
2. Bring up the AIO-DX system
3. Backup the system using ansible remotely
4. Re-install the controller with the same load
5. Restore the system using ansible remotely.
6. Unlock the active controller
7. Power on and PXE boot controller-1. Ceph OSDs on controller-1 will remain intact. Unlock controller-1
Expected Behavior
------------------
The active controller is successfully restored
Actual Behavior
----------------
Active controller failed to restore
Reproducibility
---------------
Reproducible
System Configuration
-------
Any IPV4 system
Branch/Pull Time/Commit
-------
BUILD_
Test Activity
-------------
Feature Testing
tags: | added: stx.retestneeded |
Changed in starlingx: | |
assignee: | Tee Ngo (teewrs) → David Sullivan (dsullivanwr) |
tags: | removed: stx.retestneeded |
The next step is to confirm if /28 is default for VBox and /24 for hardware.