June 14, 2016

Openshift 3 Origin Installation via heat templates

Posted in Openshift at 7:22 pm by alessiodini

Today I was finally able to deploy Openshift 3 Origin on top of Openstack!!!
I spent a couple of days fighting with Redhat heat templates from https://github.com/redhat-openstack/openshift-on-openstack

I deployed 1x master , 2x nodes and 1x infra host.

I got stucked few times , but the last one was very curious because I got an error from Ansible playbook , coming from main.yml file command. The TASK is the last one , called “Clean pods in DeadlineExceeded status”:

– hosts: masters[0]
sudo: yes
tasks:
– name: Clean pods in DeadlineExceeded status
shell: oc get pod | grep DeadlineExceeded | cut -f 1 -d ” ” | xargs -r oc delete pod

The command and the syntax are correct , but for some reason on the virtual machine the command was:

oc get pod | grep DeadlineExceeded | cut -f 1 -d \” \” | xargs -r oc delete pod

This command does not return 0 because the syntax is wrong , so the ansible resource from heat got failed repeatedly
I modified the code in cut -f 1 -d “” and after I was able to complete the whole deploy with success!!!

Following the architecture deployed from Openstack and the dashboard:
opemshift map

openshift dashboard

Advertisements

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

%d bloggers like this: