MgrModule returning None on self.get_metadata()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I got a report from a crash of the Telegraf module because of this:

metadata = self.get_metadata(svc_type, svc_id)
..
..
'host': metadata['hostname'],

metadata was None in this case and that exception wasn't caught causing
the the module to stop working.

When it happened OSDs were being destroyed and re-added again and it
seems that their metadata wasn't available at that time.

Before I start patching the Telegraf module (and Influx as well) my
question is if it's to be expected that get_metadata() returns None.

If so I would have to handle this by doing a 'continue' if it's the
case. Otherwise the MgrModule needs some work.

Thanks,

Wido
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux