Skip to content

Releases

CloudX v1.0.20

Choose a tag to compare

@github-actions github-actions released this 01 Dec 11:47
41e9e07

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_kbps and the QoS policies were only stored; now each port and direction gets a row of the OVN QoS table (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). See docs/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. See docs/networking-rbac-scopes-segments.md.
  • cloudx router clear-gateway and DELETE /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-policy on 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. See docs/storage-backends.md.
  • A change to max_iops or max_throughput of 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 reset lifts 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. See docs/ha.md.

Image

  • GET /images pages with marker and next_marker; the dashboard lists read every page.

Behaviour changes to read first

  1. Schema changes. Run cloudx-manage db sync after installing, or cloudx-db-migrate SERVICE for networking (networking_0008 to 0010), block_store (block_store_0003) and ha (ha_0003, ha_0004). A service that starts before its migration fails on the missing columns.
  2. 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.
  3. A subnet pool can only be deleted by an admin (policy networking:subnet-pool:delete), and a project that only sees a pool cannot.
  4. 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

Choose a tag to compare

@github-actions github-actions released this 30 Nov 01:20
96071bf

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 protect used to answer 422 server volumes could not be located for 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, then ceph osd blocklist add). The cephx user of the block-store worker needs osd blocklist (mon 'profile rbd' has it). docs/ha.md, "Servers on Ceph".
  • New Ceph RBD images get the exclusive-lock feature next to layering. 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-watchdog stop an old guest, and the recovery says so. The evacuated guest can meet a file that the old node still has locked, so cloudx-compute-worker starts the domain again every 5 seconds while libvirt says the disk is in use, for COMPUTE_START_LOCK_WAIT seconds (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 SHUTOFF is recovered as done. Evacuate gives it back as SHUTOFF, but ha-api waited 300 seconds for ACTIVE, recorded failed, and made the next protected servers of the host wait too.
  • ha-watchdog no 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 or snap-*.qcow2 file by hand.
  • A volume type can be created with --backend nfs (the API and cloudx volume-type create refused it), the snapshot of an NFS volume no longer looks for NAME.qcow2.qcow2, and a consistency group snapshot takes a snapshot of each NFS volume (it failed with Unknown 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.md has the lab results for Ceph and NFS servers. docs/feature-comparison.md says which volume types HA protects and that Placement has forbidden traits and microversion headers.

Behaviour changes to read first

  1. A data volume made by block-store before this release keeps layering only. To get the lock, run rbd feature enable POOL/IMAGE exclusive-lock on it (it works while the volume is attached).
  2. Protecting a server with Ceph volumes needs osd blocklist for the cephx user of the block-store worker. Without it the fence fails and the evacuation does not happen.
  3. NFS volumes need an export that allows root from the nodes (no_root_squash): libvirt changes the file's owner to 64055:kvm. Every node that runs block-store-worker or compute-worker mounts it at STORAGE_NFS_DIR (default /var/lib/cloudx/volumes), hard, with NFSv4.
  4. A Kubernetes cluster made by 1.0.15 keeps its subnet rule until it is deleted. New clusters get the new rule.
  5. 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 .deb files 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 hosts up, Ceph HEALTH_OK.
  • NFS server on the packages: nfs-kernel-server on a Ceph node exported to the nodes, mounted on all five. A volume type with backend nfs was 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 was fenced at 102 seconds and the server was done and ACTIVE on 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 became available and 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 that docs/tutorials/ha-control-plane.md describes).
  • 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-*.qcow2 files 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: done about 97 seconds later and ACTIVE on 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 SHUTOFF recovery 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 with ha-watchdog on and the cut-off cases are in docs/ha.md, run on those hand-copied files.

CloudX v1.0.15

Choose a tag to compare

@github-actions github-actions released this 27 Nov 13:54
e53a31e

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 answer 501. The policy action is compute:server:live_migrate, role:admin by 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 is ACTIVE on the source again, with the reason in os-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 for ACTIVE, cold migration for SHUTOFF). 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 NODE puts the node back in service.
  • cloudx-setup-migration-ssh [--dry-run] NODE... (in cloudx-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) and live_migration_auto_converge (false). An empty live_migration_* value means the default; before, an empty number stopped the worker at start.
  • Instance HA never evacuates a server that is MIGRATING on its own: it records it as skipped with the reason, because the guest may already run on the live-migration target. An operator decides (docs/live-migration.md). POST /servers/{id}/evacuate accepts a MIGRATING server once its source node is forced down.
  • A volume type's max_iops and max_throughput now 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_cert and console_proxy_key in compute-worker.conf and restart cloudx-compute-worker; the console link then starts with https://. Without the settings nothing changes.

