Skip to content

Commit

Permalink
BUGFIX: Handle nukedisks before the we start autoyast. This prevents …
Browse files Browse the repository at this point in the history
…the situation where the installer hangs because it attempted to mount a disk and could not later nuke it.
  • Loading branch information
bsanders authored and masonkatz committed Apr 30, 2019
1 parent aa71bfd commit 24b1520
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/src/stack/storage-config/bin/initialize-storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ def nukeDisk(disk):
else:
break

notify_cmd = """/opt/stack/bin/smq-publish -chealth '{"state": "install initializing storage"}'"""
subprocess.run(notify_cmd, shell=True)

#
# nuke LVM first
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,24 @@ echo "tracker = ${FRONTEND}:3825" > /tmp/stack.conf

/opt/stack/bin/python3 -E /opt/stack/bin/ludicrous-client.py --environment initrd --trackerfile='/tmp/stack.conf';

# nuke the disks, if appropriate
/opt/stack/bin/initialize-storage.py

#
# configure the hardware disk array controller first
#
/opt/stack/bin/configure-controllers.py

udevadm settle --timeout=60

# NOTE: we initialize storage twice in RHEL, so do the same thing here, too

# need to call 'initialize-storage.py' again after reconfiguring the
# hardware disk controller because it may have created new LUNs and the
# master boot record on a LUN may be corrupted and require initialization.

/opt/stack/bin/initialize-storage.py

#
# then configure the partitions
#
Expand Down

0 comments on commit 24b1520

Please sign in to comment.