rvtconfig
tool- Common arguments
rvtconfig
limitations- Verifying and uploading configuration
- Comparing existing configuration in the CDS with
compare-config
- Deleting configuration from the CDS with
delete-deployment
- Deleting state and configuration for a specific node type and version from the CDS with
delete-node-type-version
- Deleting all state and configuration for a specific node type from the CDS with
delete-node-type-all-versions
- Deleting historical state and configuration for a given node type from the CDS with
delete-node-type-retain-version
- Removing unused Rhino-generated keyspaces
- Listing configurations available in the CDS with
list-config
- Retrieving configuration from the CDS with
dump-config
- Displaying the current leader seed with
print-leader-seed
- Generating a
secrets-private-key
for Encrypting Secrets withgenerate-private-key
- Maintenance window support
- Calculating the required length of a maintenance window with
calculate-maintenance-window
- Retrieving VM logs with
export-log-history
- Viewing the values associated with the special
sdf-version
,this-vm
, andthis-rvtconfig
versions withdescribe-versions
- Reporting group status, to help guide VM recovery
- Gathering diagnostics and
initconf
log files - Operate the TSN Cassandra Database
- CDS Backup and Restore operations.
- Control
initconf
configuration loop in non-TSN nodes. - Rotate CDS Password
rvtconfig
tool
Configuration YAML files can be validated and uploaded to the CDS using the rvtconfig
tool.
The rvtconfig
tool can be run either on the SIMPL VM or any Rhino VoLTE TAS VM.
On the SIMPL VM, you can find the command in the resources
subdirectory of any
Rhino VoLTE TAS (tsn
, mag
, shcm
, mmt-cdma
, or smo
) CSAR, after it has been extracted using csar unpack
.
/home/admin/.local/share/csar/<csar name>/<version>/resources/rvtconfig
On any Rhino VoLTE TAS VM, the rvtconfig
tool is in the PATH
for the sentinel
user and can be run directly by running:
rvtconfig <command>
The available rvtconfig
commands are:
-
rvtconfig validate
validates the configuration, even before booting any VMs by using the SIMPL VM. -
rvtconfig upload-config
validates, encrypts, and uploads the configuration to the CDS. -
rvtconfig delete-deployment
deletes a deployment from the CDS.Only use this when advised to do so by a Customer Care Representative. -
rvtconfig delete-node-type-version
deletes state and configuration for a specified version of a given node type from the CDS.This should only be used when there are no VMs of that version deployed. -
rvtconfig delete-node-type-all-versions
deletes state and configuration for all versions of a given node type from the CDS.Only use this after deleting all VMs for a given node type. -
rvtconfig delete-node-type-retain-version
deletes state and configuration for a given node type from the CDS, except for the specified version. -
rvtconfig list-config
displays a summary of the configurations stored in the CDS. -
rvtconfig dump-config
dumps the current configuration from the CDS. -
rvtconfig print-leader-seed
prints the current leader seed as stored in the CDS. -
rvtconfig generate-private-key
generates a new private key for use in the SDF. -
rvtconfig enter-maintenance-window
disables VMs' scheduled tasks for a period of time. -
rvtconfig leave-maintenance-window
re-enables VMs' scheduled tasks. -
rvtconfig calculate-maintenance-window
calculates the required length of a maintenance window for rolling upgrades. -
rvtconfig maintenance-window-status
displays a message indicating whether there is an maintenance window period reserved or not. -
rvtconfig export-log-history
exports the quiesce log history from the CDS. -
rvtconfig initconf-log
retrievesinitconf.log
file from the specified remote RVT node. -
rvtconfig describe-versions
prints the current values of the versions of the VM found in the config and in the SDF. -
rvtconfig compare-config
compares currently uploaded config with a given set of configuration. -
rvtconfig backup-cds
creates a backup of the CDS database intar
format and retrieves it. -
rvtconfig restore-cds
uses CDS database backup taken withbackup-cds
to restore the CDS database to a previous state. -
rvtconfig set-desired-running-state
setsDesiredRunningState
to stopped/started in MDM.-
If
--state Started
or no--state
is specified, all initconf processes of non-TSN VMs will pause their configuration loops. -
If
--state Stopped
is specified, all initconf processes of non-TSN VMs will resume their configuration loops.
-
-
rvtconfig cassandra-status
prints the cassandra database status of all the specified CDS IP addresses. -
rvtconfig add-cds-user
adds a new user to the CDS with the specified password -
rvtconfig remove-cds-user
removes a existing user from the CDS -
rvtconfig rotate-cds-password
rotates the configured CDS password for the specified VM.
Common arguments
Commands that read or modify CDS state take a --cds-address
parameter
(which is also aliased as --cds-addresses
, --cassandra-contact-point
, --cassandra-contact-points
, or simply -c
).
For this parameter, specify the management address(es) of at least one TSN node.
Separate multiple addresses with a space, for example --cds-address 1.2.3.4 1.2.3.5
.
The upload-config
and export-audit-history
commands read
secrets
from QSG.
If you have not yet uploaded secrets to QSG, you can specify a --secrets-file <file>
argument,
passing in the path to your secrets file (the YAML file which you pass to csar secrets add
).
QSG is only available on the SIMPL VM;
if running rvtconfig
on a platform other than the SIMPL VM, for example on the VM itself,
then you must pass the --secrets-file
argument.
Commands that read or modify CDS state may also require additional parameters
if the CDS endpoints are configured to use authentication as per
Cassandra security configuration.
If the CDS endpoints are configured to use authentication,
you must pass the --cds-username
argument with your configured password
and either the --cds-password
or --cds-password-secret-name
argument
with the configured password or its ID in the secrets file.
The various delete-node-type
commands, and the report-group-status
command,
require an SSH private key to access the VMs.
You can specify this key as either a path to the private key file with the --ssh-key
argument,
or as a secret ID with the --ssh-key-secret-id
argument.
If you are running rvtconfig
on the SIMPL VM, the recommended approach is to use the secret ID
of the SIMPL VM-specific private key that you specified in the SDF
(see
SIMPL VM SSH private key
).
Otherwise, use the SSH private key file itself
(copying it to the machine on which you are running rvtconfig
, and deleting it once you have finished, if necessary).
For more information, run rvtconfig --help
.
You can also view help about a particular command using, for example, rvtconfig upload-config --help
.
rvtconfig
limitations
The following limitations apply when running rvtconfig
on the SIMPL VM:
-
All files and directories mentioned in parameter values and the secrets file must reside within the root (
/
) filesystem of the SIMPL VM. A good way to ensure this is the case is to store files only in directories under/home/admin
. -
rvtconfig
assumes files specified without paths are located in the current directory. If multiple directories are involved, it is recommended to use absolute paths everywhere. (Relative paths can be used, but may not use..
to navigate out of the current directory.)
Verifying and uploading configuration
-
Create a directory to hold the configuration YAML files.
mkdir yamls
-
Ensure the directory contains the following:
-
configuration YAML files
-
the Solution Definition File (SDF)
-
Rhino license for nodes running Rhino.
-
Do not create any subdirectories. Ensure the file names match the example YAML files. |
Verifying configuration with validate
To validate configuration, run the command:
rvtconfig validate -t <node type> -i ~/yamls
where <node type>
is the node type you want to verify, which can be tsn
, mag
, shcm
, mmt-cdma
, or smo
.
If there are any errors, fix them, move the fixed files to the yamls
directory, and then
re-run the above rvtconfig validate
command on the yamls
directory.
Once the files pass validation, store the YAML files in the CDS using the rvtconfig upload-config
command.
If using the SIMPL VM, the |
Uploading configuration to the CDS with upload-config
To upload the YAML files to the CDS, run the command:
rvtconfig upload-config [--secrets-file <file>] -c <tsn-mgmt-addresses> -t <node type> -i ~/yamls
[(--vm-version-source [this-vm | this-rvtconfig | sdf-version] | --vm-version <vm_version>)] [--reload-resource-adaptors]
The |
If you would like to specify a version, you can use:
-
--vm-version
to specify the exact version of the VM to target (as configuration can differ across a VM upgrade). -
--vm-version-source
to automatically derive the VM version from the given source. Failure to determine the version will result in an error.-
Use
this-rvtconfig
when running thervtconfig
tool included in the CSAR for the target VM, to extract the version information packaged intorvtconfig
. -
Use
this-vm
if running thervtconfig
tool directly on the VM being configured, to extract the version information from the VM. -
Option
sdf-version
extracts the version value written in the SDF for the given node.
-
If --vm-version
and --vm-version-source
are omitted, then the version in the SDF will be compared to the
this-rvtconfig
or this-vm
version (whichever is appropriate given how the rvtconfig
command is run).
If they match, this value will be used. Otherwise, the command will fail.
Whatever way you enter the version, the value obtained must match the version in the SDF. Otherwise, the upload will fail. |
Any YAML configuration values which are specified as secrets are marked as such in the
YAML files' comments. These values will be encrypted using the generated private-key created by
rvtconfig generate-private-key
and prior to uploading the SDF. In other words, the secrets should be
entered in plain text in the SDF, and the upload-config
command takes care of encrypting them.
Currently this applies to the following:
-
Rhino users' passwords
-
REM users' passwords
-
SSH keys for accessing the VM
-
the SNMPv3 authentication key and privacy key
-
the HTTPS keys and certificates for REM, BSF and XCAP.
Use the |
If the CDS is not yet available, this will retry every 30 seconds for up to 15 minutes. As a large Cassandra cluster can take up to one hour to form, this means the command could time out if run while TSN nodes are still booting.
This command first compares the configuration files currently uploaded for the target version with those in the input directory. It summarizes which files are different, how many lines differ, and if there are any configuration changes that are unsupported (for example, changing the VMs' IP addresses). If there are any unsupported configuration changes, the config will not be uploaded. Follow the instructions in the error message(s) to revert unsupported changes in the configuration, then try again.
If the changes are valid, but any files are different,
rvtconfig
will prompt the user to confirm the differences are as expected before continuing with the upload.
If the upload is canceled, and --output-dir
is specified,
then full details of any files with differences will be put into the given output directory,
which rvtconfig
creates if it doesn’t already exist.
Changes to secrets and non-YAML files cannot be detected due to encryption; they will not appear in the summary or detailed output. Any such changes will still be uploaded.
You can disable this pre-upload check on config differences using the --skip-diff
flag (also aliased as -f
).
Restarting resource adaptors
Specify the These fields are marked as such in the Rhino VoLTE TAS Configuration and Management Guide. The If you apply configuration changes
that don’t include changes to any fields marked as needing an RA restart,
then you do not need to specify the If you apply configuration changes that include changes to such fields,
and do not specify the |
Comparing existing configuration in the CDS with compare-config
Compare the configuration in an input directory with the currently uploaded configuration in the CDS using the command:
rvtconfig compare-config -c <cds-mgmt-addresses> -t <node type> -i ~/yamls --output-dir <output-directory>
[--deployment-id <deployment ID>] [--site-id <site ID>] [(--vm-version-source [this-vm | this-rvtconfig | sdf-version] | --vm-version <vm_version>)]
This will compare the currently uploaded configuration in the CDS with the configuration in the local input directory.
The deployment ID, site ID, and version of configuration to look up in CDS will be automatically taken from the SDF.
These can be overridden by using the --deployment-id
, --site-id
, and one of the --vm-version-source
or --vm-version
parameters respectively.
For example, you can specify --vm-version <downlevel version>
to check what has changed just before running an upgrade,
where the version in the input SDF will be the uplevel version.
The files that have differences will be displayed, along with the number of different lines,
and any errors or warnings about the changes themselves.
Any errors will need to be corrected before you can run rvtconfig upload-config
.
The command puts the full contents of each version of these files into the output directory,
along with separate files showing the differences found.
The command ignores non-YAML files and any secrets in YAML files.
The files in this output directory use the suffix .local
for a redacted version of the input file,
.live
for a redacted version of the live file, and .diff
for a file showing the differences between the two.
The contents of the files in the output directory are reordered and no longer have comments; these won’t match the formatting of the original input files, but contain the same information. |
Deleting configuration from the CDS with delete-deployment
Delete all deployment configuration from the CDS by running the command:
rvtconfig delete-deployment -c <tsn-mgmt-addresses> -d <deployment-id> [--delete-audit-history]
Only use this when advised to do so by a Customer Care Representative. |
Only use this after deleting all VMs of the deployment within the specified site. Functionality of all nodes of this type and version within the given site will be lost. These nodes will have to be deployed again to restore functionality. |
Deleting state and configuration for a specific node type and version from the CDS with delete-node-type-version
Delete all state and configuration for a given node type and version from the CDS by running the command:
rvtconfig delete-node-type-version -c <tsn-mgmt-addresses> -d <deployment-id> --site-id <site-id> --node-type <node type>
(--vm-version-source [this-vm | this-rvtconfig | sdf-version -i ~/yamls] | --vm-version <vm_version>) (--ssh-key SSH_KEY | --ssh-key-secret-id SSH_KEY_SECRET_ID) [-y]
The argument -i ~/yamls is only needed if sdf-version is used.
|
Only use this after deleting all VMs of this node type and version within the specified site. Functionality of all nodes of this type and version within the given site will be lost. These nodes will have to be deployed again to restore functionality. |
Deleting all state and configuration for a specific node type from the CDS with delete-node-type-all-versions
Delete all state and configuration for a given node type from the CDS by running the command:
rvtconfig delete-node-type-all-versions -c <tsn-mgmt-addresses> -d <deployment-id> --site-id <site-id>
--node-type <node type> (--ssh-key SSH_KEY | --ssh-key-secret-id SSH_KEY_SECRET_ID) [--delete-certificates] [-y]
Only use this after deleting all VMs of this node type within the specified site. Functionality of all nodes of this type within the given site will be lost. These nodes will have to be deployed again to restore functionality. |
The --delete-certificates option should only be used when advised by a Customer Care Representative.
|
Deleting historical state and configuration for a given node type from the CDS with delete-node-type-retain-version
Remove all state and configuration relating to a versions of the node type other than the specified version from CDS by running the command:
rvtconfig delete-node-type-retain-version -c <tsn-mgmt-addresses> -d <deployment-id> --site-id <site-id> --node-type <node-type>
(--vm-version-source [this-vm | this-rvtconfig | sdf-version -i ~/yamls] | --vm-version <vm_version>) (--ssh-key SSH_KEY | --ssh-key-secret-id SSH_KEY_SECRET_ID) [-y]
The argument -i ~/yamls is only needed if sdf-version is used.
|
The version specified in this command must be the only running VM version for this node type. i.e. do not use during an upgrade or rollback when multiple versions of the same node type may be running. All state and configuration relating to other versions will be deleted from CDS. |
Removing unused Rhino-generated keyspaces
Following an upgrade or rollback, you may wish to clean up keyspaces in the Cassandra ramdisk database from version(s) that are no longer in use. This conserves memory and disk space.
To clean up unused keyspaces, use the following command:
rvtconfig remove-unused-keyspaces -c <tsn-mgmt-addresses> -d <deployment-id> -g <group-id> [-y]
Group ID syntax: RVT-<node type>.<site ID> Example: RVT-tsn.DC1 Here, <node type> can be tsn , mag , shcm , mmt-cdma , or smo .
|
Confirm that the active VM versions that the command identifies are correct.
rvtconfig
removes keyspaces relating to all other versions from Cassandra.
Listing configurations available in the CDS with list-config
List all currently available configurations in the CDS by running the command:
rvtconfig list-config -c <tsn-mgmt-addresses> -d <deployment-id>
This command will print a short summary of the configurations uploaded, the VM version they are uploaded for, and which VMs are commissioned in that version.
Retrieving configuration from the CDS with dump-config
Retrieve the VM group configuration from the CDS by running the command:
rvtconfig dump-config -c <tsn-mgmt-addresses> -d <deployment-id> --group-id <group-id>
(--vm-version-source [this-vm | this-rvtconfig | sdf-version -i ~/yamls -t <node type>] | --vm-version <vm_version> | -i ~/yamls -t <node type>)
[--output-dir <output-dir>]
Group ID syntax: RVT-<node type>.<site ID> Example: RVT-tsn.DC1 Here, <node type> can be tsn , mag , shcm , mmt-cdma , or smo .
|
If the optional --output-dir <directory>
argument is specified,
then the configuration will be dumped as individual files in the given directory.
The directory can be expressed as either an absolute or relative path.
It will be created if it doesn’t exist.
If the --output-dir
argument is omitted, then the configuration is printed to the terminal.
If the version is not specified, then the version in the SDF will be compared to the
this-rvtconfig
or this-vm
version (whichever is appropriate given how the rvtconfig
command is run).
If they match, this value will be used. Otherwise, the command will fail.
The arguments -i ~/yamls and -t <node type> are only needed if sdf-version is used or
--vm-version and --vm-version-source are both omitted.
|
Displaying the current leader seed with print-leader-seed
Display the current leader seed by running the command:
rvtconfig print-leader-seed -c <tsn-mgmt-addresses> -d <deployment-id> --group-id <group-id>
(--vm-version-source [this-vm | this-rvtconfig | sdf-version -i ~/yamls -t <node type>] | --vm-version <vm_version> | -i ~/yamls -t <node type>)
Group ID syntax: RVT-<node type>.<site ID> Example: RVT-tsn.DC1 Here, <node type> can be tsn , mag , shcm , mmt-cdma , or smo .
|
The command will display the current leader seed for the specified deployment, group, and VM version.
If the version is not specified, then the version in the SDF will be compared to the
this-rvtconfig
or this-vm
version (whichever is appropriate given how the rvtconfig
command is run).
If they match, this value will be used. Otherwise, the command will fail.
A leader seed may not always exist, in which case the output will include No leader seed found
.
Conditions where a leader seed may not exist include:
-
No deployment exists with the specified deployment, group, and VM version.
-
A deployment exists, but initconf has not yet initialized.
-
A deployment exists, but the previous leader seed has quiesced and a new leader seed has not yet been selected.
The arguments -i ~/yamls and -t <node type> are only needed if sdf-version is used or
--vm-version and --vm-version-source are both omitted.
|
Generating a secrets-private-key
for Encrypting Secrets with generate-private-key
Some configuration, for example Rhino or REM users' passwords, are configured in plaintext,
but stored encrypted in CDS for security.
rvtconfig
automatically performs this encryption using a secrets private key
which you configure in the SDF. This key must be a Fernet key, in Base64 format.
Use the following rvtconfig
command to generate a suitable secrets private key:
rvtconfig generate-private-key
Add the generated secrets private key to your secrets input file when adding secrets to QSG.
Maintenance window support
The rvtconfig enter-maintenance-window
and rvtconfig leave-maintenance-window
commands
allow you to pause and resume
scheduled tasks
(Rhino restarts, SBB/activity cleanup, and Cassandra repair)
on the VMs for a period of time.
This is useful to avoid the scheduled tasks interfering with maintenance window activities,
such as patching a VM or making substantial configuration changes.
To start a maintenance window, use
rvtconfig enter-maintenance-window -c <tsn-mgmt-addresses> -d <deployment-id> -S <site-id> [--hours <hours>]
-
The <site-id> is in the form
DC1
toDC32
. It can be found in the SDF. -
The number of hours defaults to 6 if not specified, and must be between 1 and 24 hours.
Once started, the maintenance window can be extended by running the same command again
(but not shortened).
rvtconfig
will display the end time of the maintenance window in the command output.
Until this time, all scheduled tasks on all VMs in the specified site will not be run.
Any scheduled tasks which are in progress at the time the maintenance window is started
will continue until they are finished.
If the maintenance window is starting around the time of a scheduled task as configured in the YAML files,
it is advisable to manually check that the task is complete before starting maintenance
(or run the |
When the maintenance window is complete, use the following command:
rvtconfig leave-maintenance-window -c <tsn-mgmt-addresses> -d <deployment-id> -S <site-id>
Scheduled tasks will now resume as per their configured schedules.
To check whether or not a maintenance window is currently active, use the following command:
rvtconfig maintenance-window-status -c <tsn-mgmt-addresses> -d <deployment-id> -S <site-id>
Calculating the required length of a maintenance window with calculate-maintenance-window
The rvtconfig calculate-maintenance-window
commands allows you to estimate
how long an upgrade or rollback is expected to take, so that an adequate maintenance window
can be scheduled.
To calculate the recommended maintenance window duration, use
rvtconfig calculate-maintenance-window -i ~/yamls -t <node type> -s <site-id> [--index-range <index range>]
-
The <site-id> is in the form
DC1
toDC32
. It can be found in the SDF. -
If
--index-range
is not specified, a maintenance window for upgrading all VMs will be calculated. If only some VMs are to be upgraded, specify the--index-range
argument exactly as it will be specified for thecsar update
command to be used to upgrade the subset of VMs. For example, if only nodes with indices 0, 3, 4 and 5 are to be upgraded, the argument is--index-range 0,3-5
.
Retrieving VM logs with export-log-history
During upgrade, when a downlevel VM is removed, it uploads Initconf, Rhino and SGC logs to the CDS. The log files are stored as encrypted data in the CDS. They are automatically removed from the CDS after 28 days.
Only the portions of the logs written during quiesce are stored. |
Retrieve the VM logs for a deployment from the CDS by running the command:
rvtconfig export-log-history -c <tsn-mgmt-addresses> -d <deployment-id> --zip-destination-dir <directory>
--secrets-private-key-id <secrets-private-key-id>
The --secrets-private-key-id must match the ID used in the SDF (secrets-private-key-id ).
|
The Initconf, Rhino and SGC logs are exported in unencrypted zip files. The zip file names will consist of VM hostname, version, and type of log. |
Viewing the values associated with the special sdf-version
, this-vm
, and this-rvtconfig
versions with describe-versions
Some commands, upload-config
for example, can be used with the special version values sdf-version
, this-vm
, and this-rvtconfig
.
-
Calling
sdf-version
extracts the version from the value given in the SDF for a given node. -
The
this-vm
option takes the version of the VM the command is being run from. This can only be used when the commands are run on a node VM. -
Using
this-rvtconfig
extracts the version from the rvtconfig found in the directory the command is being run from. This can only be used on a SIMPL VM.
To view the real version strings associated with each of these special values:
rvtconfig describe-versions [-i ~/yamls]
Optional argument -i ~/yamls
is required for the sdf-version
value to be given. If it is called, the sdf-version
will be found for each node type in the SDF. If a node type is expected but not printed this may be because the config yaml files for that node are invalid or not present in the ~/yamls
directory.
If a special version value cannot be found, for example if this-vm
is run on a SIMPL VM or the optional argument is not called, the describe-versions
command will print N/A
for that special version.
Reporting group status, to help guide VM recovery
This command reports the status of each node in the given group, providing information to help inform which approach to take when recovering VMs.
It connects to each of the VMs in the group via SSH, as well as querying the CDS service. It then prints a detailed summary of status information for each VM, as well as a high level summary of the status of the group.
It does not log its output to a file. When using this command to aid in recovery operations, it’s good practice to redirect its output to a file locally on disk, which can then be used as part of any root cause analysis efforts afterwards.
On the SIMPL VM, run the command as follows, under the resources dir of the unpacked CSAR:
./rvtconfig report-group-status -c <cds-mgmt-addresses> -d <deployment-id> \
--g <group-id> --ssh-key-secret-id <simpl-private-key-id>
Group ID syntax: RVT-<node type>.<site ID> Example: RVT-tsn.DC1 Here, <node type> can be tsn , mag , shcm , mmt-cdma , or smo .
|
Gathering diagnostics and initconf
log files
It is possible to obtain diagnostic files from RVT nodes with the command rvtconfig gather-diags
.
These diagnostic files include system files and solution configuration files, are packaged as a tar.gz
file
and deposited in the given output directory.
Depending on the node type there will be different kinds of solution configuration files. These files can
be crucial to troubleshoot problems on the VMs.
./rvtconfig gather-diags --sdf <SDF File> -t <node type> --ssh-key-secret-id <SSH key secret ID> --ssh-username sentinel --output-dir <output-directory>
If you need to quickly check the initconf.log
file from a certain VM or VMs, it is possible to do it with the command rvtconfig initconf-log
.
This command executes a tail on the initconf.log
file of the specified VM or VMs and dumps it to the standard output.
rvtconfig initconf-log --ssh-key-secret-id <SSH key secret ID> --ssh-username sentinel --ip-addresses <Space separated VM IP address list> --tail <num lines>
Operate the TSN Cassandra Database
The command rvtconfig cassandra-status
prints the cassandra database status for the specified CDS IP addresses.
Here is a example:
-
./rvtconfig cassandra-status --ssh-key-secret-id <SSH key secret ID> --ip-addresses <TSN Address 1> <TSN Address 2> …
CDS Backup and Restore operations.
From RVT 4.1-3-1.0.0, the TSNs' CDS database can be backed up and restored. This provides a faster recovery procedure in case TSN upgrades go wrong.
To backup the CDS of a running TSN cluster, run ./rvtconfig backup-cds --sdf /home/admin/uplevel-config/sdf-rvt.yaml --site-id <site ID>
--output-dir <backup-cds-bundle-dir> --ssh-key-secret-id <SSH key secret ID> -c <CDS address> <CDS auth args>
To restore the CDS of a running TSN cluster, run ./rvtconfig restore-cds --sdf /home/admin/uplevel-config/sdf-rvt.yaml --site-id <site ID>
--snapshot-file <backup-cds-bundle-dir>/tsn_cassandra_backup.tar --ssh-key-secret-id <SSH key secret ID> -c <CDS Address> <CDS auth args>
Only use restore-cds when advised to do so by a Customer Care Representative.
|
Control initconf
configuration loop in non-TSN nodes.
During maintenance windows which involve upgrading TSN nodes, the command rvtconfig set-desired-running-state
allows you stop/start
the configuration tasks performed by the initconf
that read from the CDS database in all non-TSN VMs. This operation does not
stop the non-TSN VMs or the initconf
process within it. But it instructs the initconf
to pause or resume, the configuration tasks,
while operating normally under traffic.
To pause initconf
configuration tasks of all non-TSN VMs, run ./rvtconfig set-desired-running-state --sdf /home/admin/uplevel-config/sdf-rvt.yaml
--site-id <site ID> --state Stopped
.
To resume initconf
configuration tasks of all non-TSN VMs, run ./rvtconfig set-desired-running-state --sdf /home/admin/uplevel-config/sdf-rvt.yaml
--site-id <site ID> --state Started
.
Rotate CDS Password
The following rvtconfig
commands provide support for the CDS password rotation MOP. At a highlevel
the CDS password rotation MOP consists of the following steps:
-
Add a new CDS user: To add a new CDS user to the TSN Cassandra Database, run
./rvtconfig add-cds-user --sdf /home/admin/uplevel-config/sdf-rvt.yaml --site-id <site ID> -c <CDS Address> <CDS auth args> --new-cds-username <username> --new-cds-password <password>
-
Update CDS user in all VMs, being the TSN the last. To rotate the CDS for a specific VM Type, run
./rvtconfig rotate-cds-password --sdf /home/admin/uplevel-config/sdf-rvt.yaml --site-id <site ID> --node-type <node-type> --new-cds-username <username> --new-cds-password <password>
-
Remove the old CDS user. To remove a new CDS user to the TSN Cassandra Database, run
./rvtconfig remove-cds-user --sdf /home/admin/uplevel-config/sdf-rvt.yaml --site-id <site ID> -c <CDS Address> <CDS auth args> --old-cds-username <username>