When RPC isn't initialized, any RPC based notifiers will fail, which
renders cinder-volume-usage-audit mostly useless.
Change-Id: I0b2d63871c0e57f8a9a55059c5fa22dc785b2767
Closes-Bug: #
1316483
from cinder import context
from cinder import db
from cinder.openstack.common import log as logging
+from cinder import rpc
from cinder import utils
from cinder import version
import cinder.volume.utils
version=version.version_string())
logging.setup("cinder")
LOG = logging.getLogger("cinder")
+ rpc.init(CONF)
begin, end = utils.last_completed_audit_period()
if CONF.start_time:
begin = datetime.strptime(CONF.start_time, "%Y-%m-%d %H:%M:%S")