June 21, 2016

Openshift 3: Tag v1.2.0-rc1-13-g2e62fab bug

Posted in Openshift at 10:36 am by alessiodini

In these days I’m building and configuring Openshift 3 on top of OpenStack Kilo.
After the installation ( my scenario has 1x master , 1x infra , 2x nodes ) I’m not able to create router and registry services.

The error messages is:

failed to "StartContainer" for "POD" with ErrImagePull: "Tag v1.2.0-rc1-13-g2e62fab not found in repository docker.io/openshift/origin-pod

This is due to tag -rc1-13-g2e62fab that comes from oc version:

[root@my-openshift-origin-master-0 centos]# oc version
oc v1.2.0-rc1-13-g2e62fab
kubernetes v1.2.0-36-g4a3f9c5

Don’t panic!! The issue comes from https://github.com/openshift/openshift-ansible project and after some analysis and ask questions to internet I founded how to solve this issue.

Following the steps:

1) Edit master-config.yaml and node-config.yaml on master node , changing the line:

format: openshift/origin-${component}:${version}
to
format: openshift/origin-${component}:v1.2.0

2) Edit node-config.yaml on each node repeating the step 1

3) On master node restart both components , in my case I run systemctl restart origin-master.service origin-node.service

4) Create the registry using the commands:
echo '{"kind":"ServiceAccount","apiVersion":"v1","metadata":{"name":"registry"}}' | oc create -f -
oadm registry --credentials=/etc/origin/master/openshift-registry.kubeconfig --images=docker.io/openshift/origin-docker-registry:v1.2.0 --service-account=registry

5) Create the router using the commands:
echo '{"kind":"ServiceAccount","apiVersion":"v1","metadata":{"name":"router"}}' | oc create -f -
oadm router --credentials=/etc/origin/master/openshift-router.kubeconfig --images=openshift/origin-haproxy-router:v1.2.0 --service-account=router

Now you have the basic objects for deploy and expose any container u need!! 😀

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: