We no longer require the group when applying an nvmeof spec
but we still want to allow the commands to take a group
parameter (and this will at least make a group name
required when creating a new service on the command line)
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit
b377085c3020484c74a7a71357c35761b5e5de25)
@_cli_write_command('orch apply nvmeof')
def _apply_nvmeof(self,
pool: str,
+ group: str,
placement: Optional[str] = None,
unmanaged: bool = False,
dry_run: bool = False,
raise OrchestratorValidationError('unrecognized command -i; -h or --help for usage')
spec = NvmeofServiceSpec(
- service_id=pool,
+ service_id=f'{pool}.{group}',
pool=pool,
+ group=group,
placement=PlacementSpec.from_string(placement),
unmanaged=unmanaged,
preview_only=dry_run