)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"316e83c13a13aee0cc55f639e894391c0ed38449","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":1,"id":"16033695_7647404d","updated":"2026-06-25 13:39:10.000000000","message":"Two blocking items: the \"incomplete blocking\" justification is backwards (service-disable already blocks extend/snapshot/retype today), and the pool-name key diverges from what the filter actually matches under active/active. \nFour smaller items as well. \nThe filter is more comprehensive than the spec claims — migrate, manage_existing, and group-create all funnel through backend_passes_filters, so they\u0027re covered too; worth stating explicitly.\nAlso this should be moved to 2026.2 now","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":2,"id":"ee15148c_d35fe808","updated":"2026-09-17 16:49:29.000000000","message":"Missing behaviours that need to be documented:\nClone, create-from-snapshot, and create-into-group are pinned to the source pool via ``request_spec[\u0027resource_backend\u0027]`` (``filter_scheduler._schedule()``), so they cannot be redirected — on a disabled pool they fail hard with ``NoValidBackend`` rather than landing elsewhere. That\u0027s probably what you want while draining, but it\u0027s operator-visible and belongs in the admin guide section. An explicit \"unaffected operations\" list would also help: deletes, attach/detach and revert-to-snapshot never touch the scheduler, so they continue to work on a drained pool.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"c52b59891316a822d7c57fb6d6033431ef2cc29e","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"6aa9a653_9f6d272b","updated":"2026-09-23 18:00:31.000000000","message":"please move to 2027.1","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"164dfcbf481ddf111b03518db982b769efe5bbc8","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"6109ff06_99e877c2","in_reply_to":"ee15148c_d35fe808","updated":"2026-10-26 14:31:53.000000000","message":"Added in PS3. The enforcement section now has a clone / create-from-snapshot / create-into-group bullet explaining the resource_backend pinning in _schedule() and the hard NoValidBackend, plus an explicit unaffected-operations bullet: delete, attach, detach, revert to snapshot, unmanage, metadata and read operations keep working. The admin-guide work item calls out both.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"f9582c50bc44ea1aad9a757686ecd10f4a15c085","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"96fd00a9_994ce667","updated":"2026-10-26 15:02:35.000000000","message":"Three things to fix, each small in text but a real behaviour question: create-into-group pinning at 180 (my mistake from PS2), resetting the cached flag at 110, and listing rows the scheduler does not report at 350. A few nits inline. One more sort of related; the implementation change 988336 still builds the PS2 design (PoolDisabledFilter, pool_disabled_states, /pool-states, API pre-checks, a hard-coded 3.72), so it needs reworking against this text before review. +1.","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"852330b6b5b6748a21e8e6cc6152b527850694f4","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":7,"id":"91a08d4b_8ed3918c","updated":"2026-10-29 16:09:19.000000000","message":"I\u0027d like one more revision before +2, for three contract points that would otherwise mislead the implementer: `manage_existing` is only pool-pinned in one case (173), the retype discard rule as written breaks legacy pool-less volumes (212), and the enable response body is undefined (447). The rest are wording and formatting nits.","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":38059,"name":"Anoop Kumar Shukla","display_name":"Anoop Shukla","email":"anoop.shukla@netapp.com","username":"anoop2","status":"NetApp"},"change_message_id":"8008a8ddfe6862bb78367f74bc6b15e6d6c7b839","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"59df3505_8d155539","updated":"2026-11-11 10:14:41.000000000","message":"LGTM","commit_id":"47ba58b0adb252da554cef7c043c1bfe6539f069"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"d4d79aef_11dca2b0","updated":"2026-11-04 17:13:05.000000000","message":"One dependent sentence was left behind (the admin-guide work item at 743) and I have left a handful of nits you can fold into a trivial PS9 or carry into 1012382, whichever you prefer. The implementation series needs rebasing onto this contract, and 988336 can be abandoned now.","commit_id":"47ba58b0adb252da554cef7c043c1bfe6539f069"}],"specs/2026.1/pool-disable-draining.rst":[{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"4aa6b0167153cf9fa8db9817ca99733c5f71163f","unresolved":false,"context_lines":[{"line_number":34,"context_line":"  and health reporting, as a disabled service appears unhealthy even though"},{"line_number":35,"context_line":"  it is still running normally."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"* **Incomplete blocking**: Disabling a service only prevents the scheduler from"},{"line_number":38,"context_line":"  selecting that service as a *destination* for new volume creates. It does"},{"line_number":39,"context_line":"  **not** block extend, snapshot, or retype operations on volumes already"},{"line_number":40,"context_line":"  residing on that service, since those operations validate the existing backend"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3ceda395_5ef591dd","line":37,"updated":"2026-07-24 20:03:16.000000000","message":"Done. Removed the \"Incomplete blocking\" bullet entirely. You\u0027re right that service-disable already drops backends from the state map via the disabled\u003dFalse filter in get_all(), blocking all those operations. Problem Description now only has granularity and semantic mismatch.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"316e83c13a13aee0cc55f639e894391c0ed38449","unresolved":true,"context_lines":[{"line_number":34,"context_line":"  and health reporting, as a disabled service appears unhealthy even though"},{"line_number":35,"context_line":"  it is still running normally."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"* **Incomplete blocking**: Disabling a service only prevents the scheduler from"},{"line_number":38,"context_line":"  selecting that service as a *destination* for new volume creates. It does"},{"line_number":39,"context_line":"  **not** block extend, snapshot, or retype operations on volumes already"},{"line_number":40,"context_line":"  residing on that service, since those operations validate the existing backend"}],"source_content_type":"text/x-rst","patch_set":1,"id":"85bd7c58_daddd5df","line":37,"range":{"start_line":37,"start_character":2,"end_line":37,"end_character":25},"updated":"2026-06-25 13:39:10.000000000","message":"This is backwards against master. host_manager._update_backend_state_map builds the state map from ServiceList.get_all(context, {\u0027topic\u0027: topic, \u0027disabled\u0027: False, \u0027frozen\u0027: False}), so a disabled service\u0027s backends are dropped from the map entirely. backend_passes_filters then raises NoValidBackend for extend/snapshot/retype/migrate on volumes residing there — i.e. service-disable already blocks all of those today, not just new-create destination selection. Please drop this justification and lean on the two valid ones: granularity (one service disables all its pools) and the health/semantic conflation of the service disabled flag.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"4aa6b0167153cf9fa8db9817ca99733c5f71163f","unresolved":false,"context_lines":[{"line_number":109,"context_line":"* **Volume extend**: Same as snapshot -- the scheduler validates the existing"},{"line_number":110,"context_line":"  pool via ``backend_passes_filters()``. The filter rejects it. An API-level"},{"line_number":111,"context_line":"  pre-check also returns HTTP 409 immediately."},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"* **Retype**: The scheduler runs the full filter/weigh pipeline. If the"},{"line_number":114,"context_line":"  volume\u0027s current pool is disabled:"},{"line_number":115,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"b05db351_ac649570","line":112,"updated":"2026-07-24 20:03:16.000000000","message":"Done. Added explicit entries for migrate, manage_existing, manage_existing_snapshot, and group validate_host_capacity to the Scheduler Filter Behavior section, noting they all route through backend_passes_filters(). Also noted that draining off a disabled pool works since the filter evaluates the destination.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"316e83c13a13aee0cc55f639e894391c0ed38449","unresolved":true,"context_lines":[{"line_number":109,"context_line":"* **Volume extend**: Same as snapshot -- the scheduler validates the existing"},{"line_number":110,"context_line":"  pool via ``backend_passes_filters()``. The filter rejects it. An API-level"},{"line_number":111,"context_line":"  pre-check also returns HTTP 409 immediately."},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"* **Retype**: The scheduler runs the full filter/weigh pipeline. If the"},{"line_number":114,"context_line":"  volume\u0027s current pool is disabled:"},{"line_number":115,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"e26240cb_941a8a69","line":112,"updated":"2026-06-25 13:39:10.000000000","message":"Worth noting the filter coverage is broader than listed here: scheduler/manager.py routes migrate_volume, manage_existing, manage_existing_snapshot, and group validate_host_capacity all through backend_passes_filters, so a disabled pool is also blocked as a migrate destination and for manage/group-create. Recommend listing these so reviewers don\u0027t assume they\u0027re gaps. (Draining off a disabled pool still works — backend_passes_filters runs against the destination, not the source.)","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"4aa6b0167153cf9fa8db9817ca99733c5f71163f","unresolved":false,"context_lines":[{"line_number":179,"context_line":"A new table ``pool_disabled_states`` is introduced:"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":".. code-block:: sql"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"    CREATE TABLE pool_disabled_states ("},{"line_number":184,"context_line":"        id              INTEGER PRIMARY KEY AUTOINCREMENT,"},{"line_number":185,"context_line":"        pool_name       VARCHAR(255) NOT NULL UNIQUE,"}],"source_content_type":"text/x-rst","patch_set":1,"id":"8e5d14d6_843c7540","line":182,"updated":"2026-07-24 20:03:16.000000000","message":"Done. DDL is now marked as illustrative with a note that the real implementation uses SQLAlchemy/alembic. Changed UNIQUE(pool_name) to UNIQUE(pool_name, deleted) and switched deleted to INTEGER DEFAULT 0 (set to row id on delete) per Cinder conventions. Insert new row on disable, set deleted\u003did on enable — preserves audit trail.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"316e83c13a13aee0cc55f639e894391c0ed38449","unresolved":true,"context_lines":[{"line_number":179,"context_line":"A new table ``pool_disabled_states`` is introduced:"},{"line_number":180,"context_line":""},{"line_number":181,"context_line":".. code-block:: sql"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"    CREATE TABLE pool_disabled_states ("},{"line_number":184,"context_line":"        id              INTEGER PRIMARY KEY AUTOINCREMENT,"},{"line_number":185,"context_line":"        pool_name       VARCHAR(255) NOT NULL UNIQUE,"}],"source_content_type":"text/x-rst","patch_set":1,"id":"88b99453_8c78a9b4","line":182,"updated":"2026-06-25 13:39:10.000000000","message":"The illustrative DDL is SQLite-flavored (AUTOINCREMENT); the real migration should follow Cinder\u0027s SQLAlchemy/alembic soft-delete conventions. Also, UNIQUE(pool_name) is what forces the restore-the-soft-deleted-row dance on re-disable and erases the audit trail of repeated disable events — consider UNIQUE(pool_name, deleted) instead.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"4aa6b0167153cf9fa8db9817ca99733c5f71163f","unresolved":false,"context_lines":[{"line_number":248,"context_line":""},{"line_number":249,"context_line":"    GET /scheduler-stats/get_pools?name\u003dhost%40backend%23pool2\u0026detail\u003dtrue"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"**2. New endpoint: PUT /pool-states/down**"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"Mark a pool as disabled. Admin-only."},{"line_number":254,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"841865c4_19316a98","line":251,"updated":"2026-07-24 20:03:16.000000000","message":"Done. Renamed to PUT /pool-states/disable and PUT /pool-states/enable, matching the clusters API vocabulary. Added a GET /pool-states endpoint that returns all currently disabled pools, so read and write live on the same resource.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"316e83c13a13aee0cc55f639e894391c0ed38449","unresolved":true,"context_lines":[{"line_number":248,"context_line":""},{"line_number":249,"context_line":"    GET /scheduler-stats/get_pools?name\u003dhost%40backend%23pool2\u0026detail\u003dtrue"},{"line_number":250,"context_line":""},{"line_number":251,"context_line":"**2. New endpoint: PUT /pool-states/down**"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"Mark a pool as disabled. Admin-only."},{"line_number":254,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"b415b72b_e2c9b216","line":251,"updated":"2026-06-25 13:39:10.000000000","message":"up/down is exactly the service-state vocabulary you\u0027re trying to disentangle from admin state, and the References section already cites PUT /clusters/disable as the precedent — match it with /disable and /enable. Separately, there\u0027s no GET on /pool-states: state is written here but read back from scheduler-stats/get_pools. A read endpoint, or folding this into a coherent /pools resource, would be cleaner than splitting write and read across two surfaces.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"316e83c13a13aee0cc55f639e894391c0ed38449","unresolved":true,"context_lines":[{"line_number":321,"context_line":"Security impact"},{"line_number":322,"context_line":"---------------"},{"line_number":323,"context_line":""},{"line_number":324,"context_line":"No new security concerns. The new API endpoints use the existing"},{"line_number":325,"context_line":"``RULE_ADMIN_API`` policy, restricting access to cloud administrators only."},{"line_number":326,"context_line":"The disable reason is a free-form string limited to 255 characters."},{"line_number":327,"context_line":""},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"Active/Active HA impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"706a973a_83f86684","line":326,"range":{"start_line":324,"start_character":0,"end_line":326,"end_character":67},"updated":"2026-06-25 13:39:10.000000000","message":"Define an explicit policy module under cinder/policies/ (with registered rule names and defaults) rather than inlining RULE_ADMIN_API. That\u0027s the current convention for new admin APIs and lets operators override the rules without code changes.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"4aa6b0167153cf9fa8db9817ca99733c5f71163f","unresolved":false,"context_lines":[{"line_number":323,"context_line":""},{"line_number":324,"context_line":"No new security concerns. The new API endpoints use the existing"},{"line_number":325,"context_line":"``RULE_ADMIN_API`` policy, restricting access to cloud administrators only."},{"line_number":326,"context_line":"The disable reason is a free-form string limited to 255 characters."},{"line_number":327,"context_line":""},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"Active/Active HA impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"600c3b21_dacc640e","line":326,"updated":"2026-07-24 20:03:16.000000000","message":"Done. Added cinder/policies/pool_states.py with three registered rules: pool_states:disable, pool_states:enable, pool_states:get. Default is system_admin_api, overridable via policy.yaml.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"4aa6b0167153cf9fa8db9817ca99733c5f71163f","unresolved":false,"context_lines":[{"line_number":326,"context_line":"The disable reason is a free-form string limited to 255 characters."},{"line_number":327,"context_line":""},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"Active/Active HA impact"},{"line_number":330,"context_line":"-----------------------"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"The disabled pool state is stored in the database, which is shared across all"}],"source_content_type":"text/x-rst","patch_set":1,"id":"80dd432c_3f90bf60","line":329,"updated":"2026-07-24 20:03:16.000000000","message":"Done. Added a full \"Pool Name Canonicalization (Active/Active)\" section. The key is canonicalized on service_topic_queue (cluster@backend#pool in A/A). The filter resolves each candidate\u0027s name to the same canonical form. Also defined orphan behavior: stale rows are harmless (match nothing), can be cleaned up via the enable endpoint.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"316e83c13a13aee0cc55f639e894391c0ed38449","unresolved":true,"context_lines":[{"line_number":326,"context_line":"The disable reason is a free-form string limited to 255 characters."},{"line_number":327,"context_line":""},{"line_number":328,"context_line":""},{"line_number":329,"context_line":"Active/Active HA impact"},{"line_number":330,"context_line":"-----------------------"},{"line_number":331,"context_line":""},{"line_number":332,"context_line":"The disabled pool state is stored in the database, which is shared across all"}],"source_content_type":"text/x-rst","patch_set":1,"id":"07a0725a_712604aa","line":329,"range":{"start_line":329,"start_character":0,"end_line":329,"end_character":23},"updated":"2026-06-25 13:39:10.000000000","message":"The state-key naming won\u0027t match what the filter evaluates under A/A. get_pools (what the admin sees and what this API validates against) builds the name via append_host(backend_key, pool_name) with backend_key \u003d service.service_topic_queue → cluster@backend#pool. But the candidate the filter sees is a PoolState whose .host is append_host(service.host, pool_name) → host@backend#pool. These coincide only when service_topic_queue \u003d\u003d host (non-clustered); in A/A they diverge, so a row keyed on the get_pools name won\u0027t match the filter\u0027s candidate. Please canonicalize on the service_topic_queue-based name and state it explicitly, plus define behavior for rows orphaned by a backend/pool rename.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"316e83c13a13aee0cc55f639e894391c0ed38449","unresolved":true,"context_lines":[{"line_number":386,"context_line":"---------------------"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"* The ``PoolDisabledFilter`` is added to ``scheduler_default_filters``. On"},{"line_number":389,"context_line":"  upgrade, the filter is active by default. Since the ``pool_disabled_states``"},{"line_number":390,"context_line":"  table starts empty, no pools are affected until an admin explicitly marks"},{"line_number":391,"context_line":"  one as disabled."},{"line_number":392,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"73625c1a_66e35266","line":389,"range":{"start_line":389,"start_character":25,"end_line":389,"end_character":42},"updated":"2026-06-25 13:39:10.000000000","message":"\"Active by default\" only holds for deployments using the default scheduler_default_filters ([\u0027AvailabilityZoneFilter\u0027, \u0027CapacityFilter\u0027, \u0027CapabilitiesFilter\u0027]). Operators who override that list won\u0027t get PoolDisabledFilter and won\u0027t enforce disable on creates unless they add it manually. Please call this out.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"4aa6b0167153cf9fa8db9817ca99733c5f71163f","unresolved":false,"context_lines":[{"line_number":386,"context_line":"---------------------"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"* The ``PoolDisabledFilter`` is added to ``scheduler_default_filters``. On"},{"line_number":389,"context_line":"  upgrade, the filter is active by default. Since the ``pool_disabled_states``"},{"line_number":390,"context_line":"  table starts empty, no pools are affected until an admin explicitly marks"},{"line_number":391,"context_line":"  one as disabled."},{"line_number":392,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"95fe5d4f_6a9e68d3","line":389,"updated":"2026-07-24 20:03:16.000000000","message":"Done. Added a .. note:: block in both the filter behavior section and the deployer impact section explicitly calling out that operators who override scheduler_default_filters won\u0027t get PoolDisabledFilter automatically and must add it manually.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"4aa6b0167153cf9fa8db9817ca99733c5f71163f","unresolved":false,"context_lines":[{"line_number":418,"context_line":"* Add database migration for ``pool_disabled_states`` table"},{"line_number":419,"context_line":"* Create ``PoolDisabledState`` Oslo Versioned Object and DB API methods"},{"line_number":420,"context_line":"* Implement ``PoolDisabledFilter`` scheduler filter"},{"line_number":421,"context_line":"* Register filter in ``pyproject.toml`` entry points"},{"line_number":422,"context_line":"* Add filter to ``scheduler_default_filters``"},{"line_number":423,"context_line":"* Create ``/pool-states`` API controller, schema, view builder, and policy"},{"line_number":424,"context_line":"* Register routes in ``cinder/api/v3/router.py``"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fd1ed1cb_58ea3039","line":421,"updated":"2026-07-24 20:03:16.000000000","message":"Done. Removed the entry-points work item. The filter work item now notes it lives under cinder/scheduler/filters/ and is discovered by class name via BackendFilterHandler.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"316e83c13a13aee0cc55f639e894391c0ed38449","unresolved":true,"context_lines":[{"line_number":418,"context_line":"* Add database migration for ``pool_disabled_states`` table"},{"line_number":419,"context_line":"* Create ``PoolDisabledState`` Oslo Versioned Object and DB API methods"},{"line_number":420,"context_line":"* Implement ``PoolDisabledFilter`` scheduler filter"},{"line_number":421,"context_line":"* Register filter in ``pyproject.toml`` entry points"},{"line_number":422,"context_line":"* Add filter to ``scheduler_default_filters``"},{"line_number":423,"context_line":"* Create ``/pool-states`` API controller, schema, view builder, and policy"},{"line_number":424,"context_line":"* Register routes in ``cinder/api/v3/router.py``"}],"source_content_type":"text/x-rst","patch_set":1,"id":"46b78a27_41ff3df2","line":421,"range":{"start_line":421,"start_character":2,"end_line":421,"end_character":52},"updated":"2026-06-25 13:39:10.000000000","message":"Filters aren\u0027t entry-point registered. HostManager discovers them via BackendFilterHandler(\u0027cinder.scheduler.filters\u0027).get_all_classes() and selects by cls.__name__ in _choose_backend_filters. The filter just needs to live under cinder/scheduler/filters/ and be named in the default list — drop this work item.","commit_id":"faec9e23cf9923def9d312512b434292658fe0e5"}],"specs/2026.2/pool-disable-draining.rst":[{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"832de850_2e3717b0","in_reply_to":"01a80295_0ad163f9","updated":"2026-10-26 14:31:46.000000000","message":"Covered by the API-side merge described at line 296: the scheduler RPC is unchanged and the fields are added by the API from the pools table.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"117c3340_2741b9c7","in_reply_to":"0fc73cb0_e5938691","updated":"2026-10-26 14:31:46.000000000","message":"Field dropped. There is no disabled_since in the API and no such column in the data model.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"993a2508_bc9e785d","in_reply_to":"3b7d4d26_660d391d","updated":"2026-10-26 14:31:46.000000000","message":"Blocker taken, via your recommended route. get_all_backend_states() excludes disabled pools and get_pools() is a separate method, so _filter_pools_by_volume_type() and the volume_type\u003d view are untouched. The deployer-impact section now says the listings keep returning disabled pools.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"1467b536_4c030865","in_reply_to":"55f79d2d_3e768ba5","updated":"2026-10-26 14:31:46.000000000","message":"Done. disable validates through scheduler_rpcapi.get_pools(), and the spec now states that a pool whose service is down or disabled is absent from the state map and cannot be pre-disabled. enable does not call the scheduler at all: it is a 200 no-op that still clears a stale row.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"04a689e2e77c5af7c364f62b3ab42d6c877bc441","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"3dc46c2f_bf9f02af","in_reply_to":"6165274c_a77180a2","updated":"2026-10-26 14:33:15.000000000","message":"Correction to my reply above: I checked live master (cinder/api/microversions.py on opendev) and the highest constant is 3.71 (EXTEND_VOLUME_COMPLETION), so 3.72 was not actually taken. PS4 drops the claim and says only \"the next available microversion; the constant is assigned when the change merges\".","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"e0395abd69bc7993cf3d41207cef388e6569e80c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"17f68a0b_c4265a6c","in_reply_to":"6165274c_a77180a2","updated":"2026-10-26 14:30:48.000000000","message":"Done. PS3 says \"the next available microversion (3.72 is already taken on master); the constant is assigned when the change merges\".","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"72515bc9_93fb0c6f","in_reply_to":"67bee80e_f7518a54","updated":"2026-10-26 14:31:46.000000000","message":"Addressed by moving enforcement to get_all_backend_states(); the pre-check path this referred to no longer exists.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"3714a88c_9889bb0b","in_reply_to":"8080a11c_1383ef2c","updated":"2026-10-26 14:31:46.000000000","message":"Done. The API merges the state from the pools table into the {name, capabilities} dicts the scheduler RPC already returns, so the RPC shape is unchanged and an older scheduler is tolerated. Both the summary and detail views carry the fields.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"2665d291_ae53387e","in_reply_to":"8137f57f_11cc953e","updated":"2026-10-26 14:31:46.000000000","message":"The API-side pre-check section is gone entirely. Enforcement is scheduler-side, so there is no volume.host vs service_topic_queue comparison left to get wrong.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"fc0f72b5_8b8bd930","in_reply_to":"8f43787b_ba434bfd","updated":"2026-10-26 14:31:46.000000000","message":"Done. The canonicalization section is replaced by one paragraph: get_pools() keys on append_host(service_topic_queue, pool_name) and PoolState.backend_id is the same string, with the _schedule() resource_backend comparison as precedent. The orphaned-rows paragraph is kept.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"1faf159d_8ea969e8","in_reply_to":"93f4e8e2_4bb98063","updated":"2026-10-26 14:31:46.000000000","message":"Fixed: cinder-tempest-plugin everywhere, and the A/A name-matching case now states that it needs a clustered fixture.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"c044fa3c_8ca39893","in_reply_to":"9900c0cd_a9575209","updated":"2026-10-26 14:31:46.000000000","message":"Blocker taken. Enforcement is out of the filter chain: HostManager.get_all_backend_states() drops disabled pools before any filter or weigher runs. That path is used by _get_weighted_candidates() and the group paths, and it does not consult scheduler_default_filters, so a custom filter list no longer loses enforcement.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"47fc44b5_d5973eff","in_reply_to":"a8c4e78e_8f9457ed","updated":"2026-10-26 14:31:46.000000000","message":"Went with the second option: no audit trail, rows updated in place. deleted stays the CinderBase boolean, delete_values() is not overridden, and the UNIQUE constraint is never exercised by a deleted row. disabled is no longer dead weight because the row persists with disabled\u003dFALSE when the pool is re-enabled.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"df3e2ee8_5f338709","in_reply_to":"e384fc77_125fcb27","updated":"2026-10-26 14:31:46.000000000","message":"Fixed. The rules are pools:get_all and pools:update, both defaulting to base.RULE_ADMIN_API (rule:admin_api), with bare names and no volume_extension: prefix.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f7931a69442bde43d300e8b49390fe333605196f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"5cb3578d_1adaf994","in_reply_to":"eeabe23d_2f89824b","updated":"2026-10-26 14:31:46.000000000","message":"Moot now. There is no filter and no DB read on the filter path: the state is stamped onto PoolState in _update_backend_state_map (one query per pass, next to the services query) and the exclusion is an in-memory skip.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":131,"context_line":"   Operators who override ``scheduler_default_filters`` in their configuration"},{"line_number":132,"context_line":"   will **not** automatically get ``PoolDisabledFilter``. Such operators must"},{"line_number":133,"context_line":"   add it to their custom filter list manually to enforce pool disable on"},{"line_number":134,"context_line":"   create operations. The API pre-checks for extend/snapshot and the"},{"line_number":135,"context_line":"   ``backend_passes_filters()`` path remain effective regardless of filter"},{"line_number":136,"context_line":"   configuration, as those use the filter directly."},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"Pool Name Canonicalization (Active/Active)"},{"line_number":139,"context_line":"-------------------------------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"9900c0cd_a9575209","line":136,"range":{"start_line":134,"start_character":22,"end_line":136,"end_character":51},"updated":"2026-09-17 16:49:29.000000000","message":"**Blocker**\n``backend_passes_filters()`` does not use the filter directly. It calls ``_get_weighted_candidates()``, which calls ``host_manager.get_filtered_backends(backends, filter_properties)``, which uses ``self.enabled_filters`` — built by ``_choose_backend_filters(CONF.scheduler_default_filters)``. So an operator who overrides ``scheduler_default_filters`` and omits ``PoolDisabledFilter`` loses all scheduler-side enforcement: creates, retype, migrate-destination, manage_existing, manage_existing_snapshot and group capacity validation. Only the API pre-check for extend/snapshot survives, because that one is a direct DB lookup.\n\nThat makes the Use Cases bullet (\"prevent all new provisioning ... on a pool being drained\") conditional on operator config.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":135,"context_line":"   ``backend_passes_filters()`` path remain effective regardless of filter"},{"line_number":136,"context_line":"   configuration, as those use the filter directly."},{"line_number":137,"context_line":""},{"line_number":138,"context_line":"Pool Name Canonicalization (Active/Active)"},{"line_number":139,"context_line":"-------------------------------------------"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"The pool name used as the key in the ``pool_disabled_states`` table is"},{"line_number":142,"context_line":"canonicalized on the ``service_topic_queue``-based name (i.e.,"},{"line_number":143,"context_line":"``cluster@backend#pool`` in clustered / Active/Active deployments, or"},{"line_number":144,"context_line":"``host@backend#pool`` in non-clustered deployments)."},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"This matches the name reported by ``GET /scheduler-stats/get_pools``, which"},{"line_number":147,"context_line":"builds pool names via ``append_host(backend_key, pool_name)`` where"},{"line_number":148,"context_line":"``backend_key`` is derived from ``service.service_topic_queue``."},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"The ``PoolDisabledFilter`` resolves each candidate\u0027s pool name to the same"},{"line_number":151,"context_line":"``service_topic_queue``-based canonical form before checking the disabled set,"},{"line_number":152,"context_line":"ensuring consistent matching regardless of whether the candidate PoolState\u0027s"},{"line_number":153,"context_line":"``.host`` uses the per-node hostname or the cluster name."},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"**Behavior for orphaned rows:** If a backend or pool is renamed or removed,"},{"line_number":156,"context_line":"rows in ``pool_disabled_states`` referencing the old name become orphaned (they"},{"line_number":157,"context_line":"match no active pool). These rows are harmless -- they block nothing since no"},{"line_number":158,"context_line":"pool reports the old name. Administrators can clean them up by calling the"},{"line_number":159,"context_line":"enable endpoint for the old name, or they can be left in place. A future"},{"line_number":160,"context_line":"enhancement could add a periodic cleanup task, but it is not required for"},{"line_number":161,"context_line":"correctness."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"Data Flow: How the Scheduler Learns Pool State"},{"line_number":164,"context_line":"------------------------------------------------"}],"source_content_type":"text/x-rst","patch_set":2,"id":"8f43787b_ba434bfd","line":161,"range":{"start_line":138,"start_character":0,"end_line":161,"end_character":12},"updated":"2026-09-17 16:49:29.000000000","message":"**canonicalization — delete most of it.** ``PoolState.__init__`` already sets ``new_cluster \u003d append_host(cluster_name, pool_name)``, and ``BackendState.backend_id`` returns ``cluster_name or host. get_pools()`` keys on ``append_host(service.service_topic_queue, pool.pool_name)``, and ``service_topic_queue`` is ``cluster_name or host``. Those are the same string. So the filter needs no \"resolution\" logic — it compares ``backend_state.backend_id``. Precedent: ``filter_scheduler._schedule()`` already matches ``backend.obj.backend_id`` against ``volume.resource_backend`` (which is an alias of ``service_topic_queue``) for exactly this reason. One sentence replaces the section; keep the orphaned-rows paragraph.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":160,"context_line":"enhancement could add a periodic cleanup task, but it is not required for"},{"line_number":161,"context_line":"correctness."},{"line_number":162,"context_line":""},{"line_number":163,"context_line":"Data Flow: How the Scheduler Learns Pool State"},{"line_number":164,"context_line":"------------------------------------------------"},{"line_number":165,"context_line":""},{"line_number":166,"context_line":"The ``PoolDisabledFilter`` queries the ``pool_disabled_states`` database table"}],"source_content_type":"text/x-rst","patch_set":2,"id":"eeabe23d_2f89824b","line":163,"updated":"2026-09-17 16:49:29.000000000","message":"``BaseFilterHandler`` invokes ``_filter_one()`` per candidate, so a DB read inside ``backend_passes()`` is one query per pool per pass, not one per pass — that is precisely why ``AffinityFilter`` is a known cost, so citing it as precedent cuts against you. Commit to fetching once per pass: override ``filter_all()``, or memoize on ``filter_properties``. (Moot if you take the ``get_all_backend_states()`` route above.)","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":218,"context_line":"Data model impact"},{"line_number":219,"context_line":"-----------------"},{"line_number":220,"context_line":""},{"line_number":221,"context_line":"A new table ``pool_disabled_states`` is introduced. The illustrative DDL below"},{"line_number":222,"context_line":"shows the logical schema; the actual implementation uses a SQLAlchemy model"},{"line_number":223,"context_line":"with an alembic migration following Cinder\u0027s standard soft-delete conventions:"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":".. code-block:: sql"},{"line_number":226,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"a8c4e78e_8f9457ed","line":223,"range":{"start_line":221,"start_character":0,"end_line":223,"end_character":78},"updated":"2026-09-17 16:49:29.000000000","message":"**my PS1 suggestion needs a caveat I didn\u0027t give you.** ``UNIQUE(pool_name, deleted)`` only buys the audit trail if ``deleted`` is id-valued. ``CinderBase`` declares ``deleted \u003d Column(Boolean, default\u003dFalse)`` with ``delete_values()`` returning ``deleted\u003dTrue``, so under the base class only one soft-deleted row per pool can exist and the second enable after a re-disable violates the constraint. To get what the text now claims, the model must explicitly override ``deleted \u003d Column(Integer, default\u003d0)`` and ``delete_values()`` — there is precedent (``VolumeTypeProjects``, ``GroupTypeProjects`` both use an integer ``deleted`` inside a unique constraint), but it is a deliberate departure from ``CinderBase``, not \"Cinder\u0027s standard soft-delete conventions\". Either say that explicitly, or drop the audit-trail goal and update one row in place. Relatedly, ``disabled BOOLEAN NOT NULL DEFAULT TRUE`` is dead weight: under the sparse model, row existence is the disabled state, so the column can never be false.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":259,"context_line":"REST API impact"},{"line_number":260,"context_line":"---------------"},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"All changes are gated by a new microversion (e.g., ``3.72``; the actual"},{"line_number":263,"context_line":"version number will be determined at merge time)."},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"**1. Amended existing endpoint: GET /scheduler-stats/get_pools**"}],"source_content_type":"text/x-rst","patch_set":2,"id":"6165274c_a77180a2","line":262,"range":{"start_line":262,"start_character":53,"end_line":262,"end_character":57},"updated":"2026-09-17 16:49:29.000000000","message":"3.72 already used in master - just say \"next available microversion\"","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":262,"context_line":"All changes are gated by a new microversion (e.g., ``3.72``; the actual"},{"line_number":263,"context_line":"version number will be determined at merge time)."},{"line_number":264,"context_line":""},{"line_number":265,"context_line":"**1. Amended existing endpoint: GET /scheduler-stats/get_pools**"},{"line_number":266,"context_line":""},{"line_number":267,"context_line":"When the request microversion is \u003e\u003d the new microversion, the response for"},{"line_number":268,"context_line":"each pool includes two additional fields:"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":".. code-block:: json"},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"    {"},{"line_number":273,"context_line":"        \"pools\": ["},{"line_number":274,"context_line":"            {"},{"line_number":275,"context_line":"                \"name\": \"host@backend#pool1\","},{"line_number":276,"context_line":"                \"capabilities\": {},"},{"line_number":277,"context_line":"                \"disabled\": false,"},{"line_number":278,"context_line":"                \"disabled_reason\": null"},{"line_number":279,"context_line":"            },"},{"line_number":280,"context_line":"            {"},{"line_number":281,"context_line":"                \"name\": \"host@backend#pool2\","},{"line_number":282,"context_line":"                \"capabilities\": {},"},{"line_number":283,"context_line":"                \"disabled\": true,"},{"line_number":284,"context_line":"                \"disabled_reason\": \"decommissioning rack 5\""},{"line_number":285,"context_line":"            }"},{"line_number":286,"context_line":"        ]"},{"line_number":287,"context_line":"    }"},{"line_number":288,"context_line":""},{"line_number":289,"context_line":"For requests below the new microversion, the response is unchanged."},{"line_number":290,"context_line":""},{"line_number":291,"context_line":"Individual pool state can be queried by filtering with the ``name`` query"},{"line_number":292,"context_line":"parameter:"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":".. code-block::"},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"    GET /scheduler-stats/get_pools?name\u003dhost%40backend%23pool2\u0026detail\u003dtrue"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"**2. New endpoint: PUT /pool-states/disable**"},{"line_number":299,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"8080a11c_1383ef2c","line":296,"range":{"start_line":265,"start_character":0,"end_line":296,"end_character":74},"updated":"2026-09-17 16:49:29.000000000","message":"The view builder receives only ``{name, capabilities}`` dicts from the scheduler RPC, so amending the view builder isn\u0027t sufficient on its own — say where the state comes from. API-side DB read is the better answer (keeps your \"no RPC changes\" property); scheduler-side means the ``get_pools`` RPC response shape changes and the API must tolerate an older scheduler omitting the keys during a rolling upgrade. Also note the summary view (``detail\u003dfalse``) returns only name today — state whether the new fields appear there too.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":320,"context_line":"        }"},{"line_number":321,"context_line":"    }"},{"line_number":322,"context_line":""},{"line_number":323,"context_line":"If the pool name does not correspond to a known pool reported by the"},{"line_number":324,"context_line":"scheduler, the request returns HTTP 404."},{"line_number":325,"context_line":""},{"line_number":326,"context_line":"**3. New endpoint: PUT /pool-states/enable**"},{"line_number":327,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"55f79d2d_3e768ba5","line":324,"range":{"start_line":323,"start_character":0,"end_line":324,"end_character":40},"updated":"2026-09-17 16:49:29.000000000","message":"Validating the pool name requires the API to call ``scheduler_rpcapi.get_pools()``; worth saying so. Consequence worth a line: a pool whose service is down or disabled is absent from the scheduler\u0027s state map, so you cannot pre-disable it. Enable-as-no-op-200 keeps orphan cleanup working, so the two are consistent — just make the validation source explicit.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":364,"context_line":"                \"pool_name\": \"host@backend#pool2\","},{"line_number":365,"context_line":"                \"disabled\": true,"},{"line_number":366,"context_line":"                \"disabled_reason\": \"decommissioning rack 5\","},{"line_number":367,"context_line":"                \"disabled_at\": \"2026-06-15T10:30:00Z\""},{"line_number":368,"context_line":"            }"},{"line_number":369,"context_line":"        ]"},{"line_number":370,"context_line":"    }"}],"source_content_type":"text/x-rst","patch_set":2,"id":"0fc73cb0_e5938691","line":367,"range":{"start_line":367,"start_character":0,"end_line":367,"end_character":53},"updated":"2026-09-17 16:49:29.000000000","message":"Not a column in the data model; presumably ``created_at`` of the active row. Say which.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":372,"context_line":"An optional ``pool_name`` query parameter filters to a single pool."},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"This provides a dedicated read surface for disabled pool state, complementing"},{"line_number":375,"context_line":"the disable/enable write endpoints. The ``GET /scheduler-stats/get_pools``"},{"line_number":376,"context_line":"endpoint continues to include disabled state in its response as well, giving"},{"line_number":377,"context_line":"operators two access paths: the pool-states resource for admin state"},{"line_number":378,"context_line":"management, and scheduler-stats for a unified view of pool capabilities and"},{"line_number":379,"context_line":"state."},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"**5. Error responses for blocked operations**"},{"line_number":382,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"67bee80e_f7518a54","line":379,"range":{"start_line":375,"start_character":35,"end_line":379,"end_character":6},"updated":"2026-09-17 16:49:29.000000000","message":"see blocker comment at 480","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":393,"context_line":"    }"},{"line_number":394,"context_line":""},{"line_number":395,"context_line":""},{"line_number":396,"context_line":"Security impact"},{"line_number":397,"context_line":"---------------"},{"line_number":398,"context_line":""},{"line_number":399,"context_line":"No new security concerns. The new API endpoints are protected by a dedicated"},{"line_number":400,"context_line":"policy rule registered under ``cinder/policies/pool_states.py``, following"},{"line_number":401,"context_line":"Cinder\u0027s current convention for new admin APIs. The default rule restricts"},{"line_number":402,"context_line":"access to system-scope admin (``rule:system_admin_api``), allowing operators"},{"line_number":403,"context_line":"to override the policy without code changes via ``policy.yaml``."},{"line_number":404,"context_line":""},{"line_number":405,"context_line":"Registered policy rules:"},{"line_number":406,"context_line":""},{"line_number":407,"context_line":"* ``volume_extension:pool_states:disable`` -- mark a pool as disabled"},{"line_number":408,"context_line":"* ``volume_extension:pool_states:enable`` -- mark a pool as enabled"},{"line_number":409,"context_line":"* ``volume_extension:pool_states:get`` -- list/get disabled pool states"},{"line_number":410,"context_line":""},{"line_number":411,"context_line":"The disable reason is a free-form string limited to 255 characters."},{"line_number":412,"context_line":""},{"line_number":413,"context_line":""},{"line_number":414,"context_line":"Active/Active HA impact"}],"source_content_type":"text/x-rst","patch_set":2,"id":"e384fc77_125fcb27","line":411,"range":{"start_line":396,"start_character":0,"end_line":411,"end_character":67},"updated":"2026-09-17 16:49:29.000000000","message":"``rule:system_admin_api`` doesn\u0027t exist in ``cinder/policies/base.py``. The convention for new admin APIs is ``base.RULE_ADMIN_API (\"rule:admin_api\")`` — see ``cinder/policies/clusters.py``. Separately, the spec body names the rules ``volume_extension:pool_states:*`` while your Gerrit reply says ``pool_states:*. volume_extension:`` is the legacy contrib-extension prefix; a new resource in the v3 router should use the bare form, like ``clusters:*`` and ``workers:*``. The bare names are right — fix the body.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":477,"context_line":"Other deployer impact"},{"line_number":478,"context_line":"---------------------"},{"line_number":479,"context_line":""},{"line_number":480,"context_line":"* The ``PoolDisabledFilter`` is added to ``scheduler_default_filters``. On"},{"line_number":481,"context_line":"  upgrade, the filter is active by default. Since the ``pool_disabled_states``"},{"line_number":482,"context_line":"  table starts empty, no pools are affected until an admin explicitly marks"},{"line_number":483,"context_line":"  one as disabled."}],"source_content_type":"text/x-rst","patch_set":2,"id":"3b7d4d26_660d391d","line":480,"updated":"2026-09-17 16:49:29.000000000","message":"**Blocker**\n``host_manager._filter_pools_by_volume_type()`` calls ``get_filtered_backends()`` over the pool list. That path serves ``GET /scheduler-stats/get_pools?volume_type\u003dX`` (MV 3.35). With ``PoolDisabledFilter`` in the default list, disabled pools silently disappear from that query — contradicting both the spec\u0027s premise (\"keeping them visible for monitoring\") and the new ``disabled: true`` / ``disabled_reason`` fields you\u0027re adding to the same endpoint.\n\n**Recommendation covering both blockers:** enforce in ``host_manager.get_all_backend_states()`` instead of in a filter. That is the scheduling-side candidate source, it is a separate method from ``get_pools()``, and it mirrors exactly how service-disable is enforced today (``_update_backend_state_map()`` querying with ``disabled: False``). It is unconditional, it leaves the monitoring view untouched, and it removes the config-default change, both caveat notes, and the per-pass DB query from filter code. If you\u0027d rather keep the filter, the spec needs to say plainly that enforcement is best-effort and operator-defeatable, and that ``_filter_pools_by_volume_type()`` must skip this filter.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":527,"context_line":"* Register policy rules under ``cinder/policies/pool_states.py``"},{"line_number":528,"context_line":"* Register routes in ``cinder/api/v3/router.py``"},{"line_number":529,"context_line":"* Add new microversion constant and bump max API version"},{"line_number":530,"context_line":"* Amend ``scheduler_stats`` view builder to include disabled state fields"},{"line_number":531,"context_line":"* Add API pre-checks in ``cinder/volume/api.py`` for extend and snapshot"},{"line_number":532,"context_line":"* Add unit tests for filter, API, OVO, and DB layer"},{"line_number":533,"context_line":"* Add tempest tests for the new API endpoints"}],"source_content_type":"text/x-rst","patch_set":2,"id":"01a80295_0ad163f9","line":530,"range":{"start_line":530,"start_character":0,"end_line":530,"end_character":73},"updated":"2026-09-17 16:49:29.000000000","message":"see comments on line 265","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":528,"context_line":"* Register routes in ``cinder/api/v3/router.py``"},{"line_number":529,"context_line":"* Add new microversion constant and bump max API version"},{"line_number":530,"context_line":"* Amend ``scheduler_stats`` view builder to include disabled state fields"},{"line_number":531,"context_line":"* Add API pre-checks in ``cinder/volume/api.py`` for extend and snapshot"},{"line_number":532,"context_line":"* Add unit tests for filter, API, OVO, and DB layer"},{"line_number":533,"context_line":"* Add tempest tests for the new API endpoints"},{"line_number":534,"context_line":"* Update ``python-cinderclient`` with new commands and amended pool-list"}],"source_content_type":"text/x-rst","patch_set":2,"id":"8137f57f_11cc953e","line":531,"range":{"start_line":531,"start_character":0,"end_line":531,"end_character":72},"updated":"2026-09-17 16:49:29.000000000","message":"It has the same naming problem the filter had: ``volume.host`` is the per-node form, so the pre-check must use ``volume.service_topic_queue``. Also worth one sentence saying the pre-check is deliberately only for extend/snapshot and that retype/migrate/manage fail later via ``NoValidBackend``.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b845aff4eb59fd3c84fe0024043a722295eb85c","unresolved":true,"context_lines":[{"line_number":556,"context_line":"  confirming that creates, extends, snapshots, retypes, migrates,"},{"line_number":557,"context_line":"  manage_existing, and group-create are blocked."},{"line_number":558,"context_line":""},{"line_number":559,"context_line":"* **Tempest tests**: Integration tests exercising the new API endpoints and"},{"line_number":560,"context_line":"  verifying scheduler behavior with disabled pools."},{"line_number":561,"context_line":""},{"line_number":562,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"93f4e8e2_4bb98063","line":559,"range":{"start_line":559,"start_character":4,"end_line":559,"end_character":17},"updated":"2026-09-17 16:49:29.000000000","message":"\"Tempest tests\" should say ``cinder-tempest-plugin``, and the A/A name-matching case needs a clustered fixture to be meaningful.","commit_id":"f8e31d8ab7c57e1fbd309d49197032cab15c8153"}],"specs/2027.1/pool-disable-draining.rst":[{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"0c016cff7d6d2134ee464ddf5ba02ffc792b4f07","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"5a22afd8_dbaa18f3","in_reply_to":"02a816c6_060696bb","updated":"2026-10-26 22:40:38.000000000","message":"Removed. The alternative now ends at \"cannot carry a reason\"; the no-history statement stays in the data model section where it belongs.","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"0c016cff7d6d2134ee464ddf5ba02ffc792b4f07","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"737a633c_0b4a9336","in_reply_to":"25f52b63_5e6d9d99","updated":"2026-10-26 22:40:38.000000000","message":"Added: the retype becomes a migration only when the request sets migration_policy\u003don-demand; with no policy the scheduler uses never (find_retype_backend defaults to \u0027never\u0027) and the retype fails with NoValidBackend. It also says operators should not expect a retype to drain a disabled pool automatically.","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"0c016cff7d6d2134ee464ddf5ba02ffc792b4f07","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"7add39e7_4fa20a01","in_reply_to":"71503c9c_7288610b","updated":"2026-10-26 22:40:38.000000000","message":"Taken, with the reported flag as you suggested. GET /pools now returns the union of the pools the scheduler reports and the stored pools rows, keyed on the pool name, and every entry carries `reported`: true when the scheduler reported it in this request, false when it comes only from the database. An unreported entry keeps its stored disabled and disabled_reason and has no capabilities in the detail view. The JSON sample has a reported:false entry so the shape is unambiguous.\n\nThe spec now states the reason explicitly: get_pools() reads backend_state_map, _update_backend_state_map() only selects services with disabled:False and frozen:False, skips services that are down and drops their backends from the map, so a pool being drained while its service is in maintenance vanishes from both listings and a row for a removed backend could never be found again. It also notes that disable still validates against the scheduler and so cannot be used on an unreported pool, while enable does not consult the scheduler, which is what makes the cleanup possible. Cost is one loop over a normally tiny table; the API work item and the unit-test list cover it.","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"38d624dcbfc42e969ab1e97453d6f71c2b99b5f1","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"e3b79dda_5ba583b0","in_reply_to":"7b81470c_ff6fc503","updated":"2026-10-26 22:40:16.000000000","message":"Done: Walter Boring (hemna).","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"0c016cff7d6d2134ee464ddf5ba02ffc792b4f07","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"c10a0e38_3273556b","in_reply_to":"858a2cb1_2c98ffb0","updated":"2026-10-26 22:40:38.000000000","message":"Taken, and I agree this is a behaviour bug rather than wording. The data-flow diagram now says every pass resets disabled and disabled_reason on every cached pool before the stored rows are applied, and there is a paragraph on why it is required rather than defensive: PoolState objects live in HostManager.backend_state_map and _update_backend_state_map() updates them in place (host_manager.py:143, 241-291), so a flag stamped in one pass is still there in the next. The performance section no longer reads as a disabled-rows-only query - it now says the query selects every stored row and why. Work item 3 gets your unit test: a pool re-enabled through PUT /pools/enable is schedulable again on the next pass.","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"0c016cff7d6d2134ee464ddf5ba02ffc792b4f07","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"af8d640e_aea52a19","in_reply_to":"96fd00a9_994ce667","updated":"2026-10-26 22:40:38.000000000","message":"All three fixes plus the two nits are in the next patch set; each thread has the detail and the line numbers moved a little.\n\nOn 988336: agreed, it builds the PS2 design end to end - the pool_disabled_states table, PoolDisabledFilter in the default list, /pool-states, the 409 pre-checks in cinder/volume/api.py, and a hard-coded 3.72. Most of the DB, object and API scaffolding is reusable, but the filter, the pre-checks, the /pool-states routes and the fixed microversion all go. I will rework it against this text and push it as the four-commit series the spec describes (db, api, scheduler, docs) rather than one 923-line change, which also takes cinder/volume/api.py, cinder/objects/base.py, cinder/exception.py and the pyproject entry point out of the diff. Say so if you would rather see 988336 rebased in place instead.","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"0c016cff7d6d2134ee464ddf5ba02ffc792b4f07","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"72f9e434_fdea3b31","in_reply_to":"f535d0c2_88b6026c","updated":"2026-10-26 22:40:38.000000000","message":"Verified in code and split into three bullets.\n\n- Clone: resource_backend is source_volume_ref.resource_backend (create_volume.py:842-845), which is pool-level, so it is pinned to the source pool and fails with NoValidBackend.\n- Create from snapshot: only pinned under `elif snapshot_id and CONF.snapshot_same_host` (create_volume.py:830-841), where resource_backend is snapshot.volume.resource_backend and therefore pool-level. With snapshot_same_host false there is no resource_backend at all and the request is scheduled like a plain create.\n- Create into a group / legacy consistency group: resource_backend is volume_utils.extract_host(group.resource_backend) (create_volume.py:818-829), which strips the pool, and _schedule() compares at backend level when the value has no pool (filter_scheduler.py:548-561). So a sibling pool on the same backend stays a candidate and the create fails only when no pool of that backend qualifies.\n\nThe operation matrix gained four rows for the three cases, the bullet calls create-into-group the only case that does not hard-fail, and the admin-guide work item now carries the correction instead of saying all three fail.","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"f9582c50bc44ea1aad9a757686ecd10f4a15c085","unresolved":true,"context_lines":[{"line_number":107,"context_line":"     |                       |  SELECT pools rows --\u003e |"},{"line_number":108,"context_line":"     |                       |     (one query)        |"},{"line_number":109,"context_line":"     |                       |                        |"},{"line_number":110,"context_line":"     |                       |  PoolState.disabled \u003d  |"},{"line_number":111,"context_line":"     |                       |    True / reason       |"},{"line_number":112,"context_line":"     |                       |                        |"},{"line_number":113,"context_line":"     |                       |  get_all_backend_      |"}],"source_content_type":"text/x-rst","patch_set":5,"id":"858a2cb1_2c98ffb0","line":110,"updated":"2026-10-26 15:02:35.000000000","message":"`PoolState` objects persist in `backend_state_map` across scheduling requests; `_update_backend_state_map()` updates them in place rather than rebuilding them. This diagram only shows setting `disabled \u003d True`, and the performance section at 516-518 describes a query that normally returns nothing, which reads as selecting only disabled rows. If the implementation stamps only disabled rows onto the cached objects, a pool re-enabled with `PUT /pools/enable` stays excluded until the scheduler restarts. Please state that every pass resets disabled and `disabled_reason` on all pools and then applies the rows, so a pool with no row, or with `disabled \u003d FALSE`, is schedulable. Worth a unit test in work item 3 (612-613) too.","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"f9582c50bc44ea1aad9a757686ecd10f4a15c085","unresolved":true,"context_lines":[{"line_number":177,"context_line":"  Migrating a volume *off* a disabled pool is unaffected because the source is"},{"line_number":178,"context_line":"  not a candidate."},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"* **Clone, create from snapshot, create into group.** These are pinned to the"},{"line_number":181,"context_line":"  source pool through ``request_spec[\u0027resource_backend\u0027]``, which"},{"line_number":182,"context_line":"  ``FilterScheduler._schedule()`` uses to narrow the candidates to one backend."},{"line_number":183,"context_line":"  They cannot be redirected to another pool, so on a disabled pool they fail"}],"source_content_type":"text/x-rst","patch_set":5,"id":"f535d0c2_88b6026c","line":180,"updated":"2026-10-26 15:02:35.000000000","message":"This bullet came from my PS2 comment, and I got create into group wrong. `VolumeCastTask._cast_create_volume()` sets `resource_backend` from `volume_utils.extract_host(group.resource_backend)`, which strips the pool, and `_schedule()` compares at backend level when `resource_backend` has no pool. So a volume created into a group whose pool is disabled lands on another enabled pool of the same backend, and fails only when no pool of that backend qualifies. Legacy consistency groups behave the same way. Clone is pinned to the source pool as written, because `source_volume_ref.resource_backend` keeps the pool. Create from snapshot is pinned only while `snapshot_same_host` is True (the default); with it False the request is scheduled like a plain create. Please split this bullet accordingly and carry the correction into the admin-guide work item at 622-625.","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"f9582c50bc44ea1aad9a757686ecd10f4a15c085","unresolved":true,"context_lines":[{"line_number":191,"context_line":"  candidate whose ``backend_id`` is not the volume\u0027s current backend. The"},{"line_number":192,"context_line":"  result is \"retype in place or migrate away\", never \"migrate onto a disabled"},{"line_number":193,"context_line":"  pool\"."},{"line_number":194,"context_line":"  Other filters still apply, so if the new volume type cannot be satisfied by"},{"line_number":195,"context_line":"  the current pool the retype naturally becomes a migration."},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"* **Unaffected operations.** Delete, attach, detach, revert to snapshot,"}],"source_content_type":"text/x-rst","patch_set":5,"id":"25f52b63_5e6d9d99","line":194,"updated":"2026-10-26 15:02:35.000000000","message":"Nit: the retype becomes a migration only when the request uses `migration_policy\u003don-demand`. With no policy given the scheduler uses `never`, and the retype fails with `NoValidBackend`. Worth saying so operators do not expect an automatic move.","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"f9582c50bc44ea1aad9a757686ecd10f4a15c085","unresolved":true,"context_lines":[{"line_number":257,"context_line":"   inconsistent between scheduler workers."},{"line_number":258,"context_line":""},{"line_number":259,"context_line":"5. **Store the state in configuration.** Rejected: requires a scheduler reload,"},{"line_number":260,"context_line":"   cannot be changed through the API, and cannot carry a reason or an audit"},{"line_number":261,"context_line":"   trail."},{"line_number":262,"context_line":""},{"line_number":263,"context_line":"6. **Enforce with a scheduler filter instead of ``HostManager``.** Rejected on"}],"source_content_type":"text/x-rst","patch_set":5,"id":"02a816c6_060696bb","line":260,"updated":"2026-10-26 15:02:35.000000000","message":"Nit: \"or an audit trail\" can go, since 305-306 now says no history is kept.","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"f9582c50bc44ea1aad9a757686ecd10f4a15c085","unresolved":true,"context_lines":[{"line_number":347,"context_line":"``{name, capabilities}``. The API therefore reads the ``pools`` table once and"},{"line_number":348,"context_line":"merges the state into the response on the pool name. This keeps the scheduler"},{"line_number":349,"context_line":"RPC signature unchanged, so an API running the new code against an older"},{"line_number":350,"context_line":"scheduler still works, and a disabled pool is always listed because the names"},{"line_number":351,"context_line":"come from the scheduler while the state comes from the shared database."},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"Both the summary and the detail view carry ``disabled`` and"}],"source_content_type":"text/x-rst","patch_set":5,"id":"71503c9c_7288610b","line":350,"range":{"start_line":350,"start_character":27,"end_line":350,"end_character":52},"updated":"2026-10-26 15:02:35.000000000","message":"\"A disabled pool is always listed\" holds only while its service is up, enabled and not frozen. `get_pools()` reads `backend_state_map`, and `_update_backend_state_map()` queries services with `disabled: False, frozen: False`, skips services that are down, and drops their backends from the map. So a drained pool vanishes from both `GET /pools` and `scheduler-stats` while its service is disabled for maintenance. Rows for pools that no longer exist (147-152) also cannot be discovered through the API, so the `PUT /pools/enable` cleanup depends on knowing names out of band. Suggest that `GET /pools` also returns stored rows with no matching scheduler pool, marked as not currently reported, for example `\"reported\": false` with no capabilities. It is one extra loop over a table that is normally tiny.","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"f9582c50bc44ea1aad9a757686ecd10f4a15c085","unresolved":true,"context_lines":[{"line_number":590,"context_line":"-----------"},{"line_number":591,"context_line":""},{"line_number":592,"context_line":"Primary assignee:"},{"line_number":593,"context_line":"  TBD"},{"line_number":594,"context_line":""},{"line_number":595,"context_line":"Other contributors:"},{"line_number":596,"context_line":"  TBD"}],"source_content_type":"text/x-rst","patch_set":5,"id":"7b81470c_ff6fc503","line":593,"range":{"start_line":593,"start_character":2,"end_line":593,"end_character":5},"updated":"2026-10-26 15:02:35.000000000","message":"Please name a primary assignee. 988336 is yours, so presumably Walter Boring (hemna).","commit_id":"afc2e22b012dcc7db548f0dd9a5ccbac3951bad0"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"852330b6b5b6748a21e8e6cc6152b527850694f4","unresolved":true,"context_lines":[{"line_number":113,"context_line":"database (it queries the ``services`` table in"},{"line_number":114,"context_line":"``HostManager._update_backend_state_map``), so one more indexed query is added"},{"line_number":115,"context_line":"there. The state therefore takes effect on the next scheduling request: a"},{"line_number":116,"context_line":"running scheduler needs no restart because nothing is cached, and every"},{"line_number":117,"context_line":"scheduler running this code agrees because they all read the same rows."},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"Every pass resets ``disabled`` and ``disabled_reason`` on all the pools it holds"}],"source_content_type":"text/x-rst","patch_set":7,"id":"e475a235_df5147ef","line":116,"range":{"start_line":116,"start_character":43,"end_line":116,"end_character":60},"updated":"2026-10-29 16:09:19.000000000","message":"\"nothing is cached\" contradicts 122-126, which correctly says the `PoolState` objects live in `backend_state_map` and are updated in place, and the data-flow box and work item 3 call them \"cached\". What is not kept between passes is the stored pools state. Suggest: \"a running scheduler needs no restart because the stored state is re-read on every pass\", and \"refreshes\" rather than \"rebuilds\" at 68 and 112, \"has just refreshed\" at 585.","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":false,"context_lines":[{"line_number":113,"context_line":"database (it queries the ``services`` table in"},{"line_number":114,"context_line":"``HostManager._update_backend_state_map``), so one more indexed query is added"},{"line_number":115,"context_line":"there. The state therefore takes effect on the next scheduling request: a"},{"line_number":116,"context_line":"running scheduler needs no restart because nothing is cached, and every"},{"line_number":117,"context_line":"scheduler running this code agrees because they all read the same rows."},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"Every pass resets ``disabled`` and ``disabled_reason`` on all the pools it holds"}],"source_content_type":"text/x-rst","patch_set":7,"id":"08313027_70ee0a7e","line":116,"range":{"start_line":116,"start_character":43,"end_line":116,"end_character":60},"in_reply_to":"e475a235_df5147ef","updated":"2026-11-04 17:13:05.000000000","message":"Done","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"852330b6b5b6748a21e8e6cc6152b527850694f4","unresolved":true,"context_lines":[{"line_number":161,"context_line":"``HostManager.get_all_backend_states()``: ``FilterScheduler`` calls it from"},{"line_number":162,"context_line":"``_get_weighted_candidates()`` and from the group paths. That method drops"},{"line_number":163,"context_line":"pools whose row says they are disabled, before any filter or weigher sees them,"},{"line_number":164,"context_line":"so"},{"line_number":165,"context_line":"enforcement is a property of the scheduler code and not of the operator\u0027s"},{"line_number":166,"context_line":"filter list. ``HostManager.get_pools()`` never calls it, so the pool listing is"},{"line_number":167,"context_line":"unaffected."}],"source_content_type":"text/x-rst","patch_set":7,"id":"32ccc027_6660eea7","line":164,"updated":"2026-10-29 16:09:19.000000000","message":"nit: formatting","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":false,"context_lines":[{"line_number":161,"context_line":"``HostManager.get_all_backend_states()``: ``FilterScheduler`` calls it from"},{"line_number":162,"context_line":"``_get_weighted_candidates()`` and from the group paths. That method drops"},{"line_number":163,"context_line":"pools whose row says they are disabled, before any filter or weigher sees them,"},{"line_number":164,"context_line":"so"},{"line_number":165,"context_line":"enforcement is a property of the scheduler code and not of the operator\u0027s"},{"line_number":166,"context_line":"filter list. ``HostManager.get_pools()`` never calls it, so the pool listing is"},{"line_number":167,"context_line":"unaffected."}],"source_content_type":"text/x-rst","patch_set":7,"id":"1b4485ce_cbf97e52","line":164,"in_reply_to":"32ccc027_6660eea7","updated":"2026-11-04 17:13:05.000000000","message":"Done","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"852330b6b5b6748a21e8e6cc6152b527850694f4","unresolved":true,"context_lines":[{"line_number":170,"context_line":"  pools. With no candidates left the request fails with ``NoValidBackend``,"},{"line_number":171,"context_line":"  which is the same failure mode as a pool that is out of capacity."},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"* **Create snapshot, extend volume, manage existing (volume and snapshot).**"},{"line_number":174,"context_line":"  These are validated against the volume\u0027s current backend through"},{"line_number":175,"context_line":"  ``backend_passes_filters()``, which uses the same candidate list. The"},{"line_number":176,"context_line":"  disabled pool is absent, so the operation fails instead of growing it."}],"source_content_type":"text/x-rst","patch_set":7,"id":"9efe7990_d03518f6","line":173,"updated":"2026-10-29 16:09:19.000000000","message":"`manage_existing` does not belong with snapshot and extend here, and the matrix row at 237-238 (\"rejected\") overstates it. A managed volume has no current backend: `volume/api.py:2084-2100` keeps the pool in the host only when the request names no cluster and the host string carries `#pool`; otherwise host is the service host and `cluster_name` is the service cluster, both pool-less, and `service_topic_queue` is `cluster_name or host`. `backend_passes_filters()` then ignores the pool and matches the first enabled sibling pool, and scheduler/manager.py:389-397 writes that pool into the volume. So a clustered import, or a non-clustered one that names only host@backend, succeeds on a sibling pool, which is the create-into-group outcome at 197-207, and 203-204 (\"the only case in the matrix where a disabled pool does not hard-fail\") is no longer true. Snapshot, extend and `manage_existing_snapshot` are fine: they pass an existing volume\u0027s pool-level queue. Please split the bullet, amend the matrix row, fix 203-204, and add the clustered manage_existing case to the tests at 695-696.","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":false,"context_lines":[{"line_number":170,"context_line":"  pools. With no candidates left the request fails with ``NoValidBackend``,"},{"line_number":171,"context_line":"  which is the same failure mode as a pool that is out of capacity."},{"line_number":172,"context_line":""},{"line_number":173,"context_line":"* **Create snapshot, extend volume, manage existing (volume and snapshot).**"},{"line_number":174,"context_line":"  These are validated against the volume\u0027s current backend through"},{"line_number":175,"context_line":"  ``backend_passes_filters()``, which uses the same candidate list. The"},{"line_number":176,"context_line":"  disabled pool is absent, so the operation fails instead of growing it."}],"source_content_type":"text/x-rst","patch_set":7,"id":"d00cf135_005173d9","line":173,"in_reply_to":"9efe7990_d03518f6","updated":"2026-11-04 17:13:05.000000000","message":"the Documentation work item at 743-748 still lists two of the three non-hard-fail cases that 217-220 now says the admin guide must spell out","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"852330b6b5b6748a21e8e6cc6152b527850694f4","unresolved":true,"context_lines":[{"line_number":203,"context_line":"  fails with ``NoValidBackend`` only when no pool of that backend qualifies."},{"line_number":204,"context_line":"  This is the only case in the matrix where a disabled pool does not hard-fail"},{"line_number":205,"context_line":"  the operation, so the admin guide has to spell it out. The pinning is decided"},{"line_number":206,"context_line":"  in ``cinder/volume/flows/api/create_volume.py:818-845`` and applied in"},{"line_number":207,"context_line":"  ``FilterScheduler._schedule()`` at ``filter_scheduler.py:548-561``."},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"* **Retype.** ``get_all_backend_states()`` has no operation context, so"}],"source_content_type":"text/x-rst","patch_set":7,"id":"4aa3119a_848d237d","line":206,"updated":"2026-10-29 16:09:19.000000000","message":"No spec should use the bare `file.py:NNN` form as these will shift over time; the ones that cite lines use sha-pinned opendev URLs. `VolumeCastTask._cast_create_volume()` and `FilterScheduler._schedule()` already name the code in this bullet, so I\u0027d drop the numbers.","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":false,"context_lines":[{"line_number":203,"context_line":"  fails with ``NoValidBackend`` only when no pool of that backend qualifies."},{"line_number":204,"context_line":"  This is the only case in the matrix where a disabled pool does not hard-fail"},{"line_number":205,"context_line":"  the operation, so the admin guide has to spell it out. The pinning is decided"},{"line_number":206,"context_line":"  in ``cinder/volume/flows/api/create_volume.py:818-845`` and applied in"},{"line_number":207,"context_line":"  ``FilterScheduler._schedule()`` at ``filter_scheduler.py:548-561``."},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"* **Retype.** ``get_all_backend_states()`` has no operation context, so"}],"source_content_type":"text/x-rst","patch_set":7,"id":"d952b992_00125fde","line":206,"in_reply_to":"4aa3119a_848d237d","updated":"2026-11-04 17:13:05.000000000","message":"Done","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"852330b6b5b6748a21e8e6cc6152b527850694f4","unresolved":true,"context_lines":[{"line_number":209,"context_line":"* **Retype.** ``get_all_backend_states()`` has no operation context, so"},{"line_number":210,"context_line":"  ``_get_weighted_candidates()`` asks it to include disabled pools when"},{"line_number":211,"context_line":"  ``request_spec[\u0027operation\u0027]`` is ``retype_volume``."},{"line_number":212,"context_line":"  ``FilterScheduler.find_retype_backend()`` then discards every disabled"},{"line_number":213,"context_line":"  candidate whose ``backend_id`` is not the volume\u0027s current backend. The"},{"line_number":214,"context_line":"  result is \"retype in place or migrate away\", never \"migrate onto a disabled"},{"line_number":215,"context_line":"  pool\"."}],"source_content_type":"text/x-rst","patch_set":7,"id":"243c5038_b33411d2","line":212,"updated":"2026-10-29 16:09:19.000000000","message":"As written this rule breaks in-place retype for legacy pool-less volumes. Every candidate\u0027s `backend_id` is a `PoolState` value with a `#pool` suffix, while the volume\u0027s current backend is `cluster_name or host`, which for a legacy volume has no pool. The exact comparison can never match, which is why `find_retype_backend()` keeps its second loop at `filter_scheduler.py:178-193` comparing `extract_host(candidate.backend_id, \u0027backend\u0027)`. Discarding \"every disabled candidate whose backend_id is not the volume\u0027s current backend\" before that loop removes the volume\u0027s own pool, and the retype fails with \"Current backend not valid\", contradicting 213-215, the matrix at 247-248 and the functional test at 744-745. Pool-less hosts still exist: the manager only appends a pool when the driver reports one. Simplest fix: leave the two existing match loops alone and drop disabled candidates only from the list handed to `_choose_top_backend()`, the one step that can move the volume. Add a pool-less legacy case to the tests at 695-699.","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":false,"context_lines":[{"line_number":209,"context_line":"* **Retype.** ``get_all_backend_states()`` has no operation context, so"},{"line_number":210,"context_line":"  ``_get_weighted_candidates()`` asks it to include disabled pools when"},{"line_number":211,"context_line":"  ``request_spec[\u0027operation\u0027]`` is ``retype_volume``."},{"line_number":212,"context_line":"  ``FilterScheduler.find_retype_backend()`` then discards every disabled"},{"line_number":213,"context_line":"  candidate whose ``backend_id`` is not the volume\u0027s current backend. The"},{"line_number":214,"context_line":"  result is \"retype in place or migrate away\", never \"migrate onto a disabled"},{"line_number":215,"context_line":"  pool\"."}],"source_content_type":"text/x-rst","patch_set":7,"id":"85fe60af_ff235341","line":212,"in_reply_to":"243c5038_b33411d2","updated":"2026-11-04 17:13:05.000000000","message":"Done","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"852330b6b5b6748a21e8e6cc6152b527850694f4","unresolved":true,"context_lines":[{"line_number":228,"context_line":"   :header-rows: 1"},{"line_number":229,"context_line":"   :widths: 45 20"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"   * - ``request_spec[\u0027operation\u0027]``"},{"line_number":232,"context_line":"     - Result"},{"line_number":233,"context_line":"   * - ``create_volume``"},{"line_number":234,"context_line":"     - rejected"}],"source_content_type":"text/x-rst","patch_set":7,"id":"3df41ee0_c9064551","line":231,"updated":"2026-10-29 16:09:19.000000000","message":"The header is `request_spec[\u0027operation\u0027]` and 258-259 says the column holds the decorator\u0027s value, but rows 249-256 are all `create_volume` with different resource_backend inputs, not operation names. \"allowed\" also means two things: at 248 the disabled pool is used in place, at 254 and 256 the request proceeds elsewhere. Suggest retitling the column \"Operation\", labelling 249-256 as `create_volume` variants, and making rejected/allowed consistently describe the disabled pool as a destination.","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":false,"context_lines":[{"line_number":228,"context_line":"   :header-rows: 1"},{"line_number":229,"context_line":"   :widths: 45 20"},{"line_number":230,"context_line":""},{"line_number":231,"context_line":"   * - ``request_spec[\u0027operation\u0027]``"},{"line_number":232,"context_line":"     - Result"},{"line_number":233,"context_line":"   * - ``create_volume``"},{"line_number":234,"context_line":"     - rejected"}],"source_content_type":"text/x-rst","patch_set":7,"id":"ead7959e_282ed3a6","line":231,"in_reply_to":"3df41ee0_c9064551","updated":"2026-11-04 17:13:05.000000000","message":"Done","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"852330b6b5b6748a21e8e6cc6152b527850694f4","unresolved":true,"context_lines":[{"line_number":427,"context_line":"        \"disabled_reason\": \"decommissioning rack 5\""},{"line_number":428,"context_line":"    }"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"* ``name`` is required and must match ``parameter_types.cinder_host``, which"},{"line_number":431,"context_line":"  already allows ``host@backend#pool`` including IPv6 pools."},{"line_number":432,"context_line":"* ``disabled_reason`` is optional, free-form, at most 255 characters, and uses"},{"line_number":433,"context_line":"  the existing ``disabled_reason`` format validator."}],"source_content_type":"text/x-rst","patch_set":7,"id":"3cf68b55_ed34b6c5","line":430,"updated":"2026-10-29 16:09:19.000000000","message":"`parameter_types.cinder_host` is `\u0027type\u0027: [\u0027string\u0027, \u0027null\u0027]` on master, and `required` only checks key presence, so `{\"name\": null}` passes the schema and never gets the 400 promised at 443; it would 404 on disable and 200 on enable instead. The clusters API this models itself on uses the string-only `parameter_types.name`. Please specify a string-only variant with `minLength: 1` for both actions.","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":false,"context_lines":[{"line_number":427,"context_line":"        \"disabled_reason\": \"decommissioning rack 5\""},{"line_number":428,"context_line":"    }"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"* ``name`` is required and must match ``parameter_types.cinder_host``, which"},{"line_number":431,"context_line":"  already allows ``host@backend#pool`` including IPv6 pools."},{"line_number":432,"context_line":"* ``disabled_reason`` is optional, free-form, at most 255 characters, and uses"},{"line_number":433,"context_line":"  the existing ``disabled_reason`` format validator."}],"source_content_type":"text/x-rst","patch_set":7,"id":"cb11c6b3_5ebee4db","line":430,"in_reply_to":"3cf68b55_ed34b6c5","updated":"2026-11-04 17:13:05.000000000","message":"Done","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"852330b6b5b6748a21e8e6cc6152b527850694f4","unresolved":true,"context_lines":[{"line_number":434,"context_line":"* ``additionalProperties`` is false."},{"line_number":435,"context_line":"* The API validates the name with ``scheduler_rpcapi.get_pools()``, the same"},{"line_number":436,"context_line":"  RPC that backs the scheduler-stats endpoint, and writes the row only if the"},{"line_number":437,"context_line":"  scheduler reports that exact name. A pool whose service is down or disabled"},{"line_number":438,"context_line":"  is absent from the scheduler\u0027s state map, so it cannot be pre-disabled; the"},{"line_number":439,"context_line":"  pool must be visible to the scheduler first."},{"line_number":440,"context_line":"* Response is HTTP 200 with the same body shape as the list entries, under a"}],"source_content_type":"text/x-rst","patch_set":7,"id":"819d704c_df8d2728","line":437,"updated":"2026-10-29 16:09:19.000000000","message":"Nit: \"down or disabled\" should be \"down, disabled or frozen\", matching 393-396 and 613 and the `frozen: False` filter in `_update_backend_state_map()`.","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":false,"context_lines":[{"line_number":434,"context_line":"* ``additionalProperties`` is false."},{"line_number":435,"context_line":"* The API validates the name with ``scheduler_rpcapi.get_pools()``, the same"},{"line_number":436,"context_line":"  RPC that backs the scheduler-stats endpoint, and writes the row only if the"},{"line_number":437,"context_line":"  scheduler reports that exact name. A pool whose service is down or disabled"},{"line_number":438,"context_line":"  is absent from the scheduler\u0027s state map, so it cannot be pre-disabled; the"},{"line_number":439,"context_line":"  pool must be visible to the scheduler first."},{"line_number":440,"context_line":"* Response is HTTP 200 with the same body shape as the list entries, under a"}],"source_content_type":"text/x-rst","patch_set":7,"id":"457930d2_6f6a3f7d","line":437,"in_reply_to":"819d704c_df8d2728","updated":"2026-11-04 17:13:05.000000000","message":"Done","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"852330b6b5b6748a21e8e6cc6152b527850694f4","unresolved":true,"context_lines":[{"line_number":444,"context_line":""},{"line_number":445,"context_line":"**3. New action: ``PUT /pools/enable``**"},{"line_number":446,"context_line":""},{"line_number":447,"context_line":"Clears the disabled state. Admin-only. Same schema without"},{"line_number":448,"context_line":"``disabled_reason``. Idempotent: enabling a pool that is not disabled returns"},{"line_number":449,"context_line":"HTTP 200 and changes nothing."},{"line_number":450,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"141ed873_85beab18","line":447,"updated":"2026-10-29 16:09:19.000000000","message":"The disable response is defined at 440-441 as the list-entry shape under a `pool` key, and since PS7 that shape carries `reported`. Enable has no response body defined, and it cannot reuse the disable shape: `reported` is \"true when the scheduler reported the pool in this request\" (403-404) while enable never consults the scheduler (413-414, 451), and a never-stored name has no row to render. The clusters precedent returns one shared body from both actions. Suggest defining both action responses explicitly without `reported`, for example `{\"pool\": {\"name\", \"disabled\", \"disabled_reason\"}}`, and stating what enable returns when no row existed.","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":false,"context_lines":[{"line_number":444,"context_line":""},{"line_number":445,"context_line":"**3. New action: ``PUT /pools/enable``**"},{"line_number":446,"context_line":""},{"line_number":447,"context_line":"Clears the disabled state. Admin-only. Same schema without"},{"line_number":448,"context_line":"``disabled_reason``. Idempotent: enabling a pool that is not disabled returns"},{"line_number":449,"context_line":"HTTP 200 and changes nothing."},{"line_number":450,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"e21c6e5c_ac345c8e","line":447,"in_reply_to":"141ed873_85beab18","updated":"2026-11-04 17:13:05.000000000","message":"Done","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"852330b6b5b6748a21e8e6cc6152b527850694f4","unresolved":true,"context_lines":[{"line_number":576,"context_line":""},{"line_number":577,"context_line":"One additional database query per scheduling request, next to the ``services``"},{"line_number":578,"context_line":"query that ``HostManager._update_backend_state_map`` already performs. The query"},{"line_number":579,"context_line":"selects every stored row, not only the disabled ones, because each pass has to"},{"line_number":580,"context_line":"reset the flag on pools that were re-enabled. The table holds one row per pool an"},{"line_number":581,"context_line":"administrator has ever touched and is empty on a cloud that has never used the"},{"line_number":582,"context_line":"feature, so it is a cheap indexed scan that normally returns nothing."}],"source_content_type":"text/x-rst","patch_set":7,"id":"8a8dc8ba_f705d311","line":579,"updated":"2026-10-29 16:09:19.000000000","message":"Nit: \"because each pass has to reset the flag on pools that were re-enabled\" is the rationale for a row-driven reset, which 119-121 and 688-690 do not use. Under the chosen design a `disabled \u003d FALSE` row contributes nothing, so either select only `disabled \u003d TRUE` rows or keep the full select and drop the \"because\" clause.","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":false,"context_lines":[{"line_number":576,"context_line":""},{"line_number":577,"context_line":"One additional database query per scheduling request, next to the ``services``"},{"line_number":578,"context_line":"query that ``HostManager._update_backend_state_map`` already performs. The query"},{"line_number":579,"context_line":"selects every stored row, not only the disabled ones, because each pass has to"},{"line_number":580,"context_line":"reset the flag on pools that were re-enabled. The table holds one row per pool an"},{"line_number":581,"context_line":"administrator has ever touched and is empty on a cloud that has never used the"},{"line_number":582,"context_line":"feature, so it is a cheap indexed scan that normally returns nothing."}],"source_content_type":"text/x-rst","patch_set":7,"id":"063cce77_c50be789","line":579,"in_reply_to":"8a8dc8ba_f705d311","updated":"2026-11-04 17:13:05.000000000","message":"Done","commit_id":"c0da87b0016b8e4ed11215ce39eceeb932ef0e7e"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":true,"context_lines":[{"line_number":227,"context_line":"  matches the volume\u0027s current pool by exact ``backend_id``, and the second, for"},{"line_number":228,"context_line":"  a legacy volume whose host has no pool, matches the first candidate on the"},{"line_number":229,"context_line":"  same backend with ``extract_host(candidate.backend_id, \u0027backend\u0027)``. Disabled"},{"line_number":230,"context_line":"  pools are removed only from the candidate list handed to"},{"line_number":231,"context_line":"  ``_choose_top_backend()``, the step that can migrate the volume, so the"},{"line_number":232,"context_line":"  migration choice never lands on a disabled pool."},{"line_number":233,"context_line":"  The legacy fallback can still return a disabled sibling pool, because the"}],"source_content_type":"text/x-rst","patch_set":8,"id":"ec6cba7a_d41e27d7","line":230,"updated":"2026-11-04 17:13:05.000000000","message":"Optional follow-on to my own PS7 suggestion: on master `find_retype_backend()` never reaches `_choose_top_backend()` with an empty list, and that method indexes `weighed_backends[0]` unguarded (`filter_scheduler.py`:588-591), so dropping disabled candidates here is what makes an empty list possible under `migration_policy\u003don-demand`. 530-535 already fixes the outcome as `NoValidBackend`, but since this paragraph is written at method level and names the `never` outcome at 240, one clause at the end of 232 would make it self-contained: \"; if no enabled candidate remains the retype fails with `NoValidBackend`, as under `migration_policy\u003dnever`\". Otherwise I will look for the guard in 1012381.","commit_id":"47ba58b0adb252da554cef7c043c1bfe6539f069"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":true,"context_lines":[{"line_number":255,"context_line":"     - rejected"},{"line_number":256,"context_line":"   * - ``create_group``"},{"line_number":257,"context_line":"     - rejected"},{"line_number":258,"context_line":"   * - ``manage_existing`` naming a pool"},{"line_number":259,"context_line":"     - rejected"},{"line_number":260,"context_line":"   * - ``manage_existing`` naming a backend or cluster"},{"line_number":261,"context_line":"     - not used; the import can land on an enabled sibling pool"}],"source_content_type":"text/x-rst","patch_set":8,"id":"c5ed3361_89d42e30","line":258,"updated":"2026-11-04 17:13:05.000000000","message":"Nit: the prose at 179-180 limits pool-pinning to a non-clustered request naming a pool, but this row drops the qualifier. For a clustered service found by `--host host@backend#pool`, `volume/api.py` keeps the pool in `host` because no cluster was named, yet `service_topic_queue` is the pool-less `cluster_name`, so `backend_passes_filters()` compares at backend level and the import lands on an enabled sibling pool; 183-184 (\"host and cluster_name carry no pool\") is therefore not quite right for that form, where it is the queue that drops the pool, not `host`. Suggest \"`manage_existing` naming a pool on a non-clustered service\" here and \"the queue the scheduler compares, `service_topic_queue` (`cluster_name` or `host`), carries no pool\" at 183-184. The `migrate_volume` row at 268 has the same shape: the API replaces the admin\u0027s host with `svc.cluster_name` and the scheduler strips the pool when the destination string has none, so only a non-clustered `host@backend#pool` is rejected at pool level while a backend-level or clustered destination lands on an enabled sibling. 191-192 stays true in every case, so a split row and one clause is enough.","commit_id":"47ba58b0adb252da554cef7c043c1bfe6539f069"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":true,"context_lines":[{"line_number":479,"context_line":"returns HTTP 200 and changes nothing."},{"line_number":480,"context_line":""},{"line_number":481,"context_line":"Unlike ``disable``, ``enable`` does not consult the scheduler. It clears the"},{"line_number":482,"context_line":"row whenever one exists and returns HTTP 200 either way, so a stale row left by"},{"line_number":483,"context_line":"a pool that has since disappeared can still be cleaned up, and a name the"},{"line_number":484,"context_line":"scheduler does not know is not an error. A name that never had a row is also a"},{"line_number":485,"context_line":"successful no-op."}],"source_content_type":"text/x-rst","patch_set":8,"id":"d189b6cf_39cac54d","line":482,"updated":"2026-11-04 17:13:05.000000000","message":"Nit, pre-existing: \"cleaned up\" overpromises a little. `enable` flips the row to `disabled \u003d FALSE` and keeps it (355-357), `GET /pools` is the union with every stored row (427), and nothing removes a row, so after the cleanup the vanished pool is still listed as `reported: false, disabled: false` indefinitely, a state the spec never names and the example at 383-404 does not show. Either say so in one sentence after 485 and change \"cleaned up\" to \"cleared\", or union only the `disabled \u003d TRUE` rows at 427 to match the scheduler\u0027s predicate at 615. The clusters precedent keeps listing a cluster whose services are gone until `cinder-manage cluster remove`, so keeping the row is defensible; I only want the behaviour stated.","commit_id":"47ba58b0adb252da554cef7c043c1bfe6539f069"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":true,"context_lines":[{"line_number":485,"context_line":"successful no-op."},{"line_number":486,"context_line":""},{"line_number":487,"context_line":"Response is HTTP 200 with ``{\"pool\": {\"name\": \u003cname\u003e, \"disabled\": false,"},{"line_number":488,"context_line":"\"disabled_reason\": null}}``. The body is the same when no row existed and when"},{"line_number":489,"context_line":"the name has never been stored; ``reported`` is not part of it, because"},{"line_number":490,"context_line":"``enable`` does not consult the scheduler."},{"line_number":491,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"d840fc64_aeb04e86","line":488,"updated":"2026-11-04 17:13:05.000000000","message":"Nit: \"when no row existed\" and \"when the name has never been stored\" are the same case, since rows are only created by `disable` and `enable` never deletes one. Either \"The body is the same in every case\" or name the three real outcomes: a row cleared by this call, a row already enabled, and no row for the name.","commit_id":"47ba58b0adb252da554cef7c043c1bfe6539f069"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":true,"context_lines":[{"line_number":616,"context_line":"is inert because every pass resets the flags on all cached pools before the"},{"line_number":617,"context_line":"rows are applied. The table holds one row per pool an administrator has ever"},{"line_number":618,"context_line":"touched and is empty on a cloud that has never used the feature, so it is a"},{"line_number":619,"context_line":"cheap indexed scan that normally returns nothing."},{"line_number":620,"context_line":""},{"line_number":621,"context_line":"The exclusion itself costs nothing extra: ``get_all_backend_states()`` walks"},{"line_number":622,"context_line":"the pool states it has just refreshed and skips the disabled ones, so no filter"}],"source_content_type":"text/x-rst","patch_set":8,"id":"13c1fc61_6837ab80","line":619,"updated":"2026-11-04 17:13:05.000000000","message":"Nit, take it or leave it: the DDL at 339-350 has only the primary key and `UNIQUE (backend_id, pool_name, deleted)`, so a predicate on `disabled` is not an indexed scan, here or at 114. The cost claim is still right because the table is tiny or empty, and neither `clusters` nor `services` index `disabled` on master, so just drop the word \"indexed\" in both places rather than adding an index.","commit_id":"47ba58b0adb252da554cef7c043c1bfe6539f069"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":true,"context_lines":[{"line_number":740,"context_line":""},{"line_number":741,"context_line":"4. Documentation"},{"line_number":742,"context_line":""},{"line_number":743,"context_line":"   * Admin guide section describing the drain workflow. It has to say that a"},{"line_number":744,"context_line":"     clone fails while the source pool is disabled, that create from snapshot"},{"line_number":745,"context_line":"     fails the same way only while ``snapshot_same_host`` is true, that a create"},{"line_number":746,"context_line":"     into a group (or legacy consistency group) is only restricted to the"}],"source_content_type":"text/x-rst","patch_set":8,"id":"b77f63c3_f802ffa2","line":743,"updated":"2026-11-04 17:13:05.000000000","message":"Still open from PS7 (my L173): 217-220 now says the admin guide has to spell out three cases where a disabled pool does not hard-fail the operation, but this work item, unchanged since PS7, still lists two. Please add the manage-existing case, for example \"that a manage-existing request naming only host@backend or a cluster is compared at backend level and can import onto an enabled sibling pool of that backend\". The matrix at 260-261 and the functional test at 784-785 already carry it.","commit_id":"47ba58b0adb252da554cef7c043c1bfe6539f069"},{"author":{"_account_id":13425,"name":"Simon Dodsley","email":"simon@everpuredata.com","username":"sdodsley"},"change_message_id":"1b11978aab13cce399aa84d1ea2c3e0ba0f6922b","unresolved":true,"context_lines":[{"line_number":782,"context_line":"* **Functional tests** in the Cinder tree exercise the scheduler: disable a"},{"line_number":783,"context_line":"  pool, verify that create, create-from-snapshot, clone, extend, snapshot and"},{"line_number":784,"context_line":"  manage-existing naming the pool fail, that a manage-existing request naming"},{"line_number":785,"context_line":"  only the backend can land on a sibling pool, that group create moves to a"},{"line_number":786,"context_line":"  sibling pool rather than failing, verify that delete and in-place retype of an"},{"line_number":787,"context_line":"  existing volume, including a pool-less legacy volume, still succeed, and"},{"line_number":788,"context_line":"  verify that enabling the pool restores scheduling."}],"source_content_type":"text/x-rst","patch_set":8,"id":"10eefbe9_8342f61f","line":785,"updated":"2026-11-04 17:13:05.000000000","message":"Nit: in this spec \"group create\" means `create_group` (46, 169, 256), which 169-171 treats like `create_volume` and the matrix marks rejected; the sibling-pool outcome belongs to a create into a group (214-215, 278-279). Read literally this promises the sibling-pool landing for the wrong operation, and a functional test written from it would exercise `create_group` and miss the case the admin guide is told to spell out. Suggest \"that a create into a group whose pool is disabled lands on a sibling pool of the same backend rather than failing\".","commit_id":"47ba58b0adb252da554cef7c043c1bfe6539f069"}]}
