Adds VMProvisionIncomplete(RuntimeError) in napalm_device_types/provisioning.py (exported from the package root): raised by create_vm_from_cloud_init when creation fails after a VM exists, carrying vmid and node, with the original error as __cause__. Callers that catch RuntimeError still catch it; __reduce__ keeps it picklable (Celery).
Why: NAPALM/napalm-proxmox#28 — a failure after the VMID was taken left a half-built VM behind. Decision: the caller (netOrk's provisioning rollback) removes it, so the removal is audited; the driver only names it. napalm-vmware can follow later.
Merge order: this first; release 4.23.0; then napalm-proxmox (floor bump) and netOrk (pins).
Adds `VMProvisionIncomplete(RuntimeError)` in `napalm_device_types/provisioning.py` (exported from the package root): raised by `create_vm_from_cloud_init` when creation fails **after** a VM exists, carrying `vmid` and `node`, with the original error as `__cause__`. Callers that catch `RuntimeError` still catch it; `__reduce__` keeps it picklable (Celery).
Why: NAPALM/napalm-proxmox#28 — a failure after the VMID was taken left a half-built VM behind. Decision: the caller (netOrk's provisioning rollback) removes it, so the removal is audited; the driver only names it. napalm-vmware can follow later.
Docs: `create_vm_from_cloud_init` "Raises:" in `hypervisor.py`, README provisioning paragraph, CHANGELOG [Unreleased] → Added (MINOR).
Tested: `tests/test_vm_provision_incomplete.py` (failed first). pytest 1044 passed, ruff, mypy clean.
Merge order: this first; release 4.23.0; then napalm-proxmox (floor bump) and netOrk (pins).
create_vm_from_cloud_init raised a plain error once the VM existed, so the
caller had no id to remove it by. The new RuntimeError carries vmid and
node, with the failure as its cause; a failure before the VM exists raises
as before.
Refs NAPALM/napalm-proxmox#28
The VMProvisionIncomplete entry pushed the method past its recorded
length in the quality baseline. The image-cache note joins the
paragraph it repeated, and the Raises entry takes two lines; nothing
it says is dropped.
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.
Adds
VMProvisionIncomplete(RuntimeError)innapalm_device_types/provisioning.py(exported from the package root): raised bycreate_vm_from_cloud_initwhen creation fails after a VM exists, carryingvmidandnode, with the original error as__cause__. Callers that catchRuntimeErrorstill catch it;__reduce__keeps it picklable (Celery).Why: NAPALM/napalm-proxmox#28 — a failure after the VMID was taken left a half-built VM behind. Decision: the caller (netOrk's provisioning rollback) removes it, so the removal is audited; the driver only names it. napalm-vmware can follow later.
Docs:
create_vm_from_cloud_init"Raises:" inhypervisor.py, README provisioning paragraph, CHANGELOG [Unreleased] → Added (MINOR).Tested:
tests/test_vm_provision_incomplete.py(failed first). pytest 1044 passed, ruff, mypy clean.Merge order: this first; release 4.23.0; then napalm-proxmox (floor bump) and netOrk (pins).