[SERVER-53044] Remove all inline powercycle expansions (local powercycle ticket 2) Created: 24/Nov/20  Updated: 29/Oct/23  Resolved: 20/Jan/21

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

Type: Task Priority: Major - P3
Reporter: Robert Guo (Inactive) Assignee: Mikhail Shchatko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-53040 Use host.create for powercycle in Eve... Closed
depends on SERVER-53043 Integrate powertest.py with resmoke (... Closed
is depended on by SERVER-53045 Support local powertest.py invocation... Closed
Backwards Compatibility: Fully Compatible
Sprint: STM 2021-01-25
Participants:
Story Points: 3

 Description   

powercycle currently calls itself twice, once to take all the command line options to generate a config file and a second time to take the config file and do powercycle. See code here. This makes it tricky to run powercycle locally because a small number of options like the IP address are no longer be applicable. We should simplify the first invocation to accept as few options as possible (further optimizations will be made in followup tickets)

Instead, we should break up all the configuration embedded in evergreen.yml into the following.

  • For static options, we can embed them in the powercycle Python code as Python or YAML.
  • For all other options, we can rely on expansions.yml or use sane conventions. Note that even though some options appear to use other expansions, the expansions themselves are static. E.g. all of these are static and can be moved out of evergreen.yml
  • ec2_aws.yml can go away entirely in favor of a command line argument.

The powertest Python can then be updated to accept the simpler command line calls including the IP address of the powercycle host. No further changes are needed as part of this ticket



 Comments   
Comment by Githook User [ 20/Jan/21 ]

Author:

{'name': 'Mikhail Shchatko', 'email': 'mikhail.shchatko@mongodb.com'}

Message: SERVER-53044 Remove all inline powercycle expansions
Branch: master
https://github.com/mongodb/mongo/commit/191aa3556e3fecd6cec1336ec346911109dc5223

Comment by Robert Guo (Inactive) [ 24/Nov/20 ]

This tickets depends on SERVER-53040 as some expansions can only be removed once we move over to host.create.

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