Commit b4479689 authored by rgaudin's avatar rgaudin
Browse files

Fixed #315: KAlite installation failed (regression)

Allowed a reboot between resize and reconfigure phases as resize sets uid/gid on exfat /data partition
parent 5413f881
2.0.5
* Added raspberryPi version to version.<fqdn> page
* Fixed KAlite installation not working (regression)
2.0.4
* Speed up improvements for Wikifundi
......
......@@ -177,7 +177,7 @@ def run_phase_one(
):
""" run ansiblecube in machine to configure requested softwares """
tags = ["resize", "rename", "reconfigure"]
tags = ["rename", "reconfigure"]
# copy homepage
machine.put_file(homepage, "/tmp/home.html")
......
......@@ -286,7 +286,7 @@ def run_installation(
emulator.resize_image(size)
# Run emulation
logger.step("Starting-up VM")
logger.step("Starting-up VM (first-time)")
with emulator.run(cancel_event) as emulation:
# copying ansiblecube again into the VM
# should the master-version been updated
......@@ -296,7 +296,13 @@ def run_installation(
)
emulation.put_dir(data.ansiblecube_path, ansiblecube.ansiblecube_path)
logger.step("Run ansiblecube")
logger.step("Run ansiblecube for `resize`")
ansiblecube.run(emulation, ["resize"], extra_vars, secret_keys)
logger.step("Starting-up VM (second-time)")
with emulator.run(cancel_event) as emulation:
logger.step("Run ansiblecube phase I")
ansiblecube.run_phase_one(
emulation,
extra_vars,
......@@ -351,9 +357,9 @@ def run_installation(
# rerun emulation for discovery
logger.stage("move")
logger.step("Starting-up VM again for content-discovery")
logger.step("Starting-up VM (third-time)")
with emulator.run(cancel_event) as emulation:
logger.step("Re-run ansiblecube for move-content")
logger.step("Re-run ansiblecube phase II")
ansiblecube.run_phase_two(emulation, extra_vars, secret_keys)
if shrink:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment