How to sepcify Ceph/rbd user

3 things:

I found a small typo, see https://github.com/brauner/lxd/pull/1

I had to change one call to rbd, changing argument “–image-features” to “–image-feature” and the layering parameter to integer 2. But it’s because we use a pretty old version of Ceph and options naming changed since (We use hammer version).

I successfully passed first step of pool creation.

Now i’m facing another problem. It seems the key s.pool.Config[“ceph.user.name”] is not defined so, i got a Go panic:

Jul 27 16:21:49 paprika lxd[2795]: 2017/07/27 16:21:49 http: panic serving @: runtime error: invalid memory address or nil pointer dereference
Jul 27 16:21:49 paprika lxd[2795]: goroutine 163 [running]:
Jul 27 16:21:49 paprika lxd[2795]: net/http.(*conn).serve.func1(0xc4203d1480)
Jul 27 16:21:49 paprika lxd[2795]: /usr/lib/go-1.7/src/net/http/server.go:1491 +0x12a
Jul 27 16:21:49 paprika lxd[2795]: panic(0xb32ca0, 0xc42000e070)
Jul 27 16:21:49 paprika lxd[2795]: /usr/lib/go-1.7/src/runtime/panic.go:458 +0x243
Jul 27 16:21:49 paprika lxd[2795]: main.(*storageCeph).StorageCoreInit(0xc42042c630, 0xc42042c630, 0x1)
Jul 27 16:21:49 paprika lxd[2795]: /opt/go/src/github.com/lxc/lxd/lxd/storage_ceph.go:31 +0x9a
Jul 27 16:21:49 paprika lxd[2795]: main.storageCoreInit(0xc420174998, 0x4, 0x1, 0xc420496050, 0x0, 0x0)