Possible for cinder-volumes partition size to exceed physical disk size on disk replacement

Bug #1795962 reported by Maria Yousaf
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Invalid
Medium
Maria Yousaf

Bug Description

Brief Description
-----------------
Partition size on AIO-SX cinder disk replacement procedure can be larger than physical disk due to lack of validation. This will result in errored partition that cannot be deleted.

Severity
--------
Critical

Steps to Reproduce
------------------
1) Create cinder volume(s) and cinder snapshot(s). Backup and store volume data.
2) Make note of serial # of cinder disk to be replaced and disk size. In this case, disk being replaced was 480 GB.
3) Lock controller
4) Power down controller
5) Replace disk with disk of larger size. In this case, disk was 800 GB.
6) Power on controller
7) Ensure new disk serial # is listed
8) Cinder has an in-use partition. Use horizon to modify partition to larger size. In this case, partition was accidentally modified to larger than the available_gib size (745.209). Partition size was set to 800 gib.
9) This results in partition going into internal error script state (Error: Internal Script Error state) eventually
10) Partition cannot be deleted either via the CLI or horizon. LVG and PVG cannot be deleted either.
11) Attempted workaround was to reboot AIO-SX node. This puts the partition of 800 gib into In-use state as opposed to error however node will not become available.

Expected Behavior
------------------
Partition creation larger than physical disk will be rejected.

Actual Behavior
----------------
Partition size creation can be larger than physical disk.

Reproducibility
---------------
Tried once.

System Configuration
--------------------
One node system

Branch/Pull Time/Commit
-----------------------
2018-10-02_20-18-00

Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.2019.03 - specific to disk replacement scenarios

Changed in starlingx:
assignee: nobody → Ovidiu Poncea (ovidiu.poncea)
status: New → Triaged
importance: Undecided → Medium
tags: added: stx.2019.03 stx.config
Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: Ovidiu Poncea (ovidiu.poncea) → Bruce Jones (brucej)
Revision history for this message
Bruce Jones (brucej) wrote :

Cindy can you please get with Vivian and re-assign this to someone on her team, thanks!

Changed in starlingx:
assignee: Bruce Jones (brucej) → Cindy Xie (xxie1)
Cindy Xie (xxie1)
Changed in starlingx:
assignee: Cindy Xie (xxie1) → Zhuweiwei (vivian.zhu)
Liang Fang (liangfang)
Changed in starlingx:
assignee: Zhuweiwei (vivian.zhu) → Liang Fang (liangfang)
Ken Young (kenyis)
tags: added: stx.2019.05
removed: stx.2019.03
Ken Young (kenyis)
tags: added: stx.2.0
removed: stx.2019.05
Ghada Khalil (gkhalil)
tags: added: stx.retestneeded
Revision history for this message
Maria Yousaf (myousaf) wrote :

Changing state to invalid, due to the introduction of ceph on all StarlingX configurations. Disk replacements will need to be tested in general, as part of regression testing prior to release.

Changed in starlingx:
status: Triaged → Invalid
tags: removed: stx.retestneeded
Zhuweiwei (vivian.zhu)
tags: added: cinder
Zhuweiwei (vivian.zhu)
tags: removed: cinder
Liang Fang (liangfang)
Changed in starlingx:
assignee: Liang Fang (liangfang) → nobody
Revision history for this message
Liang Fang (liangfang) wrote :

@Maria "Invalid" is the Status of "Closed", right? From your comment, this test case is not valid any more when ceph introduced on all configurations. As the bug is invalid, does it make sense to remove the tag stx.2.0 and assign the bug back to yourself? In my understanding, stx.2.0 is a gating tag that would block release.

Revision history for this message
Cindy Xie (xxie1) wrote :

@liangfang "invalid" is equivalent to "closed". It's OK to leave it to anybody as none of the queries will run it for now. The "stx.2.0" query will not include the bugs in "invalid" state.

Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: nobody → Maria Yousaf (myousaf)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.