"yum install" attempts to access yum repos

Description

The basic premise of bootstrap is that it is self-contained.
Currently, we run yum install as:

https://github.com/cloudify-cosmo/cloudify-manager-blueprints/blob/4.1.1/components/utils.py#L677

However, this enables yum to refer to external repositories, if such repositories are available to it.

Workaround:

sudo yum-config-manager --disable *

This will disable all yum repositories, meaning that yum will not attempt to contact them during installation.
Once installation is completed, re-enable the repositories:

sudo yum-config-manager --enable *

*NOTE* this workaround is suitable for the very simple case (and common) case when, initially, all yum repositories are enabled. If the user has a more complex scenario (some yum repositories enabled, some disabled, using glob expressions), then the workaround will have to be tweaked a little bit to suit those cases.

Status

Assignee

Isaac Shabtay

Reporter

Isaac Shabtay

Labels

None

Bug Type

None

Target Version

None

Severity

None

Epic Link

Fix versions

Affects versions

Configure