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

docs: add documentation for dm.libdm_log_level #324

Merged
merged 1 commit into from
Jul 14, 2017

Conversation

cyphar
Copy link
Contributor

@cyphar cyphar commented Jul 12, 2017

This is a new option added specifically to allow for debugging of bugs
in Docker's storage drivers or libdm itself.

See moby/moby#33845
Signed-off-by: Aleksa Sarai asarai@suse.de

@cyphar
Copy link
Contributor Author

cyphar commented Jul 12, 2017

The lint failure appears to be completely unrelated. Hold off on merging until moby/moby#33845 is merged.

@dnephin
Copy link
Contributor

dnephin commented Jul 12, 2017

lint and test are fixed on master. You can rebase to pickup the fixes

@codecov-io
Copy link

codecov-io commented Jul 12, 2017

Codecov Report

Merging #324 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #324      +/-   ##
==========================================
+ Coverage   48.84%   48.85%   +<.01%     
==========================================
  Files         186      186              
  Lines       12413    12413              
==========================================
+ Hits         6063     6064       +1     
+ Misses       5976     5975       -1     
  Partials      374      374

@cyphar
Copy link
Contributor Author

cyphar commented Jul 13, 2017

moby/moby#33845 has been merged, so this can now be reviewed.

@dnephin
Copy link
Contributor

dnephin commented Jul 13, 2017

Sorry, there is another fix on master for the CI failures.

Copy link
Contributor

@mdlinville mdlinville left a comment

Choose a reason for hiding this comment

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

My comments apply to both files. Thanks!

@@ -700,6 +700,34 @@ ENOSPC and will shutdown filesystem.
$ sudo dockerd --storage-opt dm.xfs_nospace_max_retries=0
```

##### `dm.libdm_log_level`
Copy link
Contributor

Choose a reason for hiding this comment

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

Wow, level 5. This file needs a reorg, not in this PR.

@@ -700,6 +700,34 @@ ENOSPC and will shutdown filesystem.
$ sudo dockerd --storage-opt dm.xfs_nospace_max_retries=0
```

##### `dm.libdm_log_level`

Specifies the maxmimum `libdm` log level that will be forwarded to `dockerd`'s
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe "the dockerd log"?


Specifies the maxmimum `libdm` log level that will be forwarded to `dockerd`'s
log (as specified by `--log-level`). This option is primarily intended for
debugging bugs involving interactions with `libdm`, and non-default values will
Copy link
Contributor

Choose a reason for hiding this comment

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

"debugging bugs"? How about "diagnosing problems with libdm"?

Specifies the maxmimum `libdm` log level that will be forwarded to `dockerd`'s
log (as specified by `--log-level`). This option is primarily intended for
debugging bugs involving interactions with `libdm`, and non-default values will
likely cause erroneous warnings to be output when no actual error has occurred.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe "Using values other than the defaults will cause false positive warnings to be logged."

likely cause erroneous warnings to be output when no actual error has occurred.

Values specified must fall within the range of valid `libdm` log levels. At the
time of writing, the following is the list of `libdm` log levels as well as
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than listing these, can you provide a link to the libdm docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

libdm doesn't have API documentation, see https://bugzilla.redhat.com/show_bug.cgi?id=526867. I actually pulled these values from the source code (I was debugging another issue in libdm).

This is a new option added specifically to allow for debugging of bugs
in Docker's storage drivers or libdm itself.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @cyphar!

@thaJeztah
Copy link
Member

/cc @albers @sdurrheimer - in case completion scripts need to be updated

@thaJeztah
Copy link
Member

Misty's comments look to be all addressed, so I'll merge

@thaJeztah thaJeztah merged commit de4c546 into docker:master Jul 14, 2017
@GordonTheTurtle GordonTheTurtle added this to the 17.07.0 milestone Jul 14, 2017
@cyphar cyphar deleted the libdm-debug-flag-docs branch July 14, 2017 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants