# Run ATVM Automation Guide This file is guide-only documentation for operating ATVM CMC automation. Do not put specific run examples here. For reusable command examples and common option combinations, use `atvm-automation-examples.md`. ## Purpose Run ATVM CMC automation tests on the designated automation VM without unintended system or file changes. ## ATVM Cypress Automation Controller Client - Hostname: `atvm-cypres-vm-1` - IP: `192.168.3.190` - Credentials: `root / atvmcdsi2012` ## Operating Constraints - Run only scripts/commands explicitly requested. - Do not make manual system configuration changes on the client. - Do not edit client files unless explicitly requested. ## Operator Preferences - Do not include Gold Disk identifiers in `--build_name`. - `--build_name` must not contain spaces; use `-` between words. - For multiple VMs in same distro, use distro-scoped filtering (`--containsVm`) instead of long explicit VM lists. - Before preparing a new run, always check whether automation is already running. - Always report whether automation is currently running. - If running, ask whether to terminate; terminate only with explicit approval. - After termination approval, terminate first, then present planned command(s), then wait for separate execution approval. - Before any run, always show exact planned command(s) and wait for explicit approval. - Execute only after explicit approval (for example `approve`). - After execution, report immediate success/failure only. - Do not actively monitor completion unless explicitly requested. - If monitoring is requested, allow long runtime windows (15-30+ minutes) and continue until completion unless operator instructs otherwise. - Report command errors immediately. - `sshpass` may be used where password-based SSH automation is required. ## Core Scripts - Template prep: `/root/cdc-e2e-cyp-12.17.4/cmc-templates.py` - Test execution: `./run-sorry-cypress.py` Typical sequence: 1. Run `cmc-templates.py` with requested template/options. 2. Run `run-sorry-cypress.py` with matching config and build name. ## Config File / Gold Disk Mapping - `cypress.atvm-config-gold.ts` -> Gold Disk 1 - `cypress.atvm-config-gold-2.ts` -> Gold Disk 2 - Additional numbered config variants map to corresponding Gold Disks. - Do not default to `cypress.atvm-config.ts`. - Unless the operator explicitly requests another config, use a config file with `gold` in the filename. ## Available Templates - `cmc-e2e` - `cmc-group-consistency` - `cmc-h2h-diff-platf` - `cmc-h2h-same-platf` - `cmc-migrateops` - `cmc-migrateops-compute-migration` - `cmc-reboot` - `cmc-systemOS` ## Command Pattern ```bash python3 cmc-templates.py --template