> Documentation index for agents: /hcp/3.3/en/llms.txt

# Move to 3.2 from the earlier Center: steps

This page is for moving from the earlier Center: the management VM has the `vStack-control-pane` package. Before you begin, read the [Overview](/hcp/3.3/en/upgrade/from-earlier/control-pane/overview/index.md): it has the start condition, the work plan and what cannot be undone. Error codes, failures and rollback are in the [Reference](/hcp/3.3/en/upgrade/from-earlier/control-pane/reference/index.md).

## Before you begin

- You have key-based SSH access with `root` privileges to all nodes and to the management VM — the VM that runs Center.
- You have the BMC console of each node and a console of the management VM that bypasses Center: on the node that runs its pool — `cu -l /dev/nmdm0B`.
- The workstation has `sh`, `ssh`, `curl`, `jq` and a PostgreSQL 14 or later client (`pg_restore`, step 11). Without the client, you check the dump on the management VM — also in step 11.

## How to read the steps

How to read the steps and what "stop" means — [Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6, "How to read the steps"](/hcp/3.3/en/upgrade/from-earlier/node/index.md#how-to-read). Run the workstation commands from the directory where you unpacked the script kit (step 2). Step 2 sets the `VAPI_URL`, `VAPI_CRED`, `NODES` and `KEY` variables; in a new terminal, set them again, from the same directory.

| Notation | What it is |
| - | - |
| `<node>` | the management address of the node that you use to connect over SSH |
| `<N>` | the node number in the cluster — `Node ID` in the `ccrd_cli` output |
| `<zNN>` | a storage pool, for example `z01`; the pools of a node — `zpool list` on it |
| `<MGMT>` | the external address of the management VM; the Center web interface opens at this address |
| `<OWN>` | the node that currently runs the pool with the management VM: on it, `zfs list \| grep '/.vm_V4/000000000$'` outputs something |
| `<neighbor id>`, `<neighbor N>` | the node that takes the pools of the node being upgraded for the duration of the work: its number in Center and its number in the cluster — step 9 |
| `<fabric>`, `<tag>` | the first three octets of the Internal Fabric subnet (for example, `192.0.2`) and the number of its VLAN — step 4 |
| `<fabric_if>`, `<buffers>` | the Internal Fabric interface on the nodes and the memory for SPDK in gigabytes — step 7 |

**Router** — a service VM on the vStack Edge image that routes the networks of a virtual data center (VDC) — [Routers](/hcp/3.3/en/edges/index.md).

## Preparation — 1–3 days before window A, no downtime

Virtual machines (VMs) do not stop, and all changes can be undone.

### 1. Check that the cluster fits

- **Where:** each node; management VM.

On each node:

```sh
freebsd-version -k                  # node version
sysctl -n kern.bootfile             # /boot/kernel.GENERIC_PROD/kernel
pkg query '%v' FreeBSD-runtime      # 14.2…
```

What each version means — [Choose a path to 3.2, check 2](/hcp/3.3/en/upgrade/from-earlier/choose-path/index.md#node-version).

On the management VM:

```sh
freebsd-version -u                                          # 14.1-…
pkg query '%n-%v' vStack-control-pane postgresql14-server   # both lines
```

**Expected result:** the nodes run 3.0 or 3.1, the kernel is `kernel.GENERIC_PROD`, `FreeBSD-runtime` is `14.2…`; the management VM runs FreeBSD 14.1; on the management VM there are two lines: `vStack-control-pane-…` and `postgresql14-server-…`.

**If not:**

- a 2.x node; a 3.0 or 3.1 node with a different kernel or with an empty `FreeBSD-runtime` line (the node was installed from installation media); a management VM on FreeBSD 13 — stop: this is a different plan, which you carry out together with vStack support;
- there is no `vStack-control-pane` line — you have a different Center, and this page is not for your cluster: [Choose a path to 3.2](/hcp/3.3/en/upgrade/from-earlier/choose-path/index.md).

### 2. Prepare the workstation: scripts and account

- **Where:** workstation.

1. Download the migration script kit and the checksums, verify them and unpack the kit:

   ```sh
   curl -O https://docs.vstack.com/hcp/3.2/files/upgrade-3.0-to-3.2/upgrade-3.0-to-3.2-tools.tar.gz
   curl -O https://docs.vstack.com/hcp/3.2/files/upgrade-3.0-to-3.2/SHA256SUMS
   grep tools.tar.gz SHA256SUMS | shasum -a 256 -c -           # upgrade-3.0-to-3.2-tools.tar.gz: OK
   tar xzf upgrade-3.0-to-3.2-tools.tar.gz
   ```

2. Write the login and password of a Center account with the cluster master role to a file that only the owner can read. After the Center upgrade, the web interface shows this role as **Cluster master**.

   ```sh
   printf '%s\n%s\n' '<login>' '<password>' > center.cred
   chmod 600 center.cred
   ```

3. Set the variables:

   ```sh
   export VAPI_URL=https://<MGMT>
   export VAPI_CRED=$PWD/center.cred
   export NODES="<node 1 address> <node 2 address> …"
   export KEY=~/.ssh/<key for the nodes>                       # if the key is not ~/.ssh/id_ed25519
   ```

4. Check the API call and the duplicate search:

   ```sh
   sh tools/vapi.sh vm-list '{}' | jq '.result.data | length'   # number of VMs in the cluster
   sh tools/dupcheck.sh                                          # DUPLICATES: none
   ```

5. See how many VMs run on a node other than the node of their pool:

   ```sh
   sh tools/vapi.sh vm-list '{}' | jq '[.result.data[] | select(.rstart == 1)] | length'
   ```

**Expected result:** `OK` for the archive, the `tools/` and `upgrade-to-3.2-r2/` directories, the number of VMs in the cluster, `DUPLICATES: none`; the number of VMs that run away from their pool's node is recorded.

**If not:** `FAILED` for the archive — download it again; `FAILED` again — stop. `login failed` — check the login and password in `center.cred`. A duplicate — [Reference, "Troubleshooting"](/hcp/3.3/en/upgrade/from-earlier/control-pane/reference/index.md#troubleshooting), the "A VM runs on two nodes at once" row.

If more than `0` VMs run away from their pool's node, the cluster already serves VM disks over NVMe-oF. The order is the same, with a caveat: from the first reboot in window A until step 31, start VMs without `node_id` — the earlier Center starts a VM on the node of its pool by itself; from step 31 until step 35, start them only with the `node_id` of the node of their pool. Warn the VM owners (step 14). Agree on the work plan with vStack support before window A.

You will need these commands later:

| Command | What it does |
| - | - |
| `sh tools/vapi.sh vms-stop '{"id":<id>,"hard_timeout":90}'` | stops a VM through Center |
| `sh tools/vapi.sh vms-start '{"id":<id>,"node_id":<node id in Center>}'` | starts a VM on the specified node |
| `sh tools/vapi.sh wait <id> 1` | waits until the VM stops; with `3` instead of `1`, until it starts |
| `sh tools/dupcheck.sh` | finds VMs that are started twice; must return `DUPLICATES: none` |

Until step 31, while the earlier Center runs, start VMs without `node_id`: `sh tools/vapi.sh vms-start '{"id":<id>}'` — the VM starts on the node that has its pool.

### 3. Check access to the release repositories

- **Where:** each node; management VM.

On the nodes, this is step 2 of the [Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6](/hcp/3.3/en/upgrade/from-earlier/node/index.md#repo-access) page. On the management VM:

```sh
fetch -T 10 -qo /dev/null https://repo.vstack.com/center/3.2.0/repo/meta.conf && echo center-OK
```

**Expected result:** `os-OK` on each node, `center-OK` on the management VM.

**If not:**

- On the management VM, `Host does not resolve` — save `cp -p /etc/resolv.conf /root/resolv.conf.pre-324`, replace the `nameserver` lines in `/etc/resolv.conf` with `nameserver <address>` lines with the node resolvers (`cat /etc/resolv.conf` on the node shows them) and check `diff /root/resolv.conf.pre-324 /etc/resolv.conf`: only the `nameserver` lines have changed. Repeat the check.
- Otherwise, open outbound HTTPS to `repo.vstack.com` for the nodes and the management VM.
- If access is open but there is still no `OK`, send vStack support the addresses that the nodes and the management VM use to connect to the outside.

The work is impossible without access to the repositories.

### 4. Get the Internal Fabric network — the start condition

- **Where:** network engineers.

The Internal Fabric network is its own VLAN on `lagg20` and a separate /24 subnet for the cluster nodes only. What the network engineers hand over — [Enable Internal Fabric](/hcp/3.3/en/upgrade/from-earlier/internal-fabric/index.md#fabric-network). Record `<fabric>` and `<tag>`.

**Expected result:** the network is handed over, `<fabric>` and `<tag>` are known.

**If not:** there is no network — stop: do not start the move.

### 5. Take the VM list

- **Where:** management VM, then workstation.

On the management VM:

```sh
cd /tmp
su -m postgres -c "psql -X -v ON_ERROR_STOP=1 -d vstack" > /root/inventory-pre-center32.csv <<'SQL'
COPY (select m.id, m.name, m.status as wanted, sm.status_id as actual, m.rhost, m.pool, m.os_type, p.id as profile_id, p.name as profile, p.zvol, p.guest_customization
      from vm.machine m left join vm.status_map sm on sm.vm_id = m.id left join vm.os_profile p on p.id = m.os_profile order by p.zvol, m.id)
TO STDOUT WITH (FORMAT CSV, DELIMITER ';', HEADER true);
SQL
echo rc=$?
```

On the workstation: `scp root@<MGMT>:/root/inventory-pre-center32.csv .`

**Expected result:** `rc=0`, the `inventory-pre-center32.csv` file on the workstation. In the `actual` column: `3` — the VM is running, `1` — stopped, `11` — suspended.

### 6. Add the NVMe driver to Linux guests

- **Where:** workstation — the list; inside the guests — the change.

After the Center upgrade, VMs get NVMe disks. Images that do not boot from NVMe without the `nvme` driver in the initramfs — [Reference, "Linux images without the NVMe driver"](/hcp/3.3/en/upgrade/from-earlier/control-pane/reference/index.md#nvme-images). The VMs from these images — number, name, state, image — on the workstation:

```sh
Z='OracleLinux-8.6-x86_64-v2|OracleLinux-8.6-x86_64-v0|OracleLinux-9.0-x86_64-v0|OracleLinux-9.1-x86_64-v0'
Z="$Z|vStack-OracleLinux-8.3-x86_64-v0|vStack-OracleLinux-8.5-x86_64-v0"
Z="$Z|vStack-CentOS-7.9-x86_64-v1|vStack-CentOS-8.3-x86_64-v0|vStack-CentOS-7-x86_64-cloud.raw|vStack-CentOS-packer-x86_64.raw"
Z="$Z|vStack-CentOS-8.1-x86_64-v1.raw|vStack-CentOS-8.2-x86_64-v0.raw"
Z="$Z|vStack-almalinux-8.7-v0|AlmaLinux-10.1-amd64-v0|vStack-RedOS-7.3-x86_64-v2"
awk -F';' -v z="\\.vm_images/($Z)\$" 'NR>1 && $10 ~ z {print $1";"$2";"$4";"$10}' inventory-pre-center32.csv > nvme-linux.csv
wc -l nvme-linux.csv                                        # how many VMs are at risk
```

In each running VM from the list, with the owner's consent, as `root` inside the guest. The guest does not need a reboot:

```sh
echo 'add_drivers+=" nvme nvme_core "' > /etc/dracut.conf.d/90-vstack-nvme.conf
dracut -f --regenerate-all
lsinitrd /boot/initramfs-$(uname -r).img | grep -c '/nvme.ko'      # greater than 0
```

The other images of the cluster, except Windows, and the number of VMs on each — on the workstation:

```sh
awk -F';' 'NR>1 && $7!=7 {print $10}' inventory-pre-center32.csv | sort | uniq -c | sort -rn
```

For each image that is not in the list, check one running VM of this image: `lsinitrd /boot/initramfs-$(uname -r).img | grep -c '/nvme.ko'`. If the result is `0`, the image name is empty or you have no access to the guest, add all VMs of this image to `nvme-linux.csv`: each of them needs the driver or the "not fixed" mark. Do not add a FreeBSD 12 or later guest to the list. Add a guest with another OS — not Linux, FreeBSD or Windows — with the "not fixed" mark.

**Expected result:** each VM in `nvme-linux.csv` has a mark: "fixed" (the last command in the guest printed a number greater than `0`) or "not fixed" (no consent, the VM is stopped, no access).

**If not:** in the guest, `grep -c` printed `0` — the driver did not get into the initramfs: mark the VM "not fixed". VMs with this mark — step 19.

### 7. Pre-configure Internal Fabric

Do steps 3–5 of the [Enable Internal Fabric](/hcp/3.3/en/upgrade/from-earlier/internal-fabric/index.md#fabric-vlan) page: the fabric VLAN on the nodes, the pool addresses in the cluster manager configuration and the memory for SPDK. Do not reboot the nodes: the settings take effect at the reboot in window A.

The node reserves the memory for SPDK at boot, and VMs cannot use it.

### 8. Prepare each node

On each node, do steps 1, 1a, 1b and 3–5 of the [Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6](/hcp/3.3/en/upgrade/from-earlier/node/index.md#prepare) page: record the state of the NVMe-oF target, check the telegraf settings, turn off early microcode loading, download and verify the update script, do a dry run and back up the node configuration. Step 2, access to the repository, is already done in step 3. In step 5, specify `tools/vstackos.config-backup.sh` instead of `vstackos.config-backup.sh`.

**Expected result:** the dry run shows the same plan on all nodes, and the configuration copy of each node is verified.

### 9. Choose where to move the pools

For each node, choose a neighbor — step 1 of the [Drain a node with the earlier Center](/hcp/3.3/en/upgrade/from-earlier/control-pane/drain-node/index.md#pool-neighbors) page.

**Expected result:** `<neighbor id>` and `<neighbor N>` are recorded for each node.

### 10. Prepare the Center update script

- **Where:** workstation; the commands run on the management VM.

```sh
cd upgrade-to-3.2-r2 && scp -r mgmtvm-update root@<MGMT>:/root/ && cd ..
ssh root@<MGMT> 'sh -s' <<'EOF'
cd /root/mgmtvm-update && sha256sum -c SHA256SUMS && cp mgmtvm-update.sh mgmtvm-update-oldgen.sh /root/
sh /root/mgmtvm-update.sh --source release --version 3.2.0 > /root/mu-plan.txt 2>&1; cat /root/mu-plan.txt
sh /root/mgmtvm-update.sh --source release --version 3.2.0 --dry-run > /root/mu-dry.txt 2>&1; cat /root/mu-dry.txt
df -h /; du -sh /var/db/postgres
EOF
```

**Expected result:** `generation old-gen`, `plan: app-save world(reboot) app finish`, at least 4 GB free on `/`. How long step 23 takes depends on the size of `/var/db/postgres`.

The `admin` password of the InfluxDB metrics database: if you know it, put it in `/var/db/vstack/secrets/influxdb_admin_password` (permissions `0700` on the directory, `0600` on the file). If not, the script sets a new password in the same file.

### 11. Back up Center and take the fingerprint of the router password

- **Where:** workstation.

```sh
umask 077; TS=$(date -u +%Y%m%dT%H%M%SZ)
ssh root@<MGMT> 'cd /tmp; su -m postgres -c "pg_dump -Fc -d vstack"' > center-db-pre-center32-$TS.dump
pg_restore -l center-db-pre-center32-$TS.dump > /dev/null && echo dump-OK
ssh root@<MGMT> 'sh -c "tar -czf - /etc /usr/local/etc 2>/dev/null"' > mgmtvm-etc-pre-center32-$TS.tgz
tar -tzf mgmtvm-etc-pre-center32-$TS.tgz > /dev/null && echo tar-OK
ssh root@<MGMT> 'sh -s' <<'EOF' > edge-ctrl-pre.txt
for f in /usr/local/etc/vstack-passwords.conf /usr/local/etc/vstack-dispatcher.conf; do
  [ -r $f ] || continue
  printf '%s ' "$(basename $f)"; grep -iE '^[[:space:]]*edge_ctrl[[:space:]]*=' $f | head -1 | sed -E "s/^[^=]*=[[:space:]]*//; s/^[\"']//; s/[\"'][[:space:]]*\$//" | tr -d '\n' | sha256 -q
done
EOF
cat edge-ctrl-pre.txt
```

**Expected result:** `dump-OK`, `tar-OK`; `edge-ctrl-pre.txt` has at least one line, and it is not `e3b0c442…`, which is the fingerprint of an empty password. You compare the fingerprint in step 25.

**If not:** the workstation has no `pg_restore` — check the dump on the management VM:

```sh
scp center-db-pre-center32-$TS.dump root@<MGMT>:/tmp/
ssh root@<MGMT> "pg_restore -l /tmp/center-db-pre-center32-$TS.dump > /dev/null && echo dump-OK; rm /tmp/center-db-pre-center32-$TS.dump"
```

### 12. Load the v8 router image into all pools

- **Where:** workstation, for each node.

```sh
ssh root@<node> 'sh -s' <<'EOF'
D=/root/edge-v8; mkdir -p $D; cd $D || exit 1
fetch -q -o edge-13.0-v1.zfs https://repo.vstack.com/images/edge-13.0/edge-13.0-v1.zfs || { echo FETCH-FAIL; exit 1; }
[ "$(sha256 -q edge-13.0-v1.zfs)" = fd27164755d8bfa44a1acf5c252d8de32ae5f07dc670921c62896151b93f93a9 ] || { echo SHA-MISMATCH; exit 1; }
for p in $(zpool list -H -o name); do
  zfs list -H $p/.vm_images/vStack-edge-13.0-v8 >/dev/null 2>&1 && { echo "$p: already present"; continue; }
  zfs receive -u $p/.vm_images/vStack-edge-13.0-v8 < edge-13.0-v1.zfs && echo "$p: OK" || echo "$p: FAIL"
done
cd /; rm -rf $D
EOF
```

**Expected result:** `OK` or `already present` for each pool of the node.

### 13. Prepare the external systems

- **Where:** owners of external systems.

If an external system — a self-service portal or automation — creates VMs on the cluster through the Center API, hide the images from step 6 and the v7 router in its catalog. The owners of such systems must be on call in window B (step 26).

### 14. Warn the VM owners

- **Where:** VM owners and cluster users.

Tell the VM owners the following and add it to the work plan:

- **Window A.** The VMs of a pool are down while the pool moves; if the pools of a node do not fit on the neighbor (step 9), some VMs stay down until the pool returns. The pool with the management VM moves twice, and while it moves, the web interface is unavailable. Windows VMs are powered off hard unless the owner shuts them down; shut down database servers from inside, as agreed with the owner.
- **Window B.** The web interface, the API and VM management are unavailable. Each router restarts, and the network behind it is unavailable for that time.
- **Right after window B,** Internal Fabric is enabled, and VMs keep running. Until the announcement that the work is over, do not start or restart VMs from the web interface or from external systems.

It is better to hold windows A and B on different days.

Resume suspended Windows VMs — in the step 5 list, `actual` = `11`, `os_type` = `7` — before window A, or stop them as agreed with the owner.

## Window A — nodes one at a time, `<OWN>` last

Upgrade the nodes one at a time, the `<OWN>` node last. For each node, do steps 15–18; start the next node only after step 18.

- Do not return a pool that has already run on a 3.2.6 node to a node that is not upgraded.
- Do not run `zpool upgrade` during the rolling upgrade or after it.

**If a step says stop.** The node stays drained, its pools stay on the neighbors, and the VMs that responded with `-440` at start stay down; you can wait for the support response. The rest — [Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6, "If a step says stop"](/hcp/3.3/en/upgrade/from-earlier/node/index.md#stop): when you must not reboot the node and what to send to support.

### 15. Drain the node

Do steps 2–6 of the [Drain a node with the earlier Center](/hcp/3.3/en/upgrade/from-earlier/control-pane/drain-node/index.md#node-health) page: check the cluster, stop the pool VMs through the API, move the pool to the neighbor, start the VMs on the neighbor and close the node.

### 16. Upgrade the node

Do steps 7–11 of the [Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6](/hcp/3.3/en/upgrade/from-earlier/node/index.md#node-update) page, including steps 8a and 8b: start the upgrade, check before the reboot, install the 3.2 line components, switch the NVMe-oF target to `spdk_tgt`, reboot, and check the kernel, the version, the services and the fabric pre-configuration.

### 17. Return the node, the pools and the VMs

Do steps 8–9 of the [Drain a node with the earlier Center](/hcp/3.3/en/upgrade/from-earlier/control-pane/drain-node/index.md#node-enable) page: return the node to the cluster, then the pools and the VMs.

### 18. Check the fabric addresses of the pools

Step 12a of the [Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6](/hcp/3.3/en/upgrade/from-earlier/node/index.md#fabric-return-check) page. The next node starts from step 15.

## Window B — Center and routers

The web interface and the API are unavailable from step 23 to step 24, and VM management until step 31. VMs keep running the whole time. Do not run `service vstack_center onestart nodes`, even with `--check`: this is a live run.

**If a step in window B says stop.** VMs keep running, and the nodes run 3.2.6. Do not go on with the steps. Do not reboot the management VM with a reset, and if the script printed `do NOT reboot`, do not reboot it at all; do not run `pkg` manually and do not start Center services manually. For the meaning of a Center update script code, see [Move to 3.2 with Center 3.0.3–3.2.0, "Center update script exit codes"](/hcp/3.3/en/upgrade/from-earlier/center-3-0/index.md#center-exit-codes); for what to do depending on where you stopped, see [Reference, "Rollback"](/hcp/3.3/en/upgrade/from-earlier/control-pane/reference/index.md#rollback). Send vStack support the step number, the check output, and `/var/log/mgmtvm-update.log` and `/var/log/vstack_center.log` from the management VM — [Collect data for support](/hcp/3.3/en/troubleshooting/collect-for-support/index.md).

> **Until Internal Fabric is enabled, start VMs only with a node selected**
>
> From step 31, when you can start VMs again, until Internal Fabric is enabled (step 35), start VMs only with the node of their pool selected — the `node_id` of the node that owns the pool. Enable Internal Fabric right after window B, without a break.

### 19. Check readiness

- **Where:** workstation; Center web interface.

- All nodes run 3.2.6.

- Each VM from step 6 has a mark. VMs marked "not fixed" do not boot after the Center upgrade without the NVMe driver: before step 23, agree with vStack support on what to do with them, and send support `nvme-linux.csv`.

- Resume the suspended VMs (`actual` = `11`) or stop them as agreed with the owner.

### 20. Get the settings drafts

- **Where:** management VM.

```sh
sh /root/mgmtvm-update.sh --source release --version 3.2.0 --snapshots-taken; echo rc=$?
```

**Expected result:** `rc=10` and `NOTICE: drafts written: …settings.yml, …nodes.yml`. Center is still running.

### 21. Review the drafts and distribute the key

- **Where:** management VM; workstation.

In `/usr/local/etc/vstack/settings.yml`, verify each value and fill in the empty ones; the fields marked `# CHECK` are mandatory:

| Field | Value |
| - | - |
| `cluster_id`, `cluster_node_quantity` | the cluster number, the number of nodes |
| `base_url` | the address at which users open VM consoles: the `mgmtvm.<cluster>…` name if it is in the `vstack-env.conf` of the nodes and in the web interface certificate, otherwise the IP address |
| `mgmtvm_external_ip` | the `vtnet0` address of the management VM |
| `cluster_vlan_network` | `cluster_vlan_network` from the node's `vstack-env.conf` |
| `publicep_net` / `publicep_if` | `publicep_vlan_network` / `publicep_vlan_port` from `vstack-env.conf` |
| `storagenet` / `storagenet_if` | `iscsi_vlan_network` / `iscsi_vlan_port` |
| `vmnet_net`, `vxlan_net` / `vmnet_if`, `vlan_if` | `vxlan_vlan_network` / `vxlan_vlan_port`; `vxlan_if` — the node interface with an address from `vxlan_vlan_network` |
| `pool_net` | the subnet of the pool addresses (`select lif from storage.pool`) |
| `ntp_servers` | the time servers of the nodes, without duplicates |
| `kms_host`, `wss_fw`, `grafana_fw` | as in the earlier Center: `/usr/local/etc/vstack-dispatcher.conf`, the `allow` lines in the nginx configuration |
| `nvmf_net`, `vstack_node_install_nvmf` | **`""` and `false`** — Internal Fabric is enabled right after window B, step 35 |
| `pf_enabled`, `vmagent_enabled`, `logging_enabled` and the fourth `…_enabled` field in the draft | `false` — all four |

In `/usr/local/etc/vstack/inventory/nodes.yml` — all nodes and `ansible_python_interpreter: /usr/local/bin/python3.11`. Then, on the management VM: `cp -p /usr/local/etc/vstack/settings.yml /root/settings.yml.reviewed`.

Distribute to the nodes the key that Center uses to connect to the nodes — on the workstation:

```sh
ssh root@<MGMT> 'cat /usr/local/etc/vstack/ssh/id_ed25519.pub' > provision.pub; test -s provision.pub && cat provision.pub
for h in <node addresses>; do
  ssh root@$h 'cp -p /root/.ssh/authorized_keys /root/.ssh/authorized_keys.pre-center32'
  ssh root@$h 'cat >> /root/.ssh/authorized_keys' < provision.pub
done
ssh root@<MGMT> 'sh -s' <<'EOF'
for h in $(awk '/ansible_host:/ {print $2}' /usr/local/etc/vstack/inventory/nodes.yml); do
  ssh -n -o BatchMode=yes -o StrictHostKeyChecking=accept-new -i /usr/local/etc/vstack/ssh/id_ed25519 root@$h hostname || echo "FAIL $h"
done
EOF
```

**Expected result:** each node responded with its name.

### 22. Take snapshots of the management VM

- **Where:** workstation; the commands run on `<OWN>`.

```sh
ssh root@<OWN> 'sh -s' <<'EOF'
V=$(zfs list -H -o name -t filesystem,volume | grep '/.vm_V4/000000000$'); echo $V
zfs list -H -o name -r $V | grep -v "^$V\$" | tee /root/mgmtvm-volumes.txt
for t in $(cat /root/mgmtvm-volumes.txt); do zfs snapshot $t@pre-center32 || { echo "FAIL $t"; break; }; done
zfs list -t snapshot -o name -r $V | grep pre-center32
EOF
```

**Expected result:** each volume has the `@pre-center32` snapshot, and there is no `FAIL`. This is the Center rollback point; step 23 follows right after it.

### 23. Upgrade Center

- **Where:** management VM.

From this step on, the web interface and the API are unavailable.

```sh
sh /root/mgmtvm-update.sh --source release --version 3.2.0 --snapshots-taken --settings-reviewed --reboot --detach
```

The management VM reboots. When it accepts SSH connections again, run the same command once more. The upgrade progress:

```sh
sh /root/mgmtvm-update.sh --status > /tmp/st.txt; head -3 /tmp/st.txt
```

**Expected result:** `phase: done`.

**If not:** for the meaning of the code and what to do, see [Center update script exit codes](/hcp/3.3/en/upgrade/from-earlier/center-3-0/index.md#center-exit-codes).

### 24. Check Center

- **Where:** management VM.

```sh
for s in postgresql rabbitmq influxd angie grafana vstack_center_dispatcher vstack_center_endpoint vstack_center_image_distributor; do printf "%s: " $s; service $s status >/dev/null 2>&1 && echo up || echo DOWN; done
tail -1 /var/log/vstack_center.log                            # … finished … (exit=0)
fetch -qo /dev/null --no-verify-peer --no-verify-hostname https://127.0.0.1/ && echo web-OK
su -m postgres -c "psql -At -d vstack -c \"select o.value, p.deprecated_id, p.name from management.cluster_options o left join vm.os_profile p on p.id::text = o.value where o.an_option = 'Edges_profile_id'\""
```

**Expected result:** all services are `up`, `exit=0`, `web-OK`; a regular user can sign in to the web interface, and the VMs and nodes are in place. The last line is `<uuid>|105|EdgeOS 0.8` (the router OS profile, the vStack Edge v8 image).

**If not:** instead of `<uuid>|105|EdgeOS 0.8`, the output is `105||` — there is no v8 router profile, and Center cannot create any router. Add the profile — the block in step 18 of the [Move to 3.2 with Center 3.0.3–3.2.0](/hcp/3.3/en/upgrade/from-earlier/center-3-0/index.md#center-check) page.

### 25. Compare the router password

- **Where:** workstation.

```sh
ssh root@<MGMT> 'sh -s' <<'EOF'
tr -d '\n' < /var/db/vstack/secrets/rmq_pass_edge_ctrl | sha256 -q
EOF
cat edge-ctrl-pre.txt
```

**Expected result:** the fingerprints match.

**If not:** stop — the existing routers cannot connect to Center.

### 26. Move the external systems to the new OS profile numbers

- **Where:** management VM; owners of external systems.

In Center 3.2, an OS profile is identified by a UUID; Center no longer accepts the previous number (`-253`). The "previous number → UUID" table:

```sh
cd /tmp; su -m postgres -c "psql -X -At -F ';' -d vstack -c 'select deprecated_id, id, name from vm.os_profile where deprecated_id is not null order by 1'" > /root/os-profile-uuid-map.csv
```

Send the table to the owners of the external systems that create VMs through the API: they must replace the profile numbers with UUIDs.

### 27. Check the move of the nodes to the new Center

- **Where:** workstation; management VM.

Until this step and the next one are done, the nodes do not receive Center commands: they have the old message broker address. The new address is `.250` in the `cluster_vlan_network` subnet from `settings.yml`. Check it from each node — on the workstation: `ssh root@<node> 'nc -z -w3 <broker address> 5672 && echo amqp-OK'`. No `amqp-OK` — stop: the node does not see the management VM in the cluster network.

The check run — on the management VM:

```sh
cd /usr/local/share/vstack-center
umask 077
ANSIBLE_CONFIG=$PWD/ansible.cfg ansible-playbook main.yml -t nodes -e @/usr/local/etc/vstack/settings.yml --check --diff > /var/log/nodes-check.log 2>&1; echo rc=$?
sed -n '/PLAY RECAP/,$p' /var/log/nodes-check.log
grep -E '^[-+](Password|password)' /var/log/nodes-check.log | wc -l      # 0
```

If the process does not finish after the `PLAY RECAP` line, interrupt it: `Ctrl+C`.

**Expected result:** each node shows `unreachable=0 failed=0`, and the passwords do not change. What changes: the broker address (to `<broker address>`) in the controller and telegraf configuration; the old metrics collectors are removed, and the controllers restart; VMs are not affected.

**If not:** the role changes network interfaces, the cluster manager configuration (`ccrd`) or passwords — stop.

### 28. Move the nodes to the new Center

- **Where:** management VM.

```sh
cat > /root/nodes-run.sh <<'X'
#!/bin/sh
umask 077
cd /usr/local/share/vstack-center
ANSIBLE_CONFIG=$PWD/ansible.cfg ansible-playbook main.yml -t nodes -e @/usr/local/etc/vstack/settings.yml --diff > /var/log/nodes-run.log 2>&1
echo "rc=$?" >> /var/log/nodes-run.log
X
daemon -f sh /root/nodes-run.sh
```

Wait for the `PLAY RECAP` line in the log: `sed -n '/PLAY RECAP/,$p' /var/log/nodes-run.log`.

**Expected result:** each node shows `unreachable=0 failed=0`.

### 29. Start the VM metrics collector

- **Where:** workstation, for each node.

```sh
ssh root@<node> 'sh -s' <<'EOF'
pkill -f vStack-vm-perfdata-feeder; service vstack_vm_perfdata start </dev/null >/dev/null 2>&1
sleep 3; pgrep -lf /usr/local/sbin/vstack-vm-perfdata || echo "NOT RUNNING"
EOF
```

**Expected result:** the `vstack-vm-perfdata` process exists, and there is no `NOT RUNNING` line.

### 30. Check the role again

- **Where:** management VM.

Repeat the check run of step 27 — each node shows `changed=0`. Then:

```sh
cd /usr/local/share/vstack-center
ANSIBLE_CONFIG=$PWD/ansible.cfg ansible-playbook main.yml -t seed-nodes -e @/usr/local/etc/vstack/settings.yml; echo rc=$?
```

**Expected result:** `rc=0`, `failed=0`.

### 31. Check that the nodes receive commands

- **Where:** management VM; workstation.

```sh
env HOME=/var/db/rabbitmq rabbitmqctl -q list_connections user | sort | uniq -c
grep 'VMs should be started' /var/log/vstack-center-dispatcher/$(date +%F).log | tail -1
```

On the workstation — `sh tools/dupcheck.sh`.

**Expected result:** `vm_controller`, `storage_user`, `nodeside_ctrl`, `net_user` — as many of each as there are nodes; `0 VMs should be started`; `DUPLICATES: none`. From this step on, you can start and stop VMs; until step 35, only with the node of their pool selected (see the note at the start of window B).

### 32. Check VMs on NVMe disks

- **Where:** workstation; Center web interface.

1. One Linux VM that is not from step 6: `vms-stop`, `wait 1`, `vms-start` on its node, `wait 3` — the guest has the `nvme0n1` disk (or `nda0`).
2. One fixed VM from step 6 — the same way.
3. One Windows VM — the same way: it has booted.
4. A test VM from a Linux image that is not from step 6: create it in the web interface, make sure that it boots, and delete it.

### 33. Move the routers to the v8 image

- **Where:** management VM; workstation.

Routers on the previous v7 image got an NVMe disk after the Center upgrade and do not boot at the next restart. The `edge-reimage.sh` script replaces their boot disk with v8 without re-creating the router: addresses, rules and settings are kept.

The list of routers — on the management VM:

```sh
cd /tmp; su -m postgres -c "psql -X -At -F' ' -d vstack -c \"select e.vm_id, sp.name, sp.current_node, p.zvol from network.an_edge e join vm.machine m on m.id=e.vm_id join storage.pool sp on sp.guid::text=m.pool::text join vm.os_profile p on p.id=m.os_profile order by 2,1\""
```

The columns: router number, pool, pool node, image. Skip routers with the `…-v8` image. On the node of each pool with routers — from the workstation, **always with the router numbers**:

```sh
scp tools/edge-reimage.sh root@<node>:/tmp/
ssh root@<node> 'env TARGET_IMG=vStack-edge-13.0-v8 DRY_RUN=1 sh /tmp/edge-reimage.sh <vm_id> <vm_id> …'     # plan, changes nothing
ssh root@<node> 'env TARGET_IMG=vStack-edge-13.0-v8 DRY_RUN=0 sh /tmp/edge-reimage.sh <vm_id>'               # one router first
```

In the dry run output, **each** number must have `…/.vm_images/vStack-edge-13.0-v7@…`: with explicit numbers, the script does not check that the VM is a router, and a typo replaces the disk of another VM.

A few minutes after the replacement, check the router — on the management VM:

```sh
cd /tmp; su -m postgres -c "psql -X -At -d vstack -c \"select vm_id, ctrl_version, deploy_ts from network.an_edge where vm_id=<vm_id>\""
```

**Expected result:** `ctrl_version` is filled in, `deploy_ts` is a time after the replacement, and the VMs behind the router reach the network. Then move the other routers — one node at a time, with the same check.

**If not:** the router did not connect — stop; to roll back the router, see [Reference, "Router"](/hcp/3.3/en/upgrade/from-earlier/control-pane/reference/index.md#rollback-edge).

### 34. Sum up window B

- **Where:** nodes; workstation.

- All nodes run 3.2.6 and are `ONLINE`, the pools are healthy, `dupcheck.sh` returns `DUPLICATES: none`.

- The VM states match the list from step 5.

- `edge-reimage.sh` with `DRY_RUN=1` finds no routers to replace on any node.

Do not announce the end of the work yet: do steps 35–36 first.

## Enabling Internal Fabric — right after window B

Enable the fabric without a break after step 34, before you announce the end of the work. There are no reboots, and VMs keep running.

**If a step says stop while you enable the fabric.** The nodes, Center and VMs work as after window B. Start VMs only with the node of their pool selected; do not announce the end of the work. If the check on a Linux VM fails, roll back the fabric: [Reference, "Fabric"](/hcp/3.3/en/upgrade/from-earlier/control-pane/reference/index.md#rollback-fabric). Send vStack support the step number, the check output, `/var/log/nodes-run.log` from the management VM and `/var/log/spdk_tgt.log` from the node.

### 35. Enable Internal Fabric

Do steps 7–10 of the [Enable Internal Fabric](/hcp/3.3/en/upgrade/from-earlier/internal-fabric/index.md#center-nodes-role) page: the Center `nodes` role on the nodes, starting SPDK, the pool addresses in Center and the check on one Linux VM.

**Expected result:** the Linux VM started on another node and returned to its own.

### 36. Announce the end of the work

All nodes run 3.2.6, Center runs 3.2.0, Internal Fabric is enabled (step 35), and the VM states match the list from step 5. Announce the end of the work to the VM owners. From now on, VMs are started as usual, without selecting a node.

## Acceptance — after 2–3 days of operation

### 37. Accept the work

- **Where:** workstation; management VM; Center web interface.

After several days of normal operation, check the following:

- the VM states match the list from step 5;
- VM and node metrics arrive;
- the routers are connected to Center: the check query from step 33 for each router shows a filled-in `ctrl_version`;
- the external systems create VMs by OS profile UUIDs (step 26);
- the SPDK memory on the most loaded node — step 11 of the [Enable Internal Fabric](/hcp/3.3/en/upgrade/from-earlier/internal-fabric/index.md#fabric-mem-check) page.

**Expected result:** all five items are met.

**If not:** [Reference, "Troubleshooting"](/hcp/3.3/en/upgrade/from-earlier/control-pane/reference/index.md#troubleshooting). Do not remove the rollback points (step 38) until you have sorted it out.

### 38. Remove the rollback points

- **Where:** management VM; nodes.

Only after acceptance:

- On the management VM: `sh /root/mgmtvm-update.sh --cleanup-oldgen` shows the list, and the same command with `--snapshots-taken` deletes the data of the earlier Center. After that, you can roll back Center only with the snapshots from step 22.
- Delete the `@pre-center32` and `@pre_move_*` snapshots and the previous router disks `*.pre-<time>`.

## Next

- [Reference](/hcp/3.3/en/upgrade/from-earlier/control-pane/reference/index.md)
- [Drain a node with the earlier Center](/hcp/3.3/en/upgrade/from-earlier/control-pane/drain-node/index.md)
- [Upgrade a 3.0, 3.1 or 3.2.0 node to 3.2.6](/hcp/3.3/en/upgrade/from-earlier/node/index.md)
- [Enable Internal Fabric](/hcp/3.3/en/upgrade/from-earlier/internal-fabric/index.md)
