add force to target creation to allow multiple non-unique usernames

This commit is contained in:
Michel Peterson 2025-05-01 10:09:02 +00:00
parent 5868b224bd
commit 853bf29167
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ create /backstores/block/${assetName}
let extraTerms = ['group', `${pcs_group}`, '--wait']; // The wait is important to avoid race conditions let extraTerms = ['group', `${pcs_group}`, '--wait']; // The wait is important to avoid race conditions
let createTargetTerms = [ let createTargetTerms = [
'resource', 'create', '--future', `target-${assetName}`, 'ocf:heartbeat:iSCSITarget', 'resource', 'create', '--future', '--force', `target-${assetName}`, 'ocf:heartbeat:iSCSITarget',
'implementation="lio-t"', 'portals=":::3260"', `iqn="${basename}:${assetName}"` 'implementation="lio-t"', 'portals=":::3260"', `iqn="${basename}:${assetName}"`
]; ];