Skip to content
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

Invoke downburst with logging #1041

Merged
merged 2 commits into from Mar 7, 2017
Merged

Invoke downburst with logging #1041

merged 2 commits into from Mar 7, 2017

Conversation

dmick
Copy link
Member

@dmick dmick commented Mar 6, 2017

No description provided.

@dmick dmick requested review from Abhishekvrshny and zmc and removed request for Abhishekvrshny March 6, 2017 23:44


log = logging.getLogger(__name__)


def _logfile(ctx, shortname):
if (ctx.config['archive_path']):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is config['archive_path'] always present? Would it be safer to:

if ctx.config.get('archive_path', None) is not None:

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, good catch, fixing

Verbose output isn't verbose enough to matter, and can be helpful
tracking down weirdness.  Also, log to private file in case
downburst hangs mid-operation, to avoid having to do any
select() madness in teuthology.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
The more info the better; always log everything about the downburst
execution to the teuthology log.  Check for command failure by
checking for returncode != 0 rather than "presence of stderr", since
logging always happens to stderr.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
@zmc zmc merged commit c900508 into ceph:master Mar 7, 2017
zmc added a commit that referenced this pull request Mar 7, 2017
Looks like an argument was dropped to a string format().

Signed-off-by: Zack Cerza <zack@redhat.com>
zmc added a commit that referenced this pull request Mar 7, 2017
Looks like an argument was dropped to a string format().

Signed-off-by: Zack Cerza <zack@redhat.com>
zmc added a commit that referenced this pull request Mar 7, 2017
provision.downburst: Fix a bug in PR #1041
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants