Tutorial Part 5 — Installing Red Hat OpenShift 2 Environment using Click2Cloud Inc.’s Auto Script — Windows Node Deployment

A. Install Prerequisites

Once you have completed prerequisites software’s extraction process on windows node, you are ready to run the OpenShift_Windows_Installer.exe to install prerequisite software’s.

2. IN ORDER TO INSTALL WINNODE PREREQUISITES SOFTWARE’S, CLICK ON INSTALL PREREQUISITES IT WILL OPEN PREREQUISITES SETUP WIZARD AND SHOW THE LIST OF SOFTWARE’S TO INSTALL AND CLICK NEXT

  1. Microsoft Visual Studio 2013 shell

B. Install Windows Node

Once you have finished installing the prerequisites software’s on windows node, you are ready to run the Install Windows Node.

Mandatory PARAMETERS

WINNODE HOST NAME

Public hostname of the windows machine (FQDN). For e.g. — winnode.openshift.example.com

BROKER HOST NAME

Hostname of the OpenShift broker. For e.g. — broker.openshift.example.com

CLOUD DOMAIN

The applications domain name, where the applications will host. For e.g. — apps.example.com

MCOLLECTIVE PSK PLUGIN

Psk plugin used in Mcollective. The value for an Openshift Origin is ‘unset’.

Optional PARAMETERS

MCOLLECTIVE INFORMATION

You will get this Mcollective Information in client.cfg file from Linux Broker

MCOLLECTIVE USER

ActiveMQ Username. The default ActiveMQ username for an OpenShift installation is ‘mcollective’

MCOLLECTIVE PASSWORD

ActiveMQ Password. The default ActiveMQ password for an ActiveMQ installation is ‘marionette’

RUBY

If we check Ruby Checkbox, that allows the user to download and install Ruby.

CYGWIN

If we check Cygwin Checkbox, that allows the user to download and install Cygwin.

MCOLLECTIVE

If we check Mcollective Checkbox, that allows the user to download and install Mcollective.

CHECKS

If we check Checks Checkbox, that allows the user to checking prerequisites.

MS-SQL 2008

If this uncheck, then it installs the Windows Node without SQL Server 2008 cartridge support.

MS-SQL 2012

If this uncheck, then it installs the Windows Node without SQL Server 2012 cartridge support.

MS-SQL 2014

If this uncheck, then it installs the Windows Node without SQL Server 2014 cartridge support.

On Broker (check the connectivity)

Now go to broker and check the connectivity using the below command:

# oo-mco ping

Create District (On Broker) and add Windows Node

IMPORTANT:

DISTRICTS SHOULD BE CREATED BEFORE CREATING ANY GEARS ARE MADE ON YOUR OPENSHIFT CLOUD. AS LONG AS A NODE HAS A GEAR, IT CANNOT BE ADDED TO A DISTRICT. DO NOT ADD WINDOWS AND LINUX NODES TO THE SAME DISTRICT.

  • Create a District for windows node from the following command:

Importing .NET Cartridges (On Broker)

IMPORTANT:

RUN THE FOLLOWING COMMANDS TO IMPORT CARTRIDGES. ** IT WILL CLEANUP ALL CURRENTLY CONFIGURED CARTRIDGES AND IMPORT THEM ALL AGAIN**

  • oo-admin-broker-cache –console –clear
  • for i in `oo-admin-ctl-cartridge -c list|awk ‘{print $2}’`;do echo “$i”;done | oo-admin-ctl-cartridge -c deactivate
  • oo-admin-ctl-cartridge -c clean
  • oo-admin-broker-cache –console –clear
  • oo-admin-ctl-cartridge -c import-node –activate –force

Creating Windows Application

I. Create .NET Application from rhc tool

From a client machine, use rhc tool to connect to your OpenShift cloud.

II. Create .NET Application from Openshift Console

Open browser and enter the broker FQDN or IP address to login to broker console:

NOW SELECT THE .NET CARTRIDGE TO CREATE APPLICATION:

PROVIDE MEANINGFUL NAME TO YOUR APPLICATION AND CLICK TO CREATE APPLICATION:

So we have successfully configured broker, configured linux node and configured windows node, also created the application using windows cartridges.

TESTS

Checklist to verify deployment on Windows Node

Below are the line-items that you can manually verify to test the deployment.

  • Verify that the scheduled tasks required for OpenShift.Net functionality exist,
  • Verify that Broker, hostname and winnode resolved
  • Verify TCP connection with ActiveMQ Service
  • Check that both MS SQL Server 2008 and MS SQL Server 2012 are installed, their services are stopped and the startup mode is set to be disabled
  • Check that the firewall is enabled, that the SSHD port is opened and that all the existing prisons have a corresponding rule.
  • Check the prison users exist as local user account.
  • Check that local user accounts with the prison prefix have corresponding prison entries.
  • Check that the users found in cygwin/etc/passwd exist on the local system and also in the prison db

Part 1 — System Requirements

https://www.click2cloud.com/blogs-page.php?BlogID=160&BlogsCatID=8

Part 2 — Linux Broker Deployment

https://www.click2cloud.com/blogs-page.php?BlogID=161&BlogsCatID=8

Part 3 — Linux Node Deployment

https://www.click2cloud.com/blogs-page.php?BlogID=187&BlogsCatID=8

Part 4 — Windows Node Pre-requisite

https://www.click2cloud.com/blogs-page.php?BlogID=188&BlogsCatID=8

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store