Skip to content

Commit 92314f6

Browse files
authored
test(node): add nested GuestOS upgrade orchestrator check and diagnostics (#7498)
NODE-1761 The nested GuestOS upgrade tests only check for the final GuestOS version—not the Orchestrator health. This is why we haven’t seen flakiness on these tests, but have on the HostOS upgrade tests. This adds the orchestrator check to the nested GuestOS upgrade tests along with diagnostic logging in failures.
1 parent 7849655 commit 92314f6

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

rs/tests/nested/guestos_upgrade.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use nested::{HOST_VM_NAME, registration};
1313

1414
use nested::util::{
1515
NODE_UPGRADE_BACKOFF, NODE_UPGRADE_TIMEOUT, elect_guestos_version,
16-
get_blessed_guestos_versions, get_unassigned_nodes_config, update_unassigned_nodes,
17-
wait_for_expected_guest_version,
16+
get_blessed_guestos_versions, get_unassigned_nodes_config, try_logging_guestos_diagnostics,
17+
update_unassigned_nodes, wait_for_expected_guest_version,
1818
};
1919

2020
fn main() -> Result<()> {
@@ -48,9 +48,11 @@ pub fn upgrade_guestos(env: TestEnv) {
4848

4949
registration(env.clone());
5050

51-
let guest_ipv6 = env
51+
let host = env
5252
.get_nested_vm(HOST_VM_NAME)
53-
.expect("Unable to find HostOS node.")
53+
.expect("Unable to find HostOS node.");
54+
55+
let guest_ipv6 = host
5456
.get_nested_network()
5557
.expect("Unable to get nested network")
5658
.guest_ip;
@@ -128,5 +130,11 @@ pub fn upgrade_guestos(env: TestEnv) {
128130
)
129131
.await
130132
.expect("guest failed to upgrade");
133+
134+
info!(logger, "Waiting for Orchestrator dashboard...");
135+
if let Err(e) = host.await_orchestrator_dashboard_accessible() {
136+
try_logging_guestos_diagnostics(&host, &logger);
137+
panic!("Orchestrator dashboard is not accessible: {e}");
138+
}
131139
});
132140
}

0 commit comments

Comments
 (0)