feat: images on the cluster's storages, 0.22.0 (NetOrk/netork#3176) #84

Merged
christianmanivong merged 2 commits from feature/storage-images into main 2026-12-06 21:29:36 +00:00
Owner

The images on the cluster's storages, and the calls netOrk's image management makes on them (NetOrk/netork#3176), on napalm-device-types 4.61.0.

  • get_clusters() gives each storage with iso or import content its images: every such file with its volid, format, size, creation time and the nodes it is on. A shared storage is read once, a local one on each of its nodes; a storage that cannot be read whole is None, so netOrk keeps what it knew.
  • stage_storage_image() downloads a cloud image into an import storage through download-url, verified, under the name a provisioning download gives it.
  • storage_image_checksum() hashes a file on the node; delete_storage_image() deletes one.
  • The static staged_image_name() and staged_image_series() tell two builds of one image apart.
  • create_vm_from_cloud_init() imports the root disk from image_volume, a file already on a storage, when it is given instead of image_url.

0.22.0; requires napalm-device-types 4.61.0.

The images on the cluster's storages, and the calls netOrk's image management makes on them (NetOrk/netork#3176), on napalm-device-types 4.61.0. - `get_clusters()` gives each storage with `iso` or `import` content its `images`: every such file with its volid, format, size, creation time and the nodes it is on. A shared storage is read once, a local one on each of its nodes; a storage that cannot be read whole is None, so netOrk keeps what it knew. - `stage_storage_image()` downloads a cloud image into an import storage through `download-url`, verified, under the name a provisioning download gives it. - `storage_image_checksum()` hashes a file on the node; `delete_storage_image()` deletes one. - The static `staged_image_name()` and `staged_image_series()` tell two builds of one image apart. - `create_vm_from_cloud_init()` imports the root disk from `image_volume`, a file already on a storage, when it is given instead of `image_url`. 0.22.0; requires napalm-device-types 4.61.0.
christianmanivong added 1 commit 2026-12-06 21:23:32 +00:00
feat: images on the cluster's storages, 0.22.0 (NetOrk/netork#3176)
driver / lint (pull_request) Successful in 12s
driver / standard (pull_request) Successful in 15s
driver / lowest (pull_request) Successful in 32s
driver / types (pull_request) Successful in 52s
driver / test (3.12) (pull_request) Successful in 1m3s
driver / test (3.13) (pull_request) Successful in 58s
driver / build (pull_request) Successful in 24s
driver / security (pull_request) Failing after 49s
CI / driver (pull_request) Failing after 1m36s
driver / publish (pull_request) Skipped
9acf93182f
get_clusters() gives each storage with iso or import content its images:
every such file with its volid, format, size, creation time and the nodes
it is on. A shared storage is read once, a local one on each of its nodes;
a storage that cannot be read whole is None.

stage_storage_image() downloads a cloud image into an import storage
through download-url, verified, under the name a provisioning download
gives it. storage_image_checksum() hashes a file on the node and
delete_storage_image() deletes one. The static staged_image_name() and
staged_image_series() tell two builds of one image apart.

create_vm_from_cloud_init() imports the root disk from image_volume, a
file already on a storage, when it is given instead of image_url.
christianmanivong added 1 commit 2026-12-06 21:26:05 +00:00
fix: the root-disk step refuses a missing source instead of asserting it
driver / lint (pull_request) Successful in 12s
driver / standard (pull_request) Successful in 15s
driver / lowest (pull_request) Successful in 28s
driver / types (pull_request) Successful in 50s
driver / test (3.12) (pull_request) Successful in 1m1s
driver / test (3.13) (pull_request) Successful in 1m0s
driver / build (pull_request) Successful in 34s
driver / security (pull_request) Successful in 59s
CI / driver (pull_request) Successful in 1m42s
driver / publish (pull_request) Skipped
cd60286ac1
bandit (B101): an assert vanishes under python -O. The source check refuses
a VM with neither image_url nor image_volume before anything is created; the
root-disk step now raises the same ValueError should it ever be reached.
christianmanivong merged commit e60a42a368 into main 2026-12-06 21:29:36 +00:00
Sign in to join this conversation.