diff --git a/common/scylla_configure.py b/common/scylla_configure.py index 354fc94d..d3e6d3f2 100755 --- a/common/scylla_configure.py +++ b/common/scylla_configure.py @@ -140,9 +140,12 @@ def create_devices(self): LOGGER.info(f"Create scylla data devices as {device_type}") subprocess.run(cmd_create_devices, shell=True, check=True) except Exception as e: - scylla_excepthook(*sys.exc_info()) - LOGGER.error("Failed to create devices: %s", e) - sys.exit(1) + if self.cloud_instance.is_dev_instance_type(): + LOGGER.info("Skipping to create devices: %s", e) + else: + scylla_excepthook(*sys.exc_info()) + LOGGER.error("Failed to create devices: %s", e) + sys.exit(1) def configure(self): self.configure_scylla_yaml() diff --git a/common/scylla_image_setup b/common/scylla_image_setup index 943896f8..676c45da 100755 --- a/common/scylla_image_setup +++ b/common/scylla_image_setup @@ -45,6 +45,6 @@ if __name__ == '__main__': # some distro has fstrim enabled by default, since we are using XFS with online discard, we don't need fstrim run('systemctl is-active -q fstrim.timer && systemctl disable fstrim.timer', shell=True, check=True) - if not os.path.ismount('/var/lib/scylla'): + if not os.path.ismount('/var/lib/scylla') and not cloud_instance.is_dev_instance_type(): print('Failed to initialize RAID volume!') machine_image_configured.touch()