Commits

Enis Afgan  committed fd88dba

Fix cluster resizing when using S3 bucket as a file system

  • Participants
  • Parent commits 7f8ef06

Comments (0)

Files changed (1)

File cm/util/master.py

             elif msg_type == "WORKER_H_CERT":
                 self.is_alive = True  # This is for the case that an existing worker is added to a new master.
                 self.app.manager.save_host_cert(msg.split(" | ")[1])
-                log.debug("Worker '%s' host certificate received and appended to /root/.ssh/known_hosts" \
+                log.debug("Worker '%s' host certificate received and appended to /root/.ssh/known_hosts"
                     % self.id)
                 try:
                     sge_svc = self.app.manager.get_services(
                         for fs in fss:
                             if len(fs.buckets) > 0:
                                 for b in fs.buckets:
-                                    self.send_add_s3fs(b.bucket_name)
+                                    self.send_add_s3fs(b.bucket_name, fs.svc_roles)
                         log.info("Waiting on worker instance %s to configure itself..."
                             % self.get_desc())
                     else: