OpenStack director Overcloud Image Build Using the RHN Portal

a17f5-6a00e551c39e1c8834015436149671970c-pi

Most of the documentation that I see on the subject of building your own Overcloud images use repos that are not available to most users. Today, I am going to document two additional scenarios. One, using a local Satellite server, and the other using the Red Hat (RHN) Portal.

RHEL Portal Registration

Here are the steps to use if you want your overcloud machines to register to the RHEL portal.

First export a bunch of ENV variables.

export NODE_DIST=rhel7
export DIB_LOCAL_IMAGE=rhel7-guest.qcow2
export USE_DELOREAN_TRUNK=0
export REG_METHOD=portal
export REG_USER=”RHN-USERID”
export REG_PASSWORD='<RHN-PASSWORD!’
# Find this with `sudo subscription-manager list –available`
export REG_POOL_ID=”[pool id]”
export REG_REPOS=”rhel-7-server-rpms \
rhel-7-server-extras-rpms \
rhel-ha-for-rhel-7-server-rpms \
rhel-7-server-optional-rpms \
rhel-7-server-openstack-7.0-rpms”

Now start your build. Should take about 30 minutes, so be patient.

#time openstack overcloud image build –all 2>&1 | tee openstack_image_build.log

 

RHEL Satellite Registration

When registering to a local satellite server, use the format below. Note that you must use an activation key, as using id and password authentication is not supported for security reasons.

export REG_METHOD=satellite
# REG_SAT_URL should be in the format of:
# http://<satellite-hostname
export REG_SAT_URL=”[satellite url]”
export REG_ORG=”[satellite org]”
# Activation key must enable these repos:
# rhel-7-server-rpms
# rhel-7-server-optional-rpms
# rhel-7-server-extras-rpms
# rhel-7-server-openstack-7.0-rpms
export REG_ACTIVATION_KEY=”[activation key]”

Now start your build. Remember to be patient.

time openstack overcloud image build –all 2>&1 | tee openstack_image_build.log

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s