Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE-1018] Custom Storage Group Feature (#997)
* add StorageGroup property in proto message Signed-off-by: Shi, Crane <[email protected]> * generate types.pb.go from types.proto Signed-off-by: Shi, Crane <[email protected]> * make non-lvg volume creation consistent with storage group label Signed-off-by: Shi, Crane <[email protected]> * set storageGroup to volume CR Signed-off-by: Shi, Crane <[email protected]> * support syncing storage group label to LVG CR if necessary Signed-off-by: Shi, Crane <[email protected]> * fix Signed-off-by: Shi, Crane <[email protected]> * fix UT Signed-off-by: Shi, Crane <[email protected]> * remove setting storageGroup property in volume CR eventually Signed-off-by: Shi, Crane <[email protected]> * sync driveCR's storage-group label to AC Signed-off-by: Shi, Crane <[email protected]> * fix UT Signed-off-by: Shi, Crane <[email protected]> * fix UT Signed-off-by: Shi, Crane <[email protected]> * rename and extract the storagegroup label key as constants Signed-off-by: Shi, Crane <[email protected]> * sync the storage-group label removal from drives to ACs Signed-off-by: Shi, Crane <[email protected]> * remove sync storage-group label from drive to AC in capacitycontroller Signed-off-by: Shi, Crane <[email protected]> * Revert "remove sync storage-group label from drive to AC in capacitycontroller" This reverts commit 7d57051. Signed-off-by: Shi, Crane <[email protected]> * Add StorageGroup Schema Definition and generated files Signed-off-by: Shi, Crane <[email protected]> * refine StorageGroup definition Signed-off-by: Shi, Crane <[email protected]> * Add storagegroup controller Signed-off-by: Shi, Crane <[email protected]> * Add storagegroup crd to scheme Signed-off-by: Shi, Crane <[email protected]> * handling of storagegroup creation Signed-off-by: Shi, Crane <[email protected]> * remove sync storage-group label from drive to AC in capacitycontroller Signed-off-by: Shi, Crane <[email protected]> * fix Signed-off-by: Shi, Crane <[email protected]> * add debug log Signed-off-by: Shi, Crane <[email protected]> * support storage-group deletion Signed-off-by: Shi, Crane <[email protected]> * Handle invalidField and make MatchFields ANDed Signed-off-by: Shi, Crane <[email protected]> * support NumberDrivesPerNode in DriveSelector Signed-off-by: Shi, Crane <[email protected]> * fix & add log for noDriveSelected and invalidField Signed-off-by: Shi, Crane <[email protected]> * refine log Signed-off-by: Shi, Crane <[email protected]> * fix issue in noDriveSelected and numberDrivesPerNode support Signed-off-by: Shi, Crane <[email protected]> * refine log Signed-off-by: Shi, Crane <[email protected]> * fix matchFields issue on bool type Signed-off-by: Shi, Crane <[email protected]> * fix the issue that drive with non-lvg volume may be selected Signed-off-by: Shi, Crane <[email protected]> * fix golint Signed-off-by: Shi, Crane <[email protected]> * fix golint Signed-off-by: Shi, Crane <[email protected]> * refine handleStorageGroupCreation Signed-off-by: Shi, Crane <[email protected]> * refine handleStorageGroupCreation Signed-off-by: Shi, Crane <[email protected]> * refine to fix golint error Signed-off-by: Shi, Crane <[email protected]> * fix golint Signed-off-by: Shi, Crane <[email protected]> * refine log Signed-off-by: Shi, Crane <[email protected]> * Change storagegroup print column Signed-off-by: Shi, Crane <[email protected]> * support manual storage-group labeling on drive again Signed-off-by: Shi, Crane <[email protected]> * only watch storagegroup delete event in storagegroup controller Signed-off-by: Shi, Crane <[email protected]> * Refactor func to add/rm sg label and enhance manual sg labeling Signed-off-by: Shi, Crane <[email protected]> * support to get ac for drive with lvg in drive sg label sync Signed-off-by: Shi, Crane <[email protected]> * now also include drive del event for storagegroup controller Signed-off-by: Shi, Crane <[email protected]> * fix log error Signed-off-by: Shi, Crane <[email protected]> * fix that no del event of sg is caught Signed-off-by: Shi, Crane <[email protected]> * refine log & add initial draft of func syncDriveOnAllStorageGroups Signed-off-by: Shi, Crane <[email protected]> * support simple status tracking of storagegroup Signed-off-by: Shi, Crane <[email protected]> * add support of storage group label sync on new drive creation Signed-off-by: Shi, Crane <[email protected]> * fix lint error Signed-off-by: Shi, Crane <[email protected]> * fix lint error Signed-off-by: Shi, Crane <[email protected]> * service procedure only supports storage group whose numDrivesPerNode is 0 Signed-off-by: Shi, Crane <[email protected]> * fix sg nil annotation panic error Signed-off-by: Shi, Crane <[email protected]> * service procedure support of storage group whose numDrivesPerNode>0 Signed-off-by: Shi, Crane <[email protected]> * fix go lint error Signed-off-by: Shi, Crane <[email protected]> * fix issue in reconcile of sg with numberDrivesPerNode>0 Signed-off-by: Shi, Crane <[email protected]> * refine logic for reconcile of sg with numDrivesPerNode>0 Signed-off-by: Shi, Crane <[email protected]> * sg label restore on drive selected by sg with numDrviesPerNode>0 Signed-off-by: Shi, Crane <[email protected]> * refine the logic to sync drive label on sg with numDrivesPerNode>0 Signed-off-by: Shi, Crane <[email protected]> * Revert syncing storage group label to LVG CR if necessary Signed-off-by: Shi, Crane <[email protected]> * fix error in log Signed-off-by: Shi, Crane <[email protected]> * add more log for adding sg label to drive Signed-off-by: Shi, Crane <[email protected]> * refine log Signed-off-by: Shi, Crane <[email protected]> * refine code comment and increase UT coverage Signed-off-by: Shi, Crane <[email protected]> * try increase UT coverage Signed-off-by: Shi, Crane <[email protected]> * resolve review comments Signed-off-by: Shi, Crane <[email protected]> * refine storagegroupcontroller updateEventFilter & nil labels case handle Signed-off-by: Shi, Crane <[email protected]> * try fix golint Signed-off-by: Shi, Crane <[email protected]> * try to fix golint Signed-off-by: Shi, Crane <[email protected]> * fix devkit base image tag to 15.4 to resolve devkit image build failure Signed-off-by: Shi, Crane <[email protected]> * nil map can still work for map entry read Signed-off-by: Shi, Crane <[email protected]> * refine error handling and error log Signed-off-by: Shi, Crane <[email protected]> * add comments to main function Signed-off-by: Shi, Crane <[email protected]> * refine error messages for labeling and label removal in sg handling Signed-off-by: Shi, Crane <[email protected]> * removal some deprecated bool flags Signed-off-by: Shi, Crane <[email protected]> * sync storage group label to LVG CR if necessary Signed-off-by: Shi, Crane <[email protected]> * refine sg ctrl's drive update event predicate to include drive removal Signed-off-by: Shi, Crane <[email protected]> * still only focus on drive sg label update event Signed-off-by: Shi, Crane <[email protected]> --------- Signed-off-by: Shi, Crane <[email protected]>
- Loading branch information