Bug #4047
closedremoving a non-existing rbd image logs error in osd logs
0%
Description
when removing a non-existing rbd image floods osd logs even when the debug is turned off. This can be avoided.
ubuntu@burnupi06:~$ sudo rbd rm sdfsd
2013-02-07 17:03:54.084413 7fbe4b837780 -1 librbd::ImageCtx: error finding header: (2) No such file or directory
Removing image: 0% complete...failed.2013-02-07 17:03:54.086236 7fbe4b837780 -1
librbd: error removing img from new-style directory: (2) No such file or directory
rbd: delete error: (2) No such file or directory
ubuntu@burnupi06:~$ tail -f /var/log/ceph/ceph-osd.1.log
2013-02-07 17:00:30.565749 7fdb09e6b700 0 <cls> cls/rbd/cls_rbd.cc:1615: error reading id for name 'sds': -2
2013-02-07 17:00:30.566301 7fdb0a66c700 0 <cls> cls/rbd/cls_rbd.cc:1521: error reading name to id mapping: -2
2013-02-07 17:03:54.085700 7fdb0a66c700 0 <cls> cls/rbd/cls_rbd.cc:1615: error reading id for name 'sdfsd': -2
2013-02-07 17:03:54.086143 7fdb09e6b700 0 <cls> cls/rbd/cls_rbd.cc:1521: error reading name to id mapping: -2