Giter VIP home page Giter VIP logo

ocp-install-demo's Introduction

Update: June 2018 moved to Gitlab.

OpenShift Container Platform Install Demo

If you are looking to develop containerized applications, the OpenShift Container Plaform (OCP) can help you by providing private PaaS (Cloud) environment you can install locally. It includes the same container development and run-time tools used to create and deploy containers for large data centers.

This project requires a docker engine, OpenShift command line tools and VirtualBox, but these checks happen when you run the installation and point you to what is missing. It also checks that you have the right versions running too.

Pro Tip: Pay close attention to console output, will guide you to dependencies you need if missing. These dependencies are listed here and the install provides pointers to downloads if missing:

1. VirtualBox for Windows and OSX
2. Hyper-V for Windows 10 (Windows Feature Install)
   a. Important - Use Hyper-V Manager to create "ocpNET" Virtual Switch. (name is used in script)
   b. Important - Set "ocpNET" to External Network physical/wireless interface (with DHCP) - Must have Internet.
3. KVM for Linux
4. Docker-machine tooling
5. Ansible-playbook tooling
5. OpenShift Client (oc) v3.9.14

Need more help? Follow a lab workshop on how to install OpenShift Container Platform step-by-step.

Install on your machine

  1. Download and unzip.

  2. Run 'init.sh', 'init.bat' or 'init-win10.bat' file, then sit back. (Note: 'init.bat' and 'init-win10.bat' must be run with Administrative privileges.)

  3. Follow displayed instructions to log in to your brand new OpenShift Container Platform!

  4. Still want more help installing? Try these instructions (part of an online workshop) that explain the installation in detail.

Notes

Installation reserves default of 6GB memory on your machine for OCP, see comments at top of init scripts to adjust variable used to limit memory usage based on your needs.


Log in to the OCP console with:

Developer user:  openshift-dev
Developer pass:  devel

Admin user: admin
Admin pass: admin

Persisitence is enabled, so to shutdown and restart the openshift cluster with your projects in place DO NOT run 'docker-machine rm -f openshift' or use init.sh / init.bat, instead:

# shutdown using:
#
$ oc cluster down --docker-machine=openshift
$ docker-machine stop openshift

# restart use the existing data and configuration:
#
$ docker-machine start openshift
$ oc cluster up --image=registry.access.redhat.com/openshift3/ose --host-data-dir=/var/lib/boot2docker/ocp-data  \
     --docker-machine=openshift --host-config-dir=/var/lib/boot2docker/ocp-config --use-existing-config=true     \
     --host-pv-dir=/var/lib/boot2docker/ocp-pv

You can find these commands for unix based machines in the directory support/{ocp-stop.sh|ocp-restart.sh}.


Network errors? If you recieve the following error, on Linux:

Error: did not detect an --insecure-registry argument on the Docker daemon

Then ensure that the Docker daemon is running with the following argument by:

# Add the following to /etc/sysconfig/docker file and
# restart the docker service:
#
INSECURE_REGISTRY='--insecure-registry 172.30.0.0/16'

Or this network error on osX:

Unable to connect to the server: net/http: TLS handshake timeout

Then add the this IP to the Docker Deamon insecure registry list:

172.30.0.0/16


This project has an install script that is setup to allow you to re-run it without worrying about previous installations. If you re-run it, it removes old 'openshift' machines and reinstalls for you.


Supporting Articles

Released versions

See the tagged releases for the following versions of the product:

  • v2.5 - OpenShift Container Platform v3.9 based on OpenShift command line tools v3.9.14, updated image streams and templates to v3.10 feeds.

  • v2.4 - OpenShift Container Platform v3.9 based on OpenShift command line tools v3.9.14.

  • v2.3 - OpenShift Container Platform v3.7 based on OpenShift command line tools v3.7.9 and added process server templates.

  • v2.2 - OpenShift Container Platform v3.7 based on OpenShift command line tools v3.7.9 with Docker dependency removed.

  • v2.1 - OpenShift Container Platform v3.7 based on OpenShift command line tools v3.7.9.

  • v2.0 - OpenShift Container Platform v3.6 based on OpenShift command line tools v3.6.173 with Hyper-V Windows installation.

  • v1.9 - OpenShift Container Platform v3.6 based on OpenShift command line tools v3.6.173 with tech preview service catalog enabled.

  • v1.8 - OpenShift Container Platform v3.6 based on OpenShift command line tools v3.6.173 with persistence enabled for restarts.

  • v1.7 - OpenShift Container Platform v3.5 based on OpenShift command line tools v3.5.5.5 with persistence enabled for restarts.

  • v1.6 - OpenShift Container Platform v3.5 based on OpenShift command line tools v3.5.5.5.

  • v1.5 - OpenShift Container Platform v3.4 based on OpenShift command line tools v3.4.1.2-fixed.

  • v1.4 - OpenShift Container Platform v3.4 based on OpenShift command line tools v3.4.1.2, added more JBoss product templates.

  • v1.3 - OpenShift Container Platform v3.4 based on OpenShift command line tools v3.4.1.2, added Windows installer option.

  • v1.2 - OpenShift Container Platform v3.4 based on OpenShift command line tools v3.4.1.2, improved docker validation for Linux.

  • v1.1 - OpenShift Container Platform v3.4 based on OpenShift command line tools v3.4.1.2.

  • v1.0 - OpenShift Container Platform v3.3 based on OpenShift command line tools v3.3.1.3.

OCP Video

OCP Login

OCP Catalog

Cloud Suite

ocp-install-demo's People

Contributors

eschabell avatar sabre1041 avatar wohshon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ocp-install-demo's Issues

Docker Machine creation cert error

When I run the ./init.sh script I get this error

Running pre-create checks...
(openshift) Boot2Docker URL was explicitly set to "https://github.com/boot2docker/boot2docker/releases/download/v1.13.1/boot2docker.iso" at create time, so Docker Machine cannot upgrade this machine to the latest version.
Creating machine...
(openshift) Boot2Docker URL was explicitly set to "https://github.com/boot2docker/boot2docker/releases/download/v1.13.1/boot2docker.iso" at create time, so Docker Machine cannot upgrade this machine to the latest version.
(openshift) Downloading /Users/bfalor/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.13.1/boot2docker.iso...
Error creating machine: Error in driver during machine creation: Get https://github.com/boot2docker/boot2docker/releases/download/v1.13.1/boot2docker.iso: x509: certificate signed by unknown authority

cannot set up guest memory 'pc.ram': Cannot allocate memory'

(openshift) Creating SSH key...
(openshift) Failed to start: virError(Code=1, Domain=10, Message='internal error: process exited while connecting to monitor: 2017-09-29T12:54:42.748222Z qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory')
Error creating machine: Error in driver during machine creation: virError(Code=1, Domain=10, Message='internal error: process exited while connecting to monitor: 2017-09-29T12:54:42.748222Z qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory')

Docker Machine missing on Fedora - manual installation required

Docker is installed... checking for valid version...

Verified the Docker deamon is running...

In order to successfully install ocp using this procedure on f25, you have to meet the following requirements:

  • Docker Community Edition

sudo dnf -y install dnf-plugins-core

sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo

sudo dnf makecache fast

sudo dnf -y install docker-ce

Start Docker:

sudo systemctl start docker or sudo service docker start

Testing

sudo docker run hello-world

https://store.docker.com/editions/community/docker-ce-server-fedora

  • Docker Machine manual installation

curl -L https://github.com/docker/machine/releases/download/v0.10.0/docker-machine-`uname -s-uname -m` >/tmp/docker-machine &&
chmod +x /tmp/docker-machine &&
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine

https://docs.docker.com/machine/install-machine/

If you do not install docker-machine manually, the following error message will be displayed:

OpenShift command line tools installed... checking for valid version...

Version of installed OpenShift command line tools correct... v3.5.5

Setting up OpenShift docker machine...

./init.sh: line 126: docker-machine: command not found

Error occurred during openshift docker machine creation...

Cleaning out existing 'openshift' machine...

./init.sh: line 134: docker-machine: command not found
Setting up new OpenShift docker machine...

./init.sh: line 138: docker-machine: command not found

Problem with docker machine creation that I can't resolve, please raise an issue and add error output:

https://github.com/redhatdemocentral/ocp-install-demo/issues/new

Install OpenShift on win10 issue

The error is below:
Running pre-create checks...
Error with pre-create check: "Hyper-v commands have to be run as an Administrator"

Error occurred during openshift docker machine creation...

Cleaning out existing 'openshift' machine...

About to remove openshift
WARNING: This action will delete both local reference and remote instance.
Error removing host "openshift": Docker machine "openshift" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one.
Can't remove "openshift"
Setting up new OpenShift docker machine...
Running pre-create checks...
Error with pre-create check: "Hyper-v commands have to be run as an Administrator"

Problem with docker machine creation that I can't resolve, validate network configuration and/or please raise an issue and add error output:

https://github.com/redhatdemocentral/ocp-install-demo/issues/new

How could I fix it? Thanks

3.7still asks for boot2docker.iso.

Error occurred during openshift docker machine creation...

Cleaning out existing 'openshift' machine...

About to remove openshift
WARNING: This action will delete both local reference and remote instance.
(openshift) Failed to fetch machine
Error removing host "openshift": unexpected EOF
Successfully removed openshift
Setting up OpenShift docker machine using kvm...

Running pre-create checks...
Creating machine...
(openshift) Downloading /home/bas/.docker/machine/cache/boot2docker.iso from file:///home/bas/.docker/machine/cache/boot2docker.iso...
Error creating machine: Error in driver during machine creation: open /home/bas/.docker/machine/cache/boot2docker.iso: no such file or directory

Problem with docker machine creation that I can't resolve, please raise an issue and add error output:

https://github.com/redhatdemocentral/ocp-install-demo/issues/new

[bas@DESKTOP-CFKC4SB ocp-install-demo-master]$

error installing ocp

Tried installing ocp in rhel7 with docker version 1.13 and oc version 3.4.1.2-1.
Getting the below error when i run the ./init.sh file.
**-- Checking Docker daemon configuration ... FAIL
Error: did not detect an --insecure-registry argument on the Docker daemon
Solution:

 Ensure that the Docker daemon is running with the following argument:
    --insecure-registry 172.30.0.0/16

Problem with installation that I can't resolve, please raise an issue and add error output:

https://github.com/redhatdemocentral/ocp-install-demo/issues/new**

enable metrics

adding --metrics option to "oc custer up" in init.sh to enable metrics is not working. any recommendations how to enable metrics for this demo ?

init.sh issue with installing oc

I'm trying to install OCP on Mac. Running the init.sh, I got the following error:

