Support Linstor Primary Storage for NAS BnR#12796
Support Linstor Primary Storage for NAS BnR#12796abh1sar wants to merge 1 commit intoapache:4.22from
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## 4.22 #12796 +/- ##
=============================================
- Coverage 17.60% 3.70% -13.91%
=============================================
Files 5917 448 -5469
Lines 531394 38019 -493375
Branches 64970 7035 -57935
=============================================
- Hits 93575 1409 -92166
+ Misses 427269 36423 -390846
+ Partials 10550 187 -10363
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| volumePathPrefix = storagePool.getPath(); | ||
| volumePathPrefix = storagePool.getPath() + "/"; | ||
| } else if (Storage.StoragePoolType.Linstor.equals(storagePool.getPoolType())) { | ||
| volumePathPrefix = "/dev/drbd/by-res/cs-"; |
There was a problem hiding this comment.
can keep this path in LinstorUtil, and use it here
There was a problem hiding this comment.
Can't access LinstorUtil from here.
|
Hi @rp- Can you perform some tests with this PR changes and confirm? |
| if (Storage.StoragePoolType.Linstor.equals(volumePool.getPoolType())) { | ||
| storagePoolMgr.connectPhysicalDisk(volumePool.getPoolType(), volumePool.getUuid(), volumeUuid, null); | ||
| } else { | ||
| disk = volumeStoragePool.getPhysicalDisk(getVolumeUuidFromPath(volumePath, volumePool)); |
There was a problem hiding this comment.
@sureshanaparti can you please review from RBD's regression perspective?
volumeStoragePool.getPhysicalDisk takes UUID as an argument. previously it was passing path
Description
This PR fixes #12218
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Validated Data after Restore.
How did you try to break this feature and the system with this change?