"Create Pool" dialog improvements

Description

disk.get_unused will return new boolean field: duplicate_serial.

If such disks are present, they are hidden from the "create pool" and "update pool" dialogs and a warning is shown:

Available Disks
[ ] | Disk | Type | Capacity
[ ] | sdb | HDD | 4 TB
[ ] | sdc | HDD | 4 TB
[ ] | sdd | HDD | 4 TB

Warning! There are 2 disks available that have
non-unique serial numbers. That can be a cabling
issue and adding such a disk to a pool can
result in a data loss. [ SHOW THEM ANYWAY ]

If all these disks have bus == USB, warning text is changed to

"There are N USB disks available that have non-unique serial numbers. USB controllers may report disk serial incorrectly making such disks indistinguishable from each other. [ SHOW THEM ANYWAY ]".

If any of such disks is selected, pool create/update operation should include "allow_duplicate_serials": true.

Problem/Justification

None

Impact

None

Activity

Show:

William Gryzbowski January 26, 2022 at 7:39 PM

Lets try to fix this for BETA1 please, it makes QE life harder.

Bug Clerk January 13, 2022 at 1:22 PM

Vladimir Vinogradenko January 10, 2022 at 12:37 PM

sorry, forgot to update the ticket text. `duplicate_serial` is a list of other disks that have the same serial number. Empty should be treated as false, non-empty as true.

Also I updated the target version to 13.0 (also SCALE), they told us we don't need this for 12.0 anymore.

Denys Butenko January 10, 2022 at 12:10 PM

thanks for the tip. I've been able to mock responses it was enough to prepare PR. Today I upgraded TN to the latest nightly version and did a call to disk.get_unused for some reason in response duplicate_serial field is a list/array. Is it a bug or feature?

"duplicate_serial": ["sdc", "sda", "sdb", "sdd", "sdf"]

Bug Clerk January 6, 2022 at 6:34 PM

Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

Priority

Katalon Platform

Created January 5, 2022 at 8:33 AM
Updated July 11, 2022 at 3:50 PM
Resolved January 27, 2022 at 11:28 AM