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

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

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}

Tags (3)
1 Comment
Micro Focus Expert
Micro Focus Expert
Status changed to: Waiting for Votes

Will get it checked.

Thanks & Regards,

Moderator, OpsB IdeaX

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.