Current Path : /usr/lib/python2.7/dist-packages/landscape/monitor/ |
Current File : //usr/lib/python2.7/dist-packages/landscape/monitor/cephusage.pyc |
Tc @ s d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z y# d d l m Z e e d Z Wn e k r e Z n Xd e f d YZ d S( iN( t threads( t Accumulator( t CoverageMonitor( t MonitorPlugin( t Radost get_cluster_statst CephUsagec B s e Z d Z d Z d Z d Z d d e j d Z d Z d Z e d Z e d Z d Z d Z d Z d Z RS( s Plugin that captures Ceph usage information. This only works if the client runs on one of the Ceph monitor nodes, and noops otherwise. The plugin requires the 'python-ceph' package to be installed, which is the case on a standard "ceph" charm deployment. The landscape-client charm should join a ceph-client relation with the ceph charm, which will crete a keyring and config file for the landscape-client to consume in <data_path>/ceph-client/ceph.landscape-client.conf. It contains the following: [global] auth supported = cephx keyring = <keyring-file> mon host = <ip>:6789 The configured keyring can be generated with: ceph-authtool <keyring-file> --create-keyring --name=client.landscape-client --add-key=<key> s ceph-usaget storagei i<