Tuesday, 18 November 2025

Improving SLA Accuracy by Aligning Work Order Reported Date with PM Seasonal Start Time | Maximo

To ensure SLAs calculate correctly from the intended seasonal start time, I added an Object Launch Point automation script on WORKORDER with:

Condition: pmnum is not null

Events: Add, Save, Before Save

The script takes the time from PM.TARGSTARTTIME and applies it to the date in REPORTDATE, ensuring the work order uses the correct seasonal seed date before any SLA is applied.


from java.util import Date, Calendar

targStartTime = mbo.getDate("PM.TARGSTARTTIME")

reportDate = mbo.getDate("REPORTDATE")

if reportDate is not None:

    calReport = Calendar.getInstance()

    calReport.setTime(reportDate)


    calTime = Calendar.getInstance()

    calTime.setTime(targStartTime)

    

    calReport.set(Calendar.HOUR_OF_DAY, calTime.get(Calendar.HOUR_OF_DAY))

    calReport.set(Calendar.MINUTE,     calTime.get(Calendar.MINUTE))

    calReport.set(Calendar.SECOND,     calTime.get(Calendar.SECOND))

    calReport.set(Calendar.MILLISECOND,0)


    mbo.setValue("REPORTDATE", calReport.getTime(), 11L)

Monday, 27 October 2025

Install OpenShift on VMware with Assisted Installer. Fully Automatic. | Linux

 Installing OpenShift on VMware with Assisted Installer (Fully Automated)

If you’re looking to quickly set up OpenShift in a data center environment using VMware, the Assisted Installer is one of the most convenient options. This guide walks you through the process of installing OpenShift 4.19 (or the latest version) with minimal manual steps — once configured, the installation is mostly automatic.

Prerequisites

  • VMware environment with enough resources (recommended: 16 vCPU, 32 GB RAM, NAT interface for internet access).
  • A Linux machine with SSH key generated.
  • Basic DNS or /etc/hosts configuration access.

Step 1: Access the Assisted Installer

  1. Download the ISO from the Assisted Installer portal.

    The ISO will be tied to your VM’s public key.

  2. In the portal, select:

Create Cluster (button)Data Center (tab)Create Cluster (button)

Step 2: Define Cluster Settings

  • Cluster name: mycluster
  • Base domain: mycluster.com
  • OpenShift version: 4.19 (or latest available) 
  • CPU architecture: x86_64
  • External platform integration: None
  • Control plane nodes: 1 (Single-node OpenShift) (atleast 3 nodes for HA cluster production grade)
  • Hosts’ network configuration: DHCP (default)

Click Next.

Step 3: Operators Page

Leave defaults as-is. Click Next.

Step 4: Host Discovery

  1. Select Provisioning TypeFull image file (Download a self-contained ISO).

  2. Add your SSH public key:

    • On your Linux machine, run:

      ssh-agent cat ~/.ssh/id*.pub
    • Copy and paste the output into the Assisted Installer.

  3. Skip Proxy and Certificates (set to No).

  4. Click Generate Discovery ISO → Download the ISO.

  5. Create a VM in VMware (16 vCPU, 32 GB RAM, NAT).

  6. Boot the VM with the ISO.

Now, sit back and wait. The installation will run automatically and usually takes about 1 hour.

Step 5: Configure DNS or Hosts File

Before accessing the console, configure your DNS (recommended) or update /etc/hosts on your PC.

DNS entries:

api.assistedcluster.rukndarna.com A 192.168.23.164 *.apps.assistedcluster.rukndarna.com A 192.168.23.164

/etc/hosts entries (alternative):

192.168.23.164 api.assistedcluster.rukndarna.com 192.168.23.164 oauth-openshift.apps.assistedcluster.rukndarna.com 192.168.23.164 console-openshift-console.apps.assistedcluster.rukndarna.com 192.168.23.164 grafana-openshift-monitoring.apps.assistedcluster.rukndarna.com 192.168.23.164 thanos-querier-openshift-monitoring.apps.assistedcluster.rukndarna.com 192.168.23.164 prometheus-k8s-openshift-monitoring.apps.assistedcluster.rukndarna.com 192.168.23.164 alertmanager-main-openshift-monitoring.apps.assistedcluster.rukndarna.com

Step 6: Access the Web Console

Once installation completes, the console URL will be available:

Web Console:
https://console-openshift-console.apps.assistedcluster.rukndarna.com/

Credentials:

Username: kubeadmin
Password: <password> (replace with your generated password)

You can also download the kubeconfig file for password-less access.


Step 7: Connect with oc CLI

From your personal machine, you can connect in two ways:

  • Using kubeconfig (no password):

    oc get nodes --kubeconfig=kubeconfigfile
  • Using username/password:

    oc login -u kubeadmin -p 0000000 https://api.assistedcluster.rukndarna.com:6443

Common Useful Commands

oc get nodes
oc get co oc get csr oc whoami --show-console oc get services grep server kubeconfig

Done :) we have a single-node OpenShift cluster running on VMware with Assisted Installer — fully automated and ready for exploration.

Wednesday, 20 August 2025

Installing OpenShift on bare metal using Full Control (UPI) – Quick Step-by-Step Guide | Maximo

This guide explains how to deploy OpenShift on Bare Metal (UPI) in a VMware environment using a Service Node, Bootstrap Node, Control Plane, and Worker Nodes.

In VMware with Service Node, Bootstrap, and Master/worker nodes.

Log in to Redhat Console: 

Goto - > Clusters -> Data Center -> Other Datacenter Options -> (Bare Mtail /x86_64)



References:

 1

GitHub - ryanhay/ocp4-metal-install: Install OpenShift 4 on Bare Metal - UPI

 2

How to install OpenShift 4 on Bare Metal - User Provisioned Infrastructure (UPI)

 3

How to Install OpenShift 4 on Bare Metal through User Provisioned Infrastructure (UPI)

 4

RedHat OpenShift Bootcamp | HA Cluster Deployment with UPI method part1

 



Requirements:

0

Service node/bastion

Any linux, I am using Rocky

2 interfaces:

Eth0 , eth1

Eth0 for external, using NAT, automatic IP.

 

 

Eth1 is internal hostonly. (192.168.22.1/24)

Services

Firewall/router, DNS, webserver, ingress

Openshift Installer

Installer script from console.redhat

Pull secret

From redhat console

Cli agent tools

Client tools

Redhat core os iso file to boot

Rhcos*.io

Redhat core os raw.gz file

Rhcos*.raw.gz

Ignition files

Run with raw.gz files on nodes with the coreos-installer command

 

NAT, IP forwarding

Enable using firewalld

From internal to external

1

Bootstrap node

based on the installer

nmtui:ip 22.200, gw 22.1, ns: 22.1, search domain: ocp.lan

2

Masters

based on the installer

nmtui:ip 22.201-203, gw 22.1, ns: 22.1, search domain: ocp.lan

3

Workers

based on the installer

nmtui :ip 22.211-213, gw 22.1, ns: 22.1, search domain: ocp.lan

4

VMware VMX files

In all VMs' vmx file, add this before booting

Disk.EnableUUID = "TRUE"

5

Vm storage

Check drive type

·         SCSI / SATA controllers → Devices show up as /dev/sdX.

·         NVMe controllers → Devices show up as /dev/nvmeXnY

lsblk