Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
I am unable to install packages when creating instances from a heat template due to SSL and certificate errors.
Version-Release number of selected component (if applicable):
Whatever comes in http://download.eng.bos.redhat.com/brewroot/packages/rhel-guest-image/7.2/20160302.0/images/rhel-guest-image-7.2-20160302.0.x86_64.qcow2
How reproducible:
100%
Steps to Reproduce:
1. wget http://download.eng.bos.redhat.com/brewroot/packages/rhel-guest-image/7.2/20160302.0/images/rhel-guest-image-7.2-20160302.0.x86_64.qcow2
2.
Arrange for the following user_data to be passed to the openstack instance when it is created:
user_data_raw:
user_data:
#cloud-config
rh_subscription:
username: rhn-engineering-XXXX
password: 'secret'
auto-attach: True
packages:
- ntp
3. Watch the console
Actual results:
Out of the box I get:
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#77 - "Problem with the SSL CA cert (path? access rights?)"
Running this before first trying to install:
sed -i 's/insecure.*/insecure = 1/' /etc/rhsm/rhsm.conf
sed -i 's/sslverify.*/sslverify = 0/' /etc/yum.repos.d/redhat.repo
Produces this instead:
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#58 - "unable to load client key: -8178 (SEC_ERROR_BAD_KEY)"
Expected results:
Package is installed
Additional info:
Even running the subscription-manager manually from a script:
user_data_raw:
user_data:
#!/bin/sh -ex
subscription-manager register --username='rhn-engineering-XXXX' --password='mysecret'
subscription-manager attach --auto
yum install -y ntp
doesn't seem to help, even though it normally works from the
command line.
Perhaps it is something to do with the timing of the commands or the environment in which they are being executed.
(In reply to Huijuan Zhao from comment #5)
> Xiaoyi, could you please check if this issue is still occur with the latest
> el7 build? If not, I think we can close it. Thanks!
Test latest rhel7.8+cloud-init-18.5-6, no issue, ntp package is installed as expected. so bug is closed.
To bug reporter, please re-open if the latest version does not work for you.
Comment 9brandon sherrick
2024-05-10 04:00:04 UTC
Comment hidden (spam)
This comment was flagged a spam, view the edit history to see the original text if required.