Installation fails because get-resources.sh does not honor the no_proxy settings in Red Hat OpenShift Container Platform 4.6/4.7 with Installer Provisioned Infrastructure

Solution Verified - Updated -

Issue

Installation fails because get-resources.sh does not honor the no_proxy settings in Red Hat OpenShift Container Platform 4.6/4.7 with Installer Provisioned Infrastructure

When looking at the logs of the metal3-(...) container with oc logs -l baremetal.openshift.io/cluster-baremetal-operator=metal3-state --all-containers, one can see:

61cd444c-ecdd-458a-b355-9415d93e0dc5_a9a7c74b-cd65-4d95-910c-ee1e9826a0a1_2021-05-21-13-08-55.tar.gz: May 21 09:06:40 worker-3 ironic-python-agent[2659]: 2021-05-21 09:06:40.203 2659 INFO ironic_python_agent.extensions.standby [-] Image /tmp/rhcos-47.83.202103251640-0-compressed.x86_64.qcow2 written to device /dev/sda in 1.641312599182129 seconds

But then right after that:

61cd444c-ecdd-458a-b355-9415d93e0dc5_a9a7c74b-cd65-4d95-910c-ee1e9826a0a1_2021-05-21-13-08-55.tar.gz: May 21 09:06:40 worker-3 ironic-python-agent[2659]: 2021-05-21 09:06:40.243 2659 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): blkid -p -o value -s PTTYPE /dev/sda execute /usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py:377
61cd444c-ecdd-458a-b355-9415d93e0dc5_a9a7c74b-cd65-4d95-910c-ee1e9826a0a1_2021-05-21-13-08-55.tar.gz: May 21 09:06:40 worker-3 ironic-python-agent[2659]: 2021-05-21 09:06:40.292 2659 DEBUG oslo_concurrency.processutils [-] CMD "blkid -p -o value -s PTTYPE /dev/sda" returned: 2 in 0.049s execute /usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py:416
61cd444c-ecdd-458a-b355-9415d93e0dc5_a9a7c74b-cd65-4d95-910c-ee1e9826a0a1_2021-05-21-13-08-55.tar.gz: May 21 09:06:40 worker-3 ironic-python-agent[2659]: 2021-05-21 09:06:40.333 2659 DEBUG oslo_concurrency.processutils [-] 'blkid -p -o value -s PTTYPE /dev/sda' failed. Not Retrying. execute /usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py:467
61cd444c-ecdd-458a-b355-9415d93e0dc5_a9a7c74b-cd65-4d95-910c-ee1e9826a0a1_2021-05-21-13-08-55.tar.gz: May 21 09:06:40 worker-3 ironic-python-agent[2659]: 2021-05-21 09:06:40.373 2659 ERROR ironic_lib.disk_utils [-] Failed to retrieve partition table type for disk /dev/sda for node None. Error: Unexpected error while running command.

Meaning that the image is copied to the worker's disk but that lsblk then does not report any partition table: Failed to retrieve partition table type for disk /dev/sda for node None. Error: Unexpected error while running command.

Environment

  • Red Hat OpenShift Container Platform 4.6/4.7
  • Proxy settings in install-config.yaml

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content