Skip to content

Add detail error logs when 'Unknown Device' error happens if devicema… - #23974

Merged
coolljt0725 merged 1 commit into
moby:masterfrom
hopkings2008:devmapper_log
Jun 30, 2016
Merged

coolljt0725 merged 1 commit into
moby:masterfrom
hopkings2008:devmapper_log

Conversation

@hopkings2008

Copy link
Copy Markdown
Contributor

Dear maintainers,
This PR is to add the detail error logs for device mapper storage when the error "unknown device' happens as below when tries to restart a container:
"Handler for GET /containers/d355ff91fe74b635b8ed325b880c5e1654e5e57b9b23e6455c3e8fb2b30a1f4f/json returned error: Unknown device d355ff91fe74b635b8ed325b880c5e1654e5e57b9b23e6455c3e8fb2b30a1f4f"
In order to find the reason why read the data failed from devicemapped device, these error logs are added.
Please review it, thanks a lot.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Want 2 arguments but only 1 is given

@hopkings2008

Copy link
Copy Markdown
Contributor Author

@mYmNeo , thanks Shengbo, I have amended the PR again, please help to review it again, thanks.

@hopkings2008

Copy link
Copy Markdown
Contributor Author

Dear maintainers,
The reason for experimental job failed is related to the test environment:
05:17:37 FATAL: Unable to delete script file /tmp/hudson3111005131340468747.sh
05:17:37 java.lang.InterruptedException
05:17:37 at java.lang.Object.wait(Native Method)
05:17:37 at hudson.remoting.Request.call(Request.java:147)
05:17:37 at hudson.remoting.Channel.call(Channel.java:780)
05:17:37 at hudson.FilePath.act(FilePath.java:979)
05:17:37 at hudson.FilePath.act(FilePath.java:968)
05:17:37 at hudson.FilePath.delete(FilePath.java:1422)
05:17:37 at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:104)
05:17:37 at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
05:17:37 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
05:17:37 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
05:17:37 at hudson.model.Build$BuildExecution.build(Build.java:205)
05:17:37 at hudson.model.Build$BuildExecution.doRun(Build.java:162)
05:17:37 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
05:17:37 at hudson.model.Run.execute(Run.java:1738)
05:17:37 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
05:17:37 at hudson.model.ResourceController.execute(ResourceController.java:98)
05:17:37 at hudson.model.Executor.run(Executor.java:410)

Please help to check this PR, thanks a lot.

@cpuguy83

Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Actually, since these aren't really an error, let's move to debug.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@cpuguy83 , thanks very much for taking time to review this PR. I have amended this PR according to your suggestion, please help to review it again, thanks.

@hopkings2008

Copy link
Copy Markdown
Contributor Author

Dear maintainers,
After i amended this PR according to @cpuguy83 's suggestion, actually, all the cases are passed. The fail occurred in the same place:
03:09:56 FATAL: Unable to delete script file /tmp/hudson5863554771796508595.sh
03:09:56 java.lang.InterruptedException
03:09:56 at java.lang.Object.wait(Native Method)
03:09:56 at hudson.remoting.Request.call(Request.java:147)
03:09:56 at hudson.remoting.Channel.call(Channel.java:780)
03:09:56 at hudson.FilePath.act(FilePath.java:979)
03:09:56 at hudson.FilePath.act(FilePath.java:968)
03:09:56 at hudson.FilePath.delete(FilePath.java:1422)
03:09:56 at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:104)
03:09:56 at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64)
03:09:56 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
03:09:56 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
03:09:56 at hudson.model.Build$BuildExecution.build(Build.java:205)
03:09:56 at hudson.model.Build$BuildExecution.doRun(Build.java:162)
03:09:56 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
03:09:56 at hudson.model.Run.execute(Run.java:1738)
03:09:56 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
03:09:56 at hudson.model.ResourceController.execute(ResourceController.java:98)
03:09:56 at hudson.model.Executor.run(Executor.java:410)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Debug for this one too, sorry.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@cpuguy83 , if it fails to convert the bytes to json, i think it is an error instead of debug log, because the data in devmapper storage is corrupt. What do you think about it? thanks.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If it was really an error it would have been returned, IMO.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok, got it, thanks @cpuguy83 for the comments, i have amended my PR according to your suggestions again. Please help to check it, thanks.

@cpuguy83

Copy link
Copy Markdown
Member

@hopkings2008 CI is just having problems.

@hopkings2008

Copy link
Copy Markdown
Contributor Author

@cpuguy83 and other maintainers, i have amended this PR according to @cpuguy83 's suggestion again, and please help to check it, thanks.

@coolljt0725

Copy link
Copy Markdown
Contributor

LGTM

@coolljt0725
coolljt0725 merged commit d2da1e3 into moby:master Jun 30, 2016
liusdu pushed a commit to liusdu/moby that referenced this pull request Oct 30, 2017
…pper storage is used.

Signed-off-by: yuzou <[email protected]>
Signed-off-by: Wentao Zhang <[email protected]>
Cherry-picked from moby#23974
liusdu pushed a commit to liusdu/moby that referenced this pull request Oct 30, 2017
Cherry pick devmapper relative commits from master branch

Merge 5 commits:

<a href="/docker/docker/commit/4f0017b9ad7dfa2e9dcdee69d000b98595893e60" data-original="4f0017b9" data-project="7713" data-commit="4f0017b9ad7dfa2e9dcdee69d000b98595893e60" data-reference-type="commit" title="Commit: Vivek Goyal - devmapper: Provide a knob dm.xfs_nospace_max_retries" class="gfm gfm-commit">4f0017b9</a>     <a href="moby#26212" rel="nofollow noreferrer" target="_blank">https://github.com/docker/docker/pull/26212</a><br>
<a href="/docker/docker/commit/55a9b8123d7e89692b5c25c846cf6707a8ce463a" data-original="55a9b812" data-project="7713" data-commit="55a9b8123d7e89692b5c25c846cf6707a8ce463a" data-reference-type="commit" title="Commit: Vivek Goyal - Export Mininum Thin Pool Free Space through docker info" class="gfm gfm-commit">55a9b812</a>     <a href="moby#21945" rel="nofollow noreferrer" target="_blank">https://github.com/docker/docker/pull/21945</a><br>
288f933     <a href="moby#28500" rel="nofollow noreferrer" target="_blank">https://github.com/docker/docker/pull/28500</a><br>
 


d4a2bcc  moby#23974

6cc55dd  moby#26378  
41c6083   moby#26918  






Signed-off-by: Wentao Zhang <a href="mailto:[email protected]">[email protected]</a>


See merge request docker/docker!281
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.

4 participants