Priority: P2 (important and urgent): NetOrk/netork#1918 links a backup server's groups to the cluster's guests through this, and nothing else tells netOrk which server a pbs storage writes to.
Step 6 of #52 was planned there and not done before #52 was closed with #53: get_clusters() lists a pbs storage like any other, without the backup_server reference napalm-device-types 4.25.0 added to ClusterStorageDict.
What
For each storage of type pbs in /storage, fill backup_server:
ClusterStorageDict.backup_server
from /storage/{id}
server
server
port
port, None when not set (PVE then uses 8007)
datastore
datastore
namespace
namespace, None when not set
fingerprint
fingerprint, None when not set
Every other storage type leaves the key out. The storage's password and encryption key are never read into it.
Test-First
A recorded /storage with a pbs entry (sanitised) → backup_server with all five fields.
A pbs storage without port/namespace/fingerprint → those None.
A dir/nfs/zfspool storage → no backup_server key.
/storage unreadable → the existing behaviour for storages (unchanged).
Then a minor release, and the netOrk pin bump in NetOrk/netork#1919's link stage.
Priority: P2 (important and urgent): NetOrk/netork#1918 links a backup server's groups to the cluster's guests through this, and nothing else tells netOrk which server a `pbs` storage writes to.
Step 6 of #52 was planned there and not done before #52 was closed with #53: `get_clusters()` lists a `pbs` storage like any other, without the `backup_server` reference napalm-device-types 4.25.0 added to `ClusterStorageDict`.
## What
For each storage of type `pbs` in `/storage`, fill `backup_server`:
| `ClusterStorageDict.backup_server` | from `/storage/{id}` |
|---|---|
| `server` | `server` |
| `port` | `port`, `None` when not set (PVE then uses 8007) |
| `datastore` | `datastore` |
| `namespace` | `namespace`, `None` when not set |
| `fingerprint` | `fingerprint`, `None` when not set |
Every other storage type leaves the key out. The storage's password and encryption key are never read into it.
## Test-First
- [ ] A recorded `/storage` with a `pbs` entry (sanitised) → `backup_server` with all five fields.
- [ ] A `pbs` storage without port/namespace/fingerprint → those `None`.
- [ ] A `dir`/`nfs`/`zfspool` storage → no `backup_server` key.
- [ ] `/storage` unreadable → the existing behaviour for storages (unchanged).
Then a minor release, and the netOrk pin bump in NetOrk/netork#1919's link stage.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Priority: P2 (important and urgent): NetOrk/netork#1918 links a backup server's groups to the cluster's guests through this, and nothing else tells netOrk which server a
pbsstorage writes to.Step 6 of #52 was planned there and not done before #52 was closed with #53:
get_clusters()lists apbsstorage like any other, without thebackup_serverreference napalm-device-types 4.25.0 added toClusterStorageDict.What
For each storage of type
pbsin/storage, fillbackup_server:ClusterStorageDict.backup_server/storage/{id}serverserverportport,Nonewhen not set (PVE then uses 8007)datastoredatastorenamespacenamespace,Nonewhen not setfingerprintfingerprint,Nonewhen not setEvery other storage type leaves the key out. The storage's password and encryption key are never read into it.
Test-First
/storagewith apbsentry (sanitised) →backup_serverwith all five fields.pbsstorage without port/namespace/fingerprint → thoseNone.dir/nfs/zfspoolstorage → nobackup_serverkey./storageunreadable → the existing behaviour for storages (unchanged).Then a minor release, and the netOrk pin bump in NetOrk/netork#1919's link stage.