Skip to content

fix(ironic): Put Palo Alto HA cabling faults into maintenance so DC ops can see them PUC-2222 - #2767

Merged
cardoe merged 2 commits into
mainfrom
panos-ha-cabling-maintenance
Nov 19, 2026
Merged

cardoe merged 2 commits into
mainfrom
panos-ha-cabling-maintenance

Conversation

@nidzrai

@nidzrai nidzrai commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What does this change do?

When inspection found a real cabling fault on a Palo Alto HA pair, it only recorded a message, and enroll-fw ended green as if the unit were simply waiting for its mate.
The "same switch" check also raised an error that the validator caught and swallowed.

Now two cabling faults put the node into maintenance with the reason in maintenance_reason (which will be shown to DC ops):

the HA peer is a different box (wrong cable or wrong mate serial)
both units are on the same switch
enroll-fw then fails with In maintenance: . Waiting for the mate, timeouts and wrong enrollment data still go to last_error, so the first unit of a pair isn't blocked. An existing maintenance reason is kept, and the fault is added after it.

To recover: fix the cabling, resolve any other hold, run openstack baremetal node maintenance unset , then run enroll-fw again.

Upgrade impact

  • This change requires operator action to upgrade. If checked, add the
    upgrade-impact label and a release note: run scriv create from the
    repository root and describe the required action in the generated
    changelog.d/ file. See RELEASING.md.

Operator action means anything a deployment has to do beyond a normal resync:
deploy repo or values changes, new or removed secrets, enabling or disabling a
component, or a manual one-time step.

@nidzrai
nidzrai force-pushed the panos-ha-cabling-maintenance branch from 45dea32 to 0e6dd58 Compare November 18, 2026 20:19
@nidzrai
nidzrai force-pushed the panos-ha-cabling-maintenance branch from 0e6dd58 to 5eb2be8 Compare November 18, 2026 20:21
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Python test results

874 tests  +719   874 ✅ +719   7s ⏱️ -4s
  1 suites ±  0     0 💤 ±  0 
  1 files   ±  0     0 ❌ ±  0 

Results for commit 015dfb8. ± Comparison against base commit 8d6824c.

This pull request removes 155 and adds 874 tests. Note that renamed tests count towards both.
tests.test_backup ‑ test_local_backs_up_mariadb_and_both_ovn_dbs
tests.test_backup ‑ test_local_mariadb_expands_password_inside_pod_not_locally
tests.test_backup ‑ test_local_ovn_uses_ovsdb_container_and_socket_paths
tests.test_backup ‑ test_local_skip_both_is_an_error
tests.test_backup ‑ test_local_surfaces_backup_exec_error
tests.test_backup ‑ test_slug_sanitizes_non_alnum
tests.test_cli ‑ test_bare_invocation_shows_usage_instead_of_missing_command_error
tests.test_cli ‑ test_bare_net_shows_usage_instead_of_missing_command_error
tests.test_cli ‑ test_bare_router_shows_usage_instead_of_missing_command_error
tests.test_cli ‑ test_callback_builds_connection_context
…
tests.test_bmc ‑ test_bmc_for_ip_address
tests.test_bmc ‑ test_manager_attributes_path_falls_back_to_idrac9_resource
tests.test_bmc ‑ test_manager_attributes_path_uses_advertised_idrac10_resource
tests.test_bmc_bios ‑ test_update_dell_bios_settings_only_patches_settings_not_already_pending
tests.test_bmc_bios ‑ test_update_dell_bios_settings_skips_patch_when_desired_values_are_pending
tests.test_bmc_chassis_info ‑ test_chassis_info_R7615
tests.test_bmc_credentials ‑ test_set_bmc_password_change
tests.test_bmc_credentials ‑ test_set_bmc_password_failed
tests.test_bmc_credentials ‑ test_set_bmc_password_noop
tests.test_bmc_disk ‑ test_dell_disk_attributes
…

♻️ This comment has been updated with latest results.

@cardoe cardoe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the inspection errors are good. Keep those. In fact throw in another place as well.

@nidzrai
nidzrai requested a review from cardoe November 19, 2026 11:37
@cardoe
cardoe added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit dbf6df9 Nov 19, 2026
71 checks passed
@cardoe
cardoe deleted the panos-ha-cabling-maintenance branch November 19, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants