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 126ab5356c
commit ff206518ed
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ create /backstores/block/${assetName}
let extraTerms = ['group', `${pcs_group}`, '--wait']; // The wait is important to avoid race conditions
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}"`
];