Skip to content

Commit

Permalink
CASMCMS-9141: Update multitenancy docs to use BOS CLI shortcuts (#5383)
Browse files Browse the repository at this point in the history
* CASMCMS-9141: Update multitenancy docs to use BOS CLI shortcuts

* Apply suggestions from code review

Signed-off-by: Russell Bunch <doomslayer@hpe.com>

* Apply suggestions from code review

Signed-off-by: Mitch Harding <mitchell.harding@hpe.com>

---------

Signed-off-by: Russell Bunch <doomslayer@hpe.com>
Signed-off-by: Mitch Harding <mitchell.harding@hpe.com>
Co-authored-by: Russell Bunch <doomslayer@hpe.com>
  • Loading branch information
mharding-hpe and rustydb authored Sep 26, 2024
1 parent 2872063 commit b5a0d4a
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions operations/multi-tenancy/Modify_a_Tenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,19 +202,30 @@ See [Configure the Cray CLI](../configure_cray_cli.md).

1. (`ncn-mw#`) Clear the desired state.

> Repeat this step for each component that moving from one tenant to another.
- For a single component changing tenants, use the following command:

```bash
cray bos v2 components update <xname> --enabled true --staged-state-session "" --staged-state-configuration "" \
--staged-state-boot-artifacts-initrd "" --staged-state-boot-artifacts-kernel-parameters "" --staged-state-boot-artifacts-kernel "" \
--desired-state-bss-token "" --desired-state-configuration "" --desired-state-boot-artifacts-initrd "" \
--desired-state-boot-artifacts-kernel-parameters "" --desired-state-boot-artifacts-kernel ""
```
```bash
cray bos v2 components update --enabled true --clear-pending-state <xname>
```

1. (`ncn-mw#`) Wait until the component reaches a `stable` state.
- For multiple components changing tenants, use the following command:

Because the previous step cleared the desired state, the `stable` state indicates that the component is powered off.
```bash
cray bos v2 components updatemany --enabled true --clear-pending-state --filter-ids <xname1>,<xname2>,...
```

```bash
cray bos v2 components describe <xname> --format json | jq .status.status
```
1. (`ncn-mw#`) Wait until the components reach a `stable` state.

Because the previous step cleared the desired state, the `stable` state indicates that the components are powered off.

- For checking a single component, use the following command:

```bash
cray bos v2 components describe <xname> --format json | jq .status.status
```

- For checking multiple components, use the following command:

```bash
cray bos v2 components list --ids <xname1>,<xname2>,... --format json | jq '.[] | .status.status'
```

0 comments on commit b5a0d4a

Please sign in to comment.