Skip to content

Compare boolean image properties like the others - #1313

Merged
berendt merged 1 commit into
osism:mainfrom
toreanderson:drop-sdk-bool-workaround
Oct 15, 2026
Merged

berendt merged 1 commit into
osism:mainfrom
toreanderson:drop-sdk-bool-workaround

Conversation

@toreanderson

@toreanderson toreanderson commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

This updates openstacksdk to 4.21.0 in the same commit, superseding #1309: test_set_properties_writes_only_what_differs asserted the openstacksdk bug that 4.21.0 fixes, so the bump can't pass CI on its own.

openstacksdk read hw_boot_menu, hw_vif_multiqueue_enabled and os_require_quiesce with bool(), so a stored "false" came back as True (openstacksdk bug 2169133). #1297 therefore wrote these three whenever a definition set them, rather than comparing them. openstacksdk 4.21.0 parses them properly (change 1008410). It reads true/false, yes/no, 1/0 and on/off in any case, and an unrecognised value as False.

Change

  • Drop SDK_MISREAD_PROPERTIES, so these three properties are compared like every other one and written only when they differ.

Testing

  • test_set_properties_writes_only_what_differs:
    • an image matching its definition gets no property updates at all;
    • a stored "true" is left alone, and a stored "false" is corrected.
  • It fails with openstacksdk 4.20.0 and passes with 4.21.0.
  • All unit tests, flake8 and black pass with 4.21.0.

🤖 Generated with Claude Code

@berendt

berendt commented Oct 14, 2026

Copy link
Copy Markdown
Member

Can you please bump the version with the same commit? I think this makes more sense. The renovate commit will be closed automatically after.

openstacksdk read hw_boot_menu, hw_vif_multiqueue_enabled and
os_require_quiesce with bool(), so a stored "false" came back as True
(https://bugs.launchpad.net/openstacksdk/+bug/2169133), and
set_properties wrote them whenever a definition set them rather than
compare them. openstacksdk 4.21.0 parses them as booleans, so update
to it, compare them like every other property, and write them only when
they differ.

test_set_properties_writes_only_what_differs asserted the misreading,
which is what fails with 4.21.0; it now checks that a stored "true"
is left alone and a stored "false" corrected, and fails with 4.20.0.

Assisted-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Tore Anderson <tore@redpill-linpro.com>
@toreanderson
toreanderson force-pushed the drop-sdk-bool-workaround branch from 6ff8201 to 77a6b5f Compare October 15, 2026 05:37
@toreanderson

Copy link
Copy Markdown
Contributor Author

Done, the bump is now part of the commit.

@berendt
berendt merged commit e7182be into osism:main Oct 15, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in Human Board Oct 15, 2026
@toreanderson
toreanderson deleted the drop-sdk-bool-workaround branch October 15, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants