Skip to content

Instantly share code, notes, and snippets.

@zaquestion
Last active November 4, 2016 07:54
Show Gist options
  • Save zaquestion/17d485543af884b45a5f62b21f1f613c to your computer and use it in GitHub Desktop.
Save zaquestion/17d485543af884b45a5f62b21f1f613c to your computer and use it in GitHub Desktop.
dataloop-docker debug notes

Relavent changes (in order) CAdvisor:

Needed tools: https://github.com/jthornber/thin-provisioning-tools (but also device-mapper)

Installing thin-provisioning-tools with whats availble in the image doesn't work as you get v5.6

root@20b1630c440e:/opt/dataloop# apt-get update
root@20b1630c440e:/opt/dataloop# apt-get install thin-provisioning-tools
root@20b1630c440e:/opt/dataloop# pdata_tools thin_ls
Unknown command 'thin_ls'
Usage: <command> <args>
commands:
  cache_check
  cache_dump
  cache_metadata_size
  cache_restore
  cache_repair
  era_check
  era_dump
  era_invalidate
  era_restore
  thin_check
  thin_delta
  thin_dump
  thin_metadata_size
  thin_restore
  thin_repair
  thin_rmap

You can install this one ubuntu 16.10's version https://launchpad.net/ubuntu/+source/thin-provisioning-tools and it will unblock CAdvisor from starting You will however start running into

E1104 02:22:36.185250      20 thin_pool_watcher.go:61] encountered error refreshing thin pool watcher: error determining whether snapshot is reserved: exec: "dmsetup": executable file not found in $PATH
E1104 02:22:51.185709      20 thin_pool_watcher.go:72] encountered error refreshing thin pool watcher: error determining whether snapshot is reserved: exec: "dmsetup": executable file not found in $PATH

Which you can fix by apt-get install dmsetup, but then

E1104 06:17:52.696345      20 thin_pool_watcher.go:72] encountered error refreshing thin pool watcher: error determining whether snapshot is reserved: exit status 1
E1104 06:18:07.700278      20 thin_pool_watcher.go:72] encountered error refreshing thin pool watcher: error determining whether snapshot is reserved: exit status 1

because

root@be1b8a75ad6f:/# dmsetup status
/dev/mapper/control: open failed: Operation not permitted
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper (unknown version) and kernel driver (unknown version).
Command failed

At this point, you actually have semi working stats in dataloop. I was able to get network, cpu, and memory stats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment