From 25046933b33f3a57bb1d8a971746cceaa6be18d6 Mon Sep 17 00:00:00 2001 From: David Demlow Date: Thu, 29 Oct 2026 06:31:09 -0400 Subject: [PATCH] Point CI at the Indy-lab failover fixture, not dead PUB5/XLab PUB5/XLab (10.5.11.x) went unreachable ~2026-10-27, the same outage that took down terraform-provider-hypercore's CI. This repoints the two required hosts (hypercore-ci-fleet's last-two-Standard-lines policy) at a new Indy-lab fixture built by hcds on vjb93a: - https://10.6.112.64: 3-node 9.6.32 cluster (vsns64/65/68), also the replication source now paired by hand to vsns67 via the HyperCore web UI (the existing RemoteClusterConnection REST API needs 9.7.0 on both sides; these are 9.6.32, so this pairing was done manually, not via automation). - https://10.6.42.19: existing vsns19, reused as the 9.5.10 slot. This restores real coverage for vm_replication / vm_replication_info / vm_clone__replicated / remote_cluster_info against the live pairing above, using the existing modules those targets already call - no new module code involved. Also: SMB repointed from the dead 10.5.11.39 to the shared 10.6.42.5 server already proven working by terraform-provider-hypercore's CI; fixed a pre-existing quote typo in integ-physical's test_names that broke fromJson() (predates this outage); fixed examples-run's host-credential lookup, which was hardcoded to the .200 key regardless of which host it actually configured. Every 10.5.11.x reference is commented out in place, not deleted, for when that hardware returns. Needs a new CI_CONFIG_INDY_SMB_PASSWORD secret before vm_export/vm_import/ smb_cleanup will pass - everything else runs without it. --- .github/actions/make-integ-config/action.yml | 10 +- .github/workflows/integ-test.yml | 98 ++++++++++++----- tests/integration/cleanup/smb_cleanup.sh | 4 + tests/integration/integration_config.yml.j2 | 105 +++++++++++++++++++ 4 files changed, 190 insertions(+), 27 deletions(-) diff --git a/.github/actions/make-integ-config/action.yml b/.github/actions/make-integ-config/action.yml index 024af127..805fb141 100644 --- a/.github/actions/make-integ-config/action.yml +++ b/.github/actions/make-integ-config/action.yml @@ -32,10 +32,14 @@ runs: cat <integ_config_vars.yml sc_username_50: xlab sc_password_50: ${{ inputs.sc_password_50 }} - smb_username: ;administrator + # 10.5.11.39 (XLab) went unreachable ~2026-10-27, same outage as PUB5/XLab generally. + # Repointed 2026-10-29 at 10.6.42.5 (azuresync/remotedc.local), the existing shared + # Indy-lab SMB server hcds already uses -- terraform-provider-hypercore's CI proved + # this exact server+username format working for a real SMB import on 2026-10-28. + smb_username: "remotedc.local;administrator" smb_password: ${{ inputs.smb_password }} - smb_server: 10.5.11.39 - smb_share: /cidata + smb_server: 10.6.42.5 + smb_share: /exports oidc_client_id: d2298ec0-0596-49d2-9554-840a2fe20603 oidc_client_secret: ${{ inputs.oidc_client_secret }} oidc_users_0_username: xlabciuser@scalemsdnscalecomputing.onmicrosoft.com diff --git a/.github/workflows/integ-test.yml b/.github/workflows/integ-test.yml index db071007..7570e8bc 100644 --- a/.github/workflows/integ-test.yml +++ b/.github/workflows/integ-test.yml @@ -67,6 +67,15 @@ concurrency: group: ${{ github.ref_name }} cancel-in-progress: true +# ---------------------------------------------------------------------------------------- +# Indy-lab failover, 2026-10-29: PUB5/XLab (10.5.11.x) became unreachable ~2026-10-27, taking +# out every sc_host this workflow used to run against. Replaced with the two hosts required +# by hypercore-ci-fleet's CI policy (last two Standard lines): the 10.5.11.x matrix entries +# below are commented inline for when that hardware returns, not deleted. See +# hypercore-ci-fleet's local/ci-failover-2026-10-28/ANSIBLE_INDY_LAB_FIXTURE.md (gitignored +# there -- ask Dave) and tests/integration/integration_config.yml.j2's own matching comment +# block for the new https://10.6.112.64 / https://10.6.42.19 entries. +# ---------------------------------------------------------------------------------------- jobs: # This should be run at least once before first integration tests run. # As long as prepared HC3 host remains prepared, we do not need (except on very first run) @@ -83,10 +92,12 @@ jobs: fail-fast: false matrix: sc_host: - - https://10.5.11.200 # HC 9.1.x - - https://10.5.11.201 # HC 9.2.x - - https://10.5.11.203 # HC 9.3.x - - https://10.5.11.205 # HC 9.4.x + - https://10.6.112.64 # required: 9.6.32, 3-node, also replication source -> vsns67 + - https://10.6.42.19 # required: 9.5.10 (vsns19, reused as-is) + # - https://10.5.11.200 # HC 9.1.x -- PUB5/XLab, unreachable since 2026-10-27 + # - https://10.5.11.201 # HC 9.2.x -- PUB5/XLab, unreachable since 2026-10-27 + # - https://10.5.11.203 # HC 9.3.x -- PUB5/XLab, unreachable since 2026-10-27 + # - https://10.5.11.205 # HC 9.4.x -- PUB5/XLab, unreachable since 2026-10-27 steps: - name: Checkout uses: actions/checkout@v4 @@ -98,7 +109,10 @@ jobs: with: sc_host: ${{ matrix.sc_host }} sc_password_50: ${{ secrets.CI_CONFIG_HC_IP50_SC_PASSWORD }} - smb_password: ${{ secrets.CI_CONFIG_HC_IP50_SMB_PASSWORD }} + # 10.5.11.39's secret, CI_CONFIG_HC_IP50_SMB_PASSWORD, is kept for when PUB5/XLab + # returns. 10.6.42.5 needs its own secret -- Dave: `gh secret set + # CI_CONFIG_INDY_SMB_PASSWORD --repo ScaleComputing/HyperCoreAnsibleCollection`. + smb_password: ${{ secrets.CI_CONFIG_INDY_SMB_PASSWORD }} oidc_client_secret: ${{ secrets.OIDC_CLIENT_SECRET }} oidc_users_0_password: ${{ secrets.OIDC_USERS_0_PASSWORD }} working_directory: ${{ env.WORKDIR }} @@ -243,9 +257,14 @@ jobs: # ${{ env.WORKDIR }} cannot be used in "uses:" - uses: ./work-dir/ansible_collections/scale_computing/hypercore/.github/actions/make-integ-config with: - sc_host: https://10.5.11.205 + # Was https://10.5.11.205 (PUB5/XLab, dead since 2026-10-27). Pointed at vsns19 + # rather than vsns64 so examples-run doesn't contend with the main matrix's host. + sc_host: https://10.6.42.19 sc_password_50: ${{ secrets.CI_CONFIG_HC_IP50_SC_PASSWORD }} - smb_password: ${{ secrets.CI_CONFIG_HC_IP50_SMB_PASSWORD }} + # 10.5.11.39's secret, CI_CONFIG_HC_IP50_SMB_PASSWORD, is kept for when PUB5/XLab + # returns. 10.6.42.5 needs its own secret -- Dave: `gh secret set + # CI_CONFIG_INDY_SMB_PASSWORD --repo ScaleComputing/HyperCoreAnsibleCollection`. + smb_password: ${{ secrets.CI_CONFIG_INDY_SMB_PASSWORD }} oidc_client_secret: ${{ secrets.OIDC_CLIENT_SECRET }} oidc_users_0_password: ${{ secrets.OIDC_USERS_0_PASSWORD }} working_directory: ${{ env.WORKDIR }} @@ -260,8 +279,11 @@ jobs: run: | [ "$X_GITHUB_SKIP_TEST" == "1" ] && exit 0 eval export SC_HOST=$(cat tests/integration/integration_config.yml | yq '.sc_host') - eval export SC_USERNAME=$(cat tests/integration/integration_config.yml | yq '.sc_config."https://10.5.11.200".sc_username') - eval export SC_PASSWORD=$(cat tests/integration/integration_config.yml | yq '.sc_config."https://10.5.11.200".sc_password') + # Was hardcoded to the "https://10.5.11.200" key regardless of sc_host above -- + # only worked because every vsns2xx block shares admin/admin. Fixed to actually + # look up the host this job configured, 2026-10-29. + eval export SC_USERNAME=$(cat tests/integration/integration_config.yml | yq ".sc_config.\"$SC_HOST\".sc_username") + eval export SC_PASSWORD=$(cat tests/integration/integration_config.yml | yq ".sc_config.\"$SC_HOST\".sc_password") eval export SC_TIMEOUT=$(cat tests/integration/integration_config.yml | yq '.sc_timeout') ansible-playbook -i localhost, -e hypercore_example_check_mode=true examples/${{ matrix.example_name }} @@ -273,10 +295,12 @@ jobs: fail-fast: false matrix: sc_host: - - https://10.5.11.200 - - https://10.5.11.201 - - https://10.5.11.203 - - https://10.5.11.205 + - https://10.6.112.64 # required: 9.6.32, 3-node, also replication source -> vsns67 + - https://10.6.42.19 # required: 9.5.10 (vsns19, reused as-is) + # - https://10.5.11.200 # HC 9.1.x -- PUB5/XLab, unreachable since 2026-10-27 + # - https://10.5.11.201 # HC 9.2.x -- PUB5/XLab, unreachable since 2026-10-27 + # - https://10.5.11.203 # HC 9.3.x -- PUB5/XLab, unreachable since 2026-10-27 + # - https://10.5.11.205 # HC 9.4.x -- PUB5/XLab, unreachable since 2026-10-27 secrets: inherit uses: ./.github/workflows/z_ansible-test.yml with: @@ -293,10 +317,12 @@ jobs: fail-fast: false matrix: sc_host: - - https://10.5.11.200 - - https://10.5.11.201 - - https://10.5.11.203 - - https://10.5.11.205 + - https://10.6.112.64 # required: 9.6.32, 3-node, also replication source -> vsns67 + - https://10.6.42.19 # required: 9.5.10 (vsns19, reused as-is) + # - https://10.5.11.200 # HC 9.1.x -- PUB5/XLab, unreachable since 2026-10-27 + # - https://10.5.11.201 # HC 9.2.x -- PUB5/XLab, unreachable since 2026-10-27 + # - https://10.5.11.203 # HC 9.3.x -- PUB5/XLab, unreachable since 2026-10-27 + # - https://10.5.11.205 # HC 9.4.x -- PUB5/XLab, unreachable since 2026-10-27 secrets: inherit uses: ./.github/workflows/z_ansible-test.yml with: @@ -304,16 +330,29 @@ jobs: test_names: ${{ needs.integ-seq-matrix.outputs.matrix }} outer_job_name: integ-seq-run - # On physical HyperCore + # Was "On physical HyperCore" against PUB5's .50 (dead since 2026-10-27). Repointed + # 2026-10-29 at the new required 9.6.32 cluster, which is also the replication source now + # that vsns67 is paired to it, so these can run there instead of a dedicated physical node. + # needs/if added because .64 is now also the main matrix's host -- it was a dedicated node + # before, so nothing serialized these against it previously. + # + # test_names had a quote typo ('vm_replication_info" -- single open, double close) that + # broke fromJson(inputs.test_names) in z_ansible-test.yml. Per `git log -S`, this landed in + # b9a0f30 and was never caught, so this job's replication/support_tunnel coverage was + # already failing at matrix generation before the outage -- fixed here, not something this + # outage broke. integ-physical: + needs: + - integ-seq-run + if: "(!cancelled())" secrets: inherit uses: ./.github/workflows/z_ansible-test.yml with: - sc_host: https://10.5.11.50 + sc_host: https://10.6.112.64 test_names: >- [ "vm_replication", - 'vm_replication_info", + "vm_replication_info", "vm_clone__replicated", "support_tunnel" ] @@ -337,9 +376,14 @@ jobs: # ${{ env.WORKDIR }} cannot be used - uses: ./work-dir/ansible_collections/scale_computing/hypercore/.github/actions/make-integ-config with: - sc_host: https://10.5.11.50 + # Was https://10.5.11.50 (PUB5, dead since 2026-10-27). .64 is now the replication + # source (paired to vsns67), so its RemoteClusterConnection is what this cleans up. + sc_host: https://10.6.112.64 sc_password_50: ${{ secrets.CI_CONFIG_HC_IP50_SC_PASSWORD }} - smb_password: ${{ secrets.CI_CONFIG_HC_IP50_SMB_PASSWORD }} + # 10.5.11.39's secret, CI_CONFIG_HC_IP50_SMB_PASSWORD, is kept for when PUB5/XLab + # returns. 10.6.42.5 needs its own secret -- Dave: `gh secret set + # CI_CONFIG_INDY_SMB_PASSWORD --repo ScaleComputing/HyperCoreAnsibleCollection`. + smb_password: ${{ secrets.CI_CONFIG_INDY_SMB_PASSWORD }} oidc_client_secret: ${{ secrets.OIDC_CLIENT_SECRET }} oidc_users_0_password: ${{ secrets.OIDC_USERS_0_PASSWORD }} working_directory: ${{ env.WORKDIR }} @@ -361,9 +405,15 @@ jobs: # ${{ env.WORKDIR }} cannot be used - uses: ./work-dir/ansible_collections/scale_computing/hypercore/.github/actions/make-integ-config with: - sc_host: https://10.5.11.200 + # Was https://10.5.11.200 (PUB5/XLab, dead since 2026-10-27). smb_* fields are + # top-level in integration_config.yml, not per-host, so any sc_host works here -- + # .64 picked for consistency with replica_cleanup above. + sc_host: https://10.6.112.64 sc_password_50: ${{ secrets.CI_CONFIG_HC_IP50_SC_PASSWORD }} - smb_password: ${{ secrets.CI_CONFIG_HC_IP50_SMB_PASSWORD }} + # 10.5.11.39's secret, CI_CONFIG_HC_IP50_SMB_PASSWORD, is kept for when PUB5/XLab + # returns. 10.6.42.5 needs its own secret -- Dave: `gh secret set + # CI_CONFIG_INDY_SMB_PASSWORD --repo ScaleComputing/HyperCoreAnsibleCollection`. + smb_password: ${{ secrets.CI_CONFIG_INDY_SMB_PASSWORD }} oidc_client_secret: ${{ secrets.OIDC_CLIENT_SECRET }} oidc_users_0_password: ${{ secrets.OIDC_USERS_0_PASSWORD }} working_directory: ${{ env.WORKDIR }} diff --git a/tests/integration/cleanup/smb_cleanup.sh b/tests/integration/cleanup/smb_cleanup.sh index 3b6bcb46..85194dc7 100755 --- a/tests/integration/cleanup/smb_cleanup.sh +++ b/tests/integration/cleanup/smb_cleanup.sh @@ -66,6 +66,10 @@ main () { do ci_system_name_all+=" vsns$ii " done + # Indy-lab failover fixture, 2026-10-29 -- see integration_config.yml.j2's matching + # ci_system_name values (vsns64, vsns19). pub5/vsns200-210 above are kept for when + # PUB5/XLab returns. + ci_system_name_all+=" vsns64 vsns19 " folder='integration-test-vm-export' delete_files "$1" "$2" "${username[1]}" "$4" "$folder" diff --git a/tests/integration/integration_config.yml.j2 b/tests/integration/integration_config.yml.j2 index 2f3cf772..9a3df70e 100644 --- a/tests/integration/integration_config.yml.j2 +++ b/tests/integration/integration_config.yml.j2 @@ -311,3 +311,108 @@ sc_config: is_supported: True cluster_name: is_writable: True + + # Indy-lab failover fixture, added 2026-10-29. PUB5/XLab (10.5.11.x, every block above) + # went unreachable ~2026-10-27 -- same outage that took out terraform-provider-hypercore's + # CI. Every 10.5.11.x block above is PRESERVED, not deleted, for when that hardware + # returns. These two blocks are what integ-test.yml's sc_host matrix actually points at + # now. Full build record: hypercore-ci-fleet's + # local/ci-failover-2026-10-28/ANSIBLE_INDY_LAB_FIXTURE.md (gitignored there, ask Dave). + # ============================================================================ + + https://10.6.112.64: + <<: *base_cfg + # One of the two REQUIRED hosts (last two Standard lines -- hypercore-ci-fleet's + # inventory/ci_versions.yml current_standard, as of its 2026-10-23 refresh). 3-node + # cluster (vsns64/vsns65/vsns68 on vjb93a) -- also the multi-node test target. Also the + # replication SOURCE, paired by hand to vsns67 (below) on 2026-10-29: /rest/v2 needs + # HyperCore >=9.7.0 on both sides and this cluster is 9.6.32, so + # remote_cluster_connection's own create path can't do it here. + ci_system_name: vsns64 + sc_username: admin + sc_password: admin + sc_replication_dest_host: "https://10.6.112.67" + # vsns67 was never renamed off the HyperCore default -- VERIFIED 2026-10-29 via + # GET /rest/v1/Cluster on 10.6.112.67. + sc_replication_dest_cluster_name: "HyperCore System" + sc_replication_dest_username: admin + sc_replication_dest_password: admin + cluster: + name: "HyperCore System" + support_tunnel: + open: true + code: "6064" + smtp: + <<: *base_smtp + from_address: vsns64@scalecomputing.com + version_update: + magic_allow_string: "oh-no-no" + vm_shutdown_restart_allow_string: "allow-vm-shutdown-restart-test" + syslog_server: + host: 10.6.42.222 # UDP; unreachable is harmless if this placeholder is wrong + features: + version_update: + current_version: "9.6.32.226689" + # MEASURED 2026-10-29: GET /rest/v1/Update returns a real, non-empty list here + # (unlike every 10.5.11.x host above, which times out to []). next/latest computed + # the same way version_update_info.py sorts: by (majorVersion, minorVersion, + # revision, buildID) ascending -- records[0] and records[-1]. + next_version: "9.7.9.227018" + latest_version: "9.9.0.228665" + can_be_applied: True + # 404 on /update/update_status.json (never updated before) -- MEASURED 2026-10-29. + # version_update itself is excluded from the default scheduled run, so can_be_applied + # is untested either way. + old_update_status_present: False + virtual_disk: + is_supported: True + # INFERRED, not measured: GET /rest/v1/Drive shows 4 drives/node (12 total across 3 + # nodes, MEASURED 2026-10-29), matching the "4 drives -> RF2" pattern already + # established by the other vSNS blocks in this file. No VirtualDisk has actually been + # uploaded yet to confirm replicationFactor directly -- recheck on first real run. + replication_factor: 2 + vtpm_disk: + is_supported: True + cluster_name: + is_writable: True + + https://10.6.42.19: + <<: *base_cfg + # The other REQUIRED host (previous_standard_line in hypercore-ci-fleet's + # inventory/ci_versions.yml). Existing vsns19 on vfz31a, reused as-is -- not a new build; + # hcds caught that a new 9.5.10 node wasn't needed here. Not part of the replication pair. + ci_system_name: vsns19 + sc_username: admin + sc_password: admin + sc_replication_dest_host: "" + sc_replication_dest_cluster_name: "" + sc_replication_dest_username: "" + sc_replication_dest_password: "" + cluster: + name: "vsns19" # VERIFIED 2026-10-29 via GET /rest/v1/Cluster + support_tunnel: + open: true + code: "6019" + smtp: + <<: *base_smtp + from_address: vsns19@scalecomputing.com + version_update: + magic_allow_string: "oh-no-no" + vm_shutdown_restart_allow_string: "allow-vm-shutdown-restart-test" + syslog_server: + host: 10.6.42.222 + features: + version_update: + current_version: "9.5.10.221215" + # MEASURED 2026-10-29, same method as the vsns64 block above. + next_version: "9.5.11.222200" + latest_version: "9.9.0.228665" + can_be_applied: True + old_update_status_present: False + virtual_disk: + is_supported: True + replication_factor: 2 # INFERRED, not measured -- see the vsns64 comment above + vtpm_disk: + is_supported: True + cluster_name: + is_writable: True