Networking

  • The metadata service (169.254.169.254) answered 404 to 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 ERROR at ready_timeout with the reason, where it used to be ACTIVE with 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 creating forever. After VOLUME_CREATING_TIMEOUT_SECONDS (default 3600, 0 switches the check off) with nothing on the backend, the reconciler marks it error.
  • A volume that is already error keeps the message it has. The reconciler used to mark it again on every pass of every worker, and the generic Physical storage object missing on node replaced the stored reason, such as the one a failed create wrote.

Documentation

  • docs/tutorials/ha-control-plane.md explains how to make RabbitMQ drop the connections of a controller that was powered off (TCP keepalive and a user timeout in advanced.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

  1. A volume type that sets max_iops or max_throughput and 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.
  2. Live migration needs ssh between the compute nodes. cloudx-setup-migration-ssh gives 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.md has the details.
  3. The upgrade replaces the cloudx-novnc-proxy unit file: it now starts python -m console_proxy. If you changed the unit, redo the change.
  4. New Kubernetes clusters count one security group against the project's quota. Clusters made before keep the default group and are not changed. callback_url in the Kubernetes worker's conf must still be an address the servers can reach (docs/k8s-engine.md).
  5. 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.
  6. A volume that has been creating for more than an hour with nothing on the backend becomes error on the next reconciler pass. Delete it and create it again. Set VOLUME_CREATING_TIMEOUT_SECONDS=0 in 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 .deb files 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 200 with their own instance id.
  • Remote group: a server in a group with the rule ingress tcp 5000 from the group itself on 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 ACTIVE after 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 in ERROR because the master could not reach callback_url (in this lab the controllers answer provider-network sources through the wrong gateway); it worked after a route on the controllers.
  • Stale creating volumes: with VOLUME_CREATING_TIMEOUT_SECONDS=120, the block-store workers stopped and the create message purged from the block-store queue, the volume went to error about 144 seconds after it was created; a volume created normally afterwards was available and 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 IPv6 live_migration_host and the nodes of a k3s cluster. docs/live-migration.md lists 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...
Read more

CloudX v1.0.11

Choose a tag to compare

@github-actions github-actions released this 10 Nov 05:52
b81fd08

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_rules answered 500 (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 answers 201. 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 with qos_max_kbps and qos_burst_kbps. Rules that a failed call left behind stay; delete the duplicates with DELETE /qos/policies/{id}/bandwidth_limit_rules/{rule_id}.

CLI

  • cloudx object-store object put, get and delete quote the key in the URL and list --prefix sends 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 key a b. The bucket name is quoted as one path segment too.

cloudx-manage

  • cloudx-manage policy check on /etc/cloudx/policy.yaml as a user who cannot read it (the directory is root:cloudx 750) printed only Permission denied; it now adds a line saying to run it with sudo or as a user in the cloudx group. The exit status is still 1.

Behaviour changes to read first

  1. A bandwidth rule that was stored by a call that answered 500 is still there. Look for duplicates in the policies you used with 1.0.10.
  2. 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 500 and left the rule stored. On 1.0.11-rc1, on each controller and through the VIP: two rules added with 201, the policy held exactly two rules, and a rule and the policy were deleted with 204.
  • policy check: on ctl01 as a user outside the cloudx group, cloudx-manage policy check /etc/cloudx/policy.yaml printed the hint: run it with sudo line and exited 1; with sudo it ran.
  • Object-store CLI: checked on the wire only, against a local HTTP server, because the lab has no object-store service. put, get and delete of the key dir/a b#c?d%e&f.txt in the bucket b ucket sent /buckets/b%20ucket/objects/dir/a%20b%23c%3Fd%25e%26f.txt, and list --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-rc1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 10 Nov 05:09
2ad1d1d

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_rules answered 500 (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 answers 201. 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 with qos_max_kbps and qos_burst_kbps. Rules that a failed call left behind stay; delete the duplicates with DELETE /qos/policies/{id}/bandwidth_limit_rules/{rule_id}.

CLI

  • cloudx object-store object put, get and delete quote the key in the URL and list --prefix sends 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 key a b. The bucket name is quoted as one path segment too.

cloudx-manage

  • cloudx-manage policy check on /etc/cloudx/policy.yaml as a user who cannot read it (the directory is root:cloudx 750) printed only Permission denied; it now adds a line saying to run it with sudo or as a user in the cloudx group. The exit status is still 1.

Behaviour changes to read first

  1. A bandwidth rule that was stored by a call that answered 500 is still there. Look for duplicates in the policies you used with 1.0.10.
  2. 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

Choose a tag to compare

@github-actions github-actions released this 10 Nov 00:48
cb7984f

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-reaper confirms a server that has waited in VERIFY_RESIZE longer than RESIZE_CONFIRM_WINDOW_SECONDS (86400 by default; 0 turns it off), through the public confirmResize. The reaper runs every REAPER_INTERVAL seconds (600), so the confirmation comes up to one interval after the window. REAPER_DRY_RUN only logs. compute-api has GET /internal/resize-pending?seconds=N for the sweep, and the server record has a new column, resize_pending_since (migration compute_0005), set by the conductor while the status is VERIFY_RESIZE. A server that an older version left ACTIVE with 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, runs websockify and the noVNC client on port 6080 of every compute node. console-url and remote-consoles return http://<console_proxy_host>:6080/vnc.html?autoconnect=1&path=websockify%3Ftoken=<token>. The guest's VNC stays on 127.0.0.1. The token is a JWT signed with a key derived from auth_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 was NOVNC_BASE_URL?host=localhost&port=<vnc port>, and nothing in the packages started a proxy.
  • The proxy ships in the cloudx-compute-worker package, which now depends on novnc. The worker's unit has Wants=cloudx-novnc-proxy.service and the proxy unit has PartOf=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 of docs/tarball-install.md has the same line and its start command enables the proxy. console_proxy_host in /etc/cloudx/compute-worker/compute-worker.conf sets the address that goes into the link (default: the node name). See docs/console.md.

Identity

  • Domain and system scoped tokens. POST /auth/tokens takes scope with 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 403 project-scoped token required. A system token needs the admin role.
  • Application credential rotation. POST /v3/users/{user}/application_credentials/{cred}/rotate with an optional grace_seconds (0 to 86400), during which the replaced secret still works, and cloudx auth appcred rotate USER CRED [--grace-seconds N] (migration auth_0008).
  • Trusts. POST|GET /v3/OS-TRUST/trusts, GET|DELETE /v3/OS-TRUST/trusts/{id} and POST /auth/tokens/trust (migration auth_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 as trust.token. The whole feature is described in docs/identity.md.
  • The roles of an application credential are checked. roles must be a non-empty list without duplicates from admin, member and reader (400 otherwise), and the credential's user must hold every one of them in their project (403 otherwise; admin covers member and reader). When an admin creates a credential for another user, the roles are checked against that user. If roles is left out, the credential gets ["member"], or the user's own role when they do not hold member. 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. GET and DELETE /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 by application_credential_name alone 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.yaml decides the admin-only actions of every service. 57 actions: the 22 of auth-api and 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 of role: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 and cloudx-manage policy defaults prints the built-in rules. The sample is /usr/share/cloudx/policy.yaml.sample in cloudx-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. See docs/policy.md.

Image

  • Changing an image needs its owner. PATCH, DELETE, deactivate, reactivate, tags and sharing on image-api now require the image's owner, an admin of the owner's domain, or a system admin (the internal token counts as one, so image-worker is 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, members and prefetch on image-api answer 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 gets 404 image '<image>' not found, as for a missing image. A public image is still readable and downloadable without signing in. verify, members and prefetch still need a login. GET /images with a visibility filter applies the project filter too. image-api logs anonymous read of a non-public image refused: <ref> for each refused anonymous read. compute-worker and block-store-worker send 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 /volumes with image or image_id) fail with 404 image '<image>' not found, before anything is created, unless the caller may read the image by the same rule. compute-api and block-store-api tell image-api who 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 to image-api, though the token already makes its holder an admin on every service. image-api uses 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. With INTERNAL_TOKEN unset, 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}/attach check the project (and the target server's). Compute's POST /servers/{ref}/volumes/attach and /detach accept 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...
Read more

CloudX v1.0.10-rc8

CloudX v1.0.10-rc8 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Nov 15:31
bc95888

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-reaper confirms a server that has waited in VERIFY_RESIZE longer than RESIZE_CONFIRM_WINDOW_SECONDS (86400 by default; 0 turns it off), through the public confirmResize. The reaper runs every REAPER_INTERVAL seconds (600), so the confirmation comes up to one interval after the window. REAPER_DRY_RUN only logs. compute-api has GET /internal/resize-pending?seconds=N for the sweep, and the server record has a new column, resize_pending_since (migration compute_0005), set by the conductor while the status is VERIFY_RESIZE. A server that an older version left ACTIVE with 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, runs websockify and the noVNC client on port 6080 of every compute node. console-url and remote-consoles return http://<console_proxy_host>:6080/vnc.html?autoconnect=1&path=websockify%3Ftoken=<token>. The guest's VNC stays on 127.0.0.1. The token is a JWT signed with a key derived from auth_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 was NOVNC_BASE_URL?host=localhost&port=<vnc port>, and nothing in the packages started a proxy.
  • The proxy ships in the cloudx-compute-worker package, which now depends on novnc. The worker's unit has Wants=cloudx-novnc-proxy.service and the proxy unit has PartOf=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 of docs/tarball-install.md has the same line and its start command enables the proxy. console_proxy_host in /etc/cloudx/compute-worker/compute-worker.conf sets the address that goes into the link (default: the node name). See docs/console.md.

Identity

  • Domain and system scoped tokens. POST /auth/tokens takes scope with 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 403 project-scoped token required. A system token needs the admin role.
  • Application credential rotation. POST /v3/users/{user}/application_credentials/{cred}/rotate with an optional grace_seconds (0 to 86400), during which the replaced secret still works, and cloudx auth appcred rotate USER CRED [--grace-seconds N] (migration auth_0008).
  • Trusts. POST|GET /v3/OS-TRUST/trusts, GET|DELETE /v3/OS-TRUST/trusts/{id} and POST /auth/tokens/trust (migration auth_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 as trust.token. The whole feature is described in docs/identity.md.
  • The roles of an application credential are checked. roles must be a non-empty list without duplicates from admin, member and reader (400 otherwise), and the credential's user must hold every one of them in their project (403 otherwise; admin covers member and reader). When an admin creates a credential for another user, the roles are checked against that user. If roles is left out, the credential gets ["member"], or the user's own role when they do not hold member. 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. GET and DELETE /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 by application_credential_name alone 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.yaml decides the admin-only actions of every service. 57 actions: the 22 of auth-api and 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 of role: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 and cloudx-manage policy defaults prints the built-in rules. The sample is /usr/share/cloudx/policy.yaml.sample in cloudx-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. See docs/policy.md.

Image

  • Changing an image needs its owner. PATCH, DELETE, deactivate, reactivate, tags and sharing on image-api now require the image's owner, an admin of the owner's domain, or a system admin (the internal token counts as one, so image-worker is 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, members and prefetch on image-api answer 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 gets 404 image '<image>' not found, as for a missing image. A public image is still readable and downloadable without signing in. verify, members and prefetch still need a login. GET /images with a visibility filter applies the project filter too. image-api logs anonymous read of a non-public image refused: <ref> for each refused anonymous read. compute-worker and block-store-worker send 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 /volumes with image or image_id) fail with 404 image '<image>' not found, before anything is created, unless the caller may read the image by the same rule. compute-api and block-store-api tell image-api who 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 to image-api, though the token already makes its holder an admin on every service. image-api uses 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. With INTERNAL_TOKEN unset, 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}/attach check the project (and the target server's). Compute's POST /servers/{ref}/volumes/attach and /detach accept 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...
Read more

CloudX v1.0.10-rc7

CloudX v1.0.10-rc7 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Nov 12:22
a15bb8e

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-reaper confirms a server that has waited in VERIFY_RESIZE longer than RESIZE_CONFIRM_WINDOW_SECONDS (86400 by default; 0 turns it off), through the public confirmResize. The reaper runs every REAPER_INTERVAL seconds (600), so the confirmation comes up to one interval after the window. REAPER_DRY_RUN only logs. compute-api has GET /internal/resize-pending?seconds=N for the sweep, and the server record has a new column, resize_pending_since (migration compute_0005), set by the conductor while the status is VERIFY_RESIZE. A server that an older version left ACTIVE with 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, runs websockify and the noVNC client on port 6080 of every compute node. console-url and remote-consoles return http://<console_proxy_host>:6080/vnc.html?autoconnect=1&path=websockify%3Ftoken=<token>. The guest's VNC stays on 127.0.0.1. The token is a JWT signed with a key derived from auth_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 was NOVNC_BASE_URL?host=localhost&port=<vnc port>, and nothing in the packages started a proxy.
  • The proxy ships in the cloudx-compute-worker package, which now depends on novnc. The worker's unit has Wants=cloudx-novnc-proxy.service and the proxy unit has PartOf=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 of docs/tarball-install.md has the same line and its start command enables the proxy. console_proxy_host in /etc/cloudx/compute-worker/compute-worker.conf sets the address that goes into the link (default: the node name). See docs/console.md.

Identity

  • Domain and system scoped tokens. POST /auth/tokens takes scope with 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 403 project-scoped token required. A system token needs the admin role.
  • Application credential rotation. POST /v3/users/{user}/application_credentials/{cred}/rotate with an optional grace_seconds (0 to 86400), during which the replaced secret still works, and cloudx auth appcred rotate USER CRED [--grace-seconds N] (migration auth_0008).
  • Trusts. POST|GET /v3/OS-TRUST/trusts, GET|DELETE /v3/OS-TRUST/trusts/{id} and POST /auth/tokens/trust (migration auth_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 as trust.token. The whole feature is described in docs/identity.md.
  • The roles of an application credential are checked. roles must be a non-empty list without duplicates from admin, member and reader (400 otherwise), and the credential's user must hold every one of them in their project (403 otherwise; admin covers member and reader). When an admin creates a credential for another user, the roles are checked against that user. If roles is left out, the credential gets ["member"], or the user's own role when they do not hold member. 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. GET and DELETE /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 by application_credential_name alone 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.yaml decides the admin-only actions of every service. 57 actions: the 22 of auth-api and 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 of role: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 and cloudx-manage policy defaults prints the built-in rules. The sample is /usr/share/cloudx/policy.yaml.sample in cloudx-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. See docs/policy.md.

Image

  • Changing an image needs its owner. PATCH, DELETE, deactivate, reactivate, tags and sharing on image-api now require the image's owner, an admin of the owner's domain, or a system admin (the internal token counts as one, so image-worker is 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, members and prefetch on image-api answer 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 gets 404 image '<image>' not found, as for a missing image. A public image is still readable and downloadable without signing in. verify, members and prefetch still need a login. GET /images with a visibility filter applies the project filter too. image-api logs anonymous read of a non-public image refused: <ref> for each refused anonymous read. compute-worker and block-store-worker send 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 /volumes with image or image_id) fail with 404 image '<image>' not found, before anything is created, unless the caller may read the image by the same rule. compute-api and block-store-api tell image-api who 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 to image-api, though the token already makes its holder an admin on every service. image-api uses 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. With INTERNAL_TOKEN unset, 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}/attach check the project (and the target server's). Compute's POST /servers/{ref}/volumes/attach and /detach accept 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...
Read more

CloudX v1.0.10-rc6

CloudX v1.0.10-rc6 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Nov 07:50
0107608

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-reaper confirms a server that has waited in VERIFY_RESIZE longer than RESIZE_CONFIRM_WINDOW_SECONDS (86400 by default; 0 turns it off), through the public confirmResize. The reaper runs every REAPER_INTERVAL seconds (600), so the confirmation comes up to one interval after the window. REAPER_DRY_RUN only logs. compute-api has GET /internal/resize-pending?seconds=N for the sweep, and the server record has a new column, resize_pending_since (migration compute_0005), set by the conductor while the status is VERIFY_RESIZE. A server that an older version left ACTIVE with 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, runs websockify and the noVNC client on port 6080 of every compute node. console-url and remote-consoles return http://<console_proxy_host>:6080/vnc.html?autoconnect=1&path=websockify%3Ftoken=<token>. The guest's VNC stays on 127.0.0.1. The token is a JWT signed with a key derived from auth_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 was NOVNC_BASE_URL?host=localhost&port=<vnc port>, and nothing in the packages started a proxy.
  • The proxy ships in the cloudx-compute-worker package, which now depends on novnc. The worker's unit has Wants=cloudx-novnc-proxy.service and the proxy unit has PartOf=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 of docs/tarball-install.md has the same line and its start command enables the proxy. console_proxy_host in /etc/cloudx/compute-worker/compute-worker.conf sets the address that goes into the link (default: the node name). See docs/console.md.

Identity

  • Domain and system scoped tokens. POST /auth/tokens takes scope with 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 403 project-scoped token required. A system token needs the admin role.
  • Application credential rotation. POST /v3/users/{user}/application_credentials/{cred}/rotate with an optional grace_seconds (0 to 86400), during which the replaced secret still works, and cloudx auth appcred rotate USER CRED [--grace-seconds N] (migration auth_0008).
  • Trusts. POST|GET /v3/OS-TRUST/trusts, GET|DELETE /v3/OS-TRUST/trusts/{id} and POST /auth/tokens/trust (migration auth_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 as trust.token. The whole feature is described in docs/identity.md.
  • The roles of an application credential are checked. roles must be a non-empty list without duplicates from admin, member and reader (400 otherwise), and the credential's user must hold every one of them in their project (403 otherwise; admin covers member and reader). When an admin creates a credential for another user, the roles are checked against that user. If roles is left out, the credential gets ["member"], or the user's own role when they do not hold member. 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. GET and DELETE /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 by application_credential_name alone 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.yaml decides the admin-only actions of every service. 57 actions: the 22 of auth-api and 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 of role: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 and cloudx-manage policy defaults prints the built-in rules. The sample is /usr/share/cloudx/policy.yaml.sample in cloudx-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. See docs/policy.md.

Image

  • Changing an image needs its owner. PATCH, DELETE, deactivate, reactivate, tags and sharing on image-api now require the image's owner, an admin of the owner's domain, or a system admin (the internal token counts as one, so image-worker is 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, members and prefetch on image-api answer 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 gets 404 image '<image>' not found, as for a missing image. A public image is still readable and downloadable without signing in. verify, members and prefetch still need a login. GET /images with a visibility filter applies the project filter too. image-api logs anonymous read of a non-public image refused: <ref> for each refused anonymous read. compute-worker and block-store-worker send 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 /volumes with image or image_id) fail with 404 image '<image>' not found, before anything is created, unless the caller may read the image by the same rule. compute-api and block-store-api tell image-api who 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 to image-api, though the token already makes its holder an admin on every service. image-api uses 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. With INTERNAL_TOKEN unset, 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}/attach check the project (and the target server's). Compute's POST /servers/{ref}/volumes/attach and /detach accept 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...
Read more

CloudX v1.0.10-rc5

CloudX v1.0.10-rc5 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Nov 06:38
046e9fe

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-reaper confirms a server that has waited in VERIFY_RESIZE longer than RESIZE_CONFIRM_WINDOW_SECONDS (86400 by default; 0 turns it off), through the public confirmResize. The reaper runs every REAPER_INTERVAL seconds (600), so the confirmation comes up to one interval after the window. REAPER_DRY_RUN only logs. compute-api has GET /internal/resize-pending?seconds=N for the sweep, and the server record has a new column, resize_pending_since (migration compute_0005), set by the conductor while the status is VERIFY_RESIZE. A server that an older version left ACTIVE with 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, runs websockify and the noVNC client on port 6080 of every compute node. console-url and remote-consoles return http://<console_proxy_host>:6080/vnc.html?autoconnect=1&path=websockify%3Ftoken=<token>. The guest's VNC stays on 127.0.0.1. The token is a JWT signed with a key derived from auth_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 was NOVNC_BASE_URL?host=localhost&port=<vnc port>, and nothing in the packages started a proxy.
  • The proxy ships in the cloudx-compute-worker package, which now depends on novnc. The worker's unit has Wants=cloudx-novnc-proxy.service and the proxy unit has PartOf=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 of docs/tarball-install.md has the same line and its start command enables the proxy. console_proxy_host in /etc/cloudx/compute-worker/compute-worker.conf sets the address that goes into the link (default: the node name). See docs/console.md.

Identity

  • Domain and system scoped tokens. POST /auth/tokens takes scope with 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 403 project-scoped token required. A system token needs the admin role.
  • Application credential rotation. POST /v3/users/{user}/application_credentials/{cred}/rotate with an optional grace_seconds (0 to 86400), during which the replaced secret still works, and cloudx auth appcred rotate USER CRED [--grace-seconds N] (migration auth_0008).
  • Trusts. POST|GET /v3/OS-TRUST/trusts, GET|DELETE /v3/OS-TRUST/trusts/{id} and POST /auth/tokens/trust (migration auth_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 as trust.token. The whole feature is described in docs/identity.md.
  • The roles of an application credential are checked. roles must be a non-empty list without duplicates from admin, member and reader (400 otherwise), and the credential's user must hold every one of them in their project (403 otherwise; admin covers member and reader). When an admin creates a credential for another user, the roles are checked against that user. If roles is left out, the credential gets ["member"], or the user's own role when they do not hold member. 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. GET and DELETE /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 by application_credential_name alone 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.yaml decides the admin-only actions of every service. 57 actions: the 22 of auth-api and 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 of role: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 and cloudx-manage policy defaults prints the built-in rules. The sample is /usr/share/cloudx/policy.yaml.sample in cloudx-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. See docs/policy.md.

Image

  • Changing an image needs its owner. PATCH, DELETE, deactivate, reactivate, tags and sharing on image-api now require the image's owner, an admin of the owner's domain, or a system admin (the internal token counts as one, so image-worker is 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, members and prefetch on image-api answer 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 gets 404 image '<image>' not found, as for a missing image. A public image is still readable and downloadable without signing in. verify, members and prefetch still need a login. GET /images with a visibility filter applies the project filter too. image-api logs anonymous read of a non-public image refused: <ref> for each refused anonymous read. compute-worker and block-store-worker send 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 /volumes with image or image_id) fail with 404 image '<image>' not found, before anything is created, unless the caller may read the image by the same rule. compute-api and block-store-api tell image-api who 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 to image-api, though the token already makes its holder an admin on every service. image-api uses 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. With INTERNAL_TOKEN unset, 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}/attach check the project (and the target server's). Compute's POST /servers/{ref}/volumes/attach and /detach accept 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...
Read more