-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
Server Tooling & Methods
-
ALL
-
In "set up EC2 instance" in the server yaml, the shell.exec block just below host.list can fail.
If this happens, the expansions.update that sets private_ip_address will not be run, which will cause Powercycle's save-diagnostics to fail in the post tasks with the following error:
[2021/04/19 18:11:10.533] $python buildscripts/resmoke.py powercycle save-diagnostics [2021/04/19 18:11:11.952] Traceback (most recent call last): [2021/04/19 18:11:11.952] File "/data/mci/036687f36a0447fadf634d1e09213d0d/src/buildscripts/resmoke.py", line 14, in <module> [2021/04/19 18:11:11.952] cli.main(sys.argv) [2021/04/19 18:11:11.952] File "/data/mci/036687f36a0447fadf634d1e09213d0d/src/buildscripts/resmokelib/cli.py", line 21, in main [2021/04/19 18:11:11.952] subcommand.execute() [2021/04/19 18:11:11.952] File "/data/mci/036687f36a0447fadf634d1e09213d0d/src/buildscripts/resmokelib/powercycle/__init__.py", line 38, in execute [2021/04/19 18:11:11.952] return { [2021/04/19 18:11:11.952] File "/data/mci/036687f36a0447fadf634d1e09213d0d/src/buildscripts/resmokelib/powercycle/__init__.py", line 59, in _exec_powercycle_save_diagnostics [2021/04/19 18:11:11.952] GatherRemoteEventLogs().execute() [2021/04/19 18:11:11.952] File "/data/mci/036687f36a0447fadf634d1e09213d0d/src/buildscripts/resmokelib/powercycle/lib/__init__.py", line 34, in __init__ [2021/04/19 18:11:11.952] self.user_host = self.user + "@" + self.expansions["private_ip_address"] [2021/04/19 18:11:11.952] KeyError: 'private_ip_address'