stacki icon indicating copy to clipboard operation
stacki copied to clipboard

Stacki OS frontend installs not partitioning disks

Open mikebobadilla opened this issue 7 years ago • 2 comments

I have only tested on a vm. The install wizard throws the following error.

screen shot 2017-07-13 at 1 51 41 pm

failed to find suitable stage1 device

The fix is to select the hard drive, choose standard partitioning, set automatically and accept the changes.

screen shot 2017-07-13 at 1 58 03 pm

mikebobadilla avatar Jul 13 '17 21:07 mikebobadilla

Cause of bug is an empty attributes dictionary, as code was originally written with backends in mind where this dictionary would be populated by a call to stack list host profile chapter=stacki and land in /tmp/stack_site/__init__.py.

In this case, __init__.py is empty (that command doesn't work for installing frontends) but it should be dict of attributes, csv_partitions, csv_controllers.

Fix is (on frontends only) to populate this file by parsing /tmp/site.attrs to populate the attributes dictionary. The other two objects should be able to be empty lists.

bsanders avatar Jul 14 '17 20:07 bsanders

Reopening. Issue still exists on a normal install. Workaround is still valid.

My test included using a pre-made site.attrs where nukedisks=true. Fix now depends on either:

  1. #183 (add nukedisks checkbox to installer) OR:
  2. Declaring that if the user selects 'automated' partitioning, that implies nukedisks=true and adjusting the end of wizard.py to set nukedisks in site.attrs file.

bsanders avatar Jul 24 '17 22:07 bsanders