Repository navigation
Releases
CloudX v1.0.20
CloudX v1.0.20
CloudX 1.0.20 follows 1.0.16 (1.0.17 to 1.0.19 were not released). Networking gets QoS in OVN on ports, networks, floating IPs and routers, subnet pools and address scopes that work, network segments, and RBAC policies that share a network, a QoS policy, a subnet pool or an address scope with chosen projects. Block storage gets encrypted (LUKS) data volumes and volume type limits that reach attached volumes. Instance HA can fence an NFS server's client. Image listing pages past 50 images.
What is new since 1.0.16
Networking
- QoS reaches OVN. A port's
qos_max_kbpsand the QoS policies were only stored; now each port and direction gets a row of the OVNQoStable (rate, burst, DSCP). A policy attaches to a port, a network (the default of the ports without their own), a floating IP (while associated) and a router (its gateway address, which instances without a floating IP leave from). Seedocs/networking-qos.md; the rates measured on the lab are there too. - Subnets can be cut from subnet pools (
subnetpool_id), pools can join address scopes, admins can add network segments, and RBAC policies (/rbac-policies) share a network with a project or with*. RBAC also shares QoS policies, subnet pools and address scopes (access_as_shared); the target project uses the object, only the owner or an admin changes or deletes it, and an entry cannot be removed while the target project still uses the object. Seedocs/networking-rbac-scopes-segments.md. cloudx router clear-gatewayandDELETE /routers/{ref}/gateway(409 while floating IPs go through the router).- CLI:
qos-policy,address-scope,subnet-pool,network-segment,rbac,set-qos-policy/clear-qos-policyon ports, networks, routers and floating IPs. Dashboard pages for the same, plus the QoS policy on port, network, router and floating IP forms. - QoS rules take the policy by id or name. Only the owner of a policy or an admin changes its rules or deletes it (a shared policy could be edited by any project before).
Block storage
cloudx volume create --encrypted: a blank data volume formatted as LUKS on LVM, Ceph or NFS, with the key in key-manager. Attached with a libvirt secret that follows the server through a live migration and a rebuild. Not available for image sources, boot, extend, backup, replication, retype and image upload. Seedocs/storage-backends.md.- A change to
max_iopsormax_throughputof a volume type reaches the volumes that are already attached (LVM, NFS and Ceph). - Cloning a Ceph volume works (it always ended in
error), and deleting a Ceph snapshot that a volume was restored from no longer leaks the snapshot.
Instance HA
- Fence at the NFS server: the node's address is blocked at the NFS server and its client state expired (locks free in about 3 s on the lab),
cloudx ha resetlifts it, ha-api puts it back every 30 seconds while the host stays fenced. compute-worker mounts a missing NFS share when it places a server. Seedocs/ha.md.
Image
GET /imagespages withmarkerandnext_marker; the dashboard lists read every page.
Behaviour changes to read first
- Schema changes. Run
cloudx-manage db syncafter installing, orcloudx-db-migrate SERVICEfornetworking(networking_0008to0010),block_store(block_store_0003) andha(ha_0003,ha_0004). A service that starts before its migration fails on the missing columns. - Any project could add or remove rules of a QoS policy it could see (a shared one); now that answers 403 unless the project owns the policy.
- A subnet pool can only be deleted by an admin (policy
networking:subnet-pool:delete), and a project that only sees a pool cannot. - Update block-store, block-store-worker, compute-worker, key-manager, networking-api and ha-api together (a node upgrade with every package does it).
Upgrading
From 1.0.16 .deb packages, install the new version of every CloudX package on each node in one command with apt install -o Dpkg::Options::=--force-confold, as in docs/releases/v1.0.2.md "Upgrading"; every node must have all of its CloudX packages at one version. Update the compute nodes first, then the controllers, then run the migrations of point 1 above once from a controller. Running VMs are not touched. Check systemctl --failed on each node afterwards. The cloudx CLI is not in the .deb files: update it where it is installed.
What was and was not tested
Unit tests for every change in this release (networking and orchestration 475, CLI 192).
Lab, 2026-11-27 to 2026-12-01, 8-node Proxmox lab: QoS rates on a floating IP and a router, encrypted volumes on LVM, Ceph and NFS (data intact across live migration, no leftovers after delete), the NFS fence, live migration and host drain with encrypted volumes (16 to 20 s, 2 to 3 of 400 pings lost, checksums identical), clearing a router gateway and QoS rules by policy name.
Not run on the lab: RBAC policies for QoS policies, subnet pools and address scopes (unit tests only; the network RBAC and the rest of the networking changes were run), the RBAC page of the dashboard with the new object types, and an upgrade from the 1.0.16 packages to the 1.0.20 packages with the migrations. The link to the lab had 20 to 30 percent packet loss on 2026-12-01 and nothing could be copied to it. The .deb files of this release are built by the release workflow from the tag.
CloudX v1.0.16
CloudX v1.0.16
CloudX 1.0.16 follows 1.0.15. Instance HA now protects servers whose volumes are on Ceph or NFS (it refused both), a protected server that is stopped is recovered as stopped, ha-watchdog leaves a live migration alone, and a Kubernetes cluster's security group names its own members instead of the whole network.
What is new since 1.0.15
Instance HA
- Servers with Ceph volumes can be protected.
cloudx ha protectused to answer422 server volumes could not be locatedfor them, because a Ceph volume has no host. Before it evacuates, ha-api asks block-store to blocklist the Ceph clients that have each of the server's images open (rbd status, thenceph osd blocklist add). The cephx user of the block-store worker needsosd blocklist(mon 'profile rbd'has it).docs/ha.md, "Servers on Ceph". - New Ceph RBD images get the
exclusive-lockfeature next tolayering. With it, the Ceph client of an evacuated guest breaks the lock of an old owner that lost its watch and has that owner blocklisted, so a node that lost Ceph as well as ha-api can no longer write to the image when it reconnects. Root volumes made from an image already had it. - Servers with NFS volumes can be protected, alone or next to Ceph and LVM volumes. CloudX does not manage the NFS server, so there is no fence at the server: the qcow2 image lock (an NFSv4 lease of 90 seconds on the Linux server) and
ha-watchdogstop an old guest, and the recovery says so. The evacuated guest can meet a file that the old node still has locked, socloudx-compute-workerstarts the domain again every 5 seconds while libvirt says the disk is in use, forCOMPUTE_START_LOCK_WAITseconds (default 150).docs/ha.md, "Servers on NFS", has the lab results, including what the old guest did when its node was cut off from the NFS server. - A protected server that is
SHUTOFFis recovered asdone. Evacuate gives it back asSHUTOFF, but ha-api waited 300 seconds forACTIVE, recordedfailed, and made the next protected servers of the host wait too. ha-watchdogno longer destroys a protected server while a live-migration job runs on it (virsh domjobinfo;ha_watchdog_migration_grace, default 1800 seconds).
Block storage
- Deleting a snapshot that a consistency group snapshot made no longer leaves its LVM logical volume or NFS file behind: the worker looked for a name made from the snapshot id, but the group snapshot had named its members after the group and volume ids. It now removes the object the stored path names (Ceph already did). Objects left by earlier deletes stay; remove a leftover
snap-*logical volume orsnap-*.qcow2file by hand. - A volume type can be created with
--backend nfs(the API andcloudx volume-type createrefused it), the snapshot of an NFS volume no longer looks forNAME.qcow2.qcow2, and a consistency group snapshot takes a snapshot of each NFS volume (it failed withUnknown backend: nfs).
Kubernetes
- The security group
k8s-<cluster id>of a new cluster lets its own members in on every port with a rule that names the group itself, instead of every port from the cluster network's IPv4 subnets. A server of the same network that is not a node no longer reaches the nodes on every port, and a network with no IPv4 subnet no longer fails the cluster.
Documentation
docs/ha.mdhas the lab results for Ceph and NFS servers.docs/feature-comparison.mdsays which volume types HA protects and that Placement has forbidden traits and microversion headers.
Behaviour changes to read first
- A data volume made by block-store before this release keeps
layeringonly. To get the lock, runrbd feature enable POOL/IMAGE exclusive-lockon it (it works while the volume is attached). - Protecting a server with Ceph volumes needs
osd blocklistfor the cephx user of the block-store worker. Without it the fence fails and the evacuation does not happen. - NFS volumes need an export that allows root from the nodes (
no_root_squash): libvirt changes the file's owner to64055:kvm. Every node that runs block-store-worker or compute-worker mounts it atSTORAGE_NFS_DIR(default/var/lib/cloudx/volumes), hard, with NFSv4. - A Kubernetes cluster made by 1.0.15 keeps its subnet rule until it is deleted. New clusters get the new rule.
- Update block-store, block-store-worker, ha-api and compute-worker together (a node upgrade with every package does it).
Upgrading
No schema change and no cloudx-manage db sync. From 1.0.15 .deb packages, install the new version of every CloudX package on each node in one command with apt install -o Dpkg::Options::=--force-confold, as in docs/releases/v1.0.2.md "Upgrading"; every node must have all of its CloudX packages at one version. Update the compute nodes first, then the controllers. Running VMs are not touched. Check systemctl --failed on each node afterwards. The cloudx CLI is not in the .deb files: update it where it is installed.
What was and was not tested
Unit tests for every change in this release.
Lab, 2026-11-30, 8-node Proxmox lab (three controllers, three Ceph nodes, two compute nodes):
- The 1.0.16-1 packages: all 47
.debfiles were built from the release branch on a controller (the checksums equal the local copy; the packages were rebuilt once after the snapshot delete fix and the nodes reinstalled) and installed with apt over 1.0.15-1, on the two compute nodes first, then the three controllers one at a time. Afterwards every node had its packages at 1.0.16-1, no failed units, the 29 files checked equal the release branch, HA hostsup, CephHEALTH_OK. - NFS server on the packages:
nfs-kernel-serveron a Ceph node exported to the nodes, mounted on all five. A volume type with backendnfswas created (through the API: the CLI on the lab is still 1.0.15). A protected server with an NFS root was recovered after its compute node was powered off: the file could be opened from the other node after 64 seconds, the host wasfencedat 102 seconds and the server wasdoneandACTIVEon the other node, with the note that only the image lock and the watchdog stop an old guest. A consistency group snapshot of two NFS volumes becameavailableand made one snapshot file for each. It waited several minutes because the broker had handed the message to the powered-off node's consumer; it ran when that node came back (the known behaviour thatdocs/tutorials/ha-control-plane.mddescribes). - Deleting group snapshot members (rebuilt packages with the fix): the two member snapshots of a consistency group snapshot of NFS volumes were deleted and both
snap-*.qcow2files were gone from the export (before the fix they stayed). The LVM case was not run on the lab: the two LVM volumes landed on different nodes, which a group refuses; it is covered by unit tests only. - Ceph server on the packages: a protected server with a Ceph root was recovered after its compute node was powered off:
doneabout 97 seconds later andACTIVEon the other node. The fence found no client with the image open (the dead node's watch had already expired) and said so; the dead node's client was on the blocklist afterwards. - Not run on these packages: the Kubernetes cluster security group, the migration-aware watchdog and the
SHUTOFFrecovery were run earlier on hand-copied files of their branches (docs/ha.md,docs/k8s-engine.md), not on the 1.0.16 packages. The NFS cases withha-watchdogon and the cut-off cases are indocs/ha.md, run on those hand-copied files.
CloudX v1.0.15
CloudX v1.0.15
CloudX 1.0.15 is the first release after 1.0.11. It adds live migration of running servers and cloudx host drain, makes the browser console proxy able to serve https, applies a volume type's IOPS and throughput limits to LVM and NFS volumes, and fixes five problems found on the 8-node lab: the metadata service for servers behind a router, security group rules that name a remote group, Kubernetes clusters that went ACTIVE before their workers joined, and volumes stuck in creating.
What is new since 1.0.11
Compute
- Live migration.
cloudx server live-migrate SERVER [--host NODE](POST /servers/{ref}/live-migrate) moves a running server to another compute node; it used to answer501. The policy action iscompute:server:live_migrate,role:adminby default. Disks on Ceph RBD and LVM volumes that the target reaches over iSCSI can move; there is no block migration. A migration that fails before it completes is rolled back and the server isACTIVEon the source again, with the reason inos-instance-actions. Expect a network pause of one to three seconds and no zero-loss guarantee. cloudx host drain NODE [--dry-run] [--timeout SECONDS]disables a compute node and moves its servers away one at a time (live migration forACTIVE, cold migration forSHUTOFF). A server it cannot move, such as one with a local LVM volume on that node, is skipped and listed, and the command exits non-zero.cloudx host enable NODEputs the node back in service.cloudx-setup-migration-ssh [--dry-run] NODE...(incloudx-cli) prepares the root ssh trust between the compute nodes that live migration needs.- Six optional compute worker settings:
live_migration_host,live_migration_uri,live_migration_timeout(1800),live_migration_max_downtime_ms(300),live_migration_bandwidth_mbps(0, no cap) andlive_migration_auto_converge(false). An emptylive_migration_*value means the default; before, an empty number stopped the worker at start. - Instance HA never evacuates a server that is
MIGRATINGon its own: it records it asskippedwith the reason, because the guest may already run on the live-migration target. An operator decides (docs/live-migration.md).POST /servers/{id}/evacuateaccepts aMIGRATINGserver once its source node is forced down. - A volume type's
max_iopsandmax_throughputnow limit LVM volumes and NFS file volumes too. Before they were applied only on Ceph. The compute node sets them as a libvirt<iotune>when the volume is attached and when the server is built. - The browser console proxy can serve https. Set
console_proxy_certandconsole_proxy_keyincompute-worker.confand restartcloudx-compute-worker; the console link then starts withhttps://. Without the settings nothing changes.
Networking
- The metadata service (
169.254.169.254) answered404to every server that came through a router, because the router's NAT rewrote the request's source address. networking-api now exempts the metadata address from NAT on every router. - Security group rules that name a remote group (
remote_group_id) now work between members on different compute nodes. Before, two servers of the same group could talk only when they shared a node.
Kubernetes
- A worker no longer reports ready before it has joined. A cluster whose worker cannot join now ends in
ERRORatready_timeoutwith the reason, where it used to beACTIVEwith only the master in the Kubernetes API. - Each cluster gets its own security group
k8s-<cluster id>, deleted with the cluster. The nodes used the project's default group, which blocked the workers from the master's port 6443.
Block storage
- A volume whose create request was lost (a broker without quorum, a worker that died first) no longer stays in
creatingforever. AfterVOLUME_CREATING_TIMEOUT_SECONDS(default 3600,0switches the check off) with nothing on the backend, the reconciler marks iterror. - A volume that is already
errorkeeps the message it has. The reconciler used to mark it again on every pass of every worker, and the genericPhysical storage object missing on nodereplaced the stored reason, such as the one a failed create wrote.
Documentation
docs/tutorials/ha-control-plane.mdexplains how to make RabbitMQ drop the connections of a controller that was powered off (TCP keepalive and a user timeout inadvanced.config), and lists the controller power-off tests with their measured gaps.
Live migration also has several smaller fixes (an IPv6 live_migration_host, Ceph servers that failed with Secret not found, late reports of an earlier migration, deleting a Kubernetes cluster during a migration); CHANGELOG.md lists them.
Behaviour changes to read first
- A volume type that sets
max_iopsormax_throughputand is used by LVM or NFS volumes starts to throttle them: at the next attach for a data volume, at the next build for a root volume. A volume already attached to a running server keeps its old limit until then. - Live migration needs ssh between the compute nodes.
cloudx-setup-migration-sshgives every compute node root access to every other one. It also needs TCP 22 and 49152-49215 open between the compute nodes and a different iSCSI initiator name on each node.docs/live-migration.mdhas the details. - The upgrade replaces the
cloudx-novnc-proxyunit file: it now startspython -m console_proxy. If you changed the unit, redo the change. - New Kubernetes clusters count one security group against the project's quota. Clusters made before keep the default group and are not changed.
callback_urlin the Kubernetes worker's conf must still be an address the servers can reach (docs/k8s-engine.md). - Existing routers and floating IPs get the metadata fix when networking-api starts. The remote group fix reaches an existing rule at the next change to its group's rules or ports; to apply it at once, restart networking-api and add or remove any rule of the group.
- A volume that has been
creatingfor more than an hour with nothing on the backend becomeserroron the next reconciler pass. Delete it and create it again. SetVOLUME_CREATING_TIMEOUT_SECONDS=0in the block-store worker's environment to keep the old behaviour.
Upgrading
No schema change and no cloudx-manage db sync. From 1.0.11 .deb packages, install the new version of every CloudX package on each node in one command with apt install -o Dpkg::Options::=--force-confold, as in docs/releases/v1.0.2.md "Upgrading"; every node must have all of its CloudX packages at one version. Update the compute nodes first, then the controllers. Install cloudx-networking-api before cloudx-k8s-engine-worker or in the same pass, because the worker now asks networking-api for the cluster's security group. Running VMs are not touched. Check systemctl --failed on each node afterwards. The cloudx CLI is not in the .deb files: update it where it is installed (scripts/install-cli.sh) to get live-migrate, host drain and host enable.
To use live migration, follow the prerequisites in docs/live-migration.md before the first migration.
What was and was not tested
Unit tests for every change in this release.
Lab, 2026-11-27, 8-node Proxmox lab (three controllers, three Ceph nodes, two compute nodes):
- The 1.0.15-1 packages: all 47
.debfiles were built from the release commit and installed with apt on the three controllers and the two compute nodes, one node at a time, over 1.0.11-1 packages that carried hand-patched files for the three networking and Kubernetes fixes (the networking-api and block-store worker files that were compared afterwards match the release source). No failed unit on any node, Patroni, RabbitMQ and Ceph healthy after each controller, the two running servers kept running. - Metadata: servers on both compute nodes, behind a router with a floating IP, answer
200with their own instance id. - Remote group: a server in a group with the rule
ingress tcp 5000 from the group itselfon one compute node reached a listener of the same group on the other node; a server outside the group did not. Egress and IPv6 rules that name a remote group were checked earlier the same day. - Kubernetes: a cluster with one master and one worker became
ACTIVEafter both reported ready, with its security group; deleting it removed the VMs, the group and the record in about 13 seconds. The first attempt ended inERRORbecause the master could not reachcallback_url(in this lab the controllers answer provider-network sources through the wrong gateway); it worked after a route on the controllers. - Stale
creatingvolumes: withVOLUME_CREATING_TIMEOUT_SECONDS=120, the block-store workers stopped and the create message purged from theblock-storequeue, the volume went toerrorabout 144 seconds after it was created; a volume created normally afterwards wasavailableand untouched. The message of that volume was the generic text, not the one the check writes, which is what the change above fixes; it was found on the lab and the fix itself was run in unit tests only. - Live migration and
host drain: run earlier the same day on builds of the branches that were merged afterwards, not on these packages: Ceph and LVM root disks, data volumes, drain of two to eight servers, rollback when the migration ports were blocked, a worker restart in the middle of a migration, auto-converge, an IPv6live_migration_hostand the nodes of a k3s cluster.docs/live-migration.mdlists the figures; the network pause was 0.6 to 0.8 seconds. - RabbitMQ keepalive settings from the HA tutorial: applied to the three lab controllers, and a powered-off controller's connections were gone after 49 seconds.
- Instance HA and
ha-watchdog(on the 1.0.15-1 packages, two compute nodes, one protected CirrOS server with an LVM root on the other n...
CloudX v1.0.11
CloudX v1.0.11
CloudX 1.0.11 is a patch release after 1.0.10 with three fixes: adding a bandwidth rule to a QoS policy answers 201, cloudx object-store object commands send keys with special characters as typed, and cloudx-manage policy check tells an unprivileged user what to do. There is no schema change and no configuration change. The changes are in the networking service, the CLI and cloudx-manage.
What is new since 1.0.10
Networking
POST /qos/policies/{id}/bandwidth_limit_rulesanswered500(type object 'Port' has no attribute 'qos_policy_id') after it had stored the rule, so the dashboard's "Add bandwidth rule" showed an error for a rule that existed, and a retry stored a second one. It answers201. The call tried to apply the rule to the ports that use the policy, but no port refers to a policy (the column was dropped from the port model), so that step is removed: a policy only holds rules, and a port is limited withqos_max_kbpsandqos_burst_kbps. Rules that a failed call left behind stay; delete the duplicates withDELETE /qos/policies/{id}/bandwidth_limit_rules/{rule_id}.
CLI
cloudx object-store object put,getanddeletequote the key in the URL andlist --prefixsends the prefix as a query parameter, so a key or prefix with#,?,%,&or a space reaches object-store as typed.put --key 'a b#c.txt'used to store the keya b. The bucket name is quoted as one path segment too.
cloudx-manage
cloudx-manage policy checkon/etc/cloudx/policy.yamlas a user who cannot read it (the directory isroot:cloudx750) printed onlyPermission denied; it now adds a line saying to run it withsudoor as a user in thecloudxgroup. The exit status is still 1.
Behaviour changes to read first
- A bandwidth rule that was stored by a call that answered
500is still there. Look for duplicates in the policies you used with 1.0.10. - An object key that was stored cut at
#or?by an older CLI stays under the cut name.
Upgrading
From 1.0.10 .deb packages: install the new cloudx-networking-api on the controllers and cloudx-common (it holds cloudx-manage) on every node, as in docs/releases/v1.0.2.md "Upgrading". Every node must have all of its CloudX packages at one version. No cloudx-manage db sync. The cloudx CLI is not in the .deb files: update it where it is installed (scripts/install-cli.sh) to get the object-store fix. Running VMs are not touched.
What was and was not tested
Unit tests for the three fixes (tests/networking/test_qos_bandwidth_rule.py, tests/cli/test_object_store_quoting.py, tests/shared/test_policy_cli.py).
Lab (2026-11-10, three controllers and two compute nodes): the release files of 1.0.11-rc1 were installed controllers first (the checksums of the 47 .deb files matched SHA256SUMS). The unit list and states and a hash of /etc/cloudx were identical to before on every node, no unit failed, and vm-default kept running (the same QEMU process).
- QoS (1.0.10 first): on 1.0.10, adding a bandwidth rule answered
500and left the rule stored. On 1.0.11-rc1, on each controller and through the VIP: two rules added with201, the policy held exactly two rules, and a rule and the policy were deleted with204. policy check: on ctl01 as a user outside thecloudxgroup,cloudx-manage policy check /etc/cloudx/policy.yamlprinted thehint: run it with sudoline and exited 1; withsudoit ran.- Object-store CLI: checked on the wire only, against a local HTTP server, because the lab has no object-store service.
put,getanddeleteof the keydir/a b#c?d%e&f.txtin the bucketb ucketsent/buckets/b%20ucket/objects/dir/a%20b%23c%3Fd%25e%26f.txt, andlist --prefix 'x y#z&q=1'sent?prefix=x+y%23z%26q%3D1. Not run against a real object-store service. - Not tested: the upgrade from versions before 1.0.10, and a browser.
CloudX v1.0.11-rc1
CloudX v1.0.11
CloudX 1.0.11 is a patch release after 1.0.10 with three fixes: adding a bandwidth rule to a QoS policy answers 201, cloudx object-store object commands send keys with special characters as typed, and cloudx-manage policy check tells an unprivileged user what to do. There is no schema change and no configuration change. The changes are in the networking service, the CLI and cloudx-manage.
What is new since 1.0.10
Networking
POST /qos/policies/{id}/bandwidth_limit_rulesanswered500(type object 'Port' has no attribute 'qos_policy_id') after it had stored the rule, so the dashboard's "Add bandwidth rule" showed an error for a rule that existed, and a retry stored a second one. It answers201. The call tried to apply the rule to the ports that use the policy, but no port refers to a policy (the column was dropped from the port model), so that step is removed: a policy only holds rules, and a port is limited withqos_max_kbpsandqos_burst_kbps. Rules that a failed call left behind stay; delete the duplicates withDELETE /qos/policies/{id}/bandwidth_limit_rules/{rule_id}.
CLI
cloudx object-store object put,getanddeletequote the key in the URL andlist --prefixsends the prefix as a query parameter, so a key or prefix with#,?,%,&or a space reaches object-store as typed.put --key 'a b#c.txt'used to store the keya b. The bucket name is quoted as one path segment too.
cloudx-manage
cloudx-manage policy checkon/etc/cloudx/policy.yamlas a user who cannot read it (the directory isroot:cloudx750) printed onlyPermission denied; it now adds a line saying to run it withsudoor as a user in thecloudxgroup. The exit status is still 1.
Behaviour changes to read first
- A bandwidth rule that was stored by a call that answered
500is still there. Look for duplicates in the policies you used with 1.0.10. - An object key that was stored cut at
#or?by an older CLI stays under the cut name.
Upgrading
From 1.0.10 .deb packages: install the new cloudx-networking-api on the controllers and cloudx-common (it holds cloudx-manage) on every node, as in docs/releases/v1.0.2.md "Upgrading". Every node must have all of its CloudX packages at one version. No cloudx-manage db sync. The cloudx CLI is not in the .deb files: update it where it is installed (scripts/install-cli.sh) to get the object-store fix. Running VMs are not touched.
What was and was not tested
Unit tests for the three fixes (tests/networking/test_qos_bandwidth_rule.py, tests/cli/test_object_store_quoting.py, tests/shared/test_policy_cli.py).
Lab (2026-11-10, three controllers, 1.0.10 installed): the QoS fix was copied to ctl01 only and checked there. On 1.0.10, adding a rule answered 500 and left one rule; with the fix it answered 201, the policy held one rule, and the rule and the policy were deleted with 204. ctl01 was put back to the packaged file afterwards. Not run on the lab yet: the .deb files of this release, the CLI quoting against a real object-store, and policy check as an unprivileged user.
CloudX v1.0.10
CloudX v1.0.10
CloudX 1.0.10 confirms a resize that nobody confirmed, replaces the browser console link that pointed nowhere with a noVNC proxy on every compute node, adds domain and system scoped tokens, application credential rotation and trusts, adds three dashboard pages, puts the admin-only actions of every service under an operator-editable policy file, and tightens access checks: the roles of an application credential, the lookup of an application credential, a domain's consolidated invoice, who may change an image, who may read one, who may use one to boot a server or make a volume, which volumes, snapshots, networks, ports, security groups, server groups, consistency groups and schedules a project's users may name, what autoscaling, the metadata proxy, containers, load balancers and the k8s-engine may reach, and who may call the bulk usage and metric routes. The changes are in the compute service, the reaper, the compute worker, the identity service, billing, telemetry, the image service, compute and block-store (image use), the other services' admin gates, the dashboard and the packaging. There are three schema changes and upgrade steps (below), and several behaviour changes to read first.
What is new since 1.0.9
Compute API and reaper
- A resize is confirmed automatically.
cloudx-reaperconfirms a server that has waited inVERIFY_RESIZElonger thanRESIZE_CONFIRM_WINDOW_SECONDS(86400 by default;0turns it off), through the publicconfirmResize. The reaper runs everyREAPER_INTERVALseconds (600), so the confirmation comes up to one interval after the window.REAPER_DRY_RUNonly logs. compute-api hasGET /internal/resize-pending?seconds=Nfor the sweep, and the server record has a new column,resize_pending_since(migrationcompute_0005), set by the conductor while the status isVERIFY_RESIZE. A server that an older version leftACTIVEwith a rollback snapshot is not swept.
Compute worker and packaging
- The browser console goes through a proxy on the compute node. A new unit,
cloudx-novnc-proxy, runswebsockifyand the noVNC client on port 6080 of every compute node.console-urlandremote-consolesreturnhttp://<console_proxy_host>:6080/vnc.html?autoconnect=1&path=websockify%3Ftoken=<token>. The guest's VNC stays on127.0.0.1. The token is a JWT signed with a key derived fromauth_secret_key, valid 300 seconds, and good for one VNC port of one libvirt domain on that node (COMPUTE_HOST); the proxy checks the signature and the expiry when the connection opens, then asks libvirt whether the domain still owns the port, and logs every refusal with its reason (never the token). Before, the link wasNOVNC_BASE_URL?host=localhost&port=<vnc port>, and nothing in the packages started a proxy. - The proxy ships in the
cloudx-compute-workerpackage, which now depends onnovnc. The worker's unit hasWants=cloudx-novnc-proxy.serviceand the proxy unit hasPartOf=cloudx-compute-worker.service, so the proxy starts, restarts and stops with the worker; the package does not enable it on its own. On a tarball node the example worker unit ofdocs/tarball-install.mdhas the same line and its start command enables the proxy.console_proxy_hostin/etc/cloudx/compute-worker/compute-worker.confsets the address that goes into the link (default: the node name). Seedocs/console.md.
Identity
- Domain and system scoped tokens.
POST /auth/tokenstakesscopewith one of{"project": ...},{"domain": ...}or{"system": true}. A domain token (for a domain admin of that domain, or an admin) has no project; only auth-api and billing accept it, every other service answers 403project-scoped token required. A system token needs the admin role. - Application credential rotation.
POST /v3/users/{user}/application_credentials/{cred}/rotatewith an optionalgrace_seconds(0 to 86400), during which the replaced secret still works, andcloudx auth appcred rotate USER CRED [--grace-seconds N](migrationauth_0008). - Trusts.
POST|GET /v3/OS-TRUST/trusts,GET|DELETE /v3/OS-TRUST/trusts/{id}andPOST /auth/tokens/trust(migrationauth_0009). A trustor delegates roles it holds in one project to another user; the trustee exchanges the trust for a token that acts as the trustor. Each exchange is written to the audit log astrust.token. The whole feature is described indocs/identity.md. - The roles of an application credential are checked.
rolesmust be a non-empty list without duplicates fromadmin,memberandreader(400 otherwise), and the credential's user must hold every one of them in their project (403 otherwise;admincoversmemberandreader). When an admin creates a credential for another user, the roles are checked against that user. Ifrolesis left out, the credential gets["member"], or the user's own role when they do not holdmember. The check is repeated at every login: the token gets the credential's roles that the user still holds at that moment, and the login answers 401 when none is left. This also applies to credentials created by earlier versions, with no migration. - An application credential is reached through its own user only.
GETandDELETE /v3/users/{user}/application_credentials/{cred}looked a credential up by id without checking its owner. They now look it up among the URL user's own credentials and answer 404 for another user's credential, as rotate already did. A login byapplication_credential_namealone now tries the enabled credentials of that name, at most 5 in the order they were created, and accepts the one whose secret fits; before, it took the first credential of that name and failed when it belonged to another user. A login by id is unchanged.
Policy file
/etc/cloudx/policy.yamldecides the admin-only actions of every service. 57 actions: the 22 ofauth-apiand 35 more (12 of compute, 8 of block-store, 5 of placement, 3 of billing, 2 each of telemetry, networking and object-store, 1 of ha). A rule is a boolean expression ofrole:NAME,domain_admin:True|False,rule:NAME,@,!,and,or,not. Without the file every decision is what it was; a bad rule or file never stops a service. The file is re-read within 2 seconds of a change.cloudx-manage policy check [FILE]validates a file andcloudx-manage policy defaultsprints the built-in rules. The sample is/usr/share/cloudx/policy.yaml.sampleincloudx-common; no package creates/etc/cloudx/policy.yaml. Ownership, visibility and state checks,/internal/...routes and the four bulk billing and telemetry routes stay in code. Seedocs/policy.md.
Image
- Changing an image needs its owner.
PATCH,DELETE,deactivate,reactivate, tags and sharing onimage-apinow require the image's owner, an admin of the owner's domain, or a system admin (the internal token counts as one, soimage-workeris unchanged). The fields the service manages itself (status,size,checksum,object_name,filename,storage_backend) can be set by an admin or the internal token only, and the file store serves only files inside its folder. Upgrade soon. - Reading a non-public image needs the right to read it.
GET /images/{image},download,tags,verify,membersandprefetchonimage-apianswer only to the image's owner, an admin of the owner's domain, a system admin, the internal token, and a project the image was shared with that accepted it (a pending or rejected share grants nothing); anyone else gets404 image '<image>' not found, as for a missing image. A public image is still readable and downloadable without signing in.verify,membersandprefetchstill need a login.GET /imageswith avisibilityfilter applies the project filter too.image-apilogsanonymous read of a non-public image refused: <ref>for each refused anonymous read.compute-workerandblock-store-workersend the internal token when they read an image. - Using an image needs the right to read it. Creating a server from an image, rebuilding or rescuing a server with one, and creating a volume from one (
POST /volumeswithimageorimage_id) fail with404 image '<image>' not found, before anything is created, unless the caller may read the image by the same rule.compute-apiandblock-store-apitellimage-apiwho is asking with a header,X-Caller-Claims(the caller's validated claims: ASCII JSON, at most 2048 bytes, a fixed set of keys), sent together with the internal token. This is a trust of the internal token: whoever holds it can state any identity toimage-api, though the token already makes its holder an admin on every service.image-apiuses the claims only when the internal token is valid; a malformed header makes the caller anonymous (public images only), never an admin; without a valid token the header is ignored. WithINTERNAL_TOKENunset, those services read public images only; the packages always set it.
Project checks (since 1.0.10-rc3)
- Volumes and snapshots named by a user belong to the caller's project. Booting from a volume, cloning a volume or snapshot, and attaching a volume through
POST /volumes/{ref}/attachcheck the project (and the target server's). Compute'sPOST /servers/{ref}/volumes/attachand/detachaccept only an admin or the internal token; users use block-store's routes. The owner of an image made from a volume is the volume's project unless an admin or a service names another. - Networks, ports, security groups and server groups named by a user are checked. Creating a server and adding a port resolve them as the caller: compute sends the caller's identity to networking in
X-Caller-Claims, together with the internal token, so networking's own rules apply (own project, the admin of its domain, shared and external networks). Server groups named b...
CloudX v1.0.10-rc8
CloudX v1.0.10
CloudX 1.0.10 confirms a resize that nobody confirmed, replaces the browser console link that pointed nowhere with a noVNC proxy on every compute node, adds domain and system scoped tokens, application credential rotation and trusts, adds three dashboard pages, puts the admin-only actions of every service under an operator-editable policy file, and tightens access checks: the roles of an application credential, the lookup of an application credential, a domain's consolidated invoice, who may change an image, who may read one, who may use one to boot a server or make a volume, which volumes, snapshots, networks, ports, security groups, server groups, consistency groups and schedules a project's users may name, what autoscaling, the metadata proxy, containers, load balancers and the k8s-engine may reach, and who may call the bulk usage and metric routes. The changes are in the compute service, the reaper, the compute worker, the identity service, billing, telemetry, the image service, compute and block-store (image use), the other services' admin gates, the dashboard and the packaging. There are three schema changes and upgrade steps (below), and several behaviour changes to read first.
What is new since 1.0.9
Compute API and reaper
- A resize is confirmed automatically.
cloudx-reaperconfirms a server that has waited inVERIFY_RESIZElonger thanRESIZE_CONFIRM_WINDOW_SECONDS(86400 by default;0turns it off), through the publicconfirmResize. The reaper runs everyREAPER_INTERVALseconds (600), so the confirmation comes up to one interval after the window.REAPER_DRY_RUNonly logs. compute-api hasGET /internal/resize-pending?seconds=Nfor the sweep, and the server record has a new column,resize_pending_since(migrationcompute_0005), set by the conductor while the status isVERIFY_RESIZE. A server that an older version leftACTIVEwith a rollback snapshot is not swept.
Compute worker and packaging
- The browser console goes through a proxy on the compute node. A new unit,
cloudx-novnc-proxy, runswebsockifyand the noVNC client on port 6080 of every compute node.console-urlandremote-consolesreturnhttp://<console_proxy_host>:6080/vnc.html?autoconnect=1&path=websockify%3Ftoken=<token>. The guest's VNC stays on127.0.0.1. The token is a JWT signed with a key derived fromauth_secret_key, valid 300 seconds, and good for one VNC port of one libvirt domain on that node (COMPUTE_HOST); the proxy checks the signature and the expiry when the connection opens, then asks libvirt whether the domain still owns the port, and logs every refusal with its reason (never the token). Before, the link wasNOVNC_BASE_URL?host=localhost&port=<vnc port>, and nothing in the packages started a proxy. - The proxy ships in the
cloudx-compute-workerpackage, which now depends onnovnc. The worker's unit hasWants=cloudx-novnc-proxy.serviceand the proxy unit hasPartOf=cloudx-compute-worker.service, so the proxy starts, restarts and stops with the worker; the package does not enable it on its own. On a tarball node the example worker unit ofdocs/tarball-install.mdhas the same line and its start command enables the proxy.console_proxy_hostin/etc/cloudx/compute-worker/compute-worker.confsets the address that goes into the link (default: the node name). Seedocs/console.md.
Identity
- Domain and system scoped tokens.
POST /auth/tokenstakesscopewith one of{"project": ...},{"domain": ...}or{"system": true}. A domain token (for a domain admin of that domain, or an admin) has no project; only auth-api and billing accept it, every other service answers 403project-scoped token required. A system token needs the admin role. - Application credential rotation.
POST /v3/users/{user}/application_credentials/{cred}/rotatewith an optionalgrace_seconds(0 to 86400), during which the replaced secret still works, andcloudx auth appcred rotate USER CRED [--grace-seconds N](migrationauth_0008). - Trusts.
POST|GET /v3/OS-TRUST/trusts,GET|DELETE /v3/OS-TRUST/trusts/{id}andPOST /auth/tokens/trust(migrationauth_0009). A trustor delegates roles it holds in one project to another user; the trustee exchanges the trust for a token that acts as the trustor. Each exchange is written to the audit log astrust.token. The whole feature is described indocs/identity.md. - The roles of an application credential are checked.
rolesmust be a non-empty list without duplicates fromadmin,memberandreader(400 otherwise), and the credential's user must hold every one of them in their project (403 otherwise;admincoversmemberandreader). When an admin creates a credential for another user, the roles are checked against that user. Ifrolesis left out, the credential gets["member"], or the user's own role when they do not holdmember. The check is repeated at every login: the token gets the credential's roles that the user still holds at that moment, and the login answers 401 when none is left. This also applies to credentials created by earlier versions, with no migration. - An application credential is reached through its own user only.
GETandDELETE /v3/users/{user}/application_credentials/{cred}looked a credential up by id without checking its owner. They now look it up among the URL user's own credentials and answer 404 for another user's credential, as rotate already did. A login byapplication_credential_namealone now tries the enabled credentials of that name, at most 5 in the order they were created, and accepts the one whose secret fits; before, it took the first credential of that name and failed when it belonged to another user. A login by id is unchanged.
Policy file
/etc/cloudx/policy.yamldecides the admin-only actions of every service. 57 actions: the 22 ofauth-apiand 35 more (12 of compute, 8 of block-store, 5 of placement, 3 of billing, 2 each of telemetry, networking and object-store, 1 of ha). A rule is a boolean expression ofrole:NAME,domain_admin:True|False,rule:NAME,@,!,and,or,not. Without the file every decision is what it was; a bad rule or file never stops a service. The file is re-read within 2 seconds of a change.cloudx-manage policy check [FILE]validates a file andcloudx-manage policy defaultsprints the built-in rules. The sample is/usr/share/cloudx/policy.yaml.sampleincloudx-common; no package creates/etc/cloudx/policy.yaml. Ownership, visibility and state checks,/internal/...routes and the four bulk billing and telemetry routes stay in code. Seedocs/policy.md.
Image
- Changing an image needs its owner.
PATCH,DELETE,deactivate,reactivate, tags and sharing onimage-apinow require the image's owner, an admin of the owner's domain, or a system admin (the internal token counts as one, soimage-workeris unchanged). The fields the service manages itself (status,size,checksum,object_name,filename,storage_backend) can be set by an admin or the internal token only, and the file store serves only files inside its folder. Upgrade soon. - Reading a non-public image needs the right to read it.
GET /images/{image},download,tags,verify,membersandprefetchonimage-apianswer only to the image's owner, an admin of the owner's domain, a system admin, the internal token, and a project the image was shared with that accepted it (a pending or rejected share grants nothing); anyone else gets404 image '<image>' not found, as for a missing image. A public image is still readable and downloadable without signing in.verify,membersandprefetchstill need a login.GET /imageswith avisibilityfilter applies the project filter too.image-apilogsanonymous read of a non-public image refused: <ref>for each refused anonymous read.compute-workerandblock-store-workersend the internal token when they read an image. - Using an image needs the right to read it. Creating a server from an image, rebuilding or rescuing a server with one, and creating a volume from one (
POST /volumeswithimageorimage_id) fail with404 image '<image>' not found, before anything is created, unless the caller may read the image by the same rule.compute-apiandblock-store-apitellimage-apiwho is asking with a header,X-Caller-Claims(the caller's validated claims: ASCII JSON, at most 2048 bytes, a fixed set of keys), sent together with the internal token. This is a trust of the internal token: whoever holds it can state any identity toimage-api, though the token already makes its holder an admin on every service.image-apiuses the claims only when the internal token is valid; a malformed header makes the caller anonymous (public images only), never an admin; without a valid token the header is ignored. WithINTERNAL_TOKENunset, those services read public images only; the packages always set it.
Project checks (since 1.0.10-rc3)
- Volumes and snapshots named by a user belong to the caller's project. Booting from a volume, cloning a volume or snapshot, and attaching a volume through
POST /volumes/{ref}/attachcheck the project (and the target server's). Compute'sPOST /servers/{ref}/volumes/attachand/detachaccept only an admin or the internal token; users use block-store's routes. The owner of an image made from a volume is the volume's project unless an admin or a service names another. - Networks, ports, security groups and server groups named by a user are checked. Creating a server and adding a port resolve them as the caller: compute sends the caller's identity to networking in
X-Caller-Claims, together with the internal token, so networking's own rules apply (own project, the admin of its domain, shared and external networks). Server groups named b...
CloudX v1.0.10-rc7
CloudX v1.0.10
CloudX 1.0.10 confirms a resize that nobody confirmed, replaces the browser console link that pointed nowhere with a noVNC proxy on every compute node, adds domain and system scoped tokens, application credential rotation and trusts, adds three dashboard pages, puts the admin-only actions of every service under an operator-editable policy file, and tightens access checks: the roles of an application credential, the lookup of an application credential, a domain's consolidated invoice, who may change an image, who may read one, who may use one to boot a server or make a volume, which volumes, snapshots, networks, ports, security groups, server groups, consistency groups and schedules a project's users may name, what autoscaling, the metadata proxy, containers, load balancers and the k8s-engine may reach, and who may call the bulk usage and metric routes. The changes are in the compute service, the reaper, the compute worker, the identity service, billing, telemetry, the image service, compute and block-store (image use), the other services' admin gates, the dashboard and the packaging. There are three schema changes and upgrade steps (below), and several behaviour changes to read first.
What is new since 1.0.9
Compute API and reaper
- A resize is confirmed automatically.
cloudx-reaperconfirms a server that has waited inVERIFY_RESIZElonger thanRESIZE_CONFIRM_WINDOW_SECONDS(86400 by default;0turns it off), through the publicconfirmResize. The reaper runs everyREAPER_INTERVALseconds (600), so the confirmation comes up to one interval after the window.REAPER_DRY_RUNonly logs. compute-api hasGET /internal/resize-pending?seconds=Nfor the sweep, and the server record has a new column,resize_pending_since(migrationcompute_0005), set by the conductor while the status isVERIFY_RESIZE. A server that an older version leftACTIVEwith a rollback snapshot is not swept.
Compute worker and packaging
- The browser console goes through a proxy on the compute node. A new unit,
cloudx-novnc-proxy, runswebsockifyand the noVNC client on port 6080 of every compute node.console-urlandremote-consolesreturnhttp://<console_proxy_host>:6080/vnc.html?autoconnect=1&path=websockify%3Ftoken=<token>. The guest's VNC stays on127.0.0.1. The token is a JWT signed with a key derived fromauth_secret_key, valid 300 seconds, and good for one VNC port of one libvirt domain on that node (COMPUTE_HOST); the proxy checks the signature and the expiry when the connection opens, then asks libvirt whether the domain still owns the port, and logs every refusal with its reason (never the token). Before, the link wasNOVNC_BASE_URL?host=localhost&port=<vnc port>, and nothing in the packages started a proxy. - The proxy ships in the
cloudx-compute-workerpackage, which now depends onnovnc. The worker's unit hasWants=cloudx-novnc-proxy.serviceand the proxy unit hasPartOf=cloudx-compute-worker.service, so the proxy starts, restarts and stops with the worker; the package does not enable it on its own. On a tarball node the example worker unit ofdocs/tarball-install.mdhas the same line and its start command enables the proxy.console_proxy_hostin/etc/cloudx/compute-worker/compute-worker.confsets the address that goes into the link (default: the node name). Seedocs/console.md.
Identity
- Domain and system scoped tokens.
POST /auth/tokenstakesscopewith one of{"project": ...},{"domain": ...}or{"system": true}. A domain token (for a domain admin of that domain, or an admin) has no project; only auth-api and billing accept it, every other service answers 403project-scoped token required. A system token needs the admin role. - Application credential rotation.
POST /v3/users/{user}/application_credentials/{cred}/rotatewith an optionalgrace_seconds(0 to 86400), during which the replaced secret still works, andcloudx auth appcred rotate USER CRED [--grace-seconds N](migrationauth_0008). - Trusts.
POST|GET /v3/OS-TRUST/trusts,GET|DELETE /v3/OS-TRUST/trusts/{id}andPOST /auth/tokens/trust(migrationauth_0009). A trustor delegates roles it holds in one project to another user; the trustee exchanges the trust for a token that acts as the trustor. Each exchange is written to the audit log astrust.token. The whole feature is described indocs/identity.md. - The roles of an application credential are checked.
rolesmust be a non-empty list without duplicates fromadmin,memberandreader(400 otherwise), and the credential's user must hold every one of them in their project (403 otherwise;admincoversmemberandreader). When an admin creates a credential for another user, the roles are checked against that user. Ifrolesis left out, the credential gets["member"], or the user's own role when they do not holdmember. The check is repeated at every login: the token gets the credential's roles that the user still holds at that moment, and the login answers 401 when none is left. This also applies to credentials created by earlier versions, with no migration. - An application credential is reached through its own user only.
GETandDELETE /v3/users/{user}/application_credentials/{cred}looked a credential up by id without checking its owner. They now look it up among the URL user's own credentials and answer 404 for another user's credential, as rotate already did. A login byapplication_credential_namealone now tries the enabled credentials of that name, at most 5 in the order they were created, and accepts the one whose secret fits; before, it took the first credential of that name and failed when it belonged to another user. A login by id is unchanged.
Policy file
/etc/cloudx/policy.yamldecides the admin-only actions of every service. 57 actions: the 22 ofauth-apiand 35 more (12 of compute, 8 of block-store, 5 of placement, 3 of billing, 2 each of telemetry, networking and object-store, 1 of ha). A rule is a boolean expression ofrole:NAME,domain_admin:True|False,rule:NAME,@,!,and,or,not. Without the file every decision is what it was; a bad rule or file never stops a service. The file is re-read within 2 seconds of a change.cloudx-manage policy check [FILE]validates a file andcloudx-manage policy defaultsprints the built-in rules. The sample is/usr/share/cloudx/policy.yaml.sampleincloudx-common; no package creates/etc/cloudx/policy.yaml. Ownership, visibility and state checks,/internal/...routes and the four bulk billing and telemetry routes stay in code. Seedocs/policy.md.
Image
- Changing an image needs its owner.
PATCH,DELETE,deactivate,reactivate, tags and sharing onimage-apinow require the image's owner, an admin of the owner's domain, or a system admin (the internal token counts as one, soimage-workeris unchanged). The fields the service manages itself (status,size,checksum,object_name,filename,storage_backend) can be set by an admin or the internal token only, and the file store serves only files inside its folder. Upgrade soon. - Reading a non-public image needs the right to read it.
GET /images/{image},download,tags,verify,membersandprefetchonimage-apianswer only to the image's owner, an admin of the owner's domain, a system admin, the internal token, and a project the image was shared with that accepted it (a pending or rejected share grants nothing); anyone else gets404 image '<image>' not found, as for a missing image. A public image is still readable and downloadable without signing in.verify,membersandprefetchstill need a login.GET /imageswith avisibilityfilter applies the project filter too.image-apilogsanonymous read of a non-public image refused: <ref>for each refused anonymous read.compute-workerandblock-store-workersend the internal token when they read an image. - Using an image needs the right to read it. Creating a server from an image, rebuilding or rescuing a server with one, and creating a volume from one (
POST /volumeswithimageorimage_id) fail with404 image '<image>' not found, before anything is created, unless the caller may read the image by the same rule.compute-apiandblock-store-apitellimage-apiwho is asking with a header,X-Caller-Claims(the caller's validated claims: ASCII JSON, at most 2048 bytes, a fixed set of keys), sent together with the internal token. This is a trust of the internal token: whoever holds it can state any identity toimage-api, though the token already makes its holder an admin on every service.image-apiuses the claims only when the internal token is valid; a malformed header makes the caller anonymous (public images only), never an admin; without a valid token the header is ignored. WithINTERNAL_TOKENunset, those services read public images only; the packages always set it.
Project checks (since 1.0.10-rc3)
- Volumes and snapshots named by a user belong to the caller's project. Booting from a volume, cloning a volume or snapshot, and attaching a volume through
POST /volumes/{ref}/attachcheck the project (and the target server's). Compute'sPOST /servers/{ref}/volumes/attachand/detachaccept only an admin or the internal token; users use block-store's routes. The owner of an image made from a volume is the volume's project unless an admin or a service names another. - Networks, ports, security groups and server groups named by a user are checked. Creating a server and adding a port resolve them as the caller: compute sends the caller's identity to networking in
X-Caller-Claims, together with the internal token, so networking's own rules apply (own project, the admin of its domain, shared and external networks). Server groups named b...
CloudX v1.0.10-rc6
CloudX v1.0.10
CloudX 1.0.10 confirms a resize that nobody confirmed, replaces the browser console link that pointed nowhere with a noVNC proxy on every compute node, adds domain and system scoped tokens, application credential rotation and trusts, adds three dashboard pages, puts the admin-only actions of every service under an operator-editable policy file, and tightens access checks: the roles of an application credential, the lookup of an application credential, a domain's consolidated invoice, who may change an image, who may read one, who may use one to boot a server or make a volume, which volumes, snapshots, networks, ports, security groups, server groups, consistency groups and schedules a project's users may name, what autoscaling, the metadata proxy, containers, load balancers and the k8s-engine may reach, and who may call the bulk usage and metric routes. The changes are in the compute service, the reaper, the compute worker, the identity service, billing, telemetry, the image service, compute and block-store (image use), the other services' admin gates, the dashboard and the packaging. There are three schema changes and upgrade steps (below), and several behaviour changes to read first.
What is new since 1.0.9
Compute API and reaper
- A resize is confirmed automatically.
cloudx-reaperconfirms a server that has waited inVERIFY_RESIZElonger thanRESIZE_CONFIRM_WINDOW_SECONDS(86400 by default;0turns it off), through the publicconfirmResize. The reaper runs everyREAPER_INTERVALseconds (600), so the confirmation comes up to one interval after the window.REAPER_DRY_RUNonly logs. compute-api hasGET /internal/resize-pending?seconds=Nfor the sweep, and the server record has a new column,resize_pending_since(migrationcompute_0005), set by the conductor while the status isVERIFY_RESIZE. A server that an older version leftACTIVEwith a rollback snapshot is not swept.
Compute worker and packaging
- The browser console goes through a proxy on the compute node. A new unit,
cloudx-novnc-proxy, runswebsockifyand the noVNC client on port 6080 of every compute node.console-urlandremote-consolesreturnhttp://<console_proxy_host>:6080/vnc.html?autoconnect=1&path=websockify%3Ftoken=<token>. The guest's VNC stays on127.0.0.1. The token is a JWT signed with a key derived fromauth_secret_key, valid 300 seconds, and good for one VNC port of one libvirt domain on that node (COMPUTE_HOST); the proxy checks the signature and the expiry when the connection opens, then asks libvirt whether the domain still owns the port, and logs every refusal with its reason (never the token). Before, the link wasNOVNC_BASE_URL?host=localhost&port=<vnc port>, and nothing in the packages started a proxy. - The proxy ships in the
cloudx-compute-workerpackage, which now depends onnovnc. The worker's unit hasWants=cloudx-novnc-proxy.serviceand the proxy unit hasPartOf=cloudx-compute-worker.service, so the proxy starts, restarts and stops with the worker; the package does not enable it on its own. On a tarball node the example worker unit ofdocs/tarball-install.mdhas the same line and its start command enables the proxy.console_proxy_hostin/etc/cloudx/compute-worker/compute-worker.confsets the address that goes into the link (default: the node name). Seedocs/console.md.
Identity
- Domain and system scoped tokens.
POST /auth/tokenstakesscopewith one of{"project": ...},{"domain": ...}or{"system": true}. A domain token (for a domain admin of that domain, or an admin) has no project; only auth-api and billing accept it, every other service answers 403project-scoped token required. A system token needs the admin role. - Application credential rotation.
POST /v3/users/{user}/application_credentials/{cred}/rotatewith an optionalgrace_seconds(0 to 86400), during which the replaced secret still works, andcloudx auth appcred rotate USER CRED [--grace-seconds N](migrationauth_0008). - Trusts.
POST|GET /v3/OS-TRUST/trusts,GET|DELETE /v3/OS-TRUST/trusts/{id}andPOST /auth/tokens/trust(migrationauth_0009). A trustor delegates roles it holds in one project to another user; the trustee exchanges the trust for a token that acts as the trustor. Each exchange is written to the audit log astrust.token. The whole feature is described indocs/identity.md. - The roles of an application credential are checked.
rolesmust be a non-empty list without duplicates fromadmin,memberandreader(400 otherwise), and the credential's user must hold every one of them in their project (403 otherwise;admincoversmemberandreader). When an admin creates a credential for another user, the roles are checked against that user. Ifrolesis left out, the credential gets["member"], or the user's own role when they do not holdmember. The check is repeated at every login: the token gets the credential's roles that the user still holds at that moment, and the login answers 401 when none is left. This also applies to credentials created by earlier versions, with no migration. - An application credential is reached through its own user only.
GETandDELETE /v3/users/{user}/application_credentials/{cred}looked a credential up by id without checking its owner. They now look it up among the URL user's own credentials and answer 404 for another user's credential, as rotate already did. A login byapplication_credential_namealone now tries the enabled credentials of that name, at most 5 in the order they were created, and accepts the one whose secret fits; before, it took the first credential of that name and failed when it belonged to another user. A login by id is unchanged.
Policy file
/etc/cloudx/policy.yamldecides the admin-only actions of every service. 57 actions: the 22 ofauth-apiand 35 more (12 of compute, 8 of block-store, 5 of placement, 3 of billing, 2 each of telemetry, networking and object-store, 1 of ha). A rule is a boolean expression ofrole:NAME,domain_admin:True|False,rule:NAME,@,!,and,or,not. Without the file every decision is what it was; a bad rule or file never stops a service. The file is re-read within 2 seconds of a change.cloudx-manage policy check [FILE]validates a file andcloudx-manage policy defaultsprints the built-in rules. The sample is/usr/share/cloudx/policy.yaml.sampleincloudx-common; no package creates/etc/cloudx/policy.yaml. Ownership, visibility and state checks,/internal/...routes and the four bulk billing and telemetry routes stay in code. Seedocs/policy.md.
Image
- Changing an image needs its owner.
PATCH,DELETE,deactivate,reactivate, tags and sharing onimage-apinow require the image's owner, an admin of the owner's domain, or a system admin (the internal token counts as one, soimage-workeris unchanged). The fields the service manages itself (status,size,checksum,object_name,filename,storage_backend) can be set by an admin or the internal token only, and the file store serves only files inside its folder. Upgrade soon. - Reading a non-public image needs the right to read it.
GET /images/{image},download,tags,verify,membersandprefetchonimage-apianswer only to the image's owner, an admin of the owner's domain, a system admin, the internal token, and a project the image was shared with that accepted it (a pending or rejected share grants nothing); anyone else gets404 image '<image>' not found, as for a missing image. A public image is still readable and downloadable without signing in.verify,membersandprefetchstill need a login.GET /imageswith avisibilityfilter applies the project filter too.image-apilogsanonymous read of a non-public image refused: <ref>for each refused anonymous read.compute-workerandblock-store-workersend the internal token when they read an image. - Using an image needs the right to read it. Creating a server from an image, rebuilding or rescuing a server with one, and creating a volume from one (
POST /volumeswithimageorimage_id) fail with404 image '<image>' not found, before anything is created, unless the caller may read the image by the same rule.compute-apiandblock-store-apitellimage-apiwho is asking with a header,X-Caller-Claims(the caller's validated claims: ASCII JSON, at most 2048 bytes, a fixed set of keys), sent together with the internal token. This is a trust of the internal token: whoever holds it can state any identity toimage-api, though the token already makes its holder an admin on every service.image-apiuses the claims only when the internal token is valid; a malformed header makes the caller anonymous (public images only), never an admin; without a valid token the header is ignored. WithINTERNAL_TOKENunset, those services read public images only; the packages always set it.
Project checks (since 1.0.10-rc3)
- Volumes and snapshots named by a user belong to the caller's project. Booting from a volume, cloning a volume or snapshot, and attaching a volume through
POST /volumes/{ref}/attachcheck the project (and the target server's). Compute'sPOST /servers/{ref}/volumes/attachand/detachaccept only an admin or the internal token; users use block-store's routes. The owner of an image made from a volume is the volume's project unless an admin or a service names another. - Networks, ports, security groups and server groups named by a user are checked. Creating a server and adding a port resolve them as the caller: compute sends the caller's identity to networking in
X-Caller-Claims, together with the internal token, so networking's own rules apply (own project, the admin of its domain, shared and external networks). Server groups named b...
CloudX v1.0.10-rc5
CloudX v1.0.10
CloudX 1.0.10 confirms a resize that nobody confirmed, replaces the browser console link that pointed nowhere with a noVNC proxy on every compute node, adds domain and system scoped tokens, application credential rotation and trusts, adds three dashboard pages, puts the admin-only actions of every service under an operator-editable policy file, and tightens access checks: the roles of an application credential, the lookup of an application credential, a domain's consolidated invoice, who may change an image, who may read one, who may use one to boot a server or make a volume, which volumes, snapshots, networks, ports, security groups, server groups, consistency groups and schedules a project's users may name, what autoscaling, the metadata proxy, containers, load balancers and the k8s-engine may reach, and who may call the bulk usage and metric routes. The changes are in the compute service, the reaper, the compute worker, the identity service, billing, telemetry, the image service, compute and block-store (image use), the other services' admin gates, the dashboard and the packaging. There are three schema changes and upgrade steps (below), and several behaviour changes to read first.
What is new since 1.0.9
Compute API and reaper
- A resize is confirmed automatically.
cloudx-reaperconfirms a server that has waited inVERIFY_RESIZElonger thanRESIZE_CONFIRM_WINDOW_SECONDS(86400 by default;0turns it off), through the publicconfirmResize. The reaper runs everyREAPER_INTERVALseconds (600), so the confirmation comes up to one interval after the window.REAPER_DRY_RUNonly logs. compute-api hasGET /internal/resize-pending?seconds=Nfor the sweep, and the server record has a new column,resize_pending_since(migrationcompute_0005), set by the conductor while the status isVERIFY_RESIZE. A server that an older version leftACTIVEwith a rollback snapshot is not swept.
Compute worker and packaging
- The browser console goes through a proxy on the compute node. A new unit,
cloudx-novnc-proxy, runswebsockifyand the noVNC client on port 6080 of every compute node.console-urlandremote-consolesreturnhttp://<console_proxy_host>:6080/vnc.html?autoconnect=1&path=websockify%3Ftoken=<token>. The guest's VNC stays on127.0.0.1. The token is a JWT signed with a key derived fromauth_secret_key, valid 300 seconds, and good for one VNC port of one libvirt domain on that node (COMPUTE_HOST); the proxy checks the signature and the expiry when the connection opens, then asks libvirt whether the domain still owns the port, and logs every refusal with its reason (never the token). Before, the link wasNOVNC_BASE_URL?host=localhost&port=<vnc port>, and nothing in the packages started a proxy. - The proxy ships in the
cloudx-compute-workerpackage, which now depends onnovnc. The worker's unit hasWants=cloudx-novnc-proxy.serviceand the proxy unit hasPartOf=cloudx-compute-worker.service, so the proxy starts, restarts and stops with the worker; the package does not enable it on its own. On a tarball node the example worker unit ofdocs/tarball-install.mdhas the same line and its start command enables the proxy.console_proxy_hostin/etc/cloudx/compute-worker/compute-worker.confsets the address that goes into the link (default: the node name). Seedocs/console.md.
Identity
- Domain and system scoped tokens.
POST /auth/tokenstakesscopewith one of{"project": ...},{"domain": ...}or{"system": true}. A domain token (for a domain admin of that domain, or an admin) has no project; only auth-api and billing accept it, every other service answers 403project-scoped token required. A system token needs the admin role. - Application credential rotation.
POST /v3/users/{user}/application_credentials/{cred}/rotatewith an optionalgrace_seconds(0 to 86400), during which the replaced secret still works, andcloudx auth appcred rotate USER CRED [--grace-seconds N](migrationauth_0008). - Trusts.
POST|GET /v3/OS-TRUST/trusts,GET|DELETE /v3/OS-TRUST/trusts/{id}andPOST /auth/tokens/trust(migrationauth_0009). A trustor delegates roles it holds in one project to another user; the trustee exchanges the trust for a token that acts as the trustor. Each exchange is written to the audit log astrust.token. The whole feature is described indocs/identity.md. - The roles of an application credential are checked.
rolesmust be a non-empty list without duplicates fromadmin,memberandreader(400 otherwise), and the credential's user must hold every one of them in their project (403 otherwise;admincoversmemberandreader). When an admin creates a credential for another user, the roles are checked against that user. Ifrolesis left out, the credential gets["member"], or the user's own role when they do not holdmember. The check is repeated at every login: the token gets the credential's roles that the user still holds at that moment, and the login answers 401 when none is left. This also applies to credentials created by earlier versions, with no migration. - An application credential is reached through its own user only.
GETandDELETE /v3/users/{user}/application_credentials/{cred}looked a credential up by id without checking its owner. They now look it up among the URL user's own credentials and answer 404 for another user's credential, as rotate already did. A login byapplication_credential_namealone now tries the enabled credentials of that name, at most 5 in the order they were created, and accepts the one whose secret fits; before, it took the first credential of that name and failed when it belonged to another user. A login by id is unchanged.
Policy file
/etc/cloudx/policy.yamldecides the admin-only actions of every service. 57 actions: the 22 ofauth-apiand 35 more (12 of compute, 8 of block-store, 5 of placement, 3 of billing, 2 each of telemetry, networking and object-store, 1 of ha). A rule is a boolean expression ofrole:NAME,domain_admin:True|False,rule:NAME,@,!,and,or,not. Without the file every decision is what it was; a bad rule or file never stops a service. The file is re-read within 2 seconds of a change.cloudx-manage policy check [FILE]validates a file andcloudx-manage policy defaultsprints the built-in rules. The sample is/usr/share/cloudx/policy.yaml.sampleincloudx-common; no package creates/etc/cloudx/policy.yaml. Ownership, visibility and state checks,/internal/...routes and the four bulk billing and telemetry routes stay in code. Seedocs/policy.md.
Image
- Changing an image needs its owner.
PATCH,DELETE,deactivate,reactivate, tags and sharing onimage-apinow require the image's owner, an admin of the owner's domain, or a system admin (the internal token counts as one, soimage-workeris unchanged). The fields the service manages itself (status,size,checksum,object_name,filename,storage_backend) can be set by an admin or the internal token only, and the file store serves only files inside its folder. Upgrade soon. - Reading a non-public image needs the right to read it.
GET /images/{image},download,tags,verify,membersandprefetchonimage-apianswer only to the image's owner, an admin of the owner's domain, a system admin, the internal token, and a project the image was shared with that accepted it (a pending or rejected share grants nothing); anyone else gets404 image '<image>' not found, as for a missing image. A public image is still readable and downloadable without signing in.verify,membersandprefetchstill need a login.GET /imageswith avisibilityfilter applies the project filter too.image-apilogsanonymous read of a non-public image refused: <ref>for each refused anonymous read.compute-workerandblock-store-workersend the internal token when they read an image. - Using an image needs the right to read it. Creating a server from an image, rebuilding or rescuing a server with one, and creating a volume from one (
POST /volumeswithimageorimage_id) fail with404 image '<image>' not found, before anything is created, unless the caller may read the image by the same rule.compute-apiandblock-store-apitellimage-apiwho is asking with a header,X-Caller-Claims(the caller's validated claims: ASCII JSON, at most 2048 bytes, a fixed set of keys), sent together with the internal token. This is a trust of the internal token: whoever holds it can state any identity toimage-api, though the token already makes its holder an admin on every service.image-apiuses the claims only when the internal token is valid; a malformed header makes the caller anonymous (public images only), never an admin; without a valid token the header is ignored. WithINTERNAL_TOKENunset, those services read public images only; the packages always set it.
Project checks (since 1.0.10-rc3)
- Volumes and snapshots named by a user belong to the caller's project. Booting from a volume, cloning a volume or snapshot, and attaching a volume through
POST /volumes/{ref}/attachcheck the project (and the target server's). Compute'sPOST /servers/{ref}/volumes/attachand/detachaccept only an admin or the internal token; users use block-store's routes. The owner of an image made from a volume is the volume's project unless an admin or a service names another. - Networks, ports, security groups and server groups named by a user are checked. Creating a server and adding a port resolve them as the caller: compute sends the caller's identity to networking in
X-Caller-Claims, together with the internal token, so networking's own rules apply (own project, the admin of its domain, shared and external networks). Server groups named b...