Partition modify sometimes reverts to original size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Al Bailey |
Bug Description
Brief Description
-----------------
Sometimes after a partition is created and immediately resized, the new size is not applied
Severity
--------
Minor
Steps to Reproduce
------------------
Create a partition of size 1G
Resize it to be the remainder of the disk
Monitor the resize operation
Expected Behavior
------------------
It should resize
Actual Behavior
----------------
It switches to attempt to resize to the original size
Reproducibility
---------------
Seen using automation tools approximately 1 out of 10 test runs.
System Configuration
-------
Duplex
Branch/Pull Time/Commit
-------
Oct 3 2022
Last Pass
---------
Unknown
Timestamp/Logs
--------------
There are no errors
automation logs show an attempt to increase, and the show reverts to the original size
[2022-09-30 17:03:26] host-disk-
+------
| Property | Value |
+------
| device_path | /dev/disk/
| device_node | /dev/sda5 |
| type_guid | ba5eba11-
| type_name | LVM Physical Volume |
| start_mib | 91158 |
| end_mib | 92182 |
| size_mib | 364544 |
| uuid | ed51d027-
| ihost_uuid | 7679e1cd-
| idisk_uuid | 74b37ef6-
| ipv_uuid | None |
| status | Modifying |
| created_at | 2022-09-
| updated_at | 2022-09-
+------
[2022-09-30 17:03:27] system host-disk-
+------
| Property | Value |
+------
| device_path | /dev/disk/
| device_node | /dev/sda5 |
| type_guid | ba5eba11-
| type_name | LVM Physical Volume |
| start_mib | 91158 |
| end_mib | 92182 |
| size_mib | 1024 |
| uuid | ed51d027-
| ihost_uuid | 7679e1cd-
| idisk_uuid | 74b37ef6-
| ipv_uuid | None |
| status | Modifying |
| created_at | 2022-09-
| updated_at | 2022-09-
+------
Test Activity
-------------
Automated Testing
Workaround
----------
resize the partition again
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.8.0 stx.config stx.storage |
The logs show a sequence of INFO logs: "PART update" at the time of these reverts.
There should only ever be one of those for a partition change, and those logs should only occur when upgrading from centos to debian
By instrumenting the code, it turns out that one structure has integers and another has strings. so visually the values are the same, but the equality check was failing and it was causing a previous DB query of data from the agent for the size to be written back to the DB,
https:/ /review. opendev. org/c/starlingx /config/ +/867567