ownership-transfer steps
Describe each of the required steps to transfer the ownership of a node.
From RVC 3.13.0, the Cluster Wipe step removes UEFI virtual machines together with their NVRAM store, so the first Puppet run afterward provisions the KVM resources without conflicting with leftover virtual machine definitions.
Arguments
| Argument | Type | Description | Required | Default |
|---|---|---|---|---|
from | String | The current node number (padded). | Yes | - |
to | String | The new node number (padded). | Yes | - |
options | Array of strings | The options to be passed during the divestiture steps. | No | [] |
JSON-RPC Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "ownership_transfer.steps",
"params": {
"from": "0018",
"to": "0180",
"options": [
"option1",
"option2"
]
}
}
JSON-RPC Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "{\"steps\":[{\"title\":\"Node PreCheck (red0)\",\"description\":\"Verifying that the node has connectivity to the puppet server.\",\"target\":\"sit0018red0\",\"args\":[\"node_prechecks\",\"--username=unknown\"]},{\"title\":\"Node PreCheck (red1)\",\"description\":\"Verifying that the node has connectivity to the puppet server.\",\"target\":\"sit0018red1\",\"args\":[\"node_prechecks\",\"--username=unknown\"]},{\"title\":\"Puppet Server Checks\",\"description\":\"Verifying that the puppet server has the required data and files for the nodes.\",\"target\":\"sit0018red1\",\"args\":[\"puppetserver_checks\",\"--node_number=0180\",\"--environment=unknown\",\"--username=unknown\"]},{\"title\":\"Cluster Wipe (red0)\",\"description\":\"Performing cleanup steps on the node to remove all cluster resources.\",\"target\":\"sit0180red0\",\"args\":[\"cluster_wipe\",\"--node_number=0180\",\"--username=unknown\"]},{\"title\":\"Cluster Wipe (red1)\",\"description\":\"Performing cleanup steps on the node to remove all cluster resources.\",\"target\":\"sit0180red1\",\"args\":[\"cluster_wipe\",\"--node_number=0180\",\"--username=unknown\"]},{\"title\":\"Certificate Cleanup on the PuppetServer\",\"description\":\"Performing puppet certificate cleanup on the puppet server.\",\"target\":\"sit0018red1\",\"args\":[\"certificate_cleanup\",\"--node_number=0180\",\"--username=unknown\"]},{\"title\":\"Certificate Cleanup (red0)\",\"description\":\"Performing puppet certificate cleanup on the node.\",\"target\":\"sit0018red0\",\"args\":[\"certificate_cleanup\",\"--node_number=0180\",\"--username=unknown\"]},{\"title\":\"Certificate Cleanup (red1)\",\"description\":\"Performing puppet certificate cleanup on the node.\",\"target\":\"sit0018red1\",\"args\":[\"certificate_cleanup\",\"--node_number=0180\",\"--username=unknown\"]},{\"title\":\"Change Hostname (red0)\",\"description\":\"Updating the hostname on the node.\",\"target\":\"sit0018red0\",\"args\":[\"change_hostname\",\"--node_number=0180\",\"--username=unknown\"]},{\"title\":\"Change Hostname (red1)\",\"description\":\"Updating the hostname on the node.\",\"target\":\"sit0018red1\",\"args\":[\"change_hostname\",\"--node_number=0180\",\"--username=unknown\"]},{\"title\":\"Run Puppet (red0)\",\"description\":\"Running the puppet agent on the node.\",\"target\":\"sit0018red0\",\"args\":[\"run_puppet\",\"--environment=unknown\",\"--puppet-runs=3\",\"--username=unknown\"]},{\"title\":\"Enable Cluster Maintenance Mode\",\"description\":\"Enabling maintenance mode for the cluster.\",\"target\":\"sit0180red0\",\"args\":[\"set_mode\",\"maintenance_mode=true\",\"--username=unknown\"]},{\"title\":\"Run Puppet (red1)\",\"description\":\"Running the puppet agent on the node.\",\"target\":\"sit0018red1\",\"args\":[\"run_puppet\",\"--environment=unknown\",\"--puppet-runs=3\",\"--username=unknown\"]},{\"title\":\"Disable Cluster STONITH\",\"description\":\"Disabling STONITH for the cluster.\",\"target\":\"sit0180red0\",\"args\":[\"set_mode\",\"stonith=false\",\"--username=unknown\"]},{\"title\":\"Disable Cluster Maintenance Mode\",\"description\":\"Disabling maintenance mode for the cluster.\",\"target\":\"sit0180red0\",\"args\":[\"set_mode\",\"maintenance_mode=false\",\"--username=unknown\"]},{\"title\":\"Check Cluster\",\"description\":\"Verifying all cluster resources are healthy and waiting for DRBD to sync.\",\"target\":\"sit0180red0\",\"args\":[\"check_cluster\",\"--username=unknown\"]},{\"title\":\"Enable Cluster STONITH\",\"description\":\"Enabling STONITH for the cluster.\",\"target\":\"sit0180red0\",\"args\":[\"set_mode\",\"stonith=true\",\"--username=unknown\"]}]}"
}
RVC CLI Example
rvc ownership-transfer steps --from=0018 --to=0180
Response
{
"steps": [
{
"title": "Node PreCheck (red0)",
"description": "Verifying that the node has connectivity to the puppet server.",
"target": "sit0018red0",
"args": [
"node_prechecks",
"--username=unknown"
]
},
{
"title": "Node PreCheck (red1)",
"description": "Verifying that the node has connectivity to the puppet server.",
"target": "sit0018red1",
"args": [
"node_prechecks",
"--username=unknown"
]
},
{
"title": "Puppet Server Checks",
"description": "Verifying that the puppet server has the required data and files for the nodes.",
"target": "sit0018red1",
"args": [
"puppetserver_checks",
"--node_number=0180",
"--environment=unknown",
"--username=unknown"
]
},
{
"title": "Cluster Wipe (red0)",
"description": "Performing cleanup steps on the node to remove all cluster resources.",
"target": "sit0180red0",
"args": [
"cluster_wipe",
"--node_number=0180",
"--username=unknown"
]
},
{
"title": "Cluster Wipe (red1)",
"description": "Performing cleanup steps on the node to remove all cluster resources.",
"target": "sit0180red1",
"args": [
"cluster_wipe",
"--node_number=0180",
"--username=unknown"
]
},
{
"title": "Certificate Cleanup on the PuppetServer",
"description": "Performing puppet certificate cleanup on the puppet server.",
"target": "sit0018red1",
"args": [
"certificate_cleanup",
"--node_number=0180",
"--username=unknown"
]
},
{
"title": "Certificate Cleanup (red0)",
"description": "Performing puppet certificate cleanup on the node.",
"target": "sit0018red0",
"args": [
"certificate_cleanup",
"--node_number=0180",
"--username=unknown"
]
},
{
"title": "Certificate Cleanup (red1)",
"description": "Performing puppet certificate cleanup on the node.",
"target": "sit0018red1",
"args": [
"certificate_cleanup",
"--node_number=0180",
"--username=unknown"
]
},
{
"title": "Change Hostname (red0)",
"description": "Updating the hostname on the node.",
"target": "sit0018red0",
"args": [
"change_hostname",
"--node_number=0180",
"--username=unknown"
]
},
{
"title": "Change Hostname (red1)",
"description": "Updating the hostname on the node.",
"target": "sit0018red1",
"args": [
"change_hostname",
"--node_number=0180",
"--username=unknown"
]
},
{
"title": "Run Puppet (red0)",
"description": "Running the puppet agent on the node.",
"target": "sit0018red0",
"args": [
"run_puppet",
"--environment=unknown",
"--puppet-runs=3",
"--username=unknown"
]
},
{
"title": "Enable Cluster Maintenance Mode",
"description": "Enabling maintenance mode for the cluster.",
"target": "sit0180red0",
"args": [
"set_mode",
"maintenance_mode=true",
"--username=unknown"
]
},
{
"title": "Run Puppet (red1)",
"description": "Running the puppet agent on the node.",
"target": "sit0018red1",
"args": [
"run_puppet",
"--environment=unknown",
"--puppet-runs=3",
"--username=unknown"
]
},
{
"title": "Disable Cluster STONITH",
"description": "Disabling STONITH for the cluster.",
"target": "sit0180red0",
"args": [
"set_mode",
"stonith=false",
"--username=unknown"
]
},
{
"title": "Disable Cluster Maintenance Mode",
"description": "Disabling maintenance mode for the cluster.",
"target": "sit0180red0",
"args": [
"set_mode",
"maintenance_mode=false",
"--username=unknown"
]
},
{
"title": "Check Cluster",
"description": "Verifying all cluster resources are healthy and waiting for DRBD to sync.",
"target": "sit0180red0",
"args": [
"check_cluster",
"--username=unknown"
]
},
{
"title": "Enable Cluster STONITH",
"description": "Enabling STONITH for the cluster.",
"target": "sit0180red0",
"args": [
"set_mode",
"stonith=true",
"--username=unknown"
]
}
]
}