From e60bd5e9cd6cb0b2df0c28e869649c90a09c4940 Mon Sep 17 00:00:00 2001 From: "anthony.wen" Date: Tue, 31 Mar 2026 12:35:44 -0400 Subject: [PATCH] Default ATVM vmware compute migration options --- atvm/AGENTS.md | 1 + atvm/docs/automation/examples.md | 17 +++++++++++------ atvm/docs/automation/guide.md | 3 +++ atvm/docs/automation/run-learnings.md | 11 +++++++++++ 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/atvm/AGENTS.md b/atvm/AGENTS.md index a13f66d..f7184f7 100644 --- a/atvm/AGENTS.md +++ b/atvm/AGENTS.md @@ -52,6 +52,7 @@ This file defines how to operate and maintain the ATVM workspace in `/home/aw/co - Default plugin: `--use_specified_plugin iscsi` - Always include `--ignore_force_shutdown` unless explicitly told not to. - Always include `--test_partition` unless explicitly told not to. +- For `cmc-migrateops-compute-migration` to VMware, default to `--vm_platforms vmware` and `--set_static_ip_dest` unless explicitly told otherwise. - Default config family: `gold` - Do not auto-add the maintained `--exclude_partial_match` blacklist when the operator explicitly targets named VMs with `--specify_vms`. - Even for explicit `--specify_vms` requests, first check whether any requested VM is on the maintained blacklist and stop if it is. diff --git a/atvm/docs/automation/examples.md b/atvm/docs/automation/examples.md index dfe893f..f7744cd 100644 --- a/atvm/docs/automation/examples.md +++ b/atvm/docs/automation/examples.md @@ -36,14 +36,19 @@ python3 cmc-templates.py --template cmc-migrateops --ignore_force_shutdown --con python3 ./run-sorry-cypress.py --config_file cypress.atvm-config-gold.ts --build_name nightly-migrateOPS ``` -### Compute MigrateOPS: vmware -```bash +### Compute MigrateOPS: vmware +```bash python3 cmc-templates.py --template cmc-migrateops-compute-migration --ignore_force_shutdown --config_file_path ./cypress.atvm-config-gold.ts --vm_platforms vmware --test_partition --specify_vms atvm138-oracle9.4-opt atvm112-w2k22 --set_static_ip_dest; \ python3 ./run-sorry-cypress.py --config_file cypress.atvm-config-gold.ts --build_name nightly-computeMigrateOPS-vmware -``` - -### Compute MigrateOPS: ovirt -```bash +``` +Default vmware compute-migration options: +- `--ignore_force_shutdown` +- `--vm_platforms vmware` +- `--test_partition` +- `--set_static_ip_dest` + +### Compute MigrateOPS: ovirt +```bash python3 cmc-templates.py --template cmc-migrateops-compute-migration --ignore_force_shutdown --config_file_path ./cypress.atvm-config-gold.ts --vm_platforms ovirt --test_partition --specify_vms atvm124-redhat8.8 atvm111-w2k19 --set_static_ip_dest; \ python3 ./run-sorry-cypress.py --config_file cypress.atvm-config-gold.ts --build_name nightly-computeMigrateOPS-ovirt ``` diff --git a/atvm/docs/automation/guide.md b/atvm/docs/automation/guide.md index d957f21..fc059d1 100644 --- a/atvm/docs/automation/guide.md +++ b/atvm/docs/automation/guide.md @@ -33,6 +33,7 @@ Run ATVM CMC automation tests on the designated automation VM without unintended - Always include `--ignore_force_shutdown` on `cmc-templates.py` commands unless the operator explicitly asks not to. - Always include `--test_partition` on `cmc-templates.py` commands unless the operator explicitly asks not to. - Default to `--use_specified_plugin iscsi` unless the operator explicitly requests a different plugin. +- For `cmc-migrateops-compute-migration` to VMware, default to `--vm_platforms vmware` and `--set_static_ip_dest` unless the operator explicitly says otherwise. - For `cmc-reboot`, treat `--use_specified_plugin both` as an exception case that requires an extra confirmation. - When `cmc-reboot` is planned with `--use_specified_plugin both`, warn that FC+iSCSI together may hit a "chicken before the egg" timing problem where iSCSI disks are not attached before mTDI / CMC services start. - For `cmc-reboot`, prefer `--use_specified_plugin fc` or `--use_specified_plugin iscsi` unless the operator explicitly reconfirms that `both` is really intended after seeing that warning. @@ -154,6 +155,8 @@ python3 ./run-sorry-cypress.py --config_file --build_name ...` - Compute migrateops platform: - `--vm_platforms vmware|ovirt|openshift|proxmox` +- Default compute migrateops vmware options: + - `--ignore_force_shutdown --vm_platforms vmware --test_partition --set_static_ip_dest` ## Blacklisted Machines Always exclude these machines from broad-scope ATVM automation runs by adding them to `--exclude_partial_match`. diff --git a/atvm/docs/automation/run-learnings.md b/atvm/docs/automation/run-learnings.md index 3f32921..d32353b 100644 --- a/atvm/docs/automation/run-learnings.md +++ b/atvm/docs/automation/run-learnings.md @@ -506,3 +506,14 @@ This file stores run-specific examples only when a run produced a new learning r - Action for future runs: - Resolve generated-spec `TEST FLOW` from the active config file's `specPattern` when the required log line is missing. - Treat the static template flow as a last-resort fallback only after both log-derived and config-derived `specPattern` resolution fail. + +## Run Learning: 2026-03-31 (Default vmware compute-migration options for ATVM) +- Observed operator requirement: + - For `cmc-migrateops-compute-migration` runs to VMware, the operator wants a stable default option set instead of having to restate the same platform flags each time. +- Action for future runs: + - Default VMware compute-migration runs to: + - `--ignore_force_shutdown` + - `--vm_platforms vmware` + - `--test_partition` + - `--set_static_ip_dest` + - Only omit or change those options when the operator explicitly overrides them.