Idea ID: 1679427

CDF: upgrade.sh -l should show you how much disk space is required if there is not enough disk space

Status : Declined
over 2 years ago

When running the "upgrade.sh -l" for the CDF 2018.08 -> 2018.11 upgrade if there is not enough free disk space then the error should show you how much disk space is required whereas currently it only shows you the available free space and not the needed free space.

$ ./upgrade.sh -l

** Pre-checking before upgrade ... (Step 1/5)
     Checking free space under /opt/kubernetes ... 17.40G
You need to prepare 10% disk space of /opt/kubernetes with additional 10 GB free space under /opt/kubernetes to perform the upgrade. Right now, /opt/kubernetes only has 17.40 GB free space. So the upgrade cannot be performed.

The fix is simple as there is already an variable in the upgrade.sh script which contains the needed disk space called "needed_disk" so the error should be enhanced to include: The space required for the upgrade is: ${needed_disk}