data_dir = get_data_dir(self.fsid, self.daemon_type, self.daemon_id)
volume_mounts = self.get_container_mounts(data_dir)
+ logger.info('Creating RADOS grace for action: %s' % (action))
c = CephContainer(
image=self.image,
entrypoint=entrypoint,
def port_in_use(port_num):
# type (int) -> bool
"""Detect whether a port is in use on the local machine - IPv4 and IPv6"""
-
+ logger.info('Verifying port %d ...' % (port_num))
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
attempt_bind(s, '0.0.0.0', port_num)
if daemon_type not in get_supported_daemons():
raise Error('daemon type %s not recognized' % daemon_type)
+ logger.info('Deploying daemon %s.%s ...' % (daemon_type, daemon_id))
+
if daemon_type in Ceph.daemons:
(config, keyring) = get_config_and_keyring()
(uid, gid) = extract_uid_gid()