[Bug 1129217] Re: rbd showmapped has trailing whitespace which break rbd monitor

2013-02-18 Thread Launchpad Bug Tracker
This bug was fixed in the package ceph - 0.56.3-0ubuntu2 --- ceph (0.56.3-0ubuntu2) raring; urgency=low * Fix problem with trailing whitespace in RBD OCF (LP: #1129217): - d/p/ocf-whitespace.patch: Strip any trailing whitespace from the output of rbd showmapped. -- James

[Bug 1129217] Re: rbd showmapped has trailing whitespace which break rbd monitor

2013-02-18 Thread James Page
** Changed in: ceph (Ubuntu) Importance: Undecided => High ** Changed in: ceph (Ubuntu) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ceph in Ubuntu. https://bugs.launchpad.net/bugs/1129217 Title:

[Bug 1129217] Re: rbd showmapped has trailing whitespace which break rbd monitor

2013-02-18 Thread James Page
That might work well -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ceph in Ubuntu. https://bugs.launchpad.net/bugs/1129217 Title: rbd showmapped has trailing whitespace which break rbd monitor To manage notifications about thi

[Bug 1129217] Re: rbd showmapped has trailing whitespace which break rbd monitor

2013-02-18 Thread Sage Weil
What about just iterating over the device nodes that udev creates? /dev/rbd/$pool/$image -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ceph in Ubuntu. https://bugs.launchpad.net/bugs/1129217 Title: rbd showmapped has trailing white

[Bug 1129217] Re: rbd showmapped has trailing whitespace which break rbd monitor

2013-02-18 Thread James Page
Alternatively: sedpat="[0-9]\+[ \t]\+${OCF_RESKEY_pool}[ \t]\+${OCF_RESKEY_name}[ \t]\+${OCF_RESKEY_snap:--}[ \t]\+\(/dev/rbd[0-9]\+\).*" Trims the whitespace as well. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to ceph in Ubuntu