[SERVER-56182] Powercycle save-diagnostics can fail because expansions.update isn't run Created: 19/Apr/21  Updated: 06/Dec/22  Resolved: 20/Apr/21

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Richard Samuels (Inactive) Assignee: Backlog - Server Tooling and Methods (STM) (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Tooling & Methods
Operating System: ALL
Steps To Reproduce:

Go to "set up EC2 instance", edit the shell.exec block to exit 1 after powercycle_ip_address.yml is updated. Run a patch of the powercycle tasks.

Participants:

 Description   

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'



 Comments   
Comment by Brooke Miller [ 20/Apr/21 ]

Closing this as Won't Fix because the error is shown in the post-task logs and we don't believe this is currently causing confusion for anyone because we haven't heard from anyone complaining about this outside of STM.

Generated at Thu Feb 08 05:38:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.