[SERVER-56145] Have the setup_spawnhost_coredump script alert users to a still running invocation Created: 16/Apr/21  Updated: 29/Oct/23  Resolved: 19/Apr/21

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

Type: Improvement Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-04-19, Sharding 2021-05-03
Participants:

 Description   

When spawning an evergreen host with task artifacts, the host becomes available to connect to before the artifacts are downloaded and before the setup script is fully executed.

We should best-effort communicate to users that log in before the script completes that the data files/environment are not necessarily ready for inspection. tommaso.tocci suggested a combination of using a text file/login banner/wall command.

I think the following might make sense:
When the script starts have it do the following:

  • Add wall "The setup_spawnhost_coredump script has just started setting up the debugging environment." to the beginning of the setup script
  • Write a .setup_spawnhost_coredump_progress file with the contents The setup script is still setting up data files for inspection.
  • Add cat ~/.setup_spawnhost_coredump_progress to the login script that's written out at the beginning of executing the setup script.
  • At the end of the setup script:
    • Replace the "progress" file contents with a completed message
    • Notify users to relogin with wall "The setup_spawnhost_coredump script has completed, please relogin to ensure the right environment variables are set."


 Comments   
Comment by Githook User [ 19/Apr/21 ]

Author:

{'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com', 'username': 'dgottlieb'}

Message: SERVER-56145: Communicate when `setup_spawnhost_coredump` is still running when a user logs in.
Branch: master
https://github.com/mongodb/mongo/commit/bbc7fb75ef48ae650124a54b205e0fcf8a646740

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