We're updating the issue view to help you get more done. 

Bootstrap validation should ensure python-setuptools is installed

Description

Otherwise, bootstrap inevitably fails on:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2017-05-01 16:21:24.064 LOG <manager> [python_runtime_kn69m2.create] INFO: yum installing /opt/cloudify/python/resources/python-pip-7.1.0-1.el7.noarch.rpm... [10.126.186.155] out: Traceback (most recent call last): [10.126.186.155] out: File "/tmp/cloudify-ctx/scripts/tmptKun3c-create.py-V5K93LRL", line 33, in <module> [10.126.186.155] out: install_python_requirements() [10.126.186.155] out: File "/tmp/cloudify-ctx/scripts/tmptKun3c-create.py-V5K93LRL", line 24, in install_python_requirements [10.126.186.155] out: utils.yum_install(pip_source_rpm_url, service_name='python') [10.126.186.155] out: File "/tmp/cloudify-ctx/scripts/utils.py", line 563, in yum_install [10.126.186.155] out: sudo(['yum', 'install', '-y', source_path]) [10.126.186.155] out: File "/tmp/cloudify-ctx/scripts/utils.py", line 117, in sudo [10.126.186.155] out: ignore_failures=ignore_failures) [10.126.186.155] out: File "/tmp/cloudify-ctx/scripts/utils.py", line 108, in run [10.126.186.155] out: raise RuntimeError(msg) [10.126.186.155] out: RuntimeError: Failed running command: sudo yum install -y /opt/cloudify/python/resources/python-pip-7.1.0-1.el7.noarch.rpm (Error: Package: python-pip-7.1.0-1.el7.noarch (/python-pip-7.1.0-1.el7.noarch) [10.126.186.155] out: Requires: python-setuptools [10.126.186.155] out: ). [10.126.186.155] out:

The reason we don't normally encounter this error, is that most customers (as well as our internal tests) use images that include cloud-init, which has python-setuptools as a prerequisite. This particular customer doesn't have cloud-init because they're bootstrapping on bare metal.

Status

Assignee

Unassigned

Reporter

Isaac Shabtay

Severity

None

Bug Type

None

Target Version

None

Severity

None

Fix versions

Affects versions

4.0.0