Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve lorax-composer disk size estimate #875

Closed
wants to merge 2 commits into from

Conversation

bcl
Copy link
Contributor

@bcl bcl commented Oct 17, 2019

No description provided.

@coveralls
Copy link

coveralls commented Oct 17, 2019

Pull Request Test Coverage Report for Build 2380

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at ?%

Totals Coverage Status
Change from base Build 2376: 0.0%
Covered Lines:
Relevant Lines: 0

💛 - Coveralls

@bcl bcl changed the title Improve lorax-composer disk size estimate [WIP] Improve lorax-composer disk size estimate Oct 31, 2019
@bcl
Copy link
Contributor Author

bcl commented Oct 31, 2019

While this does increase the size, according to user reports the amount can vary widely between systems so this still needs work.

anaconda moves the yum cache to the disk once it is partitioned, so the
downloaded rpms also consume space until the installation is finished.
Take this into account when estimating the size.

Thanks to Christophe Besson for spotting this.

Related: rhbz#1761337
Anaconda doesn't download the filelists or 'other' metadata, which can
add a significant amount of space to the metadata cache on the build
host. So to estimate the amount of space needed by Anaconda exclude the
space used by *filelists* and *other* files.

With these changes the lorax-composer estimate should actually be fairly
accurate. But since Anaconda only uses the installedsize * 1.35 we have
to make sure that the size we use is at least as big as what anaconda
will estimate, otherwise the installation will fail.

Resolves: rhbz#1761337
@bcl bcl changed the title [WIP] Improve lorax-composer disk size estimate Improve lorax-composer disk size estimate Nov 21, 2019
@bcl
Copy link
Contributor Author

bcl commented Nov 21, 2019

Figured out why the host metadata and anaconda metadata were so different in size. This should be robust enough to work in all cases.

@bcl
Copy link
Contributor Author

bcl commented Apr 17, 2020

Merged into rhel7-extras for lorax-19.7.40-1

@bcl bcl closed this Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants