Skip to content

RHEL images can't authenticate with Yum repos #219

@tomstockton

Description

@tomstockton

I want to use Aminator to create RHEL based AMIs. Aminating the image works as expected and I can boot the image, however when I attempt to use Yum I get errors such as:

https://rhui2-cds02.eu-west-1.aws.ce.redhat.com/pulp/repos//rhui-client-config/rhel/server/6/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 Authorization Required"

I've researched this issue and it is fairly common on the AWS forums. The outcome seems to be that creating AMIs from Snapshots do not result in the AMI having the appropriate 'billingProducts' set. https://forums.aws.amazon.com/thread.jspa?messageID=440277&#440277

I can confirm that this is the case when I query the metadata on my aminated image.

# curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | grep billingProducts
  "billingProducts" : null,

Vs the same query on the base image that aminator used.

# curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | grep billingProducts
  "billingProducts" : [ "bp-6fa54006" ],

Is anybody aminating RHEL images? Is there a workaround that I'm missing?

Thanks

Tom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions