-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fallback to /dev/mapper device if metadata device is not set in docker info #1343
Conversation
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
FYI @vishh @dchen1107 @timstclair the initial "thin_ls" PR that we added only works for devicemapper-managed thin pools. This PR should allow support for LVM-managed pools as well. AFAIK this PR helps us pass some node E2E tests that are currently failing on the Red Hat stack. |
If this isn't approved for Kube 1.3, we'd love to see it ASAP after. |
Just added some new changes
|
|
||
metadataDevice = fmt.Sprintf("/dev/mapper/%s_tmeta", poolName) | ||
|
||
_, err = os.Stat(metadataDevice) |
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.
if _, err := os.Stat(metadataDevice); err != nil {
LGTM. Once the existing comments are addressed, this is good to go. @ncdc is this supposed to be integrated into kube v1.3? |
@vishh if this can make 1.3, that would be great |
That would require a cherrypick against the On Tue, Jun 21, 2016 at 1:17 PM, Andy Goldstein notifications@github.com
|
@vishh assuming this gets merged, we can do the PR against release-0.23 and then update the kube godep once you guys cut a new tag |
I think this needs to make 1.3 as without it pod stats are not reported at all. |
I think this looks good. @vishh can you kick the e2e? |
Not sure if I have admin, but let's see: @k8s-bot ok to test |
ok to test |
@k8s-bot test this |
CoreOS issue: #1344 - looks like this has started affecting the build job as well. |
Disabled coreos-beta. @k8s-bot test this |
@vishh @derekwaynecarr any other comments? |
LGTM |
I'd like to get this merged ASAP once it passes reviews so we can prep the follow-on tasks (release-0.23 cherry-pick, kube godep bump)... any other comments? |
LGTM |
@derekwaynecarr @aveshagarwal @pmorie @ncdc
In systems that have an LVM managed docker thin pool, docker info does not contain information for the data or metadata devices:
LVM puts the metadata device at /dev/mapper/_tmeta. If we fail to get the metadata device from the docker info, we should fall back to the LVM path.
Fixes #1338