Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-56182

Powercycle save-diagnostics can fail because expansions.update isn't run

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Testing Infrastructure
    • None
    • Server Tooling & Methods
    • ALL
    • Hide

      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.

      Show
      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.

    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'
      

      Attachments

        Activity

          People

            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            richard.samuels@mongodb.com Richard Samuels (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: