Bug #63561
opencephadm: build time install of dependencies fails on build systems that disable network
0%
Description
A recent change to .../cephadm/build.py added
...
class Config:
def init(self, cli_args):
self.cli_args = cli_args
self._maj_min = sys.version_info[0:2]
self.install_dependencies = True
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
if self._maj_min == (3, 6):
self.pip_split = True
self.requirements = PY36_REQUIREMENTS
else:
self.pip_split = False
self.requirements = PY_REQUIREMENTS
self.pip_venv = PipEnv[cli_args.pip_use_venv]
...
Which is going to fail on build systems like Fedora mock/koji, Red Hat brew, Debian&Ubuntu pbuilder and Ubuntu launchpad. And no doubt many others.
These build environments preinstall all the dependencies and disable the network to ensure a clean, reproducible build environment.
Even when the dependencies are already provided, the above still will try (and fail) to install over the network, causing the build to fail.
Updated by Kaleb KEITHLEY 5 months ago
- Subject changed from cephadm: build time install of dependencies fails on air gapped build systems. to cephadm: build time install of dependencies fails on build systems that disable network
Updated by Kaleb KEITHLEY 5 months ago
The dependencies are available as packages on the system.