<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Haytham Ellamey on Medium]]></title>
        <description><![CDATA[Stories by Haytham Ellamey on Medium]]></description>
        <link>https://medium.com/@haythamadel?source=rss-bfd85a16be53------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Op-gaWhzSKkJwYTHBj3jZg.png</url>
            <title>Stories by Haytham Ellamey on Medium</title>
            <link>https://medium.com/@haythamadel?source=rss-bfd85a16be53------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:16:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@haythamadel/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Keeping Secrets in ACE: A Vault-Tastic Adventure!]]></title>
            <link>https://medium.com/@haythamadel/keeping-secrets-in-ace-a-vault-tastic-adventure-2f6a96808963?source=rss-bfd85a16be53------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f6a96808963</guid>
            <dc:creator><![CDATA[Haytham Ellamey]]></dc:creator>
            <pubDate>Wed, 21 May 2025 07:02:27 GMT</pubDate>
            <atom:updated>2025-05-21T07:03:23.223Z</atom:updated>
            <content:encoded><![CDATA[<h3>Keeping Secrets in ACE: A Vault Adventure!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*c4MZ3h4sxVbXpxQaiy1g2A.jpeg" /></figure><p>Welcome, fellow integration wizard! 🧙 Today, we’re diving into the magical world of <strong>IBM ACE vaults</strong>, where we lock away our precious credentials like a dragon guarding its treasure.</p><p>Whether it’s <strong>database passwords</strong>, <strong>keystore secrets</strong>, or <strong>truststore mysteries</strong>, we’ll learn how to stash them safely — and even test if our database connections aren’t ghosting us.</p><h3>Step 1: Creating Your Secret Lair (a.k.a. The Vault)</h3><p>First, we need a <strong>super-secret vault</strong> to hide our credentials. Think of it like Gringotts, but for passwords.</p><pre>mqsivault --ext-vault-dir /var/vault --create --ext-vault-key ace-val-key1</pre><ul><li>--ext-vault-dir: Where your vault lives (like /var/vault, because /home/super_secret was too obvious).</li><li>--ext-vault-key: The magical key name (ace-val-key1). Lose this, and your credentials are locked forever.</li></ul><h3>Step 2: Stuffing Secrets into the Vault</h3><p>Now, let’s <strong>bury some passwords</strong> before they escape!</p><h3>Database Credentials (ODBC Edition)</h3><pre>mqsicredentials --ext-vault-dir /var/wmbprd/vault --create --credential-type odbc --credential-name FIRSTDB --username haytham --password &#39;$Passw0rd&#39; --ext-vault-key ace-val-key1</pre><ul><li>--credential-name FIRSTDB: Your database’s secret identity.</li><li>--username haytham: Because &quot;admin&quot; was too mainstream.</li><li>--password &#39;$Passw0rd&#39;: The most <em>&quot;secure&quot;</em> password since &quot;password123&quot;.</li></ul><p><em>(Repeat for </em><em>SECONDDB if you’re into multi-database drama.)</em></p><h3>Keystore &amp; Truststore Passwords (The SSL Guardians)</h3><pre>mqsicredentials --ext-vault-dir /var/wmbprd/vault --create --credential-type truststore --credential-name bank-truststore --password &#39;pass0Prd&#39; --ext-vault-key ace-val-key1</pre><ul><li>--credential-type truststore: Because we <strong>trust</strong> this store (or else).</li><li>--password &#39;pass0Prd&#39;: Not to be confused with &#39;pass1Prd&#39;, its evil twin.</li></ul><p><em>(Same goes for </em><em>keystore—just swap the type and name!)</em></p><h3>Step 3: Testing if Your Database is Still Talking to You</h3><p>Sometimes, databases <strong>ghost</strong> us. To check if yours is still alive, we use mqsicvp (the &quot;Are You There?&quot; command).</p><h3>⚠️ Warning: Pod Changes Are Temporary!</h3><p><em>(Like a Snapchat message, but for credentials.)</em></p><ol><li><strong>Set the </strong>ODBCINI<strong> environment variable</strong> (so ACE knows where to look):</li></ol><pre>export ODBCINI=&quot;/path/to/odbc.ini&quot;</pre><p><strong>2. Load up ACE’s magic profile</strong> (because . ./mqsiprofile is the spell we need):</p><pre>cd /opt/ibm/ace-12/server/bin . ./mqsiprofile</pre><p><strong>3. Cast the connection test spell</strong>:</p><pre>mqsicvp - work-dir /home/aceuser/ace-server -n FIRSTDB - vault-key ace-val-key1</pre><ul><li>If it works? <strong>Success!</strong> Your database still loves you.</li><li>If it fails? <strong>“It’s not you, it’s me.”</strong> (Check credentials, network, or cry softly.)</li></ul><h3>Final Wisdom (a.k.a. Best Practices)</h3><ol><li><strong>Guard your vault key</strong> like it’s the <strong>One Ring</strong>.</li><li><strong>Rotate passwords</strong> occasionally — because hackers love lazy admins.</li><li><strong>Permanent changes?</strong> Put them in <strong>deployment scripts</strong> — pods have the memory of a goldfish.</li><li><strong>Audit logs are your friends</strong> — unless you enjoy surprises.</li></ol><h3>Conclusion: You’re Now a Credential Ninja!</h3><p>Congratulations! You’ve mastered the <strong>dark arts of ACE vaults</strong>, safely locking away secrets and testing connections like a pro.</p><p>Now go forth, and may your integrations be <strong>secure</strong>, your databases <strong>responsive</strong>, and your errors <strong>minimal</strong>.</p><p><em>(And if all else fails, there’s always </em><em>sudo rm -rf /vault… just kidding. </em><strong><em>DON’T DO THAT.</em></strong><em>)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f6a96808963" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API Connect to Kafka Offload: What to Ask Your Kafka Team (Part2)]]></title>
            <link>https://medium.com/@haythamadel/api-connect-to-kafka-offload-what-to-ask-your-kafka-team-part2-9758e8b2b491?source=rss-bfd85a16be53------2</link>
            <guid isPermaLink="false">https://medium.com/p/9758e8b2b491</guid>
            <dc:creator><![CDATA[Haytham Ellamey]]></dc:creator>
            <pubDate>Thu, 01 May 2025 07:48:52 GMT</pubDate>
            <atom:updated>2025-05-01T07:48:52.783Z</atom:updated>
            <content:encoded><![CDATA[<p>Following to my previous article <a href="https://medium.com/@haythamadel/sending-ibm-api-connect-data-to-kafka-v10-0-8-on-cp4i-openshift-8e4a8c64112f">https://medium.com/@haythamadel/sending-ibm-api-connect-data-to-kafka-v10-0-8-on-cp4i-openshift-8e4a8c64112f</a> of how to share API Connect data to kafka We need to go deep in our configuration steps .</p><p>So, you’re the API Connect admin, and you need to send analytics data to the Kafka cluster managed by another team. Awesome! But to set up the connection in API Connect, you need some specific details from them.</p><p>This guide breaks down the settings you’ll put in the API Connect Analytics CR (Custom Resource) YAML file and tells you exactly what info to ask your friendly Kafka team for.</p><h3>The YAML Settings We Need to Fill In</h3><p>Remember that Kafka plugin configuration we talked about? It goes inside your Analytics CR under spec.external.offload.output. Here&#39;s the example again, with notes on who provides what:</p><pre>        kafka {<br>          # <br>          # --- Ask Kafka Team --- <br>          # <br>          topic_id =&gt; &quot;api_events&quot; <br>          # What Kafka topic should API Connect send the data to?<br>          <br>          bootstrap_servers =&gt; &quot;kafka-broker-1:9093,kafka-broker-2:9093&quot; <br>          # What are the addresses (hostnames/IPs and ports) of the Kafka brokers we should connect to?<br>          <br>          # --- Usually You Decide (or default is fine) --- <br>          # <br>          codec =&gt; &quot;json&quot; <br>          # How should the data be formatted? JSON is standard.<br>          <br>          id =&gt; &quot;apic_kafka_offload_prod&quot; <br>          # A name for this specific offload setup (you choose this).<br>          <br>          # --- Ask Kafka Team (Crucial for Security!) --- <br>          # <br>          security_protocol =&gt; &quot;SSL&quot; <br>          # Are we using TLS/SSL for a secure connection? (Almost certainly YES for Confluent Kafka). Confirm this!<br>          <br>          ssl_truststore_location =&gt; &quot;/etc/velox/external_certs/offload/kafka_truststore.jks&quot; <br>          # This is the path *inside* the API Connect pod. You don&#39;t ask the Kafka team for this path, <br>          # BUT you DO need the actual truststore file from them (see below).<br>          <br>          ssl_truststore_password =&gt; &quot;${KAFKA_TRUSTSTORE_PASSWORD}&quot; <br>          # We&#39;ll get the password from a Kubernetes Secret. You need to know the password for the truststore file the Kafka team gives you.<br>          <br>          ssl_truststore_type =&gt; &quot;JKS&quot; <br>          # What type is the truststore file? (Usually JKS or PKCS12). Ask the Kafka team if unsure.<br><br>          # --- Optional Settings (Ask Kafka Team if needed) --- <br>          # <br>          # compression_type =&gt; &quot;gzip&quot; <br>          # Should we compress the data before sending? Ask if they recommend a type (gzip, snappy, lz4, zstd) or none.<br>          <br>          # acks =&gt; &quot;1&quot; <br>          # How many Kafka brokers need to confirm they got the data? Ask if they require a specific setting other than &quot;1&quot;.<br>          <br>          # ... Are there any other specific Kafka producer settings required by your cluster? <br>          # (e.g., related to authentication, specific timeouts, etc.)<br>        }</pre><h3>Questions Checklist for Your Kafka Team</h3><p>Here’s a clear list of what you need to ask them:</p><ol><li>Kafka Brokers: What is the list of bootstrap server addresses (hostnames or IPs) and ports for connecting to the Kafka cluster? (e.g., kafka-broker-1.example.com:9093,kafka-broker-2.example.com:9093)</li><li>Kafka Topic: What is the exact name of the Kafka topic where the API Connect analytics data should be sent? (e.g., apiconnect-analytics-prod)</li><li>Security Protocol: Are we using TLS/SSL for the connection? (Confirm it’s SSL)</li><li>Truststore File: Can you provide the truststore file needed to verify the Kafka brokers’ TLS certificates? This might be:</li></ol><ul><li><em>A CA (Certificate Authority) certificate file (e.g., </em><em>ca.pem, </em><em>ca.crt).</em></li><li><em>Or maybe a pre-made truststore file (e.g., </em><em>truststore.jks, </em><em>truststore.p12).</em></li></ul><p>5. Truststore Type: If they provide a truststore file, what type is it? (e.g., JKS, PKCS12)</p><p>6. Truststore Password: What is the password for the truststore file?</p><p>7. (Optional) Compression: Do you recommend or require a specific compression type (gzip, snappy, lz4, zstd, or none) for data sent to this topic?</p><p>8. (Optional) Acknowledgements (acks): Do you require a specific acks setting (e.g., all, 0, 1) for producers sending to this topic?</p><p>9. (Optional) Other Settings: Are there any other specific Kafka producer settings that API Connect needs to use when connecting to your cluster?</p><h3>What YOU Do With the Answers</h3><ul><li>Broker List &amp; Topic Name: Put these directly into the bootstrap_servers and topic_id fields in the YAML.</li><li>Security Protocol: Make sure security_protocol is set to SSL.</li><li>Truststore File:</li><li>If they give you a .pem or .crt file, you&#39;ll need to use keytool (from Java) to create a .jks (or .p12) truststore file yourself, using the password they provide (or one you create and remember).</li><li>If they give you a .jks or .p12 file directly, great!</li><li>Truststore Password &amp; Type: You’ll need the password to create the Kubernetes secret (kafka-truststore-password). You&#39;ll put the type (JKS or PKCS12) in the ssl_truststore_type field in the YAML.</li><li>Create Secrets: Use kubectl to create the kafka-truststore-secret (containing the .jks file) and the kafka-truststore-password secret (containing the password).</li><li>Configure CR: Put all the values in the YAML, mount the secrets as volumes/environment variables in the Analytics CR, and apply the changes.</li></ul><p>Getting these details upfront will make the setup much smoother. Good luck coordinating with your Kafka colleagues!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9758e8b2b491" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sending IBM API Connect Data to Kafka (v10.0.8 on CP4I/OpenShift) (Part1)]]></title>
            <link>https://medium.com/@haythamadel/sending-ibm-api-connect-data-to-kafka-v10-0-8-on-cp4i-openshift-8e4a8c64112f?source=rss-bfd85a16be53------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e4a8c64112f</guid>
            <dc:creator><![CDATA[Haytham Ellamey]]></dc:creator>
            <pubDate>Thu, 01 May 2025 07:32:35 GMT</pubDate>
            <atom:updated>2025-05-01T07:48:25.254Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*V7LN1Kx46LKji15V_L269w.gif" /></figure><h3>What’s This About? Making Data Sharing Easy!</h3><p>Do you have IBM API Connect (version 10.0.8, on CP4I/OpenShift)? Does it make lots of data about your APIs?</p><p>Do you want to send that data to Confluent Kafka? Maybe you want to make cool real-time charts, put the data in a big data storage (a data lake), or just use Kafka because it sounds neat? Good idea! Sending the data out (offloading) lets you do more with it.</p><p>This guide is like a map to help you set things up. We’ll show you:</p><ul><li>The big picture (how it works together)</li><li>How the data travels</li><li>How to keep it safe (security)</li><li>The exact steps (configuration) to make API Connect send data to Kafka safely using TLS (a secure connection).</li></ul><h3>How It Works Together: The Big Picture</h3><p>Think of it like setting up a delivery service for your data. We’re taking data from API Connect and sending it safely to its new home in Kafka.</p><h3>What We’re Doing: Pipes for Data</h3><p>API Connect already knows how to talk to Kafka. We just need to tell it where to send the data and how to connect safely.</p><p>We’ll set up a part inside API Connect’s analytics system called the “Kafka output plugin”. This part will push the data out. It’s like building a fast tube to send messages (but these messages are your data, in JSON format) straight to your Kafka system.</p><h3>How the Data Travels: Step-by-Step</h3><ol><li>API Gateway: Someone uses your API. The gateway writes down notes about what happened (like what was asked, the answer, how fast it was).</li><li>Analytics System (Ingestion): The gateway sends these notes to the Analytics “ingestion” pods (special containers running in OpenShift).</li><li>Logstash Pipeline: Inside these pods, a program called Logstash gets the data ready.</li><li>Kafka Output Plugin: This is the important part! It takes the ready data.</li><li>TLS Connection: Time for a secret connection! The plugin uses a special file (truststore) you give it to make sure it’s talking to the real Kafka. It sets up a secure TLS connection. No one else can read the data!</li><li>Confluent Kafka Cluster: Zap! The data arrives at Kafka and is put in the right place (the topic).</li><li>Kafka Consumers: Other programs (like charts, data storage systems, or maybe smart AI programs) can now read the data from Kafka.</li></ol><h3>Main Parts: Who’s Who</h3><ul><li>IBM API Connect (v10.0.8 on CP4I/OpenShift): Where the data comes from.</li><li>API Gateway: Writes down the notes.</li><li>Analytics System: Sends the data out.</li><li>Analytics CR (Custom Resource): A settings file in Kubernetes/OpenShift. We change this file (spec.external.offload) to turn on sending data.</li><li>Ingestion Pods: Where Logstash runs and gets data ready.</li><li>Logstash Kafka Output Plugin: The part that actually sends data to Kafka.</li><li>Confluent Kafka Cluster: Where the data goes.</li><li>Brokers: The computers that store the data in Kafka.</li><li>Topic: The specific place in Kafka for this data.</li><li>TLS Setup: Needs special files (certificates) to make the connection safe.</li><li>Kubernetes/OpenShift: Where everything runs.</li><li>Secrets: A safe place in Kubernetes to store passwords and secret files.</li><li>Volume Mounts: How we get the secret files into the pods so the programs can use them.</li></ul><h3>Keeping Things Safe: Security!</h3><ul><li>TLS Encryption: We use security_protocol: SSL. This makes the connection safe so others can&#39;t read the data.</li><li>Truststore File: Keep the truststore file safe! It proves Kafka is really Kafka. Store it in a Kubernetes Secret.</li><li>Passwords: Don’t write passwords directly in the settings file (the CR). Use Kubernetes Secrets! It’s much safer.</li></ul><h3>How to Set It Up: The Steps</h3><p>Okay, let’s do the setup!</p><h3>Change the Analytics Settings File (CR): The Main Settings</h3><p>We need to change the main settings file for Analytics. This file is called a Custom Resource (CR). It might be named AnalyticsCluster or be part of a bigger file called APIConnectCluster.</p><p>Steps:</p><ol><li>Use the command kubectl edit to open the settings file. Example: kubectl edit a7s &lt;analytics-system-name&gt; -n &lt;your-namespace&gt; (or edit the APIConnectCluster file).</li><li>Find spec.external.offload.enabled and change false to true. This turns on sending data.</li><li>Find spec.external.offload.output. Add the settings for the Kafka plugin here (see the example below).</li></ol><p>Example Kafka Plugin Settings:</p><pre>spec:<br>  external:<br>    offload:<br>      enabled: true<br>      output: |<br>        kafka {<br>          topic_id =&gt; &quot;api_data_topic&quot; # Choose a name for your Kafka topic<br>          bootstrap_servers =&gt; &quot;your-kafka-broker-1:9093,your-kafka-broker-2:9093&quot; # List your Kafka computer names and ports<br>          codec =&gt; &quot;json&quot; # Send data as JSON (usually good)<br>          id =&gt; &quot;apic_to_kafka_sender&quot; # Give this setup a name<br>          # --- Settings for Secure TLS Connection ---<br>          security_protocol =&gt; &quot;SSL&quot; # Use SSL for TLS<br>          ssl_truststore_location =&gt; &quot;/etc/velox/external_certs/offload/kafka_truststore.jks&quot; # Where the program looks for the trust file inside the pod<br>          ssl_truststore_password =&gt; &quot;${KAFKA_TRUSTSTORE_PASSWORD}&quot; # The secret password (comes from a Secret, NOT typed here!)<br>          ssl_truststore_type =&gt; &quot;JKS&quot; # Type of trust file (JKS is common)<br>          # --- Other Optional Settings ---<br>          # compression_type =&gt; &quot;gzip&quot; # Make data smaller? (Optional)<br>          # acks =&gt; &quot;1&quot; # How many Kafka computers must get the data? &quot;1&quot; is often okay. (Optional)<br>        }</pre><p>What the Settings Mean:</p><ul><li>bootstrap_servers: List your Kafka computers. Check spelling!</li><li>topic_id: The name of the place in Kafka to put the data.</li><li>security_protocol: Must be SSL to use TLS security.</li><li>ssl_truststore_location: The path <em>inside</em> the pod where the trust file will be. We use Kubernetes Secrets to put it there.</li><li>ssl_truststore_password: The password for the trust file. We use ${KAFKA_TRUSTSTORE_PASSWORD} to get it from a Kubernetes Secret.</li><li>ssl_truststore_type: What kind of trust file it is (like JKS).</li></ul><h3>Setting up the Trust File: The Security Key</h3><p>How do we get the trust file (kafka_truststore.jks) and its password into the pod safely?</p><ol><li>Get the Trust File: You need a file that lets API Connect trust your Kafka computers. How you get it depends on your Kafka:</li></ol><ul><li>Confluent Cloud: Confluent gives you a certificate file (like ca.pem). Download it. You need to turn this .pem file into a .jks file. Use a tool called keytool (comes with Java).</li></ul><pre># You need keytool (from Java JDK) installed somewhere<br>keytool -keystore kafka_truststore.jks -storepass your-secret-password -noprompt -alias CARoot -import -file ca.pem</pre><ul><li>Your Own Kafka: Get the certificate file (CA certificate) that proves your Kafka computers are real. Make it into a .jks file using keytool like the example above.</li></ul><p>2. Create Kubernetes Secrets: Store the trust file and its password safely in Kubernetes.</p><pre># Make a Secret for the trust file<br>kubectl create secret generic kafka-truststore-secret --from-file=kafka_truststore.jks=./kafka_truststore.jks -n &lt;your-namespace&gt;<br><br># Make a Secret for the password<br>kubectl create secret generic kafka-truststore-password --from-literal=password=\&#39;your-secret-password\&#39; -n &lt;your-namespace&gt;</pre><p>3. Connect the Secret File to the Pod: Edit the Analytics settings file (CR) again. Add settings to tell Kubernetes to take the file from kafka-truststore-secret and make it available inside the ingestion pods at /etc/velox/external_certs/offload.</p><p>Example of what to add to the CR (Check IBM docs for <em>your</em> version for exact names!):</p><pre>spec:<br>  analytics:<br>    ingestion:<br>      template: # Find the settings for the ingestion pods<br>        spec:<br>          volumes:<br>            # Tell Kubernetes about the secret volume<br>            - name: kafka-truststore-volume<br>              secret:<br>                secretName: kafka-truststore-secret # Name of the file secret<br>          containers:<br>            - name: collector # Name of the container inside the pod<br>              volumeMounts:<br>                # Tell the container where to find the volume<br>                - name: kafka-truststore-volume<br>                  mountPath: &quot;/etc/velox/external_certs/offload&quot; # The path we need!<br>                  readOnly: true # Safer<br>              env:<br>                # Make the password available as an environment variable<br>                - name: KAFKA_TRUSTSTORE_PASSWORD<br>                  valueFrom:<br>                    secretKeyRef:<br>                      name: kafka-truststore-password # Name of the password secret<br>                      key: password # The key inside the secret</pre><p>4. Use the Password Secret in the Plugin: We already did this! The setting ssl_truststore_password =&gt; &quot;${KAFKA_TRUSTSTORE_PASSWORD}&quot; tells the plugin to use the password from the KAFKA_TRUSTSTORE_PASSWORD environment variable we just set up.</p><ul><li>Check: Does ${VAR_NAME} work for passwords in your version? Usually yes. If not, check IBM docs or ask for help.</li></ul><p>5. Save Your Changes: Save the changes to the settings file (CR). The API Connect system should see the changes and restart the ingestion pods with the new setup.Very Important: The exact names and places for settings in the CR file (spec.analytics.ingestion...) can change a little between API Connect versions. Always check the official IBM guide for <em>your exact</em> version (10.0.8.x on CP4I).</p><h3>Checking and Fixing Problems: Did It Work?</h3><p>Is the data flowing?</p><ul><li>Check Pod Logs: Look at the messages from the ingestion pods (often named ...-collector-...). Use kubectl logs &lt;pod-name&gt; -n &lt;namespace&gt;. Are there errors about Kafka or TLS?</li><li>Check Kafka Topic: Use a Kafka tool (like kafka-console-consumer) to look inside the Kafka topic. Is data showing up?</li><li>Read IBM Guides: Check the official IBM guides for help with problems.</li><li>Check Network Rules: Can the pods actually reach Kafka? Check OpenShift Network Policies to make sure traffic is allowed to your Kafka computers (port 9093, usually).</li><li>Check Certificate: Is the truststore file correct? Does it have the right certificate? Is the certificate still valid (not expired)?</li></ul><p>If data is flowing, great job! If not, check the steps again, look at the logs, and read the guides. Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e4a8c64112f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Epic of Migrating IBM ACE to Cloud Pak on OpenShift: A Tragicomedy in Kubernetes Acts]]></title>
            <link>https://medium.com/@haythamadel/the-epic-of-migrating-ibm-ace-to-cloud-pak-on-openshift-a-tragicomedy-in-kubernetes-acts-a8f91fe2a473?source=rss-bfd85a16be53------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8f91fe2a473</guid>
            <dc:creator><![CDATA[Haytham Ellamey]]></dc:creator>
            <pubDate>Mon, 14 Apr 2025 09:38:57 GMT</pubDate>
            <atom:updated>2025-04-14T09:38:57.582Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Epic Saga of Migrating IBM ACE to Cloud Pak on OpenShift: A Tragicomedy in Kubernetes Acts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*u_ggHOnWO5gxab1a2bRvcg.jpeg" /></figure><h3>Act 1: The Call to Adventure (a.k.a. The Mandate From Management)</h3><p><em>“We’re moving ACE to Cloud Pak on OpenShift!”</em> your boss declares, as if it’s as simple as changing coffee brands. You nod confidently while secretly Googling “what is a Kubernetes Operator” in another tab.</p><p>Little do you know, you’re about to embark on a journey filled with YAML, pods, and the haunting realization that mqsilist is no longer your best friend.</p><h3>Act 2: The Five Stages of Cloud Pak Grief</h3><h3>1. Denial (“This Can’t Be Harder Than Classic ACE!”)</h3><p>You create your first ACE instance via the shiny OpenShift Operator, thinking:</p><ul><li><em>“It’s just containers, how different can it be?”</em></li><li><em>“I’ll have this migrated by lunch!”</em></li></ul><p>Then you see the <strong>97 custom resource definitions</strong> the Operator installed and weep softly into your keyboard.</p><h3>2. Anger (“Where the $@%! Are My Logs?!”)</h3><p>You try to debug your first failing integration:</p><ul><li>Classic ACE: tail -f /var/mqsi/servers/IS1/work/IS.log</li><li>Cloud Pak ACE: kubectl logs -f pod/ace-is-1 -c integration-server --tail=50 | grep -i &quot;oh no&quot;</li></ul><p>You miss the days when logs lived in predictable places instead of ephemeral pod storage.</p><h3>3. Bargaining (“Maybe One Small VM for Old Times’ Sake?”)</h3><p>You consider:</p><ul><li>Running ACE in a container inside a VM inside OpenShift (don’t)</li><li>Keeping one classic server “just for that one legacy flow” (it’s never just one)</li><li>Bribing the OpenShift admin with coffee to make it work like before</li></ul><p>Spoiler: None of these work.</p><h3>4. Depression (“I’ll Never Understand These @#$% Operators”)</h3><p>After your fifth oc delete pod --all in desperation, you:</p><ul><li>Start naming crashed pods after ex-partners</li><li>Dream in YAML syntax</li><li>Develop an unhealthy attachment to oc get events --sort-by=&#39;.lastTimestamp&#39;</li></ul><h3>5. Acceptance (“Fine, I’ll Learn This Operator Thing”)</h3><p>You finally understand:</p><ul><li>The <strong>ACE Dashboard</strong> is your new best friend (when it loads)</li><li><strong>Kubernetes Secrets</strong> beat setdbparms.txt any day</li><li>Horizontal scaling is magical (“You mean I can just add more pods?!”)</li></ul><h3>Act 3: The Migration Chronicles</h3><h3>Chapter 1: Broker Registry — The Undocumented Nightmare</h3><p>Your old friend BR1.dat can&#39;t come to the cloud party. Here&#39;s how to cope:</p><ol><li><strong>Dump everything</strong> (like your ex’s stuff in boxes):</li></ol><pre>mqsireportproperties BROKER_NAME -o BrokerRegistry -r &gt; broker_registry_dump.txt</pre><p><strong>Convert to Cloud Pak Reality</strong>:</p><ul><li>File paths → ConfigMaps</li><li>Hardcoded IPs → Kubernetes Services</li><li>“It worked on prem” → “It works in my cluster… probably”</li></ul><p><strong>Deploy via the ACE Dashboard</strong> because clicking buttons feels safer than YAML today.</p><h3>Chapter 2: Database Connections — JDBC in the Time of Containers</h3><p>The old way:</p><pre>&lt;DatabaseConnection&gt;<br>  &lt;DB2&gt;<br>    &lt;URL&gt;jdbc:db2://192.168.1.100:50000/SAMPLE&lt;/URL&gt;<br>    &lt;User&gt;db2admin&lt;/User&gt;<br>    &lt;Password&gt;Welcome1&lt;/Password&gt; &lt;!-- Security? What&#39;s that? --&gt;<br>  &lt;/DB2&gt;<br>&lt;/DatabaseConnection&gt;</pre><p>Run HTML</p><p>The new <strong>Operator-approved way</strong>:</p><ol><li><strong>Create a Secret</strong> (because we’re adults now):</li></ol><pre>oc create secret generic db2-creds \ - from-literal=username=db2admin \ - from-literal=password=ActualComplexPassword2023</pre><ol><li><strong>Reference it in your Integration Server</strong> via the ACE Dashboard:</li></ol><ul><li>Navigate to “Credentials” → “Add Credential”</li><li>Pretend it’s setdbparms but fancier</li></ul><ol><li><strong>Update your policies</strong> to use environment variables like a proper cloud citizen:</li></ol><pre>CREATE COMPUTE MODULE SomeModule DECLARE DB_URL CHARACTER &#39;${DB_URL}&#39;; - Finally using those DevOps principles! END MODULE;</pre><h3>Chapter 3: The setdbparms Conspiracy</h3><p>That trusty old /var/mqsi/component/BR1/setdbparms.txt has been:</p><ul><li><strong>Replaced by</strong>: Kubernetes Secrets</li><li><strong>Stored in</strong>: /var/mqsi/component/BR1/secure/credentials.json (encrypted)</li><li><strong>Managed via</strong>: Either:</li><li>The ACE Dashboard (for GUI lovers)</li><li>oc create secret (for CLI warriors)</li><li>Helm values (for masochists)</li></ul><p><strong>Pro Tip</strong>: Use mqsisetdbparms BR1 -l in your running pod to verify credentials, then immediately forget where they&#39;re actually stored.</p><h3>Act 4: Deployment Dramas</h3><h3>Option 1: ACE Dashboard (For the Visually Inclined)</h3><ol><li>Open the ACE Dashboard (after finding its route with oc get routes)</li><li>Click through 17 beautifully designed React pages</li><li>Upload your BAR file</li><li>Watch as it deploys… or fails mysteriously</li></ol><h3>Option 2: Operator CRDs (For YAML Jedi)</h3><pre>apiVersion: appconnect.ibm.com/v1beta1<br>kind: IntegrationServer<br>metadata:<br>  name: my-cool-is<br>spec:<br>  adminServerSecure: true<br>  barURL: &gt;-<br>    http://nexus-repo/awesome-flows.bar<br>  configurations:<br>    - db2-creds<br>  replicas: 3 # Because we can!</pre><h3>Option 3: oc CLI (For When You’re Feeling Nostalgic)</h3><pre>oc apply -f - &lt;&lt;EOF<br>apiVersion: appconnect.ibm.com/v1beta1<br>kind: Configuration<br>metadata:<br>  name: db2-creds<br>spec:<br>  data: |<br>    DB_USER=db2admin<br>    DB_PASSWORD=ShhDontTellAnyone<br>EOF</pre><h3>Epilogue: Was It Worth It?</h3><p><strong>Signs You’ve Successfully Migrated</strong>:<br>✅ Your flows scale horizontally without begging infrastructure for VMs<br>✅ You get alerts before things break (instead of after)<br>✅ “It works on my laptop” is replaced by “It works in all clusters”<br>✅ You accidentally use oc commands in non-work conversations</p><p><strong>Signs You Might Need Help</strong>:<br>❌ You’ve tried oc delete pod --all more than 3 times today<br>❌ You refer to your pet as &quot;my little pod&quot;<br>❌ YAML validation errors haunt your dreams</p><p><strong>Final Wisdom</strong>:<br>The OpenShift Operator is both your savior and tormentor. When in doubt:</p><ol><li>Check the logs (oc logs -f &lt;pod&gt;)</li><li>Check the events (oc get events)</li><li>Check your sanity (oc get sanity ← just kidding, this command doesn&#39;t exist... yet)</li></ol><p>Now go forth and deploy! And remember — when all else fails, there’s always oc delete --all</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8f91fe2a473" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Great API Gateway Debate: IT Team Nightmares (VM or Operator ..!)]]></title>
            <link>https://medium.com/@haythamadel/the-great-api-gateway-debate-it-team-nightmares-vm-or-operator-at-palestine-bank-f34165d64ca5?source=rss-bfd85a16be53------2</link>
            <guid isPermaLink="false">https://medium.com/p/f34165d64ca5</guid>
            <dc:creator><![CDATA[Haytham Ellamey]]></dc:creator>
            <pubDate>Mon, 14 Apr 2025 06:24:54 GMT</pubDate>
            <atom:updated>2025-04-14T07:04:27.248Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*GyttLiDrfK_g30O8cUa1yw.gif" /></figure><p><strong>Location:</strong> Palestine IT War Room<br><strong>Time:</strong> 2:00 AM (because that’s when production issues happen)<br><strong>Participants:</strong></p><ul><li><strong>You (Lead Architect)</strong> — Just wants to go home</li><li><strong>Security Team</strong> — Still mad about that one TLS 1.0 incident</li><li><strong>Cloud Team</strong> — Kubernetes fanboys</li><li><strong>Legacy Team</strong> — “But it worked in WebSphere!”</li><li><strong>CTO</strong> — Currently Googling “What is DataPower”</li></ul><h3>1. The Mandate: “We Need API Connect Yesterday!”</h3><p><strong>CTO:</strong> <em>“Regulators are breathing down our necks. We need API governance ASAP. What’s our move?”</em></p><p><strong>Legacy Team:</strong> <em>“Just deploy DataPower as VMs like we always do!”</em><br><strong>Cloud Team:</strong> <em>“Boomer alert! Operators are the future!”</em></p><p><strong>You:</strong> <em>“Let’s compare before we commit to another 3am outage…”</em></p><h3>2. Installation Showdown</h3><h3>Option A: The VM Approach (“This Is Fine” Dog Meme)</h3><ul><li><strong>Step 1:</strong> Request VMs from infrastructure team (ETA: 2–6 weeks)</li><li><strong>Step 2:</strong> Manual installation (hope the docs are up to date)</li><li><strong>Step 3:</strong> 47 failed login attempts because someone messed up LDAP config</li></ul><p><strong>Security Team:</strong> <em>“At least we can airgap it!”</em><br><strong>You:</strong> <em>“We can’t airgap our payment APIs, Greg.”</em></p><h3>Option B: Operator Approach (“Magic Kubernetes Fairy”)</h3><ul><li><strong>Step 1:</strong> oc apply -f datapower-operator.yaml</li><li><strong>Step 2:</strong> Watch it self-deploy while drinking coffee</li><li><strong>Step 3:</strong> Realize you forgot to set resource limits</li></ul><p><strong>Cloud Team:</strong> <em>“See? Told you!”</em><br><strong>Legacy Team:</strong> <em>“Black magic! Where are the log files?!”</em></p><h3>3. Backup &amp; Restore: The True Test of Sanity</h3><h3>VM Backup Process</h3><ol><li>Take VM snapshot (if storage team enabled it)</li><li>Manually export 17 different config files</li><li>Hope you remembered the NTP server settings</li></ol><p><strong>You During DR Test:</strong> <em>“Why is it failing?”</em><br><strong>Teammate:</strong> <em>“Oh, the backup was from before the TLS cert rotation…”</em></p><h3>Operator Backup Process</h3><ol><li>Velero does its thing</li><li>One command restore</li><li>Actually works (most of the time)</li></ol><p><strong>Security Team:</strong> <em>“But how do we KNOW it backed up the keys?!”</em><br><strong>You:</strong> <em>“It’s in the logs. No, I won’t show you the logs.”</em></p><h3>4. Upgrade Hell: A Tale of Two Nightmares</h3><h3>VM Upgrade Path</h3><ul><li>Maintenance window scheduled for Q3 2025</li><li>14-page change request form</li><li>Rollback plan: “Restore from backup (see section 3A)”</li></ul><p><strong>CTO:</strong> <em>“Why does this take 6 months?!”</em><br><strong>You:</strong> <em>“Because banking.”</em></p><h3>Operator Upgrade Path</h3><ul><li>Read the release notes (hah!)</li><li>oc apply new version</li><li>Watch 30 pods crashloop simultaneously</li></ul><p><strong>Cloud Team:</strong> <em>“Just tweak the readiness probe!”</em><br><strong>You:</strong> <em>“I will tweak your salary if this fails.”</em></p><h3>5. The Compromise (Because Banking)</h3><p>After 37 meetings and 84 Slack threads:</p><p><strong>Final Decision:</strong></p><ul><li>Production: Operators (for scalability)</li><li>DR Site: VMs (because auditors want “physical separation”)</li><li>Staging: Whatever works, no one checks staging anyway</li></ul><p><strong>CTO:</strong> <em>“Great! Now about that PCI compliance report…”</em><br><strong>You:</strong> <em>“I quit.”</em></p><h3>Epilogue: Lessons Learned</h3><ol><li>Cloud teams and legacy teams will never agree</li><li>Everything is a compliance violation waiting to happen</li><li>Always have a fallback VM (for your sanity)</li><li>No one actually reads the IBM documentation</li></ol><p><strong>Final Score:</strong></p><ul><li><strong>Operators:</strong> 8/10 (Would deploy again)</li><li><strong>VMs:</strong> 5/10 (But sometimes you have no choice)</li><li><strong>Your Sanity:</strong> 2/10 (Plz send help)</li></ul><p>Now if you’ll excuse me, I need to explain to the CIO why the API gateway is down… again.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f34165d64ca5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Not-So-Serious (But Very Thorough) Guide to Upgrading IBM Cloud Pak for Integration to 16.x.x]]></title>
            <link>https://medium.com/@haythamadel/the-not-so-serious-but-very-thorough-guide-to-upgrading-ibm-cloud-pak-for-integration-to-16-x-x-8fa432edb188?source=rss-bfd85a16be53------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fa432edb188</guid>
            <dc:creator><![CDATA[Haytham Ellamey]]></dc:creator>
            <pubDate>Thu, 10 Apr 2025 10:35:16 GMT</pubDate>
            <atom:updated>2025-04-10T11:15:05.893Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>Overview: Why Are We Doing This Again?</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*Z-txAwLjZnSMmJhpxeN46w.gif" /></figure><p>Congratulations! You’ve been chosen to perform the ancient ritual of “Upgrading The Unupgradable” — moving from CP4I 2021 to 16.0.1. Think of it like updating from a flip phone to a smartphone, if the flip phone was also your company’s critical integration platform.</p><p><strong>What’s in this guide:</strong></p><ul><li>Pre-upgrade checks (aka “covering your bases”)</li><li>The actual upgrade (aka “the scary part”)</li><li>Keycloak configuration (aka “the identity crisis”)</li><li>Making sure everything still works (aka “the prayer circle”)</li></ul><p><strong>2. Pre-Upgrade: The “Measure Twice, Cut Once” Phase</strong></p><p><strong>2.1 System Requirements: Is Your Cluster Beefy Enough?</strong></p><pre>oc version<br># If this returns &quot;Error: Your cluster is too old&quot;, just kidding… but maybe consider upgrading OCP first<br>oc get nodes</pre><p># You’ll want to see more CPU cores than your last family reunion</p><p><strong>Pro Tip:</strong> If your nodes are already at 90% capacity, now might be a good time to ask for that budget increase you’ve been putting off.</p><p><strong>2.2 Verify Your Cluster Isn’t a Potato</strong></p><pre>df -h # Make sure /cluster_bkp isn&#39;t 97% full like yours currently is<br>Filesystem Size Used Avail Use% Mounted on<br>/dev/mapper/datavg-bkp_lv 40G 39G 1.4G 97% /cluster_bkp # Yikes!</pre><p><strong>1.2 Check Current Component Versions</strong></p><pre>oc get ManagementCluster -n cp4i<br>NAME READY STATUS VERSION AGE<br>apis-production-mgmt 17/17 Running 10.0.5.4–5472 690d # Ancient!<br>oc get GatewayCluster -n cp4i<br>NAME READY STATUS VERSION AGE<br>apis-production-gw 2/2 Running 10.0.5.4–5472 690d</pre><p><strong>2.3 Cert Manager Health Check</strong></p><pre>oc get pods -n cert-manager<br>NAME READY STATUS RESTARTS AGE<br>cert-manager-6dc7dc464b-rr26g 1/1 Running 0 5m27s<br>cert-manager-cainjector-779465c747-mc8zv 1/1 Running 0 6m6s</pre><p># If these aren’t happy, nothing will be happy</p><p><strong>2.4 Backup Everything</strong></p><p><strong>2.4.1 API Connect Backup Dance</strong></p><pre># Create management backup<br>cat &lt;&lt;EOF &gt; manual_management_backup.yaml<br>apiVersion: management.apiconnect.ibm.com/v1beta1<br>kind: ManagementBackup<br>metadata:<br>generateName: apis-production-mgmt<br>spec:<br>type: full<br>crType: create<br>clusterName: apis-production-mgmt<br>EOF<br>oc create -f manual_management_backup.yaml -n cp4i</pre><p># Now go get coffee while this runs</p><p><strong>2.4.2 Verify Backups Exist</strong></p><pre>oc get managementbackup -n cp4i - sort-by=.metadata.creationTimestamp | tail -5<br>apis-produ-a6d0a596-dc2fa0fe Ready 20241104–014003F 4h23m<br>apis-production-mgmtnxb2g Ready 20241104–072707F 2m41s # There&#39;s our new one!</pre><p><strong>2.4.3 Postgres Health Check</strong></p><pre>oc exec -it apis-produ-a6d0a596-postgres-0 -n cp4i - patronictl list<br>+ Cluster: apis-produ-a6d0a596-postgres - - - + - - - - -+ - - - - -+ - - - +<br>| Member | Host | Role | State | TL | Lag in MB |<br>+ - - - - - - - - - + - - - - - - -+ - - - - -+ - - - - -+ - - + - - - - - -+<br>| postgres-0 | 10.128.5.254| Leader | running |1076| |<br>| postgres-1 | 10.128.2.73 | Replica | running |1076| 0 | # Looking</pre><p><strong>2.5 Catalog Sources: The Operator Buffet</strong></p><pre>oc get catalogsources -n openshift-marketplace<br># Should show ibm-operator-catalog looking fresh<br># If not, give it a pep talk:<br>oc patch catalogsource ibm-operator-catalog -n openshift-marketplace \<br> - type merge -p &#39;{&quot;spec&quot;:{&quot;image&quot;:&quot;icr.io/cpopen/ibm-operator-catalog:latest&quot;}}&#39;</pre><p># Translation: “Hey catalog, time to update your playlist”</p><p><strong>3. Backup Procedures: The “Better Safe than Sorry” Dance</strong></p><p><strong>3.1 API Connect Backup: Saving Your Digital Bacon</strong></p><pre>oc -n cp4i get apiconnectcluster apis-uat -o yaml &gt; apic-cluster-cr.yaml<br># This is your &quot;undo&quot; button. Don&#39;t skip it unless you enjoy living dangerously<br>oc get secret apis-uat-mgmt-admin-pass -n cp4i -o jsonpath=&#39;{.data.password}&#39; | base64 -d &gt; admin-pass.txt</pre><p># Because nobody wants to explain why the admin password got lost in the upgrade</p><p><strong>Fun Fact:</strong> The number of backup files you create is directly proportional to how much you care about keeping your job.</p><p><strong>4. The Main Event: Upgrade Time!</strong></p><p><strong>4.1 Update Subscription Channels</strong></p><pre>#Foundational services<br>oc patch sub ibm-common-service-operator -n ibm-common-services \<br>  --type=&#39;json&#39; -p=&#39;[{&quot;op&quot;: &quot;replace&quot;, &quot;path&quot;: &quot;/spec/channel&quot;, &quot;value&quot;: &quot;v3&quot;}]&#39;<br># Platform Navigator<br>oc patch sub ibm-integration-platform-navigator -n openshift-operators \<br> - patch &#39;{&quot;spec&quot;:{&quot;channel&quot;:&quot;v7.3-sc2&quot;}}&#39; - type=merge<br># DataPower Operator<br>oc patch sub datapower-operator -n openshift-operators \<br> - patch &#39;{&quot;spec&quot;:{&quot;channel&quot;:&quot;v1.11-sc2&quot;}}&#39; - type=merge<br># API Connect Operator<br>oc patch sub ibm-apiconnect -n openshift-operators \<br> - patch &#39;{&quot;spec&quot;:{&quot;channel&quot;:&quot;v5.2-sc2&quot;}}&#39; - type=merge</pre><p><strong>4.2 Watch the Magic Happen</strong></p><pre>watch oc get csv -n openshift-operators</pre><p># This is like watching paint dry, but with more YAML</p><p><strong>4.3 Component Upgrades</strong></p><p><strong>4.3.1 API Connect Cluster Upgrade</strong></p><pre>oc patch APIConnectCluster apis-production -n cp4i \<br> - type=&#39;json&#39; - patch &#39;[{<br>&quot;op&quot;: &quot;replace&quot;,<br>&quot;path&quot;: &quot;/spec/version&quot;,<br>&quot;value&quot;: &quot;10.0.8.0–258&quot;<br>},{<br>&quot;op&quot;: &quot;replace&quot;,<br>&quot;path&quot;: &quot;/spec/license/accept&quot;,<br>&quot;value&quot;: true<br>}]&#39;</pre><p><strong>4.3.2 DataPower Gateway Scaling</strong></p><pre>oc scale statefulset apis-production-gw -n cp4i - replicas=0<br># Wait for pods to terminate<br>oc scale statefulset apis-production-gw -n cp4i - replicas=2</pre><p># Watch them come back happier and upgraded<br> <em>Operators updating</em><br> <em>Progress bar moves so slowly</em><br> <em>Did it crash? Nope. Good.</em></p><p><strong>While You Wait:</strong></p><ul><li>Check your email</li><li>Do some squats</li><li>Question your life choices</li><li>Oh look, it’s done!</li></ul><p><strong>5. Keycloak Configuration: The Identity Crisis</strong></p><p><strong>5.1 Installing Keycloak: Your New Bouncer</strong></p><pre>oc create ns keycloak<br># Because everything deserves its own namespace<br>oc apply -f https://raw.githubusercontent.com/keycloak/keycloak-operator/18.0.0/deploy/operator.yaml -n keycloak</pre><p># Now Keycloak has its own operator. Fancy.</p><p><strong>5.2 Configure Keycloak Integration</strong></p><pre>oc patch PlatformNavigator integration-quickstart -n cp4i \<br> - type=&#39;json&#39; - patch &#39;[{<br>&quot;op&quot;: &quot;replace&quot;,<br>&quot;path&quot;: &quot;/spec/version&quot;,<br>&quot;value&quot;: &quot;16.1.0.1&quot;<br>},{<br>&quot;op&quot;: &quot;replace&quot;,<br>&quot;path&quot;: &quot;/spec/license/license&quot;,<br>&quot;value&quot;: &quot;L-JTPV-KYG8TF&quot;<br>}]&#39;</pre><p><strong>5.3 Post-Upgrade Victory Lap</strong></p><p><strong>5.3.1 Verify All The Things</strong></p><pre>oc get pods -n cp4i | grep -v Running # Find any party poopers<br>oc get APIConnectCluster -n cp4i # Should show new version</pre><p><strong>6.3.2 Test Keycloak Login</strong></p><pre>curl -X POST &quot;http://$KEYCLOAK_URL/auth/realms/cp4i/protocol/openid-connect/token&quot; \<br>-H &quot;Content-Type: application/x-www-form-urlencoded&quot; \<br>-d &quot;username=admin&amp;password=#lE*x4lS7X5$JRf8&amp;grant_type=password&amp;client_id=admin-cli&quot;</pre><p># If you get a token, do a happy dance</p><p><strong>5.2 Common Gotcha: Storage Class</strong></p><pre>oc patch storageclass ocs-storagecluster-ceph-rbd \<br>-p &#39;{&quot;metadata&quot;: {&quot;annotations&quot;:{&quot;storageclass.kubernetes.io/is-default-class&quot;:&quot;true&quot;}}}&#39;</pre><p># Because apparently storage is important or something</p><p><strong>5.2 Migrating Users: The Awkward Introduction</strong></p><p><strong>Step 1:</strong> Export from IAM (the old bouncer)</p><pre>oc exec -n ibm-common-services $(oc get pod -n ibm-common-services -l app=auth-idp -o name) - /opt/ibm/scripts/extract-users.sh &gt; iam-users.json</pre><p># This is like copying all your contacts from an old phone</p><p><strong>Step 2:</strong> Import to Keycloak (the new bouncer)</p><pre>podman run - rm -it - network=host \<br>-e KEYCLOAK_URL=http://$KEYCLOAK_URL \<br>-e KEYCLOAK_USER=admin \<br>-e KEYCLOAK_PASSWORD=$KEYCLOAK_ADMIN_PASS \<br>-v $(pwd)/iam-users.json:/tmp/users.json \<br>jboss/keycloak:18.0.0 \<br>/opt/jboss/keycloak/bin/kcadm.sh create users -r cp4i -f /tmp/users.json</pre><p># “Hey Keycloak, meet all my friends. Be nice to them.”</p><p><strong>5.3 Cloud Pak Web Navigator Configuration</strong></p><p>Now let’s make sure the Navigator knows about the new bouncer:</p><pre>oc patch navigator cp4i-navigator -n cp4i \<br> - type merge -p &#39;{&quot;spec&quot;:{&quot;auth&quot;:{&quot;oidc&quot;:{&quot;enabled&quot;:true,&quot;issuer&quot;:&quot;http://keycloak-keycloak.apps.example.com/auth/realms/cp4i&quot;}}}}&#39;</pre><p># Translation: “Dear Navigator, please use the new security system”</p><p><strong>Fun Test:</strong> Try logging in after this change. If it works, do a happy dance. If not, see section 8.</p><p><strong>6. Post-Upgrade: The “Did We Break It?” Phase</strong></p><p><strong>6.1 Basic Checks</strong></p><pre>oc get pods -n cp4i<br># You want to see lots of &quot;Running&quot; and zero &quot;Error&quot; or &quot;CrashLoopBackOff&quot;<br># If you see the latter, pretend you didn&#39;t and check the logs<br>oc get apiconnectcluster -n cp4i</pre><p># Should show your cluster in “Ready” state, not “Panic” state</p><p><strong>6.2 Keycloak Test Drive</strong></p><pre>curl -X POST &quot;http://$KEYCLOAK_URL/auth/realms/cp4i/protocol/openid-connect/token&quot; \<br>-H &quot;Content-Type: application/x-www-form-urlencoded&quot; \<br>-d &quot;username=admin&amp;password=password&amp;grant_type=password&amp;client_id=admin-cli&quot;</pre><p># If this returns a token, congratulations! Your authentication is working.</p><p># If it returns “unauthorized”, check if you used the right password (we’ve all been there)</p><p><strong>7. Troubleshooting: The “Oh Crap” Section</strong></p><p><strong>7.1 Common Issues and Fixes</strong></p><p><strong>Problem:</strong> API Connect won’t talk to Keycloak<br> <strong>Solution:</strong></p><ol><li>Check if they’re in the same namespace (relationship counseling may be needed)</li><li>Verify the realm exists:</li></ol><pre>oc exec -n keycloak $(oc get pod -n keycloak -l app=keycloak -o name) - /opt/jboss/keycloak/bin/kcadm.sh get realms/cp4i</pre><p><strong>Problem:</strong> Users are missing after migration<br> <strong>Solution:</strong></p><ol><li>Check the import file actually had users (look at iam-users.json)</li><li>Try the migration again while crossing your fingers</li></ol><h3><strong>8. Rollback: The “Abort Mission” Protocol</strong></h3><p><strong>“When Things Go Boom”</strong></p><p><strong>8.1 Subscription Issues</strong></p><pre># When you see &quot;constraints not satisfiable&quot;<br>for catsrc in $(oc get catalogsource -n openshift-operators -o name); do<br>echo $catsrc - $(oc get $catsrc -n openshift-operators -o jsonpath=&#39;{.status.connectionState.lastObservedState}&#39;)<br>done<br># Find which catalog source is misbehaving</pre><p><strong>8.2 Image Pull Secrets</strong></p><pre># For registry authentication issues<br>oc create secret generic alinma-access-external-docker-repository-secret \<br> - from-literal=username=aymohammed \<br> - from-literal=password=$Bof123Ft456789 \<br>-n cp4i</pre><p><strong>8.3 Rollback Plan</strong></p><p><strong>8.3.1 Restore Management</strong></p><pre>cat &lt;&lt;EOF &gt; manual_management_restore.yaml<br>apiVersion: management.apiconnect.ibm.com/v1beta1<br>kind: ManagementRestore<br>metadata:<br>name: management-restore<br>spec:<br>backupName: apis-production-mgmtnxb2g<br>clusterName: apis-production-mgmt<br>EOF<br>oc create -f manual_management_restore.yaml -n cp4i</pre><p><strong>8.3.2 Revert Operators</strong></p><pre>oc patch sub ibm-integration-platform-navigator -n openshift-operators \<br> - patch &#39;{&quot;spec&quot;:{&quot;channel&quot;:&quot;v6.0&quot;}}&#39; - type=merge</pre><p># Because sometimes you just need to go back</p><p># Restoring your backup like nothing ever happened</p><p><strong>Rollback Haiku:</strong><br> <em>Upgrade went sideways</em><br> <em>Restore from backup yaml</em><br> <em>Tomorrow’s problem now</em></p><h3>9. Known Issues During IBM Cloud Pak and API Connect Upgrades</h3><h3>The “We Should Probably Mention These” Section</h3><p>Here is a list of gremlins that might pop up during your upgrade adventure:</p><h3>1. Cloud Pak Foundation Issues</h3><p>· <strong>“I’m too old for this” Error</strong><br> When upgrading from very old versions, the foundational services might throw tantrums.<br> <em>Fix:</em> Check IBM documentation for intermediate upgrade paths.</p><p>· <strong>Cert Manager Wars</strong><br> Multiple cert-manager operators fighting for dominance like siblings in the backseat of a car.<br> <em>Fix:</em> Remove old cert-manager operators before upgrading.</p><p>· <strong>“Where’d my storage go?”</strong><br> PVCs getting lost during upgrade like socks in a dryer.<br> <em>Fix:</em> Triple-check your storage class configurations.</p><h3>2. API Connect Specific Gremlins</h3><p>· <strong>Management subsystem going on strike</strong><br> The management pod might refuse to start after upgrade.<br> <em>Fix:</em> Check the logs for database schema mismatch errors.</p><p>· <strong>Analytics throwing a fit</strong><br> “a7s subsystem not ready” messages that just won’t quit.<br> <em>Fix:</em> Sometimes you need to delete and recreate the analytics subsystem.</p><p>· <strong>Portal’s identity crisis</strong><br> Developer Portal forgetting it’s supposed to work with API Connect.<br> <em>Fix:</em> Re-establish the portal connection in the API Manager UI.</p><h3>3. Keycloak Migration Headaches</h3><p>· <strong>“Who are you?”</strong><br> API Connect not recognizing Keycloak tokens.<br> <em>Fix:</em> Double-check realm settings and client configurations.</p><p>· <strong>The Missing Users Mystery</strong><br> User migration completes successfully but nobody’s home.<br> <em>Fix:</em> Check if password policies are blocking the imports.</p><h3>4. Operator Upgrade Oddities</h3><p>· <strong>Stuck in InstallPlan Purgatory</strong><br> Operators just sitting there staring at you.<br> <em>Fix:</em> Manually approve the install plan with:</p><pre>oc patch installplan &lt;name&gt; -n openshift-operators --type merge --patch &#39;{&quot;spec&quot;:{&quot;approved&quot;:true}}&#39;</pre><p>· <strong>Version Mismatch Mayhem</strong><br> Components complaining about incompatible versions.<br> <em>Fix:</em> Consult the compatibility matrix like it’s your upgrade bible.</p><h3>5. Post-Upgrade Surprises</h3><p>· <strong>“That wasn’t there before…”</strong><br> New permissions requirements breaking existing workflows.<br> <em>Fix:</em> Update your RBAC configurations.</p><p>· <strong>The Mysterious Case of the Disappearing Routes</strong><br> Ingresses getting lost during the upgrade shuffle.<br> <em>Fix:</em> Check if the upgrade recreated them with different names.</p><h3>6. DataPower Drama</h3><p>· <strong>“I forgot how to DataPower”</strong><br> Gateways failing to initialize.<br> <em>Fix:</em> Check the DataPower container logs for crypto errors.</p><p>· <strong>License to Fail</strong><br> Suddenly complaining about invalid licenses.<br> <em>Fix:</em> Reapply your DataPower license after upgrade.</p><h3>Final Pro Tip</h3><p>Before any upgrade, always:</p><p>1. Check IBM’s upgrade documentation (yes, actually read it)</p><p>2. Have backups (the more the merrier)</p><p>3. Schedule the upgrade when you’re well-caffeinated</p><p>4. Keep the IBM support number handy (just in case)</p><p>Remember — every upgrade is unique, like a snowflake… that might break your production environment. Happy upgrading!</p><p><strong>Final Thoughts</strong></p><p>Congratulations! You have either:</p><ul><li>Successfully upgraded everything and are now the office hero</li><li>Learned valuable lessons about backups</li><li>Discovered new and creative error messages</li><li>All of the above</li></ul><p>Remember: In the world of Kubernetes, every upgrade is an adventure. Pack snacks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fa432edb188" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IBM API Connect OVA Deployment Full scenario]]></title>
            <link>https://medium.com/@haythamadel/ibm-api-connect-ova-deployment-full-scenario-ac4f6c4e77b5?source=rss-bfd85a16be53------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac4f6c4e77b5</guid>
            <dc:creator><![CDATA[Haytham Ellamey]]></dc:creator>
            <pubDate>Thu, 10 Apr 2025 08:11:16 GMT</pubDate>
            <atom:updated>2025-04-10T08:13:26.980Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>IBM API Connect OV Deployment Guide for Palestine Bank</strong></p><p><strong>Table of Contents</strong></p><ol><li><strong>Overview</strong></li><li><strong>Network Architecture</strong></li><li><strong>DNS Configuration</strong></li><li><strong>Firewall Requirements</strong></li><li><strong>Certificate Requirements</strong></li><li><strong>Certificate Requirements</strong></li><li><strong>DataPower Gateway Peering Setup</strong></li><li><strong>Subsystem Deployment (Management, Portal, Analytics)</strong></li><li><strong>Verification &amp; Troubleshooting</strong></li></ol><p><strong>1.</strong> <strong>Overview</strong></p><h3>Introduction</h3><p>Palestine Bank, a leading financial institution in Gaza, is modernizing its digital infrastructure by deploying <strong>IBM API Connect v10</strong> to streamline API management, enhance security, and improve integration with internal and external banking services.</p><h3>Deployment Context</h3><p>· <strong>Environment</strong>: On-premise deployment in Gaza data centers.</p><p>· <strong>Purpose</strong>:</p><p>o Securely expose banking APIs (transactions, customer data, payments).</p><p>o Enable third-party fintech integrations.</p><p>o Comply with Palestinian financial regulations.</p><p>· <strong>Challenges</strong>:</p><p>o Limited external connectivity due to regional constraints.</p><p>o High security requirements for financial data.</p><p>o Need for high availability in unstable power/network conditions.</p><h3>Solution Overview</h3><p>· <strong>Components Deployed</strong>:</p><p>o <strong>Management Subsystem</strong> (API lifecycle governance).</p><p>o <strong>Developer Portal</strong> (internal/external API consumption).</p><p>o <strong>Gateways</strong> (DataPower for security and traffic control).</p><p>o <strong>Analytics</strong> (monitoring API usage).</p><p>· <strong>Network</strong>:</p><p>o Isolated zones for DMZ/internal traffic.</p><p>o Redundant gateways with peering for failover.</p><p>· <strong>Security</strong>:</p><p>o Palestine Bank-signed certificates for public endpoints.</p><p>o Firewall rules restricting access to essential ports.</p><p>This document provides a complete guide for deploying <strong>IBM API Connect v10</strong> in <strong>Palestine Bank’s</strong> on-premise environment. It includes:</p><ul><li>Updated domain configurations (palestine-bank.com)</li><li>Sample IP addressing (using dummy IPs)</li><li>Firewall rules for API Connect components</li><li>DataPower Gateway peering setup</li><li>Step-by-step deployment commands</li></ul><p><strong>2. Network Architecture</strong></p><p><strong>Sample IP Addressing (Dummy IPs for Reference)</strong></p><pre>+-------------------+---------------------+-----------------------------+------------------+<br>| Component         | Hostnames           | IP Addresses                | Subnet           |<br>+-------------------+---------------------+-----------------------------+------------------+<br>| Management Servers| apimgmtp01-03       | 192.168.10.165-167          | 192.168.10.128/26|<br>| Gateway Servers   | apigatwayp01-03     | 192.168.10.174-176          | 192.168.10.128/26|<br>| Analytics Servers | apianlyticp01-03    | 192.168.10.168-170          | 192.168.10.128/26|<br>| Portal Servers    | apiportalp01-03     | 192.168.10.171-173          | 192.168.10.128/26|<br>| DNS Servers       | N/A                 | 192.168.20.50, 192.168.20.55| 192.168.20.0/24  |<br>| NTP Server        | N/A                 | 192.168.30.129               | 192.168.30.0/24  |<br>+-------------------+---------------------+-----------------------------+--------<br>----------+</pre><pre>+-------------------+-----+----------------+<br>| Load Balancer VIPs| N/A | VIP Address    |<br>+-------------------+-----+----------------+<br>| Management VIP    | N/A | 192.168.10.161 |<br>| Gateway VIP       | N/A | 192.168.10.164 |<br>| Analytics VIP     | N/A | 192.168.10.162 |<br>| Portal VIP        | N/A | 192.168.10.163 |<br>+-------------------+-----+----------------+</pre><p><strong>3. DNS Configuration</strong></p><p>All endpoints should resolve under palestine-bank.com.</p><pre>+---------------------+------------------------------+---------------+<br>| Service             | DNS Record                   | LB VIP        |<br>+---------------------+------------------------------+---------------+<br>| Cloud Manager UI    | admin.palestine-bank.com     | 192.168.10.161|<br>| API Manager UI      | manager.palestine-bank.com   | 192.168.10.161|<br>| Platform API        | api.palestine-bank.com       | 192.168.10.161|<br>| Consumer API        | consumer.palestine-bank.com  | 192.168.10.161|<br>| Gateway Endpoint    | rgw.palestine-bank.com       | 192.168.10.164|<br>| Gateway Management  | rgwd.palestine-bank.com      | 192.168.10.164|<br>| Developer Portal    | portal.palestine-bank.com    | 192.168.10.163|<br>| Portal Admin        | portaladmin.palestine-bank.com|192.168.10.163|<br>+---------------------+------------------------------+---------------+</pre><p><strong>4. Firewall Requirements</strong></p><pre>1. Between Subsystems (All API Connect VMs)<br><br>+----------------------+----------+----------------------------------+<br>| Ports                | Protocol | Purpose                          |<br>+----------------------+----------+----------------------------------+<br>| 442, 2379, 2380,     | TCP      | Kubernetes/ETCD                  |<br>| 6443, 6444           |          |                                  |<br>+----------------------+----------+----------------------------------+<br>| 9099, 10248-10259    | TCP      | Internal cluster communication   |<br>+----------------------+----------+----------------------------------+<br>| 30000-32767          | TCP      | Dynamic service exposure         |<br>| (K8s NodePorts)      |          |                                  |<br>+----------------------+----------+----------------------------------+<br>2. Gateway-Specific Ports<br><br>+----------------------+----------+---------------------------+<br>| Ports                | Protocol | Purpose                   |<br>+----------------------+----------+---------------------------+<br>| 15222-15226          | TCP      | Gateway peering           |<br>+----------------------+----------+---------------------------+<br>| 26222-26226          | TCP      | Monitoring                |<br>+----------------------+----------+---------------------------+<br>| 3000, 9443           | TCP      | API Gateway services      |<br>+----------------------+----------+---------------------------+<br>3. External Access<br><br>+------+---------------------+----------------------+----------+----------------------+<br>| Port | Source              | Destination          | Protocol | Purpose              |<br>+------+---------------------+----------------------+----------+----------------------+<br>| 443  | External users      | Load Balancer VIPs   | TCP      | HTTPS API access     |<br>+------+---------------------+----------------------+----------+----------------------+<br>| 22   | Admin workstations  | All API Connect VMs  | TCP      | SSH management       |<br>+------+---------------------+----------------------+----------+----------------------+</pre><p><strong>5. Certificate Requirements</strong></p><p>All public-facing services should use <strong>Palestine Bank-signed certificates</strong> with:<br> ✔ <strong>Wildcard SAN</strong>: *.palestine-bank.com<br> ✔ <strong>Extended Key Usage (EKU)</strong>: serverAuth<br> ✔ <strong>Load Balancer Mode</strong>: <strong>SSL Passthrough (Layer 4)</strong></p><p><strong>6. DataPower Gateway Peering Setup</strong></p><p><strong>Common Configuration (All Gateways)</strong></p><pre>top; configure terminal;<br>domain apiconnect; visible default; exit;<br>sw apiconnect;<br>loglevel debug;<br>logging target gwd-log<br>type file<br>format text<br>timestamp syslog<br>size 50000<br>local-file logtemp:///gwd-log<br>event apic-gw-service debug<br>exit<br>config-sequence &quot;apiconnect&quot;<br>location &quot;local:///&quot;<br>watch &quot;on&quot;<br>delete-unused &quot;on&quot;<br>match &quot;(.*)\.cfg$&quot;<br>summary &quot;Toolkit Reboot configuration&quot;<br>run-sequence-interval 3000<br>optimize-for-apic on<br>exit<br>crypto<br>key sth_apic sharedcert:///apic.key<br>certificate sth_apic sharedcert:///apic.pem<br>idcred sth_apic sth_apic sth_apic<br>ssl-client gw-mgmt-tls-client-profile<br>idcred sth_apic<br>no validate-server-cert<br>exit<br>ssl-server gw-mgmt-tls-server-profile<br>idcred sth_apic<br>no request-client-auth<br>validate-client-cert off<br>exit<br>exit</pre><p><strong>Gateway 1 (apigatwayp01–192.168.10.174)</strong></p><pre>gateway-peering subs<br>admin enabled<br>local-address 192.168.10.174<br>local-port 15222<br>monitor-port 26222<br>priority 100<br>enable-ssl off<br>enable-peer-group on<br>peer 192.168.10.175<br>peer 192.168.10.176<br>persistence memory<br>exit<br>gateway-peering rate-limit<br>admin enabled<br>local-address 192.168.10.174<br>local-port 15223<br>monitor-port 26223<br>priority 100<br>enable-ssl off<br>enable-peer-group on<br>peer 192.168.10.175<br>peer 192.168.10.176<br>persistence memory<br>exit<br># (Repeat for gwd, probe, gws-rate-limit with ports 15224–15226)<br>gateway-peering-manager<br>admin enabled<br>apic-gw-service gwd<br>rate-limit rate-limit<br>subscription subs<br>apiprobe probe<br>ratelimit-module gws-rate-limit<br>exit<br>apic-gw-service<br>admin-state enabled<br>local-address 0.0.0.0<br>local-port 3000<br>api-gw-address 0.0.0.0<br>api-gw-port 9443<br>v5-compatibility-mode off<br>ssl-server gw-mgmt-tls-server-profile<br>ssl-client gw-mgmt-tls-client-profile<br>exit<br>write mem</pre><p><strong>Gateway 2 &amp; 3</strong></p><p>Same as above, but update:</p><ul><li>local-address to 192.168.10.175 (GW2) or 192.168.10.176 (GW3)</li><li>Ensure peer entries point to the other two gateways.</li></ul><p><strong>7. Subsystem Deployment</strong></p><h4><strong>Management Subsystem</strong></h4><ol><li><strong>Initialize the deployment environment</strong>:</li></ol><pre>apicup init apic-prod<br>copy apicup.exe apic-prod\<br>cd apic-prod<br>apicup licenses accept L-VQYA-YNM22H</pre><ol><li><strong>Management Subsystem</strong>:</li></ol><pre>apicup subsys create apimgmtp management<br>apicup subsys set apimgmtp search-domain=palestine-bank.com<br>apicup subsys set apimgmtp platform-api=api.palestine-bank.com<br>apicup subsys set apimgmtp consumer-api=consumer.palestine-bank.com<br>apicup subsys set apimgmtp cloud-admin-ui=admin.palestine-bank.com<br>apicup subsys set apimgmtp api-manager-ui=manager.palestine-bank.com<br>apicup subsys set apimgmtp hub=hub.palestine-bank.com<br>apicup subsys set apimgmtp turnstile=turnstile.palestine-bank.com</pre><ol><li><strong>Portal Subsystem</strong>:</li></ol><pre>apicup subsys set apiportalp portal-admin=portaladmin.palestine-bank.com<br>apicup subsys set apiportalp portal-www=portal.palestine-bank.com</pre><ol><li><strong>Certificate Configuration</strong>:</li></ol><pre>apicup certs set apimgmtp platform-api cert.pem APICKEY1.key cert.pem<br>apicup certs set apimgmtp consumer-api cert.pem APICKEY1.key cert.pem<br>apicup certs set apiportalp portal-www-ingress cert.pem APICKEY1.key cert.pem</pre><ol><li><strong>Validate and Install</strong>:</li></ol><pre>apicup subsys get apimgmtp - validate<br>apicup subsys install apimgmtp - out apimgmtp</pre><p><strong>8. Verification</strong></p><p>✅ <strong>Gateway Peering</strong>: Check logs for successful peer connections.<br> ✅ <strong>DNS Resolution</strong>: Ensure all endpoints resolve correctly.<br> ✅ <strong>Firewall</strong>: Confirm required ports are open.<br> ✅ <strong>Certificates</strong>: Validate SSL handshake on all public endpoints.</p><p><strong>Appendix</strong></p><ul><li><strong>Troubleshooting Tips</strong></li><li><strong>Backup &amp; Recovery Procedures</strong></li><li><strong>Contact Support</strong></li></ul><p><strong>END OF DOCUMENT</strong></p><p>This guide provides a <strong>complete, structured deployment plan</strong> for Palestine Bank’s IBM API Connect setup, including <strong>dummy IPs</strong> for reference.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac4f6c4e77b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Full Example: OpenShift Deployment with Redis for IBM ACE Request-Response Correlation]]></title>
            <link>https://medium.com/@haythamadel/full-example-openshift-deployment-with-redis-for-ibm-ace-request-response-correlation-5989bb47408f?source=rss-bfd85a16be53------2</link>
            <guid isPermaLink="false">https://medium.com/p/5989bb47408f</guid>
            <dc:creator><![CDATA[Haytham Ellamey]]></dc:creator>
            <pubDate>Thu, 27 Mar 2025 11:38:01 GMT</pubDate>
            <atom:updated>2025-03-27T11:38:01.128Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The Challenge: Why We Need Redis for Correlation</strong></p><p>In distributed systems using <strong>IBM App Connect Enterprise (ACE) on OpenShift</strong>, a common challenge arises when processing <strong>asynchronous request-response patterns</strong>:</p><p><strong>The Core Problem</strong></p><ol><li><strong>Multiple ACE Pods (Replicas)</strong></li></ol><ul><li>OpenShift deployments typically run multiple ACE pods for high availability.</li><li>When a request enters the system, it might be processed by <strong>Pod A</strong>, but the response could return to <strong>Pod B</strong>.</li></ul><ol><li><strong>Stateless Nature of HTTP</strong></li></ol><ul><li>By default, HTTP is stateless — subsequent requests (including responses) are not guaranteed to reach the same pod.</li></ul><ol><li><strong>In-Memory Cache Limitations</strong></li></ol><ul><li>ACE’s native CACHEPUT/CACHEGET only works <strong>per pod</strong>.</li><li>If Pod A stores a request context, Pod B cannot retrieve it.</li></ul><p><strong>Example Scenario</strong></p><ol><li><strong>User submits an order request</strong> → Processed by <strong>ACE Pod 1</strong>.</li><li><strong>Backend service takes time</strong> (async processing).</li><li><strong>Response returns</strong> → OpenShift routes it to <strong>ACE Pod 2</strong> (due to load balancing).</li><li><strong>Pod 2 has no context</strong> of the original request → <strong>FAILURE</strong>.</li></ol><p><strong>Why Sticky Sessions Are not Enough</strong></p><ul><li><strong>Session affinity</strong> (sticky sessions) can route responses to the same pod, but:</li><li><strong>Fails if the pod crashes</strong> (OpenShift spins up a new instance).</li><li><strong>Causes uneven load distribution</strong> (some pods get overloaded).</li><li><strong>Doesn’t work for long-running transactions</strong> (sessions time out).</li></ul><p><strong>How Redis Solves This Problem</strong></p><p><strong>The Solution: Distributed Caching with Redis</strong></p><p>✅ <strong>Centralized Storage</strong></p><ul><li>All ACE pods <strong>read/write to the same Redis cache</strong>.</li><li>Correlation data persists even if a pod restarts.</li></ul><p>✅ <strong>Consistent Hashing by Correlation ID</strong></p><ul><li>Every request gets a <strong>unique X-Correlation-ID</strong>.</li><li>Redis stores the <strong>original request context</strong> under this key.</li></ul><p>✅ <strong>Resilience to Pod Failures</strong></p><ul><li>If <strong>Pod A crashes</strong>, <strong>Pod B</strong> can still retrieve the context from Redis.</li></ul><p>✅ <strong>Scalable &amp; Stateless</strong></p><ul><li>No dependency on which pod handles the response.</li><li>Works seamlessly with <strong>OpenShift auto-scaling</strong>.</li></ul><p><strong>Real-World Impact</strong></p><p><strong>Without Redis</strong></p><p><strong>With Redis</strong></p><p>❌ Responses fail if routed to wrong pod</p><p>✅ Responses work regardless of pod</p><p>❌ Pod crashes lose request state</p><p>✅ Survives pod restarts</p><p>❌ Manual recovery needed</p><p>✅ Self-healing with TTL</p><p>❌ Hard to scale horizontally</p><p>✅ Works with unlimited ACE replicas</p><p><strong>Conclusion</strong></p><p>The <strong>Redis-based correlation solution</strong> ensures:<br> ✔ <strong>Reliable async processing</strong> in multi-pod ACE deployments.<br> ✔ <strong>Fault tolerance</strong> against pod failures.<br> ✔ <strong>Seamless scaling</strong> without sticky sessions.</p><p>This is why we implement <strong>Redis as the backbone</strong> for request-response correlation in <strong>IBM ACE on OpenShift</strong>. 🚀</p><p>This guide provides a complete implementation of Redis-backed correlation in IBM ACE on OpenShift, including YAML definitions, ACE flow code, and operational considerations.</p><p><strong>1. Redis Deployment on OpenShift</strong></p><p><strong>1.1 Deploy Redis with Persistent Storage</strong></p><pre># redis-deployment.yaml<br>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: redis<br>  labels:<br>    app: redis<br>spec:<br>  replicas: 3<br>  selector:<br>    matchLabels:<br>      app: redis<br>  template:<br>    metadata:<br>      labels:<br>        app: redis<br>    spec:<br>      containers:<br>      - name: redis<br>        image: redis:6.2-alpine<br>        ports:<br>        - containerPort: 6379<br>        volumeMounts:<br>        - name: redis-data<br>          mountPath: /data<br>        resources:<br>          requests:<br>            cpu: &quot;500m&quot;<br>            memory: &quot;1Gi&quot;<br>          limits:<br>            cpu: &quot;2&quot;<br>            memory: &quot;2Gi&quot;<br>        command: [&quot;redis-server&quot;, &quot;--appendonly yes&quot;]<br>      volumes:<br>      - name: redis-data<br>        persistentVolumeClaim:<br>          claimName: redis-pvc<br>---<br># redis-service.yaml<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: redis<br>spec:<br>  ports:<br>  - port: 6379<br>    targetPort: 6379<br>  selector:<br>    app: redis<br>  clusterIP: None<br>---<br># redis-pvc.yaml<br>apiVersion: v1<br>kind: PersistentVolumeClaim<br>metadata:<br>  name: redis-pvc<br>spec:<br>  accessModes:<br>    - ReadWriteOnce<br>  resources:<br>    requests:<br>      storage: 5Gi</pre><p><strong>Apply the configuration:</strong></p><pre>oc apply -f redis-deployment.yaml -f redis-service.yaml -f redis-pvc.yaml</pre><p><strong>1.2 Verify Redis Cluster</strong></p><pre>oc exec -it redis-0 - redis-cli PING</pre><p># Should return “PONG”</p><pre>oc exec -it redis-0 - redis-cli INFO replication</pre><p># Verify all replicas are connected</p><p><strong>2. ACE Integration Server Configuration</strong></p><p><strong>2.1 Add Redis Resource to server.conf.yaml</strong></p><pre># server.conf.yaml<br>resourceManagers:<br>  redis:<br>    aceRedis:<br>      connection:<br>        host: &quot;redis&quot;  # Kubernetes Service name<br>        port: 6379<br>        timeout: 5000  # 5 seconds<br>      pool:<br>        maxTotal: 50<br>        maxIdle: 10<br>        minIdle: 2</pre><p><strong>2.2 Configure OpenShift Deployment for ACE</strong></p><pre># ace-deployment.yaml<br>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: ace-integration-server<br>spec:<br>  replicas: 3<br>  selector:<br>    matchLabels:<br>      app: ace<br>  template:<br>    metadata:<br>      labels:<br>        app: ace<br>    spec:<br>      containers:<br>      - name: ace<br>        image: cp.icr.io/cp/appc/ace:12.0.4.0-r2<br>        ports:<br>        - containerPort: 7600<br>        - containerPort: 7800<br>        env:<br>        - name: LICENSE<br>          value: &quot;accept&quot;<br>        - name: ACE_SERVER_NAME<br>          value: &quot;ACE01&quot;<br>        volumeMounts:<br>        - name: server-conf<br>          mountPath: /home/aceuser/ace-server/server.conf.yaml<br>          subPath: server.conf.yaml<br>      volumes:<br>      - name: server-conf<br>        configMap:<br>          name: ace-config<br>---<br># ace-service.yaml<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: ace<br>spec:<br>  ports:<br>  - name: http<br>    port: 7800<br>    targetPort: 7800<br>  selector:<br>    app: ace</pre><p><strong>3. ACE Flow Implementation</strong></p><p><strong>3.1 Request Flow (Storing Context in Redis)</strong></p><pre>-- Generate correlation ID if not present<br>SET OutputRoot.Properties.CorrelationId = COALESCE(<br>  InputRoot.Properties.CorrelationId,<br>  UUIDASCHARACTERS(UUID())<br>);<br><br>-- Prepare Redis storage<br>CREATE LASTCHILD OF Environment.Variables DOMAIN(&#39;Storage&#39;);<br>SET Environment.Variables.Storage.RequestData = InputRoot.JSON.Data;<br>SET Environment.Variables.Storage.Timestamp = CURRENT_TIMESTAMP;<br><br>-- Store in Redis with 5-minute TTL<br>SET OutputLocalEnvironment.Destination.Redis.Command = &#39;SETEX&#39;;<br>SET OutputLocalEnvironment.Destination.Redis.Key = &#39;corr:&#39; || OutputRoot.Properties.CorrelationId;<br>SET OutputLocalEnvironment.Destination.Redis.Value = ASBITSTREAM(Environment.Variables.Storage);<br>SET OutputLocalEnvironment.Destination.Redis.Expiry = 300;  -- 300 seconds = 5 minutes<br><br>-- Propagate correlation ID to backend<br>SET OutputRoot.HTTP.RequestHeader.X-Correlation-ID = OutputRoot.Properties.CorrelationId;</pre><p><strong>3.2 Response Flow (Retrieving from Redis)</strong></p><pre>-- Extract correlation ID<br>DECLARE correlationId CHARACTER InputRoot.Properties.CorrelationId;<br>IF (LASTMOVE(correlationId) = FALSE) THEN<br>  SET correlationId = InputRoot.HTTP.RequestHeader.&quot;X-Correlation-ID&quot;;<br>END IF;<br><br>-- Retrieve from Redis<br>SET OutputLocalEnvironment.Destination.Redis.Command = &#39;GET&#39;;<br>SET OutputLocalEnvironment.Destination.Redis.Key = &#39;corr:&#39; || correlationId;<br>CALL RedisRequest();<br><br>-- Process response<br>IF (InputLocalEnvironment.Redis.Status = &#39;SUCCESS&#39; AND <br>    LASTMOVE(InputLocalEnvironment.Redis.Response) = TRUE) THEN<br>    <br>  -- Deserialize stored context<br>  DECLARE storedContext REFERENCE TO CAST(<br>    InputLocalEnvironment.Redis.Response AS CHAR CCSID 1208<br>  );<br>  <br>  -- Access original data<br>  DECLARE originalRequest REFERENCE TO storedContext.RequestData;<br>  DECLARE requestTime CHARACTER storedContext.Timestamp;<br>  <br>  -- Build response<br>  SET OutputRoot.JSON.Data.response = InputRoot.JSON.Data;<br>  SET OutputRoot.JSON.Data.originalRequestTime = requestTime;<br>  <br>  -- Cleanup Redis entry<br>  SET OutputLocalEnvironment.Destination.Redis.Command = &#39;DEL&#39;;<br>  SET OutputLocalEnvironment.Destination.Redis.Key = &#39;corr:&#39; || correlationId;<br>  CALL RedisRequest();<br>  <br>ELSE<br>  -- Handle missing correlation<br>  THROW USER EXCEPTION MESSAGE 2999 VALUES(<br>    &#39;Correlation ID not found&#39;,<br>    correlationId<br>  );<br>END IF;</pre><p><strong>4. Operational Components</strong></p><p><strong>4.1 Redis Health Check Sidecar</strong></p><pre># Add to ACE deployment spec<br>containers:<br>- name: redis-healthcheck<br>  image: busybox<br>  command: [&quot;/bin/sh&quot;, &quot;-c&quot;]<br>  args:<br>    - while true; do<br>        if nc -z redis 6379; then<br>          touch /tmp/healthy;<br>        else<br>          rm -f /tmp/healthy;<br>        fi;<br>        sleep 5;<br>      done<br>  volumeMounts:<br>  - name: healthcheck<br>    mountPath: /tmp<br>  readinessProbe:<br>    exec:<br>      command: [&quot;cat&quot;, &quot;/tmp/healthy&quot;]<br>    initialDelaySeconds: 5<br>    periodSeconds: 5</pre><p><strong>4.2 Horizontal Pod Autoscaler</strong></p><pre>apiVersion: autoscaling/v2<br>kind: HorizontalPodAutoscaler<br>metadata:<br>  name: ace-hpa<br>spec:<br>  scaleTargetRef:<br>    apiVersion: apps/v1<br>    kind: Deployment<br>    name: ace-integration-server<br>  minReplicas: 2<br>  maxReplicas: 10<br>  metrics:<br>  - type: Resource<br>    resource:<br>      name: cpu<br>      target:<br>        type: Utilization<br>        averageUtilization: 70</pre><p><strong>5. Monitoring Setup</strong></p><p><strong>5.1 Redis Metrics Exporter</strong></p><pre># redis-exporter.yaml<br>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: redis-exporter<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      app: redis-exporter<br>  template:<br>    metadata:<br>      labels:<br>        app: redis-exporter<br>    spec:<br>      containers:<br>      - name: redis-exporter<br>        image: oliver006/redis_exporter:v1.45.0<br>        ports:<br>        - containerPort: 9121<br>        args:<br>        - --redis.addr=redis:6379<br>---<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: redis-exporter<br>spec:<br>  ports:<br>  - port: 9121<br>    targetPort: 9121<br>  selector:<br>    app: redis-exporter</pre><p><strong>5.2 Prometheus Scrape Config</strong></p><pre># prometheus-additional.yaml<br>- job_name: &#39;redis&#39;<br>  static_configs:<br>  - targets: [&#39;redis-exporter:9121&#39;]<br>- job_name: &#39;ace&#39;<br>  static_configs:<br>  - targets: [&#39;ace:7800&#39;]</pre><p><strong>6. Failure Recovery Procedures</strong></p><p><strong>6.1 Redis Connection Failure Handling</strong></p><pre>-- Wrapper for all Redis calls<br>SUBROUTINE SafeRedisRequest() RETURNS BOOLEAN<br>BEGIN<br>  DECLARE retryCount INTEGER 0;<br>  DECLARE maxRetries INTEGER 3;<br>  <br>  WHILE (retryCount &lt; maxRetries) DO<br>    TRY;<br>      CALL RedisRequest();<br>      IF (InputLocalEnvironment.Redis.Status = &#39;SUCCESS&#39;) THEN<br>        RETURN TRUE;<br>      END IF;<br>    CATCH;<br>      CALL LogError(&#39;Redis attempt &#39; || (retryCount+1) || &#39; failed&#39;);<br>    END;<br>    CALL Delay(1000 * POWER(2, retryCount));  -- Exponential backoff<br>    SET retryCount = retryCount + 1;<br>  END WHILE;<br>  <br>  CALL AlertTeam(&#39;Redis unavailable after &#39; || maxRetries || &#39; attempts&#39;);<br>  RETURN FALSE;<br>END;</pre><p><strong>6.2 Cold Start Recovery</strong></p><p># Command to rebuild correlation index after outage</p><pre>oc exec redis-0 - redis-cli - scan - pattern &#39;corr:*&#39; | xargs -L 100 redis-cli DEL</pre><p>This implementation provides:</p><ul><li>Redis cluster with persistence</li><li>ACE integration with proper correlation</li><li>Health monitoring and autoscaling</li><li>Comprehensive failure recovery</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5989bb47408f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Magic of IBM MQ Uniform cluster]]></title>
            <link>https://medium.com/@haythamadel/magic-of-ibm-mq-uniform-cluster-72a35e9036bb?source=rss-bfd85a16be53------2</link>
            <guid isPermaLink="false">https://medium.com/p/72a35e9036bb</guid>
            <dc:creator><![CDATA[Haytham Ellamey]]></dc:creator>
            <pubDate>Mon, 24 Mar 2025 18:12:30 GMT</pubDate>
            <atom:updated>2025-03-24T18:12:30.114Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>IBM MQ Uniform Cluster: The Matchmaking Service for Your Messaging Systems</strong></h3><p>Imagine a world where your messages never get lost, where queues are always ready to connect, and where high availability is always there to save the day. Welcome to the world of IBM MQ Uniform Cluster — a matchmaking service for your messaging systems, where queues find their perfect match, and downtime is the unwanted guest who never gets invited.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*2rRhsZculFp5x8PRgQLiCQ.png" /></figure><p>In this article, we’ll explore the amazing world of IBM MQ Uniform Cluster, where messages are never ignored, and your applications can count on reliability, scalability, and top performance. So, grab your favorite drink, sit back, and let’s see how IBM MQ Uniform Cluster is the perfect solution for your messaging needs. Whether you’re an IT expert or just someone who enjoys a good tech story, this one’s for you!</p><p><strong>The Funny Side of Queues</strong></p><p>Let’s be honest: queues can be a bit dramatic. They’re like the high-maintenance stars of the messaging world, always needing attention and causing trouble if things don’t go perfectly. But with IBM MQ Uniform Cluster, you’re in charge. You’re the boss, and the queues listen to you. No more drama — just smooth, reliable messaging.</p><p><strong>Why Uniform Clusters Are the Ultimate Wingman</strong></p><ul><li><strong>High Availability:</strong> Think of your messaging system as a party. With IBM MQ Uniform Cluster, the party never stops, even if one DJ (queue manager) leaves. The music keeps playing, the queues keep moving, and your applications stay happy.</li><li><strong>Load Balancing:</strong> Uniform Clusters are great at multitasking. They spread the work evenly across all queue managers, so no single one gets overloaded. It’s like having a team of chefs in the kitchen — no one gets tired, and everyone gets fed.</li><li><strong>Simplified Management:</strong> Managing a cluster can be tricky, but IBM MQ Uniform Cluster makes it super easy. Adding or removing queue managers is hassle-free. It’s like having a kitchen that cleans itself — messy, but it takes care of everything.</li><li><strong>Scalability:</strong> Need to handle more messages? No problem. Uniform Clusters let you add more queue managers easily. It’s like going from a small dinner party to a big festival — more people, more fun, and no chaos.</li></ul><p><strong>Use Case: E-Commerce Order Processing</strong></p><p>Let’s say you run an e-commerce platform where orders are processed in real-time. During peak shopping seasons (like Black Friday), your system gets bombarded with thousands of orders per second. If your messaging system goes down, you’re looking at a lot of angry customers and lost revenue.</p><p>Enter IBM MQ Uniform Cluster. Here’s how it saves the day:</p><ul><li><strong>High Availability:</strong> If one queue manager fails due to high load, another queue manager in the cluster takes over instantly. No dropped orders, no unhappy customers.</li><li><strong>Load Balancing:</strong> Orders are distributed evenly across all queue managers, ensuring no single server gets overwhelmed. It’s like having multiple cashiers at a checkout line — everyone gets served quickly.</li><li><strong>Scalability:</strong> As order volume increases, you can add more queue managers to the cluster without disrupting the system. It’s like opening more checkout lanes during a sale.</li><li><strong>Simplified Management:</strong> Adding or removing queue managers is a breeze, so you can adapt to changing workloads without breaking a sweat.</li></ul><p><strong>Advantages of IBM MQ Uniform Cluster Over Traditional Clusters</strong></p><p>The IBM MQ Uniform Cluster offers several advantages over a traditional (non-uniform) MQ cluster. These advantages make it a more efficient, scalable, and easier-to-manage solution for modern messaging needs. Here’s a breakdown of the key benefits:</p><ol><li><strong>Simplified Management</strong></li></ol><ul><li><strong>Uniform Cluster:</strong> All queue managers in a uniform cluster are identical in configuration. This means you only need to define queues, channels, and other objects once, and they are automatically shared across all queue managers in the cluster. It’s like having a single blueprint for all queue managers.</li><li><strong>Traditional Cluster:</strong> Each queue manager must be configured individually, which can be time-consuming and error-prone, especially in large environments.</li></ul><ol><li><strong>Automatic Workload Distribution</strong></li></ol><ul><li><strong>Uniform Cluster:</strong> Workload is automatically distributed across all queue managers in the cluster. Applications can connect to any queue manager, and the cluster ensures messages are routed to the correct destination. This makes load balancing effortless.</li><li><strong>Traditional Cluster:</strong> Load balancing often requires manual configuration and tuning, which can be complex and less efficient.</li></ul><ol><li><strong>High Availability (HA) Made Easier</strong></li></ol><ul><li><strong>Uniform Cluster:</strong> If one queue manager fails, applications can seamlessly connect to another queue manager in the cluster without any disruption. The uniform setup ensures that all queue managers are ready to take over at any time.</li><li><strong>Traditional Cluster:</strong> While HA is possible, it often requires additional setup (e.g., multi-instance queue managers) and may not be as seamless.</li></ul><ol><li><strong>Scalability</strong></li></ol><ul><li><strong>Uniform Cluster:</strong> Adding new queue managers to the cluster is straightforward. Once added, they automatically inherit the cluster’s configuration and start sharing the workload. This makes scaling horizontally (adding more queue managers) much easier.</li><li><strong>Traditional Cluster:</strong> Scaling requires manual configuration of each new queue manager, which can slow down the process and increase the risk of errors.</li></ul><ol><li><strong>Consistent Configuration</strong></li></ol><ul><li><strong>Uniform Cluster:</strong> Since all queue managers share the same configuration, there’s no risk of inconsistencies. This reduces the chances of errors and makes troubleshooting easier.</li><li><strong>Traditional Cluster:</strong> Each queue manager has its own configuration, which can lead to inconsistencies and make troubleshooting more challenging.</li></ul><ol><li><strong>Reduced Operational Overhead</strong></li></ol><ul><li><strong>Uniform Cluster:</strong> With automatic configuration sharing and workload distribution, there’s less need for manual intervention. This reduces operational overhead and frees up IT resources for other tasks.</li><li><strong>Traditional Cluster:</strong> More manual effort is required to manage and maintain the cluster, especially as it grows in size.</li></ul><ol><li><strong>Better Resource Utilization</strong></li></ol><ul><li><strong>Uniform Cluster:</strong> Resources (like CPU and memory) are used more efficiently because the workload is evenly distributed across all queue managers.</li><li><strong>Traditional Cluster:</strong> Resource utilization may be uneven, leading to some queue managers being overworked while others are underutilized.</li></ul><ol><li><strong>Faster Recovery</strong></li></ol><ul><li><strong>Uniform Cluster:</strong> In case of a failure, recovery is faster because the other queue managers in the cluster are already configured and ready to take over.</li><li><strong>Traditional Cluster:</strong> Recovery may take longer, especially if manual intervention is required to reconfigure or restart queue managers.</li></ul><ol><li><strong>Ideal for Cloud and Dynamic Environments</strong></li></ol><ul><li><strong>Uniform Cluster:</strong> Its simplicity and scalability make it a perfect fit for cloud environments, where resources are often dynamic and need to scale up or down quickly.</li><li><strong>Traditional Cluster:</strong> Less suited for dynamic environments due to the manual effort required for scaling and configuration.</li></ul><p>So, you want to create a <strong>uniform cluster</strong>? Great! It’s like herding cats, but with fewer scratches. Here’s how to do it without crying into your keyboard.</p><p><strong>Step 1: Write a Love Letter to Your Cluster</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*VWQJQOngeC_6lKMtuj0sSA.png" /></figure><p>First, create a file (uniclus.ini) that tells your cluster how it should look. Think of it as a dating profile, but for queue managers.</p><p>You’ll need <strong>two full repositories</strong> (the gossip queens of the cluster) and some <strong>partial repositories</strong> (the listeners). Here’s an example:</p><pre>AutoCluster:  <br> Repository2Conname=UNIFORMQM1.dnsname(1414)  # &quot;Hey, UNIFORMQM1, sit here.&quot;<br> Repository2Name=UNIFORMQM1                   # &quot;Your name is UNIFORMQM1.&quot;<br> Repository1Conname=UNIFORMQM2.dnsname(1414)  # &quot;UNIFORMQM2, you sit next to UNIFORMQM1.&quot;<br> Repository1Name=UNIFORMQM2                   # &quot;Your name is UNIFORMQM2.&quot;<br> ClusterName=UNICLUS                   # &quot;We shall call this group UNICLUS.&quot;<br> Type=Uniform                          # &quot;And it shall be *fancy*.&quot;</pre><p>This file is like the <strong>rulebook</strong> for your cluster. No queue managers exist yet, but we’re planning their lives already.</p><p><strong>Step 2: Teach Your Queue Managers How to Talk</strong></p><p>Next, create a <strong>MQSC file</strong> (uniclus.mqsc) that tells your queue managers how to behave. This is like giving them a script for a very boring play.</p><p><strong>Mandatory Line (Do Not Skip or Chaos Ensues):</strong></p><pre>define channel(&#39;+AUTOCL+_+QMNAME+&#39;) chltype(clusrcvr) trptype(tcp) conname(+CONNAME+) cluster(&#39;+AUTOCL+&#39;) replace</pre><p>This is the <strong>“Hello, my name is…”</strong> sticker for your queue managers.</p><p>You can also add other fun stuff, like:</p><pre>define QL(APPQ) maxdepth(99999999) replace # &quot;This queue is bottomless.&quot;<br>define channel(CLIENTCHL) chltype(svrconn) trptype(tcp) replace # &quot;Be nice to clients.&quot;</pre><p><strong>Step 3: Deploy the Files Like a Secret Agent</strong></p><p>Put both files (uniclus.ini and uniclus.mqsc) on every machine that will host a queue manager.</p><p>Example: /shared/uniclus.ini (because sharing is caring).</p><p><strong>Step 4: Summon the Queue Managers</strong></p><p>Now, create each queue manager with this magical command:</p><p><strong>For UNIFORMQM1 (Full Repository #1):</strong></p><pre>crtmqm -p 1414 -ii /shared/uniclus.ini -ic /shared/uniclus.mqsc -iv CONNAME=UNIFORMQM1.dnsname(1414) UNIFORMQM1<br>strmqm UNIFORMQM1 # &quot;Wake up, UNIFORMQM1!&quot;</pre><p><strong>For UNIFORMQM2 (Full Repository #2):</strong></p><pre>crtmqm -p 1414 -ii /shared/uniclus.ini -ic /shared/uniclus.mqsc -iv CONNAME=UNIFORMQM2.dnsname(1414) UNIFORMQM2<br>strmqm UNIFORMQM2 # &quot;Rise and shine, UNIFORMQM2!&quot;</pre><p><strong>For UNIFORMQM3 &amp; QMD (Partial Repositories):</strong><br> Same command, just change the names. They’ll figure out their roles automatically — like Hogwarts sorting hats, but for MQ.</p><p><strong>What Happens Next (The Magic Part)</strong></p><ul><li>The .ini file tells the queue managers who’s the boss (full repos).</li><li>The .mqsc file makes sure they all know how to talk to each other.</li><li><strong>Full repositories</strong> get VIP treatment.</li><li><strong>Partial repositories</strong> just nod along.</li></ul><p><strong>How to Check If It Worked (Because Trust No One)</strong></p><p><strong>On UNIFORMQM1 (Full Repo):</strong></p><pre>disqmgr repos<br>Expected response: REPOS(UNICLUS) (Translation: &quot;I&#39;m important!&quot;)</pre><p><strong>On UNIFORMQM3 (Partial Repo):</strong></p><pre>disqmgr repos<br>Expected response: REPOS( ) (Translation: &quot;I just work here.&quot;)</pre><p><strong>Check the channels:</strong></p><pre>dischl(UNICLUS*) conname</pre><p>You should see sender channels to the full repos. If not… well, start debugging.</p><p><strong>Final Thoughts</strong></p><ul><li>If it works, you’ll see a happy message (AMQ9883).</li><li>If it fails, you’ll get an error (AMQ9882 or AMQ9881).</li><li>Either way, you’re now a <strong>cluster wizard</strong>.</li></ul><p>Now go forth and balance those applications <strong>automagically</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72a35e9036bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anatomy of OpenShift Operator and use case for IBM Cloud pak for integration]]></title>
            <link>https://medium.com/@haythamadel/anatomy-of-openshift-operator-and-use-case-for-ibm-cloud-pak-for-integration-ed555473530b?source=rss-bfd85a16be53------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed555473530b</guid>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[cloud-pak-for-integration]]></category>
            <category><![CDATA[openshift]]></category>
            <dc:creator><![CDATA[Haytham Ellamey]]></dc:creator>
            <pubDate>Sun, 23 Mar 2025 10:44:12 GMT</pubDate>
            <atom:updated>2025-03-23T10:44:12.676Z</atom:updated>
            <content:encoded><![CDATA[<p>Red Hat OpenShift Operators are a fundamental part of the OpenShift ecosystem, enabling the automation, management, and lifecycle of applications and services on the platform. Below is a detailed explanation of the anatomy of an OpenShift Operator, including its components like operands, channels, catalog sources, and subscriptions. I’ll also describe how these components interact, though I cannot provide actual figures, I will describe them in a way that you can visualize or sketch them.</p><p><strong>1. OpenShift Operator Overview</strong></p><p>An <strong>Operator</strong> is a method of packaging, deploying, and managing a Kubernetes application. It extends the Kubernetes API to create, configure, and manage instances of complex applications on behalf of a user. Operators use <strong>Custom Resource Definitions (CRDs)</strong> to define the desired state of the application and ensure the cluster matches that state.</p><p><strong>2. Key Components of an OpenShift Operator</strong></p><p><strong>a. Operator</strong></p><ul><li>The Operator itself is a containerized application that runs in the cluster.</li><li>It watches for changes to Custom Resources (CRs) and takes action to ensure the desired state is achieved.</li><li>Example: An etcd Operator manages etcd clusters deployed on OpenShift.</li></ul><p><strong>b. Operand</strong></p><ul><li>The <strong>operand</strong> is the application or service managed by the Operator.</li><li>For example, if the Operator manages a database, the database instance is the operand.</li><li>The Operator ensures the operand is deployed, configured, and running as specified in the CR.</li></ul><p><strong>c. Custom Resource Definition (CRD)</strong></p><ul><li>A CRD defines the schema for the Custom Resource (CR) that the Operator manages.</li><li>The CRD allows users to create instances of the application (operand) by defining the desired state in a YAML file.</li></ul><p><strong>d. Catalog Source</strong></p><ul><li>A <strong>Catalog Source</strong> is a repository of Operators available for installation on the cluster.</li><li>It contains metadata about Operators, such as their versions, channels, and dependencies.</li><li>Example: The Red Hat Operator Catalog is a default Catalog Source provided by Red Hat.</li></ul><p><strong>e. Channel</strong></p><ul><li>A <strong>channel</strong> defines a specific update stream for an Operator.</li><li>Operators can have multiple channels (e.g., stable, beta, alpha) to allow users to choose between different release tracks.</li><li>Channels help manage the lifecycle of the Operator and its operands.</li></ul><p><strong>f. Subscription</strong></p><ul><li>A <strong>Subscription</strong> is a custom resource that links an Operator to a specific Catalog Source and Channel.</li><li>It ensures that the Operator is automatically updated when new versions are released in the subscribed channel.</li><li>Example: A Subscription to the stable channel of the etcd Operator ensures the latest stable version is always installed.</li></ul><p><strong>g. ClusterServiceVersion (CSV)</strong></p><ul><li>A <strong>CSV</strong> is a YAML file that describes an Operator’s metadata, permissions, and deployment requirements.</li><li>It is part of the Operator Lifecycle Manager (OLM) and is used to install and manage Operators.</li></ul><p><strong>h. Operator Lifecycle Manager (OLM)</strong></p><ul><li>The <strong>OLM</strong> is a component of OpenShift that manages the lifecycle of Operators.</li><li>It handles installation, upgrades, and dependency resolution for Operators.</li></ul><p><strong>3. Interaction Between Components</strong></p><p>Here’s how the components interact in a typical OpenShift Operator deployment:</p><ol><li><strong>Catalog Source</strong>: Provides a list of available Operators.</li><li><strong>Subscription</strong>: Links an Operator to a specific Channel and Catalog Source.</li><li><strong>Operator</strong>: Installed and managed by the OLM based on the Subscription.</li><li><strong>Custom Resource (CR)</strong>: Created by the user to define the desired state of the operand.</li><li><strong>Operand</strong>: Deployed and managed by the Operator based on the CR.</li></ol><p><strong>4. Visual Representation (Description)</strong></p><p><strong>Figure 1: OpenShift Operator Architecture</strong></p><ol><li><strong>Catalog Source</strong>: A repository of Operators (e.g., Red Hat Operator Catalog).</li><li><strong>Subscription</strong>: Connects to a specific Operator and Channel in the Catalog Source.</li><li><strong>Operator</strong>: Installed in the cluster via the OLM.</li><li><strong>Custom Resource (CR)</strong>: Created by the user to define the desired state of the operand.</li><li><strong>Operand</strong>: The application or service managed by the Operator.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*AxnrI1F4LoIWcDFU8sxS8A.png" /></figure><p><strong>Figure 2: Operator Lifecycle Manager (OLM) Workflow</strong></p><ol><li><strong>Catalog Source</strong>: Provides metadata about Operators.</li><li><strong>OLM</strong>: Installs and manages Operators based on Subscriptions.</li><li><strong>Operator</strong>: Watches for CRs and manages the operand.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*Ezfg0WGOgzSYDq3zyx8-mg.png" /></figure><p><strong>5. Example Use Case</strong></p><p><strong>IBM Cloud Pak for Integration (CP4I)</strong> as an example to illustrate how an Operator works in Red Hat OpenShift. IBM Cloud Pak for Integration provides a suite of tools for integrating applications, data, and APIs, and it is deployed and managed using Operators on OpenShift.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*JJBRGgV7ipLbFMlbIXi6jA.png" /></figure><p><strong>Example: IBM Cloud Pak for Integration Operator</strong></p><p><strong>5.1 Operator Overview</strong></p><ul><li>The <strong>IBM Cloud Pak for Integration Operator</strong> is responsible for deploying and managing the various components of the Cloud Pak, such as API Connect, MQ, App Connect, and Event Streams.</li><li>It uses Custom Resource Definitions (CRDs) to define the desired state of these components.</li></ul><p><strong>5.2 Key Components in Action</strong></p><p><strong>a. Catalog Source</strong></p><ul><li>IBM provides a <strong>Catalog Source</strong> for the IBM Cloud Pak for Integration Operator. This Catalog Source contains metadata about the Operator, including its versions, channels, and dependencies.</li><li>Example Catalog Source: ibm-operator-catalog (hosted on IBM’s container registry).</li></ul><p><strong>b. Subscription</strong></p><ul><li>A <strong>Subscription</strong> is created to install the IBM Cloud Pak for Integration Operator from the Catalog Source.</li><li>Example Subscription YAML:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*hR2HFh0VvA4eNGezLdc9xw.png" /></figure><ul><li>This Subscription ensures that the Operator is installed and updated automatically from the v1.0 channel.</li></ul><p><strong>c. Operator</strong></p><ul><li>Once the Subscription is created, the <strong>Operator Lifecycle Manager (OLM)</strong> installs the IBM Cloud Pak for Integration Operator in the cluster.</li><li>The Operator watches for Custom Resources (CRs) that define the desired state of the Cloud Pak components.</li></ul><p><strong>d. Custom Resource (CR)</strong></p><ul><li>A <strong>Custom Resource</strong> is created to define the desired state of a specific component of IBM Cloud Pak for Integration, such as API Connect or MQ.</li><li>Example CR for API Connect:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*YdKIM7bui6IUVo9PjECV5Q.png" /></figure><ul><li>This CR defines an API Connect instance with 3 replicas, using the ibmc-file-gold storage class.</li></ul><p><strong>e. Operand</strong></p><ul><li>The <strong>operand</strong> is the actual instance of the component being managed by the Operator. In this case, it’s the API Connect instance deployed in the cluster.</li><li>The Operator ensures that the API Connect instance matches the desired state defined in the CR.</li></ul><p><strong>5.3. Workflow of IBM Cloud Pak for Integration Operator</strong></p><p><strong>Step-by-Step Workflow</strong></p><ol><li><strong>Catalog Source</strong>: The ibm-operator-catalog provides the IBM Cloud Pak for Integration Operator.</li><li><strong>Subscription</strong>: A Subscription is created to install the Operator from the v1.0 channel.</li><li><strong>Operator</strong>: The OLM installs the Operator in the cluster.</li><li><strong>Custom Resource</strong>: A CR is created to define the desired state of a component (e.g., API Connect).</li><li><strong>Operand</strong>: The Operator deploys and manages the component (e.g., API Connect instance).</li></ol><p><strong>5.4. Visual Representation (Description)</strong></p><p><strong>Figure 1: IBM Cloud Pak for Integration Operator Workflow</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*16K8aXQelRffLjii5AoyZg.png" /></figure><p><strong>Figure 2: Operator Managing Multiple Components</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*zb9ItiLLuEw5UvYWGNWZag.png" /></figure><p><strong>5.5. Example Use Case: Deploying API Connect</strong></p><ol><li><strong>Catalog Source</strong>: The ibm-operator-catalog is added to the cluster.</li><li><strong>Subscription</strong>: A Subscription is created for the IBM Cloud Pak for Integration Operator in the v1.0 channel.</li><li><strong>Operator</strong>: The OLM installs the Operator in the openshift-operators namespace.</li><li><strong>Custom Resource</strong>: A CR is created to define the desired state of an API Connect instance.</li><li><strong>Operand</strong>: The Operator deploys the API Connect instance in the cp4i namespace.</li></ol><p><strong>6. Summary</strong></p><ul><li><strong>Catalog Source</strong>: ibm-operator-catalog provides the IBM Cloud Pak for Integration Operator.</li><li><strong>Subscription</strong>: Links the Operator to the v1.0 channel.</li><li><strong>Operator</strong>: Manages the lifecycle of IBM Cloud Pak components.</li><li><strong>Custom Resource</strong>: Defines the desired state of a component (e.g., API Connect).</li><li><strong>Operand</strong>: The actual instance of the component (e.g., API Connect).</li><li><strong>OLM</strong>: Manages the installation and lifecycle of Operators.</li></ul><p>This example demonstrates how the IBM Cloud Pak for Integration Operator works on OpenShift, leveraging the Operator framework to automate deployment and management.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed555473530b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>