./init.sh: line 72: oc: command not found
./init.sh: line 76: [: ==: unary operator expected
Version of installed OpenShift command line tools is ., must be v3.3 or higher...

I downloaded the oc cli from:
Download for Mac here: https://s3.amazonaws.com/oso-preview-docker-registry/client-tools/3.3/oc-3.3.1.3-1-macosx.tar.gz

Not sure if oc is installing correctly (log enclosed). None of the oc cli commands work and init.sh gives the same error as before.
oc-install-log.txt

Unable to connect to the server: net/http: TLS handshake timeout

Hello,

I'm running this on mac with docker 17.09, oc 3.6.173 and have 172.30.0.0/16 added to the insecure-registry list on docker.

I get the following error when JBoss image is being created

Unable to connect to the server: net/http: TLS handshake timeout

What am I missing?

Business Central war fails to deploy

On container EAP start, right at end:

09:55:37,971 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found business-central.war in deployment directory. To trigger deployment create a file called business-central.war.dodeploy

Since when do we need a 'dodeploy'?

getting dial tcp: missing address error

I am trying to setup OCP in RHEL 7.4 and getting below error. Could you please help me to resole this one?

You are running on Linux.
This script assumes you are going to use KVM on Linux.
You'll need to install docker-machine and docker-machine-driver-kvm in your $PATH manually.
Download them from https://github.com/docker/machine/releases and https://github.com/dhiltgen/docker-machine-kvm/releases, respectively.
Docker-machine tooling installed...

OpenShift command line tools installed... checking for valid version...

Version of installed OpenShift command line tools correct... v3.7.9

Setting up OpenShift docker machine using kvm...

dial tcp: missing address

Error occurred during openshift docker machine creation...

Cleaning out existing 'openshift' machine...

About to remove openshift
WARNING: This action will delete both local reference and remote instance.
Error removing host "openshift": Docker machine "openshift" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one.
Can't remove "openshift"
Setting up OpenShift docker machine using kvm...

dial tcp: missing address

Problem with docker machine creation that I can't resolve, please raise an issue and add error output:

https://github.com/redhatdemocentral/ocp-install-demo/issues/new

certificate signed by unknown authority

This has worked previosly

Docker 1.12.3 (13776) Stable

OC client:
oc version
oc v3.3.1.3
kubernetes v1.3.0+52492b4
features: Basic-Auth
error: server took too long to respond with version information.

// output from init.sh
Trying again to install OSE with cluster up...

-- Checking OpenShift client ... OK
-- Create Docker machine ...
Creating docker-machine openshift
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for registry.access.redhat.com/openshift3/ose:v3.3.1.3 image ...
Pulling image registry.access.redhat.com/openshift3/ose:v3.3.1.3
FAIL
Error: error pulling Docker image registry.access.redhat.com/openshift3/ose:v3.3.1.3
Caused By:
Error: API error (500): {"message":"Get https://registry.access.redhat.com/v1/_ping: x509: certificate signed by unknown authority"}

Problem with installation that I can't resolve, please raise an issue and add error output:

https://github.com/redhatdemocentral/ocp-install-demo/issues/new

Install failure

I'm going through the installation described at http://www.schabell.org/2017/02/cloud-happiness-openshift-container-platform-install-updated.html, and it is reporting a failure:

##############################################################

Setting up your very own

### #### ##### # # #### # # ##### ##### #####

# # # # # ## # # # # # # #

# # #### ### # # # ### ##### # #### #

# # # # # ## # # # # # #

### # ##### # # #### # # ##### # #

#### ### # # ##### ### ##### # # ##### #####

# # # ## # # # # # ## # # # #

# # # # # # # ##### # # # # ### #####

# # # # ## # # # # # ## # # #

#### ### # # # # # ##### # # ##### # #

#### # ### ##### ##### ### ##### # #

# # # # # # # # # # # ## ##

#### # ##### # #### # # ##### # # #

# # # # # # # # # # # #

# ##### # # # # ### # # # #

https://github.com/redhatdemocentral/ocp-install-demo

##############################################################

Docker is installed... checking for valid version...

Cannot connect to the Docker daemon. Is the docker daemon running on this host?
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
Valid version of docker engine found... 1.10

OpenShift command line tools installed... checking for valid version...

error: server took too long to respond with version information.
Version of installed OpenShift command line tools correct... v3.4.1.2

Installing OCP with cluster up...

Using Linux version of cluster up... installing OCP version: v3.4

-- Checking OpenShift client ... OK
-- Checking Docker client ... FAIL
Error: cannot communicate with Docker
Solution:

 Ensure that Docker is installed and accessible in your environment.
 Use your package manager or follow instructions at:

    https://docs.docker.com/linux/

Caused By:
Error: Get http://unix.sock/_ping: dial unix /var/run/docker.sock: connect: permission denied

Error occurred during oc cluster up command!

Cleaning out existing openshift machine.

./init.sh: line 116: docker-machine: command not found

Trying again to install OSE with cluster up...

Using Linux version of cluster up... installing second try OCP version: v3.4

-- Checking OpenShift client ... OK
-- Checking Docker client ... FAIL
Error: cannot communicate with Docker
Solution:

 Ensure that Docker is installed and accessible in your environment.
 Use your package manager or follow instructions at:

    https://docs.docker.com/linux/

Caused By:
Error: Get http://unix.sock/_ping: dial unix /var/run/docker.sock: connect: permission denied

Problem with installation that I can't resolve, please raise an issue and add error output:

https://github.com/redhatdemocentral/ocp-install-demo/issues/new
[sstark@sstark ocp-install-demo-master]$ cat /etc/redhat-release
Red Hat Enterprise Linux Workstation release 7.2 (Maipo)
[sstark@sstark ocp-install-demo-master]$ uname -a
Linux sstark.remote.csb 3.10.0-327.18.2.el7.x86_64 #1 SMP Fri Apr 8 05:09:53 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux

Ran into some problems. Networking seems to not work.

Environment: RHEL 7.3, docker installed from RHEL repo:

rpm -qa | grep docker
docker-rhel-push-plugin-1.10.3-55.el7.x86_64
docker-selinux-1.10.3-55.el7.x86_64
docker-1.10.3-55.el7.x86_64
docker-common-1.10.3-55.el7.x86_64

First problem: no docker-machine in this. So I downloaded/installed docker-machine.

The init.sh script somehow made it but I spot some messages that look wrong:

WARNING: Binding DNS on port 8053 instead of 53, which may be not be resolvable from all clients.
...
Host does not exist: "openshift"

I can login to OpenShift console but whatever template I try fails with:

error: couldn't get deployment database-1: Get https://172.30.0.1:443/api/v1/namespaces/localtest/replicationcontrollers/database-1: dial tcp 172.30.0.1:443: getsockopt: no route to host 

Not sure how to go from here ...

i'm a newbie sorry :

these links are dead
404
https://raw.githubusercontent.com/openshift/openshift-ansible/master/roles/openshift_examples/files/examples/v3.10/xpaas-streams/decisionserver63-image-stream.json

ranting rights to service catalog access...

cluster role "system:openshift:templateservicebroker-client" added: ["system:unauthenticated" "system:authenticated"]

Updating JBoss image streams...
error: unable to read URL "https://raw.githubusercontent.com/openshift/openshift-ansible/master/roles/openshift_examples/files/examples/v3.10/xpaas-streams/decisionserver63-image-stream.json", server reported 404 Not Found, status code=404

Problem with accessing JBoss BRMS 63 stream for OCP...

Trying again...

installation failed

ou are running on Linux.
This script assumes you are going to use KVM on Linux.
You'll need to install docker-machine and docker-machine-driver-kvm in your $PATH manually.
Download them from https://github.com/docker/machine/releases and https://github.com/dhiltgen/docker-machine-kvm/releases, respectively.
Docker-machine tooling installed...

OpenShift command line tools installed... checking for valid version...

Version of installed OpenShift command line tools correct... v3.9.14

Setting up OpenShift docker machine using kvm from cache...

dial tcp: missing address

Error occurred during openshift docker machine creation...

Cleaning out existing 'openshift' machine...

About to remove openshift
WARNING: This action will delete both local reference and remote instance.
Error removing host "openshift": Docker machine "openshift" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one.
Can't remove "openshift"
Setting up OpenShift docker machine using kvm from url...

dial tcp: missing address

Problem with docker machine creation that I can't resolve, please raise an issue and add error output:

https://github.com/redhatdemocentral/ocp-install-demo/issues/new

Cannot install on Docker 17.03 on Mac

Installer requires docker 1.3
I have on mac official docker 17.03

Terminal says:
Docker engine version 17.03 found... need 1.13, please install: https://drive.google.com/open?id=0B9WSViV5BZ4aVXV5U3F4LVVmWVk

admin does not work as admin

in your init.sh a simple command is missing:
oc adm policy add-cluster-role-to-user cluster-admin admin
Kind regards
Robert

openshift environment is getting connected after restart with docker-machine start openshift

Tried to restart the openshift environment to rework on the same project.

$ docker-machine stop openshift ---> working

MacBook-Pro:ocp-install-demo gjayaram$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default - virtualbox Stopped Unknown
openshift - virtualbox Stopped Unknown

MacBook-Pro:ocp-install-demo gjayaram$ docker-machine start openshift
Starting "openshift"...
(openshift) Check network to re-create if needed...
(openshift) Waiting for an IP...
Machine "openshift" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run the docker-machine env command.

MacBook-Pro:ocp-install-demo gjayaram$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default - virtualbox Stopped Unknown
openshift - virtualbox Running tcp://192.168.99.100:2376 v1.13.1

MacBook-Pro:ocp-install-demo gjayaram$ oc login
error: dial tcp 192.168.99.100:8443: getsockopt: connection refused

MacBook-Pro:ocp-install-demo gjayaram$ docker-machine env
Error checking TLS connection: Host is not running

MacBook-Pro:ocp-install-demo gjayaram$ docker-machine env openshift
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="/Users/gjayaram/.docker/machine/machines/openshift"
export DOCKER_MACHINE_NAME="openshift"
#Run this command to configure your shell:
#eval $(docker-machine env openshift)

MacBook-Pro:ocp-install-demo gjayaram$ eval $(docker-machine env openshift)

MacBook-Pro:ocp-install-demo gjayaram$ oc login
error: dial tcp 192.168.99.100:8443: getsockopt: connection refused

MacBook-Pro:ocp-install-demo gjayaram$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default - virtualbox Stopped Unknown
openshift * virtualbox Running tcp://192.168.99.100:2376 v1.13.1

MacBook-Pro:ocp-install-demo gjayaram$ oc login
error: dial tcp 192.168.99.100:8443: getsockopt: connection refused

Reinstallation error.

Remove ocp-install-demo and install again. Unfortunately I got the follwing error while reinstalling:

(openshift) Creating VHD
Error creating machine: Error in driver during machine creation: exit status 1

Error occurred during openshift docker machine creation...

Cleaning out existing 'openshift' machine...

About to remove openshift
WARNING: This action will delete both local reference and remote instance.
Can't remove "openshift"
Setting up new OpenShift docker machine...
Host already exists: "openshift"

Cannot Download OC command line tool v3.6.173 needed for this demo.

Trying to get this working --> https://github.com/redhatdemocentral/ocp-install-demo

When I run the init.bat file I get the error : Version of installed OpenShift command line tools is v3.6.0-rc, must be v3.6.173... and it asks me to Download the oc.exe client for Windows from here: https://access.redhat.com/downloads/content/290

However that link requires a paid subscription (Please correct me if wrong). Is the free version of 3.6.173 not available yet ?

Thanks!

./init.sh not detecting my oc cli tools

Get CLI tools here.

````$ tar -xvf oc-3.3.1.3-1-macosx.tar.gz

Even though running `oc` returns the standard help page, running `./init.sh` consistently returns:

/init.sh:

 line 72: oc: command not found
./init.sh: line 76: [: ==: unary operator expected
Version of installed OpenShift command line tools is ., must be v3.3 or higher...

Download for Linux here: https://s3.amazonaws.com/oso-preview-docker-registry/client-tools/3.3/oc-3.3.0.35-1-linux.tar.gz
Download for Mac here: https://s3.amazonaws.com/oso-preview-docker-registry/client-tools/3.3/oc-3.3.1.3-1-macosx.tar.gz

volpines-MacBook-Pro:ocp-install-demo volpine$ 

Support Xhyve for OSX

Add this VM Driver so that Docker engine no long needed and Virtualbox is an option for osX users.

problem with docker machine creation

got the following error
docker version: 17.09.0-ce
OC version: 3.6.173
Virtual box version: 5.2.0
Centos 7
got the following error
docker version: 17.09.0-ce
OC version: 3.6.173
Virtual box version: 5.2.0
Centos 7

OpenShift command line tools installed... checking for valid version...
Version of installed OpenShift command line tools correct... v3.6.173
Setting up OpenShift docker machine...
./init.sh: line 161: docker-machine: command not found
Error occurred during openshift docker machine creation...
Cleaning out existing 'openshift' machine...
./init.sh: line 169: docker-machine: command not found
Setting up new OpenShift docker machine...
./init.sh: line 173: docker-machine: command not found
Problem with docker machine creation that I can't resolve, please raise an issue and add error output:

Required active subscription to download OpenShift CLI

Hi, and thanks for putting this together.

In your lightning talk you mention only needing a laptop and connection, and not having to login to RedHat Developers to be able to get the ImageStreams, but I am still required to have an active subscription to download the OpenShift CLI.

Is this intentional? Is the CLI outside the scope? Because IMHO it kind of goes contrary to the purpose of this repo to simplify things.

In my case, my trial license expired and I can't get a new one until November, so does that mean I am locked out from being able to try this? And does this mean then that each developer would need to have an active login to be able to download the CLI?

If I try to use the latest Origin CLI tools I get an error:

image

Docker Registry error

Error: did not detect an --insecure-registry argument on the Docker daemon
Solution:

 Ensure that the Docker daemon is running with the following argument:
 	--insecure-registry 172.30.0.0/16

The client is RHEL 7.3 with a clean docker install.

dial tcp 209.132.182.63:443: i/o timeout on running init.sh

Phils-MBP:ocp-install-demo-master pgriffit$ ./init.sh

##############################################################

Setting up your very own

### #### ##### # # #### # # ##### ##### #####

# # # # # ## # # # # # # #

# # #### ### # # # ### ##### # #### #

# # # # # ## # # # # # #

### # ##### # # #### # # ##### # #

#### ### # # ##### ### ##### # # ##### #####

# # # ## # # # # # ## # # # #

# # # # # # # ##### # # # # ### #####

# # # # ## # # # # # ## # # #

#### ### # # # # # ##### # # ##### # #

#### # ### ##### ##### ### ##### # #

# # # # # # # # # # # ## ##

#### # ##### # #### # # ##### # # #

# # # # # # # # # # # #

# ##### # # # # ### # # # #

https://github.com/redhatdemocentral/ocp-install-demo

##############################################################

VirtualBox is installed...

Docker is installed... checking for valid version...

Valid version of docker engine found... 1.12

OpenShift command line tools installed... checking for valid version...

error: server took too long to respond with version information.
Version of installed OpenShift command line tools correct... v3.3.1.3

Installing OCP with cluster up...

Using osX version of cluster up... oc version: v3.3.1.3

-- Checking OpenShift client ... OK
-- Create Docker machine ...
Creating docker-machine openshift
FAIL
Error: Docker machine exists

Error occurred during oc cluster up command!

Cleaning out existing openshift machine.

About to remove openshift
Successfully removed openshift

Trying again to install OSE with cluster up...

Using osX version of cluster up... oc version: v3.3.1.3

-- Checking OpenShift client ... OK
-- Create Docker machine ...
Creating docker-machine openshift
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for registry.access.redhat.com/openshift3/ose:v3.3.1.3 image ...
Pulling image registry.access.redhat.com/openshift3/ose:v3.3.1.3
FAIL
Error: error pulling Docker image registry.access.redhat.com/openshift3/ose:v3.3.1.3
Caused By:
Error: API error (500): {"message":"Get https://registry.access.redhat.com/v1/_ping: dial tcp 209.132.182.63:443: i/o timeout"}

error

Running pre-create checks...
Creating machine...
(openshift) Image cache directory does not exist, creating it at /root/.docker/machine/cache...
(openshift) Downloading /root/.docker/machine/cache/boot2docker.iso from file:///root/.docker/machine/cache/boot2docker.iso...
Error creating machine: Error in driver during machine creation: open /root/.docker/machine/cache/boot2docker.iso: no such file or directory

Error occurred during openshift docker machine creation...

Cleaning out existing 'openshift' machine...

About to remove openshift
WARNING: This action will delete both local reference and remote instance.
(openshift) Failed to fetch machine
Error removing host "openshift": unexpected EOF
Successfully removed openshift
Setting up OpenShift docker machine using kvm from url...

Running pre-create checks...
Creating machine...
(openshift) Downloading /root/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.13.1/boot2docker.iso...
(openshift) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
(openshift) Failed to create the VM: [Code-8] [Domain-44] invalid argument: could not find capabilities for domaintype=kvm
Error creating machine: Error in driver during machine creation: [Code-8] [Domain-44] invalid argument: could not find capabilities for domaintype=kvm

Error creating machine: Error in driver during machine creation: exit status 1

Hi, I am trying to install OCP on win10. I downloaded the zip & ran 'init-win10.bat' with Administrative privileges. This is the error trace, kindly help me out.

OpenShift command line tools installed... checking for valid version...
Docker-machine command line tools installed...
Version of installed OpenShift command line tools correct... v3.7.9
Setting up OpenShift docker machine...
Docker machine "openshift" already exists
Error occurred during openshift docker machine creation...
Cleaning out existing 'openshift' machine...

About to remove openshift
WARNING: This action will delete both local reference and remote instance.
Successfully removed openshift
Setting up new OpenShift docker machine...
Running pre-create checks...
Creating machine...
(openshift) Downloading C:\Users\User.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.13.1/boot2docker.iso...
(openshift) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
(openshift) Creating SSH key...
(openshift) Creating VM...
(openshift) Using switch "ocpNET"
(openshift) Creating VHD
(openshift) Starting VM...
Error creating machine: Error in driver during machine creation: exit status 1

Problem with docker machine creation that I can't resolve.

Linux OC version - ./init.sh: 76: [: v3: unexpected operator

Hello.

wget https://s3.amazonaws.com/oso-preview-docker-registry/client-tools/3.3/oc-3.3.0.35-1-linux.tar.gz

tar -xvf oc-3.3.0.35-1-linux.tar.gz

mv oc /usr/bin/oc

root@ubuntu-1gb-sfo1-01:~/ocp/ocp-install-demo-master# oc version oc v3.3.0.35 kubernetes v1.3.0+52492b4 features: Basic-Auth GSSAPI Kerberos SPNEGO

When I run ./init.sh

`##############################################################

Setting up your very own

### #### ##### # # #### # # ##### ##### #####

# # # # # ## # # # # # # #

# # #### ### # # # ### ##### # #### #

# # # # # ## # # # # # #

### # ##### # # #### # # ##### # #

#### ### # # ##### ### ##### # # ##### #####

# # # ## # # # # # ## # # # #

# # # # # # # ##### # # # # ### #####

# # # # ## # # # # # ## # # #

#### ### # # # # # ##### # # ##### # #

#### # ### ##### ##### ### ##### # #

# # # # # # # # # # # ## ##

#### # ##### # #### # # ##### # # #

# # # # # # # # # # # #

# ##### # # # # ### # # # #

https://github.com/redhatdemocentral/ocp-install-demo

##############################################################

./init.sh: 41: [: Linux: unexpected operator
Docker is installed... checking for valid version...

Valid version of docker engine found... 1.12

OpenShift command line tools installed... checking for valid version...

./init.sh: 76: [: v3: unexpected operator
Version of installed OpenShift command line tools is v3.3, must be v3.3 or higher...

Download for Linux here: https://s3.amazonaws.com/oso-preview-docker-registry/client-tools/3.3/oc-3.3.0.35-1-linux.tar.gz
Download for Mac here: https://s3.amazonaws.com/oso-preview-docker-registry/client-tools/3.3/oc-3.3.1.3-1-macosx.tar.gz
Could be this line in init.shOC_MAJOR_VER="v3"`

Service Catalog is not getting started, OCP failed

Not able to start the OCP server, service catalog failed...

Tried with both versions of OC client (3.6.173.0.5) and 3.6.173.0.21.

The below issue is coming with 3.6.173.0.5, if i use 3.6.173.0.21 then the system is got struck at pulling images from registry.

gjayaram$ oc version
oc v3.6.173.0.5
kubernetes v1.6.1+5115d708d7
features: Basic-Auth

Server https://192.168.99.100:8443
kubernetes v1.6.1+5115d708d7

gjayaram$ ./init.sh
##############################################################

Setting up your very own

......
......
......
Starting OpenShift using registry.access.redhat.com/openshift3/ose:v3.6 ...
Pulling image registry.access.redhat.com/openshift3/ose:v3.6
Pulled 1/4 layers, 25% complete
Pulled 1/4 layers, 25% complete
Pulled 1/4 layers, 25% complete
Pulled 1/4 layers, 25% complete
Pulled 1/4 layers, 25% complete
Pulled 1/4 layers, 25% complete
Pulled 1/4 layers, 25% complete
Pulled 2/4 layers, 50% complete
Pulled 2/4 layers, 50% complete
Pulled 3/4 layers, 75% complete
Pulled 3/4 layers, 75% complete
Pulled 3/4 layers, 75% complete
Pulled 4/4 layers, 100% complete
Extracting
Image pull complete
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for registry.access.redhat.com/openshift3/ose:v3.6 image ...
Pulling image registry.access.redhat.com/openshift3/ose:v3.6
Pulled 1/4 layers, 25% complete
Pulled 1/4 layers, 25% complete
Pulled 1/4 layers, 25% complete
Pulled 1/4 layers, 25% complete
Pulled 1/4 layers, 25% complete
Pulled 1/4 layers, 25% complete
Pulled 1/4 layers, 25% complete
Pulled 2/4 layers, 50% complete
Pulled 2/4 layers, 50% complete
Pulled 3/4 layers, 75% complete
Pulled 3/4 layers, 75% complete
Pulled 3/4 layers, 75% complete
Pulled 4/4 layers, 100% complete
Extracting
Image pull complete
-- Checking Docker daemon configuration ... OK
-- Checking for available ports ... OK
-- Checking type of volume mount ...
Using Docker shared volumes for OpenShift volumes
-- Creating host directories ... OK
-- Finding server IP ...
Using docker-machine IP 192.168.99.100 as the host IP
Using 192.168.99.100 as the server IP
-- Checking service catalog version requirements ... OK
-- Starting OpenShift container ...
Creating initial OpenShift configuration
Starting OpenShift using container 'origin'
FAIL
Error: could not start OpenShift container "origin"
Details:
No log available from "origin" container

Error restarting the cluster - cert issue

After installing the OCP cluster on Windows 10, if you restart the docker-machine.

It throws below error

NAME        ACTIVE   DRIVER   STATE     URL                       SWARM   DOCKER    ERRORS
openshift   -        hyperv   Running   tcp://192.168.0.17:2376           Unknown   Unable to query docker version: Get https://192.168.0.17:2376/v1.15/version: x509: certificate is valid for 192.168.0.16, not 192.168.0.17      

To fix the issue, i used

docker-machine regenerate-certs openshift
docker-machine env openshift
@FOR /f "tokens=*" %i IN ('docker-machine env openshift') DO @%i

Then the error goes off. But could not 'oc login', it throws

oc login 192.168.0.17:8443
error: dial tcp 192.168.0.17:8443: connectex: No connection could be made because the target machine actively refused it. - verify you have provided the correct host and port and that the server is currently running.

how to fix the issue? it seems whenever i restart my laptop totally cluster/docker-machine is in a corrupt status.

How to install once the cluster/docker-machine and use it without facing issue in laptop shutdown.

logging is admin

oc login -u admin:admin doesn't seem to be working as it assumes user to be admin:admin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.