Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/horizon/files/local_settings
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ STATIC_URL = '/static/'
# Lightstack Service Discovery
OPENSTACK_HOST = os.environ.get("OPENSTACK_HOST", "lightstack")
OPENSTACK_KEYSTONE_URL = "http://%s:35357/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "member"

# API Version Configuration (Lightstack Flamingo Compatible)
OPENSTACK_API_VERSIONS = {
Expand Down Expand Up @@ -256,7 +256,7 @@ HORIZON_CONFIG = {
}

# Disable features not supported by Lightstack stub mode
HORIZON_IMAGES_UPLOAD_MODE = 'direct'
HORIZON_IMAGES_UPLOAD_MODE = 'legacy'

# ==========================================
# Policy Configuration
Expand Down
5 changes: 4 additions & 1 deletion deployments/docker-compose.rgw-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ services:
# by service name on the shared network.
LIGHTSTACK_KEYSTONE_URL: "http://lightstack:35357"
volumes:
- ./rgw-keystone-entrypoint.sh:/rgw-keystone-entrypoint.sh:ro
# `,z` relabels the bind-mounted script for SELinux-enforcing hosts (openSUSE/Fedora/RHEL)
# so the non-privileged rgw container can read+exec it; without it the entrypoint fails
# "Permission denied" (exit 126) and the stack stalls. Harmless where SELinux is off (CI).
- ./rgw-keystone-entrypoint.sh:/rgw-keystone-entrypoint.sh:ro,z
ports:
- "48080:8080" # RGW S3 (host access for the test driver)
networks: [rgwtest]
Expand Down
4 changes: 2 additions & 2 deletions deployments/horizon-config/local_settings
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ STATIC_URL = '/static/'
# Lightstack Service Discovery
OPENSTACK_HOST = "lightstack" # Docker service name
OPENSTACK_KEYSTONE_URL = "http://%s:35357/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "member"

# API Version Configuration (Lightstack Flamingo Compatible)
OPENSTACK_API_VERSIONS = {
Expand Down Expand Up @@ -256,7 +256,7 @@ HORIZON_CONFIG = {
}

# Disable features not supported by Lightstack stub mode
HORIZON_IMAGES_UPLOAD_MODE = 'direct'
HORIZON_IMAGES_UPLOAD_MODE = 'legacy'

# ==========================================
# Policy Configuration
Expand Down
2 changes: 1 addition & 1 deletion deployments/rgw-keystone-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
set -uo pipefail

KEYSTONE_URL="${LIGHTSTACK_KEYSTONE_URL:-http://lightstack:35357}"
KEYSTONE_ROLES="${LIGHTSTACK_KEYSTONE_ACCEPTED_ROLES:-admin,member,reader,_member_}"
KEYSTONE_ROLES="${LIGHTSTACK_KEYSTONE_ACCEPTED_ROLES:-admin,member,reader}"
ADMIN_USER="${LIGHTSTACK_KEYSTONE_ADMIN_USER:-admin}"
ADMIN_PASSWORD="${LIGHTSTACK_KEYSTONE_ADMIN_PASSWORD:-secret}"
ADMIN_PROJECT="${LIGHTSTACK_KEYSTONE_ADMIN_PROJECT:-default}"
Expand Down
2 changes: 1 addition & 1 deletion deployments/rook/setup-rook-rgw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ KS_ADMIN_USER="${LIGHTSTACK_KEYSTONE_ADMIN_USER:-admin}"
KS_ADMIN_PASSWORD="${LIGHTSTACK_KEYSTONE_ADMIN_PASSWORD:-secret}"
KS_ADMIN_PROJECT="${LIGHTSTACK_KEYSTONE_ADMIN_PROJECT:-default}"
KS_ADMIN_DOMAIN="${LIGHTSTACK_KEYSTONE_ADMIN_DOMAIN:-Default}"
KS_ROLES="${LIGHTSTACK_KEYSTONE_ACCEPTED_ROLES:-admin,member,reader,_member_}"
KS_ROLES="${LIGHTSTACK_KEYSTONE_ACCEPTED_ROLES:-admin,member,reader}"

CTX="$PROFILE" # minikube names the context after the profile
K="kubectl --context $CTX -n $NS" # every op is pinned to the rook profile,
Expand Down
2 changes: 1 addition & 1 deletion docs/HORIZON_DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ SECRET_KEY = 'CHANGE-THIS-IN-PRODUCTION-' + os.urandom(32).hex()
# OpenStack Backend Configuration
OPENSTACK_HOST = "lightstack" # Docker service name (or IP if not using Docker)
OPENSTACK_KEYSTONE_URL = "http://%s:35357/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "member"

# API Version Configuration (matches Lightstack)
OPENSTACK_API_VERSIONS = {
Expand Down
1,040 changes: 1,040 additions & 0 deletions docs/HOST_TESTING_OPENSUSE.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/REAL_LIBVIRT_MODE.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ Lightstack automatically generates libvirt XML based on flavor, image, and netwo
<vcpu placement='static'>2</vcpu>

<os>
<type arch='x86_64' machine='pc-i440fx-2.12'>hvm</type>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='hd'/>
</os>

Expand Down
70 changes: 65 additions & 5 deletions docs/compatibility/HORIZON_COMPATIBILITY_REPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ API/CLI worked for every workflow exercised, except F6 (fixed by #532), F13 (fix
> ungrounded "100% compatible" claim**, and that refutation stands: the claim was never grounded in a
> browser-level check, and the nine findings are what grounding it actually cost.

**18 findings total**: F1–F9 from this pass (#482), F10–F16 added by the #533 pass, F17–F18 by the 2026-09-22
re-test. F10–F16 keep the numbers they were published under
**20 findings total**: F1–F9 from this pass (#482), F10–F16 added by the #533 pass, F17–F18 by the 2026-09-22
re-test, F19–F20 by the 2026-11-03 host-OS pass (`feature/host-os`). F10–F16 keep the numbers they were published under
([cloud-storage#536](https://github.com/cobaltcore-dev/cloud-storage/issues/536) and its sub-issues; #537,
where several were first filed, was closed as superseded); the 2026-09-22 re-test filed its two on the
#482 branch as `F10`/`F11`, which collide with those, so they are **renumbered F17/F18 here**.
Expand Down Expand Up @@ -512,8 +512,9 @@ was no drift to inherit); **F16** was a limitation of the F7 fix and is fixed.
- **Verified — API (2026-08-07, stub stack built from `feature/545`)**: `POST /v3/projects --domain default`
→ **`201`**; `GET /v3/auth/projects` — the call that populates Horizon's project switcher — returns **both**
projects; re-scoping a token to the second returns **`201`** with `token.project.name` set to it.
- **Still unverified — UI**: creating a project *through the Identity panel* has not been exercised; that
needs a Horizon pass. Nothing else waits on it — project switching was demonstrated in the browser on
- **UI — blocked by F19 until 2026-11-03**: creating a project *through the Identity panel* could not be
exercised before then: the Create Project modal never opened, for a reason of our own making (`_member_` as
Horizon's default role, F19), not a Lightstack API fault. Re-verification is listed under F19. Nothing else waits on it — project switching was demonstrated in the browser on
2026-09-22 (acceptance table), and F2's residual (Overview widget across a switch) is a pending re-run
rather than a blocked check.

Expand Down Expand Up @@ -616,6 +617,63 @@ it carries a fix here without a separate change._
is nothing a domain-scoped token could authorize. Not on `main` and not re-tested here.
- **Tracked**: [cloud-storage#549](https://github.com/cobaltcore-dev/cloud-storage/issues/549)

## Findings from the 2026-11-03 host-OS pass (F19–F20)

Found while walking the Horizon UI lifecycle (`docs/HOST_TESTING_OPENSUSE.md`, C7b) on k3s, real mode.
F19 is a defect in Lightstack's own dashboard configuration; F20 is the API gap it had been hiding.

### F19 — Horizon's default role (`_member_`) names a role Lightstack never seeds (major) — _config-level, mode-independent (found real, 2026-11-03)_ — ✅ **FIXED in-pass (config)**
- **Cause**: both `local_settings` copies (`deployments/horizon-config/local_settings:65` and its generated
chart copy) set `OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"`, since `16cfb26` (2026-03-13). Lightstack seeds
`admin`/`member`/`reader` (`migrations/002_seed_data.up.sql:20-24`, a week older) and no migration has ever
seeded `_member_`, the legacy member role older Keystone releases created. Horizon resolves the setting
against an unfiltered `GET /v3/roles`, by id or name, once per process (`openstack_dashboard/api/keystone.py`,
`get_default_role`), and caches the miss. Upstream Horizon's own default is `member`
(`openstack_dashboard/defaults.py`); so was the first Horizon config in this repo (`7b15418`, 2026-03-07) and
so are the five other copies in the tree. The value was wrong from the day it was written, and no runbook had
driven Create Project, Manage Members or Create User through the browser (018 scoped the Identity panels out).
- **Symptom 1 — the modal never opens**: Identity → Projects → **Create Project** (and **Manage Members** /
**Manage Groups** on an existing project) bounce silently: the button clicks, the page re-renders, no modal.
The members step's `__init__` raises `Could not find default role "_member_" in Keystone`, which Horizon folds
into "Unable to retrieve user list" and a redirect to the list (`identity/projects/workflows.py`,
`UpdateProjectMembersAction`). Access-log tell: `GET /dashboard/identity/create` → **`200`** with
`X-Horizon-Location: /dashboard/identity/` and a `messages` `Set-Cookie`; decode that cookie (strip the
leading `.`, urlsafe-base64, zlib) and the text is in it. This is why F13's UI path stayed unverified: the
request never reached Lightstack.
- **Symptom 2 — silent, and the worse one**: Identity → Users → **Create User** preselects its Role from the
same setting (`identity/users/views.py`, `CreateView.get_initial`: `role_id = getattr(default_role, "id",
None)`) and sorts the choices by **id**. With nothing resolved, the dropdown landed on `admin` (`…0003`, the
lowest seeded id), so a user created through the dashboard with a primary project was granted **admin**
unless the operator changed the field. Nothing reported it. Derived from the 2025.2 source and the seeded
ids; not reproduced in a browser.
- **Fix**: `member` in `deployments/horizon-config/local_settings`, then `make horizon-chart-sync` (both
copies; `make horizon-chart-check` and `helm unittest charts/horizon` green). A SPEC-020 **FR-018a**
correction — a misconfiguration in Lightstack's own deployment artifacts, justified against upstream,
compensating for no missing API — the second after F14's `CSRF_COOKIE_HTTPONLY`. `docs/HORIZON_DEPLOYMENT.md`
corrected with it; the RGW fixtures' accepted-roles lists dropped the dead `_member_`
(`docs/OBJECT_STORAGE_S3.md` never had it). Horizon caches the resolved role per process, so the pod must
restart: the chart's `checksum/config` annotation rolls it on `helm upgrade`; the compose stack needs its
`horizon` container recreated.
- **Status**: fix applied and synced 2026-11-03. Browser re-verification is the next C7b run: (1) Create
Project opens and creates the project; (2) Manage Members → add `admin` as `member` → Save; (3) Create User
shows `member` preselected. (2) arms F20 the moment a Keystone group exists.

### F20 — Group role assignments on a project are unrouted (low) — _code-level (2026-11-03)_ — ❌ **open**
- **Cause**: `internal/keystone/handlers.go` routes group CRUD and `/groups/:id/users/:user_id` only. There is
no `PUT`/`GET`/`DELETE /v3/projects/{p}/groups/{g}/roles[/{r}]`, and `GET /v3/role_assignments` emits `user`
entries only. SPEC-023 (`spec.md:290`) puts group-based role assignments out of scope, so this is a documented
non-feature rather than a regression.
- **Impact**: masked until F19, because the modal never opened. Horizon's project workflows run a groups step.
Create Project calls `add_group_role` only for groups the operator ticks; **Manage Members → Save** on an
existing project calls `group_list(…, project=…)`, which runs `roles_for_group` →
`GET /v3/projects/{p}/groups/{g}/roles` for **every group in the domain** → `404` → "Failed to modify project
groups", *after* the member changes were already applied. Nothing seeds a group, so a stock install never
hits it; the first `POST /v3/groups` arms it. Derived from the 2025.2 source and the route table, not
exercised.
- **Workaround**: grant roles to users, not groups; do not create Keystone groups on a deployment managed
through Horizon.
- **Tracked**: no ticket yet.

## Notes & scope

- RBD / block Ceph out of scope (v1); real Ceph = RGW/S3 only.
Expand All @@ -642,7 +700,9 @@ CLI. This is the exact backend chain the stub pass could not exercise, and it pa
open and is fixed by #534 (SPEC-021): the Console tab renders the live guest. Outside that set, the #533
pass's own **F10–F12 and F15** stay open, as does **F18** (domain-scoped tokens, #549) — **F13** is fixed
here by #545; **F17** — Horizon's security-group proxy 500-ing because the list omits
`security_group_rules` — is fixed here, as root 2 of F7.
`security_group_rules` — is fixed here, as root 2 of F7. The 2026-11-03 host-OS pass added **F19** — the
dashboard's default role named a role that never existed, a configuration defect of our own, fixed in-pass —
and **F20** (group role assignments unrouted, open, low).

**Superseded — what didn't work at the time of writing (2026-07-23).** Every create/write workflow through the
UI failed: no Create-Network button (F3), a dead Create-Volume modal (F8), the Volumes list **500**-ing once a
Expand Down
2 changes: 1 addition & 1 deletion docs/testing/rook-rgw-fixture.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ rgw s3 auth use keystone = true
rgw keystone url = http://<lightstack-node-ip>:35357
rgw keystone api version = 3
rgw keystone implicit tenants = s3 # per-project bucket namespaces (isolation)
rgw keystone accepted roles = admin,member,reader,_member_
rgw keystone accepted roles = admin,member,reader
rgw keystone verify ssl = false
rgw keystone admin user = admin # RGW must fetch its OWN token before it
rgw keystone admin password = secret # can call /v3/s3tokens — without these
Expand Down
11 changes: 11 additions & 0 deletions internal/glance/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,17 @@ func (svc *Service) RegisterRoutes(r *gin.RouterGroup) {
r.GET("/schemas/images", svc.GetImagesSchema)
r.GET("/schemas/member", svc.GetMemberSchema)
r.GET("/schemas/members", svc.GetMembersSchema)
// Metadefs schema documents (Horizon Create Image loads /schemas/metadefs/namespace).
r.GET("/schemas/metadefs/namespace", svc.GetMetadefNamespaceSchema)
r.GET("/schemas/metadefs/namespaces", svc.GetMetadefNamespacesSchema)
r.GET("/schemas/metadefs/resource_type", svc.GetMetadefResourceTypeSchema)
r.GET("/schemas/metadefs/resource_types", svc.GetMetadefResourceTypesSchema)
r.GET("/schemas/metadefs/object", svc.GetMetadefObjectSchema)
r.GET("/schemas/metadefs/objects", svc.GetMetadefObjectsSchema)
r.GET("/schemas/metadefs/property", svc.GetMetadefPropertySchema)
r.GET("/schemas/metadefs/properties", svc.GetMetadefPropertiesSchema)
r.GET("/schemas/metadefs/tag", svc.GetMetadefTagSchema)
r.GET("/schemas/metadefs/tags", svc.GetMetadefTagsSchema)

// Tasks and import
r.POST("/tasks", svc.CreateTask)
Expand Down
Loading
Loading