-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DAOS-16495 test: Use the test env control config file w/ dmg #15094
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
52c1b86
DAOS-16495 test: Use the test env control config file w/ dmg
phender 974fdf6
Update harness/config.py server setup for VMs.
phender 0ea1251
Cleaner fix.
phender 6c60662
Merge branch 'master' into pahender/DAOS-16495
phender 8e52e35
Fix control_metadata_path specification for config generate.
phender 008c974
Fix typo.
phender File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
SPDX-License-Identifier: BSD-2-Clause-Patent | ||
''' | ||
|
||
import os | ||
|
||
import yaml | ||
from apricot import TestWithServers | ||
from server_utils import ServerFailed | ||
|
@@ -45,16 +47,16 @@ def test_config_generate_run(self): | |
|
||
# use_tmpfs_scm specifies that a MD-on-SSD conf should be generated and control metadata | ||
# path needs to be set in that case. | ||
ext_md_path = "" | ||
control_metadata = None | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should avoid running config generate with an empty
|
||
if use_tmpfs_scm: | ||
ext_md_path = self.test_env.log_dir | ||
control_metadata = os.path.join(self.test_env.log_dir, 'control_metadata') | ||
|
||
# Call dmg config generate. AP is always the first server host. | ||
server_host = self.hostlist_servers[0] | ||
result = self.get_dmg_command().config_generate( | ||
access_points=server_host, num_engines=num_engines, scm_only=scm_only, | ||
net_class=net_class, net_provider=net_provider, use_tmpfs_scm=use_tmpfs_scm, | ||
control_metadata_path=ext_md_path) | ||
control_metadata_path=control_metadata) | ||
|
||
try: | ||
generated_yaml = yaml.safe_load(result.stdout) | ||
|
@@ -70,7 +72,7 @@ def test_config_generate_run(self): | |
# Create a new server config from generated_yaml and update SCM-related | ||
# data in engine_params so that the cleanup before the server start | ||
# works. | ||
self.log.info("Copy config to /etc/daos and update engine_params") | ||
self.log.info("Copy config to %s and update engine_params", self.test_env.server_config) | ||
self.server_managers[0].update_config_file_from_file(generated_yaml) | ||
|
||
# Start server with the generated config. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ server_config: | |
engines_per_host: 1 | ||
engines: | ||
0: | ||
targets: 4 | ||
nr_xs_helpers: 0 | ||
storage: | ||
0: | ||
class: ram | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isort would complain unless the new line was here for some reason
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's because
os
is internal andyaml
is 3rd-party (pip installed or dnf isntalled) so isort wants those group separately