<?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 Habeebbabasulaiman on Medium]]></title>
        <description><![CDATA[Stories by Habeebbabasulaiman on Medium]]></description>
        <link>https://medium.com/@habeebbabasulaiman_39135?source=rss-d9fddf96513c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iTzbGvP6vpEbOvjgUEMdPw.jpeg</url>
            <title>Stories by Habeebbabasulaiman on Medium</title>
            <link>https://medium.com/@habeebbabasulaiman_39135?source=rss-d9fddf96513c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:01:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@habeebbabasulaiman_39135/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[I think we’re teaching Kubernetes backwards.]]></title>
            <link>https://medium.com/@habeebbabasulaiman_39135/i-think-were-teaching-kubernetes-backwards-7bbb492cc65f?source=rss-d9fddf96513c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bbb492cc65f</guid>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[kubernetes-cluster]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cncf-cloud-native]]></category>
            <dc:creator><![CDATA[Habeebbabasulaiman]]></dc:creator>
            <pubDate>Mon, 10 Aug 2026 04:15:06 GMT</pubDate>
            <atom:updated>2026-08-10T04:15:41.647Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-BB91DxshQee_urO65zmjg.png" /></figure><p><strong>I think we’re teaching Kubernetes backwards.</strong></p><p>We start with:</p><p>kubectl get pods</p><p>kubectl apply -f deployment.yaml</p><p>kubectl logs -f</p><p>kubectl cordon</p><p>kubectl drain</p><p>Then we learn a few YAML manifests.</p><p>Then we call ourselves Kubernetes engineers.</p><p>I don’t think that’s enough.</p><p>Because the real question isn’t:</p><p><strong>“What command do I run?”</strong></p><p>It’s:</p><p><strong>“Why is Kubernetes behaving this way?”</strong></p><p>Why does a Deployment create a ReplicaSet instead of managing Pods directly?</p><p>Why does Kubernetes keep recreating a Pod after you delete it?</p><p>Why does a DaemonSet make sense for one workload but a Deployment makes more sense for another?</p><p>Why can an HPA scale a Deployment but not simply scale every workload?</p><p>Why would you use nodeSelector, taints/tolerations, or affinity instead of just telling Kubernetes where to put a Pod?</p><p>Why did the ecosystem need Gateway API when we already had Ingress?</p><p>Why does a production Kubernetes problem often require looking at <strong>metrics, logs, traces, networking, scheduling AND application behaviour</strong> rather than just running another kubectl command?</p><p>These aren’t trivia questions.</p><p>They’re questions about <strong>distributed systems, control loops, scheduling, networking, resilience and observability.</strong></p><p>And this is the shift I’ve been making in my own Kubernetes journey.</p><p>I’m no longer trying to simply memorize Kubernetes.</p><p>I’m trying to understand the <strong>engineering philosophy behind it.</strong></p><p>The most fascinating part of Kubernetes to me is the reconciliation model:</p><p><strong>You declare the state you want.<br>Kubernetes continuously works to make reality converge toward that state.</strong></p><p>That single idea explains so much of what makes Kubernetes powerful.</p><p>Self-healing.</p><p>Rolling updates.</p><p>Replica management.</p><p>Controllers.</p><p>Autoscaling.</p><p>Desired state.</p><p>And eventually, the entire operator pattern.</p><p>That’s a much deeper skill than memorizing YAML.</p><p><strong>Anyone can learn </strong><strong>kubectl.</strong></p><p>The real engineering skill is being able to look at a cluster, understand what it’s doing, identify <em>why</em> it’s doing it, and make the right decision when reality doesn’t match your desired state.</p><p>That’s the Kubernetes engineer I’m working toward becoming.</p><p>And honestly, the deeper I go, the more I realize:</p><p><strong>Kubernetes isn’t difficult because there are too many commands.</strong></p><p>It’s difficult because it forces you to think like a distributed-systems engineer.</p><p><strong>Do you agree?</strong></p><p>Or do you think Kubernetes expertise is primarily about mastering the tools and abstractions around the platform?</p><p>I’d genuinely like to hear the opposing argument.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bbb492cc65f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS All Builders Welcome Grant 2026: Your Ticket to re:Invent, Your Launchpad to Bigger Things]]></title>
            <link>https://medium.com/@habeebbabasulaiman_39135/aws-all-builders-welcome-grant-2026-your-ticket-to-re-invent-your-launchpad-to-bigger-things-a7869146c8cf?source=rss-d9fddf96513c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7869146c8cf</guid>
            <category><![CDATA[students]]></category>
            <category><![CDATA[aws-abwg]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[community-engagement]]></category>
            <category><![CDATA[awsreinvent]]></category>
            <dc:creator><![CDATA[Habeebbabasulaiman]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 06:26:40 GMT</pubDate>
            <atom:updated>2026-06-17T06:26:40.438Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*VMBSNjSPXjBJXCHxDWuKWw.png" /></figure><p>There is a moment when what you are building today stops being just a hobby project and becomes a foundation for a career. That moment often happens in the same room where builders meet, mentors speak, and ideas begin to scale. For too many students and early-career people, that room has been AWS re:Invent — and the barriers to getting there have been real.</p><p>The AWS All Builders Welcome Grant (ABWG) exists to change that. This year, it is not just for early-career technologists. It is also for Student Builders. That means AWS is intentionally making space for learners who are still in classrooms, still figuring out their path, still hungry for the next jump.</p><h3>Why this matters now</h3><p>re:Invent is more than a conference. It is a global stage for cloud innovation, for AI breakthroughs, for leadership stories, and for the communities that are defining what comes next.</p><p>When AWS covers the pass, flight, and hotel for ABWG recipients, they are doing more than paying for travel. They are opening a door to:</p><ul><li>a global network of engineers, founders, mentors, and community builders</li><li>hands-on technical exposure that cannot be replicated from a laptop alone</li><li>late-night hallway conversations that turn into new collaborations</li><li>the confidence that comes from being invited into the same room as the people building the future</li></ul><p>For many students, that door has been closed by cost. This year, AWS is turning the key.</p><h3>Who this is for</h3><p>If any of the following describe you, you should apply:</p><ul><li>You are a student learning cloud, AI, or distributed systems between lectures and labs.</li><li>You are building real projects on AWS even though your résumé still says “early-career.”</li><li>You run or support a peer group, meet-up, or study circle.</li><li>You are a technical writer, open-source contributor, or community mentor.</li><li>You come from a school, city, or region that is rarely represented at major global events.</li><li>You are not waiting until you feel “ready.” You are showing up now.</li></ul><p>This grant is not about having a perfect profile. It is about having drive, a story, and the willingness to learn from the people who are building.</p><h3>What ABWG gives you</h3><p>This grant is designed to remove the financial barrier so you can focus on the real opportunity:</p><ul><li>AWS re:Invent conference registration</li><li>airfare to Las Vegas</li><li>hotel stay during the event</li></ul><p>The real return is the access the grant creates:</p><ul><li>product launches and roadmaps from AWS leaders</li><li>technical sessions and lab experiences across cloud, generative AI, security, developer tools, and more</li><li>community meetups, hackathons, and practical workshops</li><li>direct exposure to career paths you may not have considered yet</li></ul><p>That exposure is especially powerful for students. It turns abstract learning into real context and shows you what the next level looks like.</p><h3>What is new in 2026</h3><p>For 2026, AWS has explicitly reserved space for Student Builders. That is huge.</p><p>What it means:</p><ul><li>Students no longer need to wait for an employer or sponsor.</li><li>AWS is amplifying student voices inside the same conference that shapes enterprise cloud strategy.</li><li>Young builders can enter conversations about AI, sustainability, accessibility, data science, and infrastructure at the same time as established professionals.</li></ul><p>Think about the impact of a student from a small university standing in the same session as a cloud product owner from a global company. That access changes perspective, ambition, and possibility.</p><h3>What you need to make your application stand out</h3><p>The strongest applications are honest, specific, and forward-looking.</p><h3>Use real examples</h3><p>Don’t say:</p><ul><li>“I love AWS.”</li><li>“I want to learn more about cloud.”</li></ul><p>Do say:</p><ul><li>“I built a serverless chat app with AWS Lambda and DynamoDB to help student groups coordinate study sessions.”</li><li>“I led a workshop for 30 classmates on using AWS CDK to automate deployments.”</li><li>“I contributed to an open-source tooling project that helps local nonprofits process data with Amazon S3 and AWS Glue.”</li></ul><h3>Show your impact</h3><p>AWS is looking for people who are building and creating value, even if the project is small.</p><p>Good signals include:</p><ul><li>projects with measurable outcomes</li><li>community learning programs you helped organize</li><li>tutorials, blogs, or videos that helped others</li><li>technical problems you solved with AWS services</li></ul><h3>Be clear about why re:Invent matters for you</h3><p>Answer two questions clearly:</p><ol><li>What will you learn at re:Invent that you cannot get elsewhere?</li><li>What will you do with that knowledge back home?</li></ol><p>For example:</p><ul><li>“I want to bring AWS machine learning best practices back to my campus AI club so we can move from prototypes to production.”</li><li>“I want to connect with developers and founders who can help me turn my sustainability platform into a real service.”</li><li>“I want to meet mentors who can guide the first AWS-based startup from my city.”</li></ul><h3>Write like a human, not a résumé</h3><p>This is not a job application. It is a personal invitation.</p><p>Keep your language direct. Use active verbs. Share a concise story. If you have a challenge you are solving, say it. If you have a goal, say it.</p><h3>The mindset to apply with</h3><p>The strongest signal you can send is not just your past work — it is your future momentum.</p><p>AWS is not looking for the person who already has all the answers. They are looking for the person who:</p><ul><li>continues learning when the path is unclear,</li><li>shares knowledge with others,</li><li>carries ambition with humility,</li><li>and chooses action over waiting.</li></ul><p>If you have ever thought: “I am not sure I belong,” that is exactly the reason to apply.</p><h3>The deadline you need to remember</h3><p>Applications close on <strong>July 14, 2026</strong>.</p><p>If you are still waiting for the perfect time, the perfect project, or the perfect résumé, that time is now. The grant exists to help people who are still building their story.</p><h3>This is a call for action</h3><p>If you are a student, if you are an early-career builder, if you lead a community — apply.</p><p>If you know a friend who is learning AWS from a phone, who is teaching others in a study group, or who is building quietly but deserves a bigger stage — share this now.</p><p>This is not an optional opportunity for the already-established. It is a practical, strategic step for anyone ready to accelerate their learning and network.</p><h3>Apply here</h3><p><a href="https://aws.amazon.com/events/reinvent/experiences/all-builders-welcome/">https://aws.amazon.com/events/reinvent/experiences/all-builders-welcome/</a></p><blockquote><em>Do not let the story of another builder be the one you read about later. Make this the moment you tell your own.</em></blockquote><h3>Quick application checklist</h3><ul><li>Describe one AWS-powered project you built or contributed to</li><li>Explain how re:Invent will change your next 12 months</li><li>Name the community or people you want to help after the event</li><li>Share one concrete outcome you want from the experience</li><li>Submit before July 14, 2026</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7869146c8cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Production-Grade URL Shortener: A Senior DevOps Engineer’s Playbook]]></title>
            <link>https://medium.com/@habeebbabasulaiman_39135/building-a-production-grade-url-shortener-a-senior-devops-engineers-playbook-8883f69d0ec4?source=rss-d9fddf96513c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8883f69d0ec4</guid>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Habeebbabasulaiman]]></dc:creator>
            <pubDate>Thu, 14 May 2026 21:15:19 GMT</pubDate>
            <atom:updated>2026-05-14T21:15:36.855Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0qWapkEphhdPj1n5rPApOA.png" /></figure><p>This post narrates the end-to-end engineering work I completed for a take-home DevOps assessment: infrastructure, CI/CD, observability, security hardening, and a disciplined, production-ready deployment strategy. It’s written from the perspective of a senior engineer who values reliability, reproducibility, and clarity. If you want to reproduce the project, the GitHub repo contains runnable artifacts.</p><h3>TL;DR</h3><p>I treated a small FastAPI URL shortener as a real production workload and delivered:</p><ul><li>Blue–green, zero-downtime deployments to a single VM using Docker Compose and Nginx</li><li>Full Terraform-based infrastructure for networking, compute, and secure remote state</li><li>An automated CI/CD pipeline (lint → test → build → scan → deploy) using GitHub Actions</li><li>A compact monitoring stack: Prometheus, Grafana, and Alertmanager (bound to localhost for safe access)</li><li>Security hardening: SSH key-only access, hardened OS cloud-init, secrets injected via CI, non-root containers</li><li>Operational automation: Makefile for deploy/status/rollback/health, and a concise runbook</li></ul><p>This write-up explains the reasoning, the trade-offs, and the concrete steps I took to make the system dependable.</p><h3>Design Goals</h3><ul><li>Keep the application minimal; focus engineering effort on the platform around it.</li><li>Make deployment repeatable and auditable: everything in Terraform and GitHub Actions.</li><li>Keep monitoring internal and secure; expose only what’s necessary.</li><li>Favor small, reversible changes (blue–green deployments + health checks).</li><li>Avoid secrets in code or images — use CI secrets and runtime injection.</li></ul><h3>The Work</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RoBmg8WpBgOerqTevQP7JQ.png" /></figure><h3>The App (FastAPI)</h3><p>I intentionally kept the FastAPI app tiny: four endpoints — /shorten, /{code}, /health, and /metrics. The app uses PostgreSQL for durable storage and Redis as a cache to minimize DB reads on redirects.</p><p>Why: The app exists to provide a realistic surface for operations and SRE practices; the test is about how you run and secure it, not about business logic.</p><p>Key details:</p><ul><li>Non-root appuser inside the container</li><li>Automated pytest suite covering shorten/redirect/health/metrics</li><li>Minimal, well-scoped dependencies in requirements.txt</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-IbDA0SobYz7L6GGNwCtOw.png" /></figure><h3>Containerization</h3><ul><li>Multi-stage Dockerfile to keep the runtime image small</li><li>.dockerignore to avoid baking context into image</li><li>Docker Compose for local development with two app slots (app_blue, app_green) and supporting services: postgres, redis, nginx, prometheus, grafana, alertmanager, node_exporter.</li></ul><p>Why Compose: The brief forbids Kubernetes, and Compose provides a familiar, debuggable orchestration surface that suffices for a single-VM production setup.</p><h3>Blue–Green Deployments and Nginx</h3><p>I implemented a blue–green pattern:</p><ul><li>Two named app slots: blue and green.</li><li>Deploy to the inactive slot and run a health check there.</li><li>If health passes, Nginx is reloaded to swap the traffic (no restart).</li><li>Rollback is a single command to switch back to the previous slot.</li></ul><p>Nginx serves as the SSL terminator and enforces security headers and rate limiting on the /shorten endpoint.</p><p>Why this approach: Zero-downtime with a fast rollback path; Nginx reload is atomic for worker processes and avoids connection drops.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OexmXjfzwEfXSz-gWlUG9w.png" /></figure><h3>Infrastructure as Code (Terraform)</h3><ul><li>VPC, subnet, internet gateway, route table</li><li>Security Group (SSH restricted, HTTP/HTTPS open)</li><li>EC2 instance (t2.micro) with cloud-init for provisioning and OS hardening</li><li>Remote state backed by S3 and locked with DynamoDB (bootstrap module)</li></ul><p>I kept the Terraform modules minimal and separated by concern (networking, compute, firewall), with no hardcoded credentials.</p><p>Why remote state: Team safety and locking to avoid concurrent mutation.</p><h3>CI/CD</h3><ul><li>GitHub Actions pipeline: lint → test → build and push → scan (Trivy) → deploy</li><li>Secrets are stored in GitHub Actions secrets — never in the repo</li><li>Deploy step SSHes to the server after temporarily authorizing the runner IP in the security group</li></ul><p>I included conditional checks so the pipeline will skip deployment unless SERVER_IP is configured in secrets. This avoids accidental deploys from forks or CI dry runs.</p><h3>Monitoring &amp; Alerting</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JwwtdbNvyJrJ7qB9kWhhUA.png" /></figure><ul><li>Prometheus scraping the app /metrics and a node exporter</li><li>Grafana dashboards pre-provisioned for request rate, error rate, and latency</li><li>Alert rule: 5xx rate &gt; 5% for 2 minutes → Alertmanager route to email (configurable)</li><li>Monitoring services are bound to 127.0.0.1 on the VM — accessible via SSH tunnels</li></ul><p>Why: Keep observability private and accessible only to operators.</p><h3>Security Hardening</h3><ul><li>SSH: key-only auth, root login disabled via cloud-init</li><li>OS-level firewall (via security group + optional ufw rules)</li><li>Redis and Postgres bound to Docker network; not exposed publicly</li><li>Non-root containers</li><li>Trivy image scanning integrated into CI</li></ul><p>Reasoning: Follow defense-in-depth where small changes in one layer are compensated by other controls.</p><h3>Notable Challenges and Fixes</h3><ul><li>Test suite flake due to fake DB cursor logic — fixed by tightening the fake cursor matching to avoid accidental query collisions.</li><li>DNS delegation: DNS can be optional for the assessment; the system works with the instance IP and a self-signed cert for TLS. Route53 automation is optional and was removed from the core terraform to keep the submission minimal and replicable.</li><li>Trivy identified several high-severity package issues in the built image; I documented fixes and added a Trivy step in the pipeline to avoid regressions.</li></ul><h3>How to Run Locally</h3><pre># Copy env template<br>cp .env.example .env<br># Fill values in .env (DB_PASSWORD, GRAFANA_PASSWORD, etc.)<br># Start local stack<br>docker compose up -d<br># Run tests<br>uv run pytest app/test_main.py -v</pre><p>To access Grafana or Prometheus running on a remote server, use SSH tunnels:</p><pre>ssh -L 9090:localhost:9090 ubuntu@&lt;server-ip&gt;<br>ssh -L 3000:localhost:3000 ubuntu@&lt;server-ip&gt;</pre><h3>What I Would Improve Next</h3><ul><li>Move secrets to a secrets manager (AWS Secrets Manager) and integrate rotation</li><li>Add synthetic end-to-end tests in CI that exercise a real shorten+redirect flow</li><li>Replace single-VM with an autoscaled fleet behind an ALB for true HA</li><li>Centralize logs (Loki or hosted SaaS) to handle production-scale debugging</li></ul><h3>Final Notes</h3><p>This assessment is as much about judgment and process as it is about code. The aim was to deliver a small, auditable, and repeatable platform that demonstrates pragmatic production practices. The repo contains everything required to reproduce the work; follow the README.md and the RUNBOOK.md to get the system running.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8883f69d0ec4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bifrost Hands-on Report: My Workthrough of Installing and Using Bifrost]]></title>
            <link>https://medium.com/@habeebbabasulaiman_39135/bifrost-hands-on-report-my-workthrough-of-installing-and-using-bifrost-ccc3a05cbfdc?source=rss-d9fddf96513c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccc3a05cbfdc</guid>
            <category><![CDATA[openstack-private-cloud]]></category>
            <category><![CDATA[bifrost]]></category>
            <category><![CDATA[openstack]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Habeebbabasulaiman]]></dc:creator>
            <pubDate>Tue, 14 Apr 2026 17:22:08 GMT</pubDate>
            <atom:updated>2026-04-14T17:59:54.720Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*7iYmV_MPw4o7SR7PClWtNw.png" /></figure><h3>Task Scope</h3><p>For this Outreachy initial task, I focused on practical execution: install Bifrost, use it to deploy Ironic in standalone mode, enroll test nodes, deploy them, and document issues plus fixes.</p><p>I treated this as a real operations exercise, not just a documentation walk-through given the fact that I have been exploring openstack since last year March particularly ironic/bifrost.</p><p>I used the mentor guideline as the guardrail: real hands-on work, own words, no more than 1000 words, and clear disclosure of AI usage.</p><h3>My Understanding of What Bifrost Is</h3><p>The best analogy for me is this: Bifrost is like a deployment control tower for bare metal.</p><ul><li>It prepares the runway (services, images, network boot assets).</li><li>It checks in each plane (node enrollment).</li><li>It clears takeoff (deployment to active).</li></ul><p>What makes it powerful is that it runs Ironic in a practical standalone setup. Instead of needing a full OpenStack environment, Bifrost provides the essential path to manage real hardware lifecycle operations.</p><p>From bifrost docs and execution, the main operational pieces are:</p><ul><li>Ironic API (port 6385) for node lifecycle actions</li><li>MariaDB for state storage</li><li>Nginx (port 8080) for iPXE/ramdisk/image serving</li><li>dnsmasq for DHCP/TFTP in integrated mode</li><li>Ironic Python Agent (IPA) for in-band deploy/clean operations</li></ul><p>So Bifrost is not just a script runner. It is an opinionated operations stack that makes the install-enroll-deploy lifecycle reproducible.</p><p>It is a lightweight standalone version to install and making use of ironic to do all sort of baremental work that Ironic is known for instead of using the usual kola-ansible, devstack, microstack, etc.</p><h3>Verified Execution Timeline (Worklog-Driven)</h3><p>I executed this chronologically and validated every stage.</p><h3>1. Baseline and capacity gate</h3><p>Initial host (54.167.59.24):</p><ul><li>2 vCPU, 7.6 GiB RAM, 8 GiB disk (4.9 GiB free)</li></ul><p>Result:</p><ul><li>Not suitable for reliable Bifrost testenv + image workflow.</li></ul><p>Action:</p><ul><li>Switched to a stronger host which is AWS ec2 t3xlarge:</li><li>4 vCPU</li><li>15 GiB RAM</li><li>193 GiB free disk</li></ul><p>This decision was critical. It removed major resource-related failure risk before deep execution.</p><h3>1. Clone and prepare</h3><ul><li>Verified git and python3 availability:</li></ul><pre>sudo apt-get update &amp;&amp; sudo apt-get upgrade -y git python3</pre><ul><li>Generated SSH keypair because Bifrost needs SSH key material for deployment access.</li></ul><pre>ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N &quot;&quot;</pre><ul><li>Cloned Bifrost from opendev:</li></ul><pre>git clone https://opendev.org/openstack/bifrost</pre><h3>3. Build/Create test environment</h3><p>Command:</p><pre>./bifrost-cli testenv</pre><p>Result:</p><ul><li>Completed successfully.</li><li>Generated baremetal-inventory.json and baremetal-nodes.json.</li><li>Created test VMs and virtual BMC wiring.</li></ul><p>Observed warning:</p><ul><li>chattr +C not supported on qcow2 path.</li></ul><h3>4. Install Bifrost services</h3><p>Command:</p><pre>./bifrost-cli install --testenv</pre><p>Result:</p><ul><li>Completed successfully.</li><li>Ironic reported installed and running.</li><li>Drivers confirmed available (ipmi, redfish, manual-management).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GfihutUCUIHVNjoWGpWR1g.png" /></figure><h3>5. Enroll nodes</h3><p>Attempt 1 failed:</p><ul><li>I ran enroll outside the Bifrost virtual environment.</li></ul><p>Fix:</p><pre>source /opt/stack/bifrost/bin/activate</pre><pre>export OS_CLOUD=bifrost</pre><pre>./bifrost-cli enroll baremetal-inventory.json</pre><ul><li>Attempt 2 result:</li><li>Enrollment succeeded.</li><li>testvm1 and testvm2 moved to available and power on.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JWk_eqgCQY3llmOOlmyxIg.png" /></figure><h3>6. Deploy nodes</h3><p>Command:</p><pre>./bifrost-cli deploy baremetal-inventory.json -e @baremetal-install-env.json --wait</pre><ul><li>Result:</li><li>Deploy playbook completed successfully.</li><li>Final play recap showed success for both testvm1 and testvm2 (no failed tasks).</li><li>Nodes reached active state with power on.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aXsMSwF03BXYA63pAdkEgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Wmubsex7x5fqybd4CW1_w.png" /></figure><h3>Troubleshooting Summary (Current + Previous Notes)</h3><p>These are some troubleshooting tips I saved on <strong>etherpad</strong> when I was trying out bifrost for the first time: <a href="https://etherpad.opendev.org/p/Troubleshooting">https://etherpad.opendev.org/p/Troubleshooting</a></p><h3>A. Enrollment/deployment failures</h3><p>Reliable reset approach:</p><ul><li>baremetal node maintenance set</li><li>baremetal node delete</li><li>baremetal node list</li><li>re-enroll with the correct inventory file</li></ul><h3>B. 400 client error during enroll</h3><p>Likely cause:</p><ul><li>Wrong file passed to enroll (for example using baremetal-nodes.json instead of baremetal-inventory.json).</li></ul><p>Fix:</p><ul><li>Use the generated baremetal-inventory.json exactly.</li></ul><h3>C. Unknown virbr0 / testenv sequencing issue</h3><p>Cause:</p><ul><li>Running install test mode before preparing testenv.</li></ul><p>Fix order:</p><ul><li>./bifrost-cli testenv</li><li>./bifrost-cli install — testenv</li></ul><h3>D. SSH key errors</h3><p>Cause:</p><ul><li>Missing public key used for access injection.</li></ul><p>Fix:</p><ul><li>ssh-keygen -t rsa -f ~/.ssh/id_rsa -N “”</li></ul><h3>E. Repeated warning messages</h3><p>Observed:</p><ul><li>Eventlet deprecation</li><li>Ansible interpreter warnings</li><li>Reserved variable name warnings</li></ul><p>Resolution:</p><ul><li>Treated as informational after validating no functional break.</li></ul><h3>Verification Evidence</h3><p>Post-deploy checks confirmed success:</p><ul><li>Node states: testvm1 and testvm2 active, power on</li><li>Libvirt: both VMs running</li><li>Artifact evidence: deploy and cleaning tarballs present in /var/log/ironic/deploy</li><li>Ironic journal: normal periodic activity, no hard deployment error in validation window</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WIM7k4Cm-Up82t5zT-rA0g.png" /></figure><h3>Asciinema Recording</h3><p>Shell session recording link: <a href="https://asciinema.org/a/da9bnWVP8M3MFYOk">https://asciinema.org/a/da9bnWVP8M3MFYOk</a></p><h3>AI Usage Disclosure</h3><p>I used AI assistance only for writing support and structure. All commands, outcomes, and troubleshooting details were obtained and verified from perusing the documentation and logs.</p><p>Tool used:</p><ul><li>GitHub Copilot (model: GPT-5.3-Codex)</li></ul><p>Prompts used:</p><ol><li>Help me rewrite my Bifrost report using my execution worklog, published and personal draft articles as source of truth. my drafter. An unpublished articles of mine exist at <strong>(locally) </strong>which I also document my troubleshooting process when running bifrost for the first time too at <a href="https://etherpad.opendev.org/p/Troubleshooting">https://etherpad.opendev.org/p/Troubleshooting</a>. please get my idea from my published articles please and my previous workthrough and documentation when I was working with ironic/bifrost last year please read it word by word to better understand my tone, sound and all.</li><li>Keep the explanation practical as my, notes connote, include troubleshooting, and stay under 1000 words.</li></ol><p>AI outputs used:</p><ul><li>Draft structure suggestions</li><li>Wording and compression suggestions</li></ul><p>Manual verification performed:</p><ul><li>Host sizing decisions</li><li>Final node states and runtime evidence</li></ul><h3>References</h3><ul><li><a href="https://etherpad.opendev.org/p/Troubleshooting">https://etherpad.opendev.org/p/Troubleshooting</a></li><li><a href="https://medium.com/@habeebbabasulaiman_39135/understanding-bifrost-and-how-to-deploy-ironic-using-bifrost-9e8e17810e5c">https://medium.com/@habeebbabasulaiman_39135/understanding-bifrost-and-how-to-deploy-ironic-using-bifrost-9e8e17810e5c</a></li><li><a href="https://docs.openstack.org/bifrost/latest/">https://docs.openstack.org/bifrost/latest/</a></li><li><a href="https://docs.openstack.org/bifrost/latest/install/index.html">https://docs.openstack.org/bifrost/latest/install/index.html</a></li><li><a href="https://docs.openstack.org/bifrost/latest/install/playbooks.html">https://docs.openstack.org/bifrost/latest/install/playbooks.html</a></li><li><a href="https://docs.openstack.org/bifrost/latest/user/architecture.html">https://docs.openstack.org/bifrost/latest/user/architecture.html</a></li><li><a href="https://docs.openstack.org/bifrost/latest/user/howto.html">https://docs.openstack.org/bifrost/latest/user/howto.html</a></li><li><a href="https://docs.openstack.org/bifrost/latest/user/troubleshooting.html">https://docs.openstack.org/bifrost/latest/user/troubleshooting.html</a></li><li><a href="https://docs.openstack.org/bifrost/latest/contributor/testenv.html">https://docs.openstack.org/bifrost/latest/contributor/testenv.html</a></li><li><a href="https://docs.openstack.org/ironic/latest/install/standalone.html">https://docs.openstack.org/ironic/latest/install/standalone.html</a></li><li><a href="https://docs.openstack.org/ironic/latest/user/deploy.html">https://docs.openstack.org/ironic/latest/user/deploy.html</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccc3a05cbfdc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding OpenStack Ironic: How Bare Metal Becomes Cloud-Managed]]></title>
            <link>https://medium.com/@habeebbabasulaiman_39135/understanding-openstack-ironic-how-bare-metal-becomes-cloud-managed-edbe4fe6af92?source=rss-d9fddf96513c------2</link>
            <guid isPermaLink="false">https://medium.com/p/edbe4fe6af92</guid>
            <category><![CDATA[openstack]]></category>
            <category><![CDATA[private-cloud]]></category>
            <dc:creator><![CDATA[Habeebbabasulaiman]]></dc:creator>
            <pubDate>Tue, 14 Apr 2026 09:02:42 GMT</pubDate>
            <atom:updated>2026-04-14T09:02:42.203Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j95hCqFgVhGfzAUZNMczXw.png" /></figure><p>OpenStack Ironic (the Bare Metal service) is the OpenStack service for managing physical machines as cloud resources. Before this task, I mostly thought of cloud provisioning in terms of virtual machines, where hypervisors hide the hardware details. With Ironic, the hardware details are not hidden. They are the core of the workflow.</p><p>What I now understand is that Ironic gives a programmable, API-driven way to take a real server from “known hardware” to “ready for workload” while handling power management, network boot, deployment, cleaning, and lifecycle transitions.</p><h3>Why Ironic Exists</h3><p>Ironic is useful when teams need bare metal and not just virtual instances. Typical reasons include:</p><ul><li>performance-sensitive workloads,</li><li>direct hardware access,</li><li>stronger tenant isolation on dedicated hardware,</li><li>operational consistency for large server fleets.</li></ul><p>So the value is not only “bare metal provisioning” itself, but making bare metal behave like a cloud-managed resource.</p><h3>Main Components and Their Roles</h3><p>From the official docs, the main components I focused on are:</p><ul><li>ironic-api: receives REST requests and forwards work.</li><li>ironic-conductor: performs most lifecycle actions.</li><li>ironic-python-agent (IPA): runs in deploy/clean ramdisks and executes in-band steps.</li></ul><p>Ironic can integrate with other OpenStack services (like Keystone, Neutron, Glance, Nova, and Swift), but it can also be used in standalone mode. That standalone capability is important because it means Ironic can still provide full bare metal lifecycle management even without a full cloud control-plane around it.</p><p>A key operational detail I learned is that conductor placement matters. Conductors need access to control-plane interfaces and provisioning paths, so architecture decisions directly affect reliability and security.</p><h3>The State Machine Is the Core Mental Model</h3><p>The biggest concept I gained from reading is that Ironic is state-driven. Nodes move through stable and transient states, and each user action is really a request for a transition.</p><p>A typical path is:</p><ol><li>enroll</li><li>verifying -&gt; manageable</li><li>cleaning -&gt; available</li><li>deploying / wait call-back -&gt; active</li><li>deleting (and possible cleaning) -&gt; available</li></ol><p>There are also paths for inspection, rescue, servicing, and adoption.</p><p>This state model is practical for debugging. If a node fails, I can ask:</p><ul><li>what transition was requested,</li><li>which transient state failed,</li><li>what last error and history events say about that failure.</li></ul><p>That is much more structured than treating every issue as a generic deploy failure.</p><h3>Deployment Flow: What Actually Happens</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*v9GHw5eAJYsOhzHavezGiw.png" /></figure><p>At a practical level, deployment needs more than just “boot this node”:</p><ul><li>node selection or allocation,</li><li>valid instance_info (image source, hash/checksum, image-type-related values),</li><li>interface validation,</li><li>provisioning network and boot preparation,</li><li>deploy ramdisk boot,</li><li>image write,</li><li>boot switch to tenant workload,</li><li>final transition to active.</li></ul><p>The docs also show that deployment may involve multiple power cycles and both out-of-band and in-band activity. This explains why deploy troubleshooting often spans Ironic logs, ramdisk behavior, and network behavior together.</p><h3>Deploy Steps and Templates</h3><p>Ironic supports ordered deploy steps and deploy templates, which is one of the most interesting features for real operations.</p><ul><li>Steps are prioritized and resolved across interfaces.</li><li>Agent-based deploy interfaces expose default steps (deploy, write image, teardown, network switch, boot instance).</li><li>Operators can request custom steps.</li><li>Deploy templates can apply trait-matched behavior at deployment time.</li></ul><p>This means hardware-specific behavior can be automated without manually changing every node process. It is a clean way to move from one-size-fits-all deployment to policy-driven deployment.</p><h3>API Microversions and Compatibility</h3><p>Another key understanding is the role of API microversions in Ironic. There is a stable major API path (v1), but features are introduced over time through microversions.</p><p>For contribution and integration work, this matters because feature availability depends on requested/available microversion, not only on endpoint existence in the latest docs.</p><p>For node history specifically, the history endpoints were introduced at microversion 1.78:</p><ul><li>GET /v1/nodes/{node_ident}/history</li><li>GET /v1/nodes/{node_ident}/history/{event_uuid}</li></ul><p>So when discussing node history improvements, microversion awareness is required for correct client behavior and compatibility.</p><h3>Why Node History Feels Important</h3><p>Node history provides structured event records tied to a node. From what I read:</p><ul><li>history can be queried through API and CLI,</li><li>records are immutable through REST API,</li><li>retention/pruning is controlled by conductor configuration,</li><li>history helps explain transition failures over time.</li></ul><p>This directly supports incident analysis and operator confidence. In bare metal environments, failures can be expensive and hard to reproduce, so reliable event history is a strong operational feature.</p><h3>Final Reflection</h3><p>My current understanding is that Ironic is not just “an installer for physical machines.” It is a lifecycle orchestration system for hardware, with state transitions as the contract and microversioned APIs as the compatibility layer.</p><p>If I can read states, validate deploy inputs, understand step execution, and correlate history events with failures, I can reason about both operations and development changes in Ironic with much more confidence.</p><h3>AI Usage Disclosure</h3><p>I used AI assistance transparently for writing support. I wrote the final narrative and checked technical details against official documentation.</p><h3>Tools used</h3><ul><li>GitHub Copilot (model: GPT-5.3-Codex)</li></ul><h3>Prompts used</h3><ol><li>“Help me produce a &lt;=1000-word markdown article showing my understanding of OpenStack Ironic from all my personal draft including my published article on ironic on medium <a href="https://medium.com/@habeebbabasulaiman_39135/understanding-openstack-ironic-bare-metal-provisioning-in-the-cloud-98b5440cae94">https://medium.com/@habeebbabasulaiman_39135/understanding-openstack-ironic-bare-metal-provisioning-in-the-cloud-98b5440cae94</a> <a href="https://medium.com/@habeebbabasulaiman_39135/understanding-bifrost-and-how-to-deploy-ironic-using-bifrost-9e8e17810e5c">https://medium.com/@habeebbabasulaiman_39135/understanding-bifrost-and-how-to-deploy-ironic-using-bifrost-9e8e17810e5c</a>. Focus on architecture, state machine, deployment flow, API microversions, and node history relevance. Keep tone clear and practical as my notes/article connotes.”</li><li>“Refine structure and readability while preserving my own explanation style and emphasizing official docs accuracy.”</li></ol><h3>Outputs used from AI</h3><ul><li>A proposed section outline.</li><li>Draft phrasing suggestions for transitions and deployment flow.</li><li>Condensed wording suggestions to stay within word limit.</li></ul><h3>What I verified manually</h3><ul><li>State and transition terminology.</li><li>Node history scope and immutability statement.</li><li>Microversion context for history endpoints.</li><li>Deployment-step and template concepts.</li></ul><h3>References</h3><ul><li><a href="https://docs.openstack.org/ironic/latest/install/get_started.html">https://docs.openstack.org/ironic/latest/install/get_started.html</a></li><li><a href="https://docs.openstack.org/ironic/latest/user/states.html">https://docs.openstack.org/ironic/latest/user/states.html</a></li><li><a href="https://docs.openstack.org/ironic/latest/user/deploy.html">https://docs.openstack.org/ironic/latest/user/deploy.html</a></li><li><a href="https://docs.openstack.org/ironic/latest/admin/node-deployment.html">https://docs.openstack.org/ironic/latest/admin/node-deployment.html</a></li><li><a href="https://docs.openstack.org/ironic/latest/admin/node-history.html">https://docs.openstack.org/ironic/latest/admin/node-history.html</a></li><li><a href="https://docs.openstack.org/ironic/latest/contributor/webapi.html">https://docs.openstack.org/ironic/latest/contributor/webapi.html</a></li><li><a href="https://docs.openstack.org/ironic/latest/contributor/webapi-version-history.html">https://docs.openstack.org/ironic/latest/contributor/webapi-version-history.html</a></li><li><a href="https://docs.openstack.org/api-ref/baremetal/">https://docs.openstack.org/api-ref/baremetal/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edbe4fe6af92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Took My Linux Home Partition from 98% Full to 76% (And Documented Everything)]]></title>
            <link>https://medium.com/@habeebbabasulaiman_39135/i-took-my-linux-home-partition-from-98-full-to-76-and-documented-everything-f240e0cc6122?source=rss-d9fddf96513c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f240e0cc6122</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[troubleshooting]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[sysops]]></category>
            <dc:creator><![CDATA[Habeebbabasulaiman]]></dc:creator>
            <pubDate>Mon, 30 Mar 2026 10:56:39 GMT</pubDate>
            <atom:updated>2026-03-30T10:56:39.213Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5tptTVVS9olpq5ZN8tSwdQ.jpeg" /></figure><blockquote><em>A real, hands-on cleanup diary from my machine: what I checked, what I removed, what I refused to touch, what nearly went wrong, and what gave me back serious disk space.</em></blockquote><h3>Why I Had to Do This</h3><p>My /home partition was almost choking.</p><ul><li>/home was at <strong>98% used</strong></li><li>I had just about <strong>6.7 GB free</strong></li><li>System still booted, but I was one bad download away from a bad day</li></ul><p>At first I thought: <em>“Let me just enlarge </em><em>/home quickly.&quot;</em></p><p>But after proper audit, it was clear the better first move was cleanup + structure discipline. That gave me breathing room immediately before any risky partition changes.</p><h3>My Actual Disk Layout (The Truth Check)</h3><p>Before touching anything, I ran a strict read-only audit.</p><h3>What I found</h3><ul><li>Disk had encrypted LVM setup</li><li>/ and /home were separate logical volumes</li><li>/home was 300G and nearly full</li><li>/ had a lot of free space</li><li>Volume group had no free extents left</li></ul><p>Meaning: I could not magically grow /home online without either:</p><ol><li>Shrinking root offline and reallocating to home, or</li><li>Adding a new disk</li></ol><p>So cleanup became phase one.</p><h3>Baseline Numbers Before Cleanup</h3><p>Top offenders in my home directory were:</p><ul><li>Downloads → <strong>62G</strong></li><li>.cache → <strong>31G</strong></li><li>outreachy → <strong>29G</strong></li><li>redmi → <strong>15G</strong></li><li>.config → <strong>15G</strong></li><li>miniconda3 → <strong>14G</strong></li><li>.var → <strong>13G</strong></li></ul><p>The lesson is simple: my issue was not one giant file only. It was years of many big folders + duplicated archives + build artifacts + app caches.</p><h3>Cleanup Goals I Set</h3><p>I did not want a blind delete spree.</p><p>I wanted:</p><ol><li>Fast recovery of free space</li><li>Safe cleanup first (regenerable stuff)</li><li>Better folder structure in my home directory</li><li>Zero damage to source code and active projects</li><li>Logs of what was done</li></ol><h3>What I Cleaned (Step by Step)</h3><h3>Phase 1: Safe Heavy Cleanup</h3><h3>1) Cleared trash and cache</h3><ul><li>Emptied user trash</li><li>Cleaned .cache fully</li><li>Ran package-cache cleanup where available (npm, pip, yarn, pnpm, conda)</li></ul><p>This alone gave huge relief.</p><h3>2) Normalized my Downloads layout</h3><p>Created category folders inside Downloads and moved top-level loose files by extension:</p><ul><li>Archives</li><li>ISOs</li><li>Installers</li><li>Videos</li><li>Documents</li><li>Packages</li><li>Others</li></ul><p>No deep recursive moves here, just controlled top-level reorganization.</p><h3>3) Hash-based duplicate removal</h3><p>Did exact duplicate deletion (not filename guesswork) using checksums.</p><ul><li>First pass on large files</li><li>Kept one copy, removed true duplicates only</li></ul><p>This prevented accidental deletion of unique files with similar names.</p><h3>4) Standardized root home structure</h3><p>Created:</p><ul><li>Projects</li><li>Archive</li></ul><p>Then moved detected project folders from home root into Projects, and left symlinks in original locations to avoid breaking scripts/tooling that still reference old paths.</p><p>That move kept things clean without breaking existing workflows.</p><h3>Phase 1 Results</h3><p>After phase 1 and structure normalization:</p><ul><li>/home dropped from <strong>98%</strong> to about <strong>83–84%</strong></li><li>Free space jumped to around <strong>46–49 GB</strong></li></ul><p>Already a massive improvement.</p><h3>Phase 2: Precision Prune (Still Safe)</h3><p>Then I went after high-noise, low-risk data.</p><h3>1) .config cache-heavy directories</h3><p>Removed cache-specific folders only from apps like:</p><ul><li>VS Code</li><li>Code OSS</li><li>Cursor</li><li>Kiro</li><li>Chrome</li><li>Chrome Beta</li><li>Discord</li></ul><p>I did <strong>not</strong> remove actual important profile data directories blindly.</p><h3>2) Downloads extracted installer leftovers</h3><p>Removed huge extracted folders that were safe to regenerate because original archives still existed.</p><p>Examples included unpacked docker desktop package folders and downloaded project-local virtual env leftovers in Downloads.</p><h3>3) Redmi ROM extraction duplicate case</h3><p>In my redmi folder, I had both:</p><ul><li>a very large ROM zip</li><li>its extracted payload folder</li></ul><p>Since zip was intact, removing the extracted duplicate folder reclaimed big space safely.</p><h3>4) Flatpak cleanup</h3><p>Ran cleanup for unused Flatpak components and pruned heavy cache folders under .var safely.</p><h3>A Very Important Decision Point: Servo</h3><p>My outreachy/servo folder was huge mainly because of target (build artifacts).</p><p>I paused intentionally before touching it.</p><p>Reason:</p><ul><li>Deleting target does not delete source code</li><li>But it forces rebuild next time</li><li>Since this is an active contribution project, I wanted explicit confidence before acting</li></ul><p>So I treated this as optional high-impact cleanup, not an automatic delete.</p><p>That was the right call.</p><h3>Phase 3: Flatpak and Browser Cache Deep Trim</h3><p>I then removed cache-heavy paths in .var/app for:</p><ul><li>Edge</li><li>Edge Dev</li><li>Chrome</li><li>Chrome Dev</li><li>Discord</li><li>Slack</li></ul><p>Also removed BrowserMetrics and similar transient artifacts where safe.</p><p>Another exact duplicate pass for very large files was done.</p><h3>Real Issues I Encountered During the Process</h3><p>This was not a “perfect one-click cleanup” story. Real-life issues showed up.</p><h3>1) Terminal instability</h3><p>Some long shell commands had terminal/session interruptions. I switched to chunked commands and checkpoint verification instead of forcing fragile mega-commands.</p><h3>2) File read anomalies</h3><p>I saw Bad message errors on some files during scans.</p><p>That is a red flag for filesystem health and a reminder that cleanup is not enough; maintenance check is still needed.</p><h3>3) Risk of over-cleaning</h3><p>Without discipline, it is easy to delete something useful just because it is big. I avoided this by:</p><ul><li>Read-only audit first</li><li>Hash-based duplicate strategy</li><li>Cache-first policy</li><li>Project-source protection</li></ul><h3>Final Results</h3><p>From start to current end state:</p><ul><li>/home usage: <strong>98% → 76%</strong></li><li>Free space: <strong>~6.7G → ~70G</strong></li><li>Recovered: <strong>~63G</strong></li></ul><p>This gave me enough room to work normally again while postponing partition surgery until I do it offline with proper preparation.</p><h3>What Worked Best</h3><p>If I repeat this on another machine, this is the winning order:</p><ol><li>Audit first, no deletion</li><li>Clear trash and .cache</li><li>Clean package manager caches</li><li>Organize Downloads</li><li>Remove exact duplicates by hash</li><li>Trim .config and .var caches selectively</li><li>Touch build artifacts only after explicit confirmation</li></ol><h3>What Could Break (If You Do This Carelessly)</h3><ul><li>Deleting build directories may force long recompilation later</li><li>Deleting browser profile directories can wipe sessions/preferences</li><li>Deleting env folders in active projects can break local workflows until recreated</li><li>Moving folders without symlinks can break scripts and hardcoded paths</li></ul><h3>Safety Rules I Followed</h3><ul><li>No random rm -rf against broad wildcards</li><li>No source-code folder deletion</li><li>No destructive partition operations during cleanup phase</li><li>Logged actions and verified after each phase</li><li>Preserved old paths via symlinks where reorganization happened</li></ul><h3>Why This Matters Beyond Disk Space</h3><p>This cleanup was not only about reclaiming GB.</p><p>It forced me to standardize my folder hygiene:</p><ul><li>Projects for code</li><li>Archive for old artifacts and reports</li><li>Categorized Downloads</li><li>Better awareness of what grows silently (.cache, .var, .config, build dirs)</li></ul><p>This means next cleanup will be faster, safer, and less emotional.</p><h3>My Practical Next Steps</h3><ol><li>Decide whether to remove outreachy/servo/target for another major gain (with full awareness that rebuild will be needed).</li><li>Run offline filesystem check because of earlier read anomalies.</li><li>If I still need more long-term room, do offline LVM resize from root to home.</li><li>Set a monthly cleanup checklist (especially for caches, Downloads, and duplicate archives).</li></ol><h3>Final Note</h3><p>I started this thinking I only needed a bigger partition.</p><p>What I really needed was:</p><ul><li>honest visibility,</li><li>controlled cleanup,</li><li>and a standard structure I can maintain.</li></ul><p>Now the machine breathes again.</p><p>And this time, I know exactly <strong>why</strong>.</p><h3>Full Command Journal (What I Ran, Why, and What It Changed)</h3><p>This section is my exact workflow logic in command form.</p><p>Not just command snippets, but command intent.</p><h3>Step 0: I Started With Read-Only Truth</h3><p>Before deleting anything, I forced myself to answer one question:</p><p>“What exactly is full, and where?”</p><pre>lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINTS,PARTLABEL,PARTUUID<br>df -hT<br>findmnt /home</pre><h3>Why these commands</h3><ul><li>lsblk gave me physical and logical layout</li><li>df -hT gave me actual filesystem usage by mount</li><li>findmnt /home confirmed what device really backs /home</li></ul><h3>What this changed</h3><p>It stopped me from doing random deletes.</p><p>It also confirmed /home was isolated and genuinely full, not fake &quot;disk full&quot; noise from another mount.</p><h3>Step 1: I Checked if This Was an LVM Reallocation Case</h3><pre>pvs<br>vgs<br>lvs</pre><h3>Why</h3><p>I needed to know if I had free extents I could assign directly to home.</p><h3>What this changed</h3><p>The answer was effectively no free easy expansion from VG space, so cleanup became non-negotiable first.</p><h3>Step 2: I Ranked My Biggest Directories First</h3><pre>du -xhd 1 /home/freeman 2&gt;/dev/null | sort -h | tail -n 80</pre><h3>Why</h3><p>This gives top-level size ranking without crossing filesystems.</p><h3>What this changed</h3><p>It told me exactly where to spend energy:</p><ul><li>Downloads</li><li>.cache</li><li>outreachy</li><li>redmi</li><li>.config</li><li>miniconda3</li><li>.var</li></ul><h3>Step 3: I Inspected Large Files (Not Guesswork)</h3><pre>find /home/freeman/Downloads -type f -printf &#39;%s\t%p\n&#39; 2&gt;/dev/null | sort -nr | head -n 60<br>find /home/freeman/redmi -type f -printf &#39;%s\t%p\n&#39; 2&gt;/dev/null | sort -nr | head -n 40</pre><h3>Why</h3><p>Folders lie. Files do not.</p><p>I needed exact heavy files, not assumptions.</p><h3>What this changed</h3><p>I identified huge archive and media duplicates plus ROM extraction overlap.</p><h3>Step 4: Immediate Safe Cleanup (High Gain, Low Risk)</h3><pre>rm -rf /home/freeman/.local/share/Trash/files/* /home/freeman/.local/share/Trash/info/*<br>rm -rf /home/freeman/.cache/*</pre><p>And package caches:</p><pre>npm cache clean --force<br>pip cache purge<br>yarn cache clean<br>pnpm store prune<br>conda clean -a -y</pre><h3>Why</h3><p>Trash and caches are regenerable by design.</p><h3>What this changed</h3><p>This was one of my biggest instant wins and dropped pressure quickly.</p><h3>Step 5: I Standardized Downloads So It Stops Exploding</h3><pre>mkdir -p /home/freeman/Downloads/{Archives,Installers,Images,Videos,Documents,Packages,ISOs,Others}</pre><p>Then moved top-level files by extension into those folders.</p><h3>Why</h3><p>A messy Downloads folder hides duplication and keeps growing forever.</p><h3>What this changed</h3><p>Future cleanup became faster because category boundaries were visible.</p><h3>Step 6: Duplicate Removal by Hash (Exact, Not Guessy)</h3><pre>find /home/freeman/Downloads /home/freeman/redmi -type f -size +100M -print0 | xargs -0 -r sha256sum &gt; hashes.txt<br>sort hashes.txt | awk &#39;{h=$1; $1=&quot;&quot;; p=substr($0,2); if (seen[h]++) print p;}&#39; &gt; dupes_to_remove.txt</pre><p>Then removed only listed duplicates.</p><h3>Why</h3><p>I did not trust names like file (1).zip or copy.zip.</p><p>I trusted checksums.</p><h3>What this changed</h3><p>I removed real duplicates safely and avoided deleting unique data with similar names.</p><h3>Step 7: I Reorganized Home Root Without Breaking Existing Paths</h3><p>Created standard folders:</p><pre>mkdir -p /home/freeman/Projects /home/freeman/Archive</pre><p>Moved detected project folders into Projects and created symlinks back.</p><h3>Why</h3><p>I wanted clean structure but no broken scripts.</p><h3>What this changed</h3><p>My root home became cleaner while old path references continued to work.</p><h3>Step 8: Precision Prune in .config (Cache-Only)</h3><p>I removed only known cache paths, examples:</p><pre>rm -rf /home/freeman/.config/Code/CachedExtensionVSIXs<br>rm -rf /home/freeman/.config/discord/Cache<br>rm -rf /home/freeman/.config/google-chrome/component_crx_cache<br>rm -rf /home/freeman/.config/google-chrome/DeferredBrowserMetrics</pre><h3>Why</h3><p>.config is dangerous if touched blindly.</p><p>I cleaned cache-heavy subdirs only, not profile cores.</p><h3>What this changed</h3><p>Recovered serious space with minimal application risk.</p><h3>Step 9: Redmi ROM Dedupe Logic</h3><p>I had both the ROM zip and extracted payload folder.</p><p>So I kept zip and removed extracted duplicate directory.</p><h3>Why</h3><p>That extracted payload is huge and reproducible from the zip.</p><h3>What this changed</h3><p>Large gain with no data loss in practical terms.</p><h3>Step 10: Flatpak Cache Deep Trim in .var</h3><p>Examples:</p><pre>rm -rf /home/freeman/.var/app/com.microsoft.Edge/cache<br>rm -rf /home/freeman/.var/app/com.microsoft.EdgeDev/cache<br>rm -rf /home/freeman/.var/app/com.google.Chrome/cache<br>rm -rf /home/freeman/.var/app/com.google.ChromeDev/cache<br>flatpak uninstall --unused -y</pre><h3>Why</h3><p>Flatpak app caches can silently balloon.</p><h3>What this changed</h3><p>.var dropped substantially and the system stayed stable.</p><h3>Step 11: Safety Check After Every Major Pass</h3><pre>df -h /home<br>du -xhd 1 /home/freeman 2&gt;/dev/null | sort -h | tail -n 30</pre><h3>Why</h3><p>Never run blind. Measure impact each phase.</p><h3>What this changed</h3><p>I always knew whether the current pass was worth continuing.</p><h3>My Decision Rule for “Will This Break Anything?”</h3><p>I used this internal rule before every delete:</p><ol><li>Is it cache, temp, or build artifact? If yes, usually safe.</li><li>Is it source code, user docs, or profile core? If yes, do not touch blindly.</li><li>Is it duplicate confirmed by hash? If yes, remove extra copy only.</li><li>Is it active contributor output (servo/target)? Pause and confirm impact first.</li></ol><h3>What Almost Broke and How I Handled It</h3><ul><li>Long command sessions occasionally dropped: I switched to smaller batches.</li><li>Bad message file reads appeared during scanning: I flagged filesystem health risk instead of forcing deletes there.</li><li>Servo build artifacts were huge: I delayed deletion until confidence and consent were clear.</li></ul><h3>Final Metrics Snapshot</h3><ul><li>Start: /home at <strong>98%</strong> (about <strong>6.7G free</strong>)</li><li>End: /home at <strong>76%</strong> (about <strong>70G free</strong>)</li><li>Reclaimed: about <strong>63G</strong></li></ul><p>If you are reading this because your own home partition is almost full, do not panic-delete.</p><p>Audit first. Then clean in measured phases. Then verify after every phase.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f240e0cc6122" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Ghost in the Runner: Debugging a Cascading CI/CD Meltdown]]></title>
            <link>https://medium.com/@habeebbabasulaiman_39135/the-ghost-in-the-runner-debugging-a-cascading-ci-cd-meltdown-9acc3c8cdef8?source=rss-d9fddf96513c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9acc3c8cdef8</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[Habeebbabasulaiman]]></dc:creator>
            <pubDate>Mon, 30 Mar 2026 09:38:10 GMT</pubDate>
            <atom:updated>2026-03-30T09:52:41.774Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_mcfFjzoPvauq8KkVE_pQ.png" /></figure><p>As a DevOps engineer, there are days when you push a routine infrastructure change, and everything is green. Then, there are days when the pipelines suddenly collapse, throwing errors that seem completely contradictory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E9azRH_w31ca1xCHO1kdQw.png" /></figure><p>Recently, I encountered a cascading failure across our CI/CD pipelines. What started as a missing Docker binary spiraled into deceptive AWS authentication errors, culminating in a Next.js build crash.</p><p>Here is a technical postmortem of what failed, the red herrings I chased, the commands I used to uncover the root causes without breaking production, and the lessons learned.</p><h3>Phase 1: The Phantom Docker Daemon</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hb2t65XzJWIHDtf2k7oUKA.png" /></figure><h3>The Symptom</h3><p>Out of nowhere, one of our backend Bitbucket pipelines failed during the AWS ECR login step. The error was baffling:</p><pre>bash: docker: command not found<br>BrokenPipeError: [Errno 32] Broken pipe</pre><p>We use a self-hosted Linux EC2 runner. The pipeline was using the standard atlassian/default-image:3.</p><h3>The Red Herring</h3><p>My initial hypothesis was that Atlassian deprecated version 3 of their default image, tacitly stripping out the Docker binary. I bumped the pipeline to default-image:4 and added some apt-get commands with DEBIAN_FRONTEND=noninteractive to force-install dependencies like tzdata that were suddenly hanging the build with geographic prompts.</p><p>While this seemed like progress, it felt “hacky.” I wasn’t addressing the root cause; I was just masking it. I needed to get into the runner itself.</p><h3>The Deep Dive</h3><p>I needed SSH access to the EC2 instance hosting the runner, but I didn’t have the .pem key pair readily available on my machine. Instead of disrupting the infrastructure by replacing keys, I leveraged <strong>AWS EC2 Instance Connect</strong> to push a temporary, ephemeral SSH key:</p><pre># Generate a temporary key<br>ssh-keygen -t rsa -N &quot;&quot; -f ~/.ssh/temp_ec2_key -q</pre><pre># Push the key temporarily to the EC2 instance metadata<br>aws ec2-instance-connect send-ssh-public-key \<br>  --instance-id i-0xxxxxxxxx \<br>  --availability-zone us-east-1a \<br>  --instance-os-user ubuntu \<br>  --ssh-public-key file://~/.ssh/temp_ec2_key.pub</pre><pre># Immediately SSH into the instance<br>ssh -i ~/.ssh/temp_ec2_key ubuntu@&lt;EC2_IP&gt;</pre><p>Once inside the host, I inspected the Atlassian runner environment. The truth revealed itself: It wasn’t the image. It was a known Atlassian bug natively tied to self-hosted runners.</p><p>When a previous pipeline crashes or stops suddenly, the runner incorrectly leaves behind empty docker folders inside the host&#39;s /tmp directory. When the next pipeline attempts to run, the system tries to auto-mount Docker into the container but fails because the corrupted temp folder is blocking the mount point. Docker is forcefully hidden from the environment.</p><h3>The Fix</h3><p>I cleared out the stale mounts and orphans, then restarted the Docker container on the host:</p><pre># Clean up stale runner directories and broken docker mounts<br>sudo rm -rf /tmp/*/docker<br>sudo find /tmp -maxdepth 1 -name &#39;runner-*&#39; -type d -exec rm -rf {} +</pre><pre># Restart docker to reset daemon mount hooks<br>sudo docker restart $(sudo docker ps -q)</pre><p>With the infrastructure healed, I went back to the codebase and did a git reset --hard to rollback all my &quot;hacky&quot; v4 and apt-get commits. Keeping the Git commit history pristine is a core DevOps discipline. The backend pipeline immediately passed.</p><h3>Phase 2: The Deceptive Token</h3><h3>The Symptom</h3><p>With the backend fixed, I turned my attention to the frontend repository, assuming it would now pass seamlessly. Instead, the pipeline crashed again, but this time with a completely different error at the same ECR login step:</p><pre>An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.</pre><h3>The Red Herring</h3><p>My first thought was that somehow an expired AWS_SESSION_TOKEN was being injected into the environment. I used sed to edit the pipeline on the fly, forcefully injecting unset AWS_SESSION_TOKEN before the AWS CLI commands. I even tried forcing the region to us-east-1.</p><p>The pipeline still failed.</p><h3>The Realization</h3><p>I took a step back and looked at the infrastructure logically. The backend pipeline had just successfully pushed to ECR using the <em>exact same</em> self-hosted EC2 runner. Therefore, the EC2 IAM Instance Profile was perfectly fine.</p><p>The only difference between the two runs was the isolated Bitbucket environment. Bitbucket injects AWS credentials based on <strong>Repository Variables</strong>.</p><p>The error wasn’t a session token — it was just AWS’s generic way of saying: <em>“The Access Key we received is dead, holds a typo, or doesn’t exist.”</em></p><h3>The Fix</h3><p>I audited my local ~/.aws/credentials to confirm my own valid IAM keys. I logged into the Bitbucket Dashboard, opened the frontend repository settings side-by-side with the backend settings, and surely enough, the frontend repository had stale/incorrect AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY variables overriding the workspace defaults.</p><p>I updated the Repository Variables to match the working backend, and once again, I ran a git reset --hard to wipe out my debugging commits from the frontend repo to keep the developer&#39;s tree clean.</p><h3>Phase 3: Knowing Where DevOps Ends and Dev Begins</h3><h3>The Final Boss</h3><p>I triggered a fresh frontend build. Docker mounted flawlessly. AWS ECR authenticated perfectly. The Dockerfile started building.</p><p>And then, it failed right at the end during npm run build:</p><pre>⨯ useSearchParams() should be wrapped in a suspense boundary at page &quot;/admin&quot;. <br>Read more: https://nextjs.org/docs/messages/missing-suspense-with-csr-bailout<br>Error occurred prerendering page &quot;/admin&quot;.</pre><p>As a DevOps engineer, part of the job is recognizing the boundary between infrastructure and application code. This was not a pipeline failure; this was a Next.js Client-Side Rendering (CSR) bailout caused by an unwrapped useSearchParams() React hook during static generation.</p><p>Instead of trying to patch the developer’s TypeScript code, I generated an empty commit to trigger the pipeline so the logs were fresh and visible:</p><pre>git commit --allow-empty -m &quot;chore(ci): trigger build to capture nextjs build failure for developer&quot;<br>git push origin main</pre><p>I compiled the exact error logs, formulated a precise bug report regarding React &lt;Suspense&gt; boundaries, and handed it off to the frontend team. Total victory.</p><h3>Key Takeaways</h3><ol><li><strong>Don’t mask the symptom; find the disease.</strong> Bumping a Docker image to bypass a bug leaves technical debt. Investigating the host VM solved it permanently.</li><li><strong>EC2 Instance Connect is a lifesaver.</strong> When you don’t have the PEM keys stored locally, dynamically injecting ephemeral keys saves hours of configuration changes.</li><li><strong>If it works in Repo A but fails in Repo B on the same runner, check the CI/CD variables.</strong> Infrastructure is global, but variables are intimately local.</li><li><strong>Keep the codebase clean.</strong> Never leave your debugging commits in the main branch. Hard reset your branches back to the original developer state once the infrastructure is fixed.</li></ol><p>Troubleshooting isn’t just about making the red lights turn green; it’s about methodical isolation, keeping the environment clean, and documenting the architecture along the way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9acc3c8cdef8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Engineer Goes Azure: How I Built a Production DR Environment Without Losing My Mind]]></title>
            <link>https://medium.com/@habeebbabasulaiman_39135/aws-engineer-goes-azure-how-i-built-a-production-dr-environment-without-losing-my-mind-a01077c7e4fb?source=rss-d9fddf96513c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a01077c7e4fb</guid>
            <category><![CDATA[cloud-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[disaster-recovery]]></category>
            <category><![CDATA[aws-engineer-goes-azure]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <dc:creator><![CDATA[Habeebbabasulaiman]]></dc:creator>
            <pubDate>Fri, 13 Mar 2026 12:40:27 GMT</pubDate>
            <atom:updated>2026-03-13T12:40:27.942Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PqXUloLkCCbRotsY33ZUbA.png" /></figure><p><em>And why your first Azure project will probably break in exactly the ways you don’t expect</em></p><p>I’ve been working with AWS for a few years now. EC2, ALB, ECR, Route53, VPCs — that’s my native terrain. I know how they’re wired together, I know the IAM quirks, I know which error messages to Google and which ones to actually read. AWS infrastructure stopped being scary a while back.</p><p>Then I got handed a project: build a full Disaster Recovery environment. Same apps, same architecture, but on <strong>Azure</strong>. From scratch. In a week.</p><p>I want to document this honestly — not as a clean step-by-step tutorial, but as the actual story of how it went. Because when I was sitting at my desk staring at the Azure portal for the first time, I would have killed for an article written by someone who had <em>just been there</em> rather than someone who already knew all the answers.</p><h3>The Setup</h3><p>The platform I was working with runs a Django REST API backend and two Next.js frontends, all containerized with Docker Compose, deployed on AWS EC2 instances behind an AWS Application Load Balancer. Route53 handles DNS. ECR stores the images. It’s a standard, solid setup.</p><p>The DR requirement was straightforward on paper: replicate the entire thing on Azure so that if the AWS environment ever goes dark, we can point DNS at Azure and the platform keeps running. Same apps. Same databases (MongoDB Atlas, which is cloud-agnostic anyway). Different cloud.</p><p>I’d heard of Azure before. I hadn’t used it. These are different things.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8tX04sfh_ZrnGs3GVQV7gQ.png" /></figure><h3>The AWS-to-Azure Mental Map (And Where It Breaks Down)</h3><p>The first thing I did — which I recommend to any AWS engineer starting on Azure — was build a mental translation table. Here’s the rough version:</p><p><strong>AWS</strong> ➡️ <strong>Azure Equivalent</strong></p><ul><li><strong>EC2</strong> ➡️ Virtual Machine</li><li><strong>VPC</strong> ➡️ Virtual Network (VNet)</li><li><strong>Security Group</strong> ➡️ Network Security Group (NSG)</li><li><strong>Application Load Balancer</strong> ➡️ Application Gateway</li><li><strong>ECR</strong> ➡️ Azure Container Registry (ACR)</li><li><strong>IAM Role</strong> ➡️ Managed Identity / Role Assignment</li><li><strong>ACM</strong> ➡️ App Gateway SSL Certificate (or Key Vault)</li></ul><p>This mapping holds up well <em>until it doesn’t</em>. The concepts are similar enough to feel familiar, but different enough to bite you when you assume they work the same way. The biggest one for me: <strong>Azure Application Gateway is not a drop-in replacement for AWS ALB in terms of how you configure it</strong>.</p><p>On AWS, you create an ALB, add listeners, add target groups, add rules, and you’re mostly done. On Azure, the Application Gateway has a more explicit dependency chain: you need frontend IP configs, frontend ports, backend pools, backend HTTP settings, health probes, listeners, redirect configurations, and routing rules — and they all reference each other by name. Miss one link in that chain and Terraform will fail with an error that reads like it needs therapy.</p><p>Once I understood the mental model, it actually made sense. But the first hour? Rough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*03g0a3Ea5T_oPpKLDmnfrg.png" /></figure><h3>Terraform First, Click Later</h3><p>I made a decision early: everything through Terraform, nothing clicked through the portal. Partly because that’s just good practice for anything you’ll need to reproduce or maintain. Partly because if I had to rebuild this in three months I didn’t want to rely on muscle memory of menus I’d never clicked again.</p><p>I structured it as a standalone module — separate from the existing AWS Terraform code — with its own state, its own providers, its own variables. The hierarchy ended up being:</p><pre>azure-dr/<br>├── main.tf         # Provider, resource group<br>├── network.tf      # VNet, subnets, NSG<br>├── acr.tf          # Container registry<br>├── compute.tf      # Both VMs + SSH key generation<br>├── appgateway.tf   # The big one<br>├── variables.tf    # All inputs, secrets marked sensitive<br>└── outputs.tf      # IPs, SSH commands, ACR credentials</pre><p>Keeping things separated by concern made the inevitable debugging sessions much less painful. When the App Gateway was misbehaving, I wasn’t hunting through 400 lines of mixed resources.</p><h3>The Permissions Wall</h3><p>Here’s the first real caveat, and it’s important if you’re working in a corporate Azure account: <strong>Contributor role is not enough to do everything Terraform wants to do.</strong></p><p>In AWS, if you have AdministratorAccess, you can pretty much do anything. Azure’s permission model is more granular. Contributor lets you create and manage resources, but it does <em>not</em> let you assign roles to other resources. That last part matters because the clean way to give a VM access to pull images from ACR is to assign it a AcrPull role — which requires Microsoft.Authorization/roleAssignments/write, which Contributor doesn&#39;t have.</p><p>My Terraform initially had azurerm_role_assignment resources for exactly this. When I ran terraform apply, it got through 17 of 19 resources and then hit 403 errors on those two role assignments. The error message was clear enough, at least.</p><p>The fix was pragmatic: remove the role assignments entirely, and use ACR admin credentials for image pulls instead. Not as elegant as managed identity, but it works, and it doesn’t require permissions I don’t have. I documented this clearly in the code and moved on.</p><p>The lesson: <strong>check your Azure permissions before you write a single line of Terraform</strong>. Run az role assignment list --assignee $(az ad signed-in-user show --query id -o tsv) and know what you&#39;re working with.</p><h3>The Disk Size That Wasn’t</h3><p>Second wall, and this one is the kind of thing you feel silly about in retrospect.</p><p>The frontend VM kept failing to provision. The error was buried in Azure’s activity log rather than in Terraform’s output: the OS disk I’d specified (20GB) was too small for the Ubuntu 24.04 image I was using. Azure requires a minimum of <strong>30GB</strong> for that image.</p><p>I’d been using 20GB on AWS EC2 for Ubuntu instances without issue for months. Different cloud, different minimums.</p><p>One line change: disk_size_gb = 30. Problem solved. But that&#39;s twenty minutes of my life looking at a cryptic provisioning failure message.</p><h3>App Gateway Health Probes: The Silent Killer</h3><p>This one took longer.</p><p>After everything provisioned successfully, I hit the App Gateway IP and got a 502. The gateway couldn’t reach the backends. I SSH’d into the VMs, the containers were running, nginx was responding — so why was the gateway unhappy?</p><p>Azure Application Gateway’s default health probe sends a GET to / on the backend. The Django backend doesn&#39;t have a route at /. It returns 404. And the App Gateway&#39;s default probe considers anything outside 200-399 as <em>unhealthy</em>, which means the backend pool was being marked as down even though the application was perfectly functional.</p><p>The fix is a custom health probe with two changes:</p><ol><li>Point it at a real endpoint (in this case the API’s health check route)</li><li>Expand the acceptable status code range to include more codes (200-499 is a reasonable range for a probe — you care that the service is responding, not that every path is perfect)</li></ol><pre>probe {<br>  name     = &quot;backend-health-probe&quot;<br>  protocol = &quot;Http&quot;<br>  path     = &quot;/api/v1/health&quot;<br>  host     = &quot;api-dr.example.com&quot;<br>  interval = 30<br>  timeout  = 30</pre><pre>  match {<br>    status_code = [&quot;200-499&quot;]<br>  }<br>}</pre><p>Once both backends showed <strong>Healthy</strong> in az network application-gateway show-backend-health, the 502s disappeared and traffic started flowing.</p><h3>The SSL Chapter (aka Why certbot and sudo Don’t Get Along)</h3><p>Getting HTTPS on an AWS ALB is almost embarrassing in how easy ACM makes it. You request a cert, validate via DNS, attach it to a listener, done. Five minutes.</p><p>Azure App Gateway needs the certificate in <strong>PFX format</strong> — that’s a bundle containing the cert, the private key, and the chain, all together, password-protected. AWS ACM doesn’t give you the private key at all. So I couldn’t just grab the existing cert.</p><p>I went with Let’s Encrypt via certbot, using the DNS-01 challenge type (which is what you need for wildcard certs). The certbot-dns-route53 plugin handles creating the validation TXT record in Route53 automatically.</p><p>Here’s the failure I hit and the reason it matters:</p><pre>sudo certbot certonly --dns-route53 ...<br># Error: Unable to locate credentials</pre><p>The issue: when you run certbot with sudo, it runs as root. Root doesn&#39;t have access to your user&#39;s ~/.aws/credentials. The plugin can&#39;t find any AWS credentials to create the DNS record. It fails silently on the credentials step, not with a helpful &quot;here&#39;s exactly what&#39;s missing.&quot;</p><p>The fix — pass credentials explicitly through sudo -E:</p><pre>AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id) \<br>AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key) \<br>AWS_DEFAULT_REGION=us-east-1 \<br>sudo -E certbot certonly --dns-route53 \<br>  --domain &quot;*.example.com&quot; \<br>  --domain &quot;example.com&quot; \<br>  --non-interactive --agree-tos \<br>  --email ops@example.com</pre><p>The -E flag tells sudo to preserve the calling user&#39;s environment variables. With that, certbot can reach Route53, create the TXT record, validate the challenge, and issue the cert.</p><p>Then convert to PFX:</p><pre>sudo openssl pkcs12 -export \<br>  -out cert.pfx \<br>  -inkey /etc/letsencrypt/live/example.com/privkey.pem \<br>  -in /etc/letsencrypt/live/example.com/fullchain.pem \<br>  -passout pass:your-password-here</pre><p>And reference it in Terraform:</p><pre>ssl_certificate {<br>  name     = &quot;wildcard-cert&quot;<br>  data     = filebase64(&quot;${path.module}/cert.pfx&quot;)<br>  password = var.pfx_certificate_password<br>}</pre><p>Note: the PFX file goes in .gitignore. It contains your private key. It does not go in git. Ever.</p><h3>HTTP to HTTPS Redirects on App Gateway</h3><p>One thing that tripped me up conceptually: on AWS ALB, you add an HTTP:80 listener rule that redirects to HTTPS with two clicks. On Azure App Gateway, you do this through <strong>redirect configurations</strong> — explicit resources that link an HTTP listener to an HTTPS listener.</p><p>The pattern looks like this:</p><ol><li>Create HTTP listener</li><li>Create HTTPS listener (with SSL cert)</li><li>Create redirect configuration: HTTP → HTTPS, type Permanent, preserve path and query</li><li>Create routing rule for HTTP listener → redirect configuration (not a backend pool)</li><li>Create routing rule for HTTPS listener → backend pool</li></ol><p>It’s more verbose than AWS, but it’s also more explicit. You can see exactly what’s happening. I actually came to appreciate this once I understood the model.</p><h3>What I’d Do Differently</h3><p>A few things I’d change if I were starting over:</p><p><strong>Use remote state from day one.</strong> I ran with local state for the Azure module because the S3 backend bucket had never been provisioned. That works fine for solo work, but the moment a second person needs to run terraform apply, local state becomes a liability. Either set up an Azure Blob backend or create the S3 bucket first.</p><p><strong>Check IAM/RBAC permissions on day one.</strong> The permissions wall is real. Knowing your constraints before writing Terraform saves you the pain of seeing apply fail at 17/19 resources.</p><p><strong>Health probe first.</strong> When setting up any load balancer, the first thing I configure in future is the health probe. Not last. Not as an afterthought. First. Everything downstream depends on the backend being considered healthy.</p><h3>The End Result</h3><p>By the end of this project, I had:</p><ul><li>A fully provisioned Azure environment: VNet, NSG, two VMs, an ACR, and a Standard_v2 Application Gateway</li><li>Both applications containerized and running on Azure VMs, pulling images from ACR</li><li>DR-specific subdomains in Route53 pointing at the Azure App Gateway</li><li>HTTPS with a valid wildcard Let’s Encrypt cert, HTTP redirecting to HTTPS</li><li>A Terraform codebase that any engineer on the team could pick up and terraform apply</li></ul><p>More than all of that, though — I understand Azure now. Not “I clicked around the portal” understand. <em>Terraform-provisioned-a-production-grade-environment</em> understand. That’s a different level.</p><h3>Final Thought</h3><p>If you’re an AWS engineer being asked to do something in Azure for the first time, my honest advice is: lean into the discomfort. The mental map between the two clouds is close enough to get you started but different enough to teach you something. Every place Azure diverges from what you expect is an opportunity to understand <em>why</em> things are designed the way they are.</p><p>The stuff I struggled with — role assignments, health probes, PFX certs, the Application Gateway resource model — I won’t struggle with again. And I now have a much cleaner appreciation for why some of AWS’s abstractions exist the way they do.</p><p>That’s not a bad week’s work.</p><p><em>If you found this useful or ran into some of the same walls, drop a comment — I’m curious how common the certbot/sudo credentials issue is.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a01077c7e4fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Case of the Zombie Container: Debugging a Silent Deployment Failure]]></title>
            <link>https://medium.com/@habeebbabasulaiman_39135/the-case-of-the-zombie-container-debugging-a-silent-deployment-failure-30ae9e575c31?source=rss-d9fddf96513c------2</link>
            <guid isPermaLink="false">https://medium.com/p/30ae9e575c31</guid>
            <dc:creator><![CDATA[Habeebbabasulaiman]]></dc:creator>
            <pubDate>Thu, 08 Jan 2026 16:36:35 GMT</pubDate>
            <atom:updated>2026-01-08T16:36:35.599Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Date: January 8, 2026</em></p><h3>Introduction</h3><p>In the world of DevOps, few things are more frustrating than a “successful” deployment that changes absolutely nothing. I pushed the code, the green checkmarks appeared in the pipeline, I refreshed the browser… and the old code stared back at me.</p><p>This article documents a critical debugging session involving a Next.js microservices architecture, AWS ECR, and Docker Compose. What started as a simple missing image asset (active-payment.png) turned into a deep dive into Docker&#39;s caching behavior and the importance of complete orchestration instructions.</p><h3>The Stack</h3><ul><li><strong>Frontend:</strong> Next.js (Standalone output)</li><li><strong>Containerization:</strong> Docker &amp; Docker Compose</li><li><strong>Registry:</strong> AWS Elastic Container Registry (ECR)</li><li><strong>CI/CD:</strong> Bitbucket Pipelines</li><li><strong>Infrastructure:</strong> AWS ALB, EC2 (Ubuntu) with Nginx Reverse Proxy</li></ul><h3>The Symptom</h3><p>I had just wrapped up a feature involving new UI components and assets for the “Global Admin” service. The changes worked locally. The build pipeline passed. The deployment script ran without errors.</p><p>Yet, on the production server, the request for the new image returned a 404, and the UI remained stuck in the past.</p><h3>Phase 1: The Usual Suspects</h3><p>My initial thought was a build failure or a misconfiguration.</p><ol><li><strong>Did the file fail to copy?</strong> I verified the Dockerfile. The COPY --from=builder steps were correct.</li><li><strong>Was the environment wrong?</strong> I checked the Bitbucket variables ($ECR_REPO_NAME, $AWS_ACCOUNT_ID). Everything was set correctly. The pipeline <em>was</em> pushing to the correct ECR repository.</li><li><strong>Was it a “Split-Brain” issue?</strong> I considered that perhaps the pipeline was creating a new repository instead of updating the existing one, but a quick check of the ECR console confirmed the new image digest was present in the correct repository.</li></ol><p>Everything looked right on paper. The code was built, the image was pushed, and the deployment script ran.</p><h3>Phase 2: The Discovery (The “Zombie” Container)</h3><p>I decided to stop guessing and verify the state of the server directly. I SSH’d into the EC2 instance and ran:</p><pre>docker ps</pre><p>The output revealed the smoking gun. The <strong>Global Admin</strong> container had an Up status of <strong>2 days</strong>.</p><p>The pipeline had successfully run <em>minutes</em> ago, but the container hadn’t restarted. It was a “zombie” — technically alive, but running old code, completely oblivious to the new image waiting in the registry.</p><p>I looked at the deployment script used in the pipeline:</p><pre># The original script<br>docker compose pull sch_admin_frontend<br>docker compose up -d</pre><p><strong>The Flaw:</strong> The deployment pipeline was triggered by the <em>School Admin</em> repository context. It was explicitly told to pull sch_admin_frontend, but it assumed that docker compose up -d would magically handle the rest.</p><p>However, since I was using a mutable tag (:dev) for the Global Admin service, and the container name hadn&#39;t changed, Docker Compose looked at the running container, said &quot;This configuration is already satisfied,&quot; and <strong>did nothing</strong>.</p><h3>Phase 3: The “Nuclear” Option (Cache Busting)</h3><p>To verify this theory and force the server to acknowledge the new reality, I employed a manual cache-busting strategy.</p><ol><li><strong>Forced Tagging:</strong> I manually built and pushed the image with a new, unique tag: :v2-fix.</li><li><strong>Config Update:</strong> I modified the docker-compose.yml to specifically require this new tag.</li><li><strong>Hard Reset:</strong> I explicitly removed the stuck container.</li></ol><pre># On the server<br>docker rm -f schctl-global-frontend-dev<br>docker compose up -d</pre><p>Because the configuration now demanded :v2-fix, Docker had no choice but to pull the new layer. <strong>Success!</strong> The asset appeared. The UI updated.</p><h3>Phase 4: The Permanent Fix</h3><p>The manual fix confirmed the root cause, but I needed a production-grade solution that wouldn’t require manual intervention every time.</p><h3>1. Unified Pull Strategy</h3><p>I updated the deployment pipeline to ensure <em>all</em> services are checked for updates, not just the primary one.</p><pre># Before (Partial update)<br>docker compose pull sch_admin_frontend</pre><pre># After (Total update)<br>docker compose pull<br>docker compose up -d</pre><h3>2. Automated Triggering</h3><p>I realized that pushing to the Global Admin repo updated the artifact but didn’t trigger a deploy on the server. I added a deployment step to the Global Admin pipeline. Now, a push to <em>either</em> repository ensures the server pulls the latest code for its respective service.</p><h3>3. Cleaning House</h3><p>Finally, I ran docker system prune -a to clean up the nearly 1GB of storage wasted by the intermediate layers and unused images from my debugging session.</p><h3>Conclusion</h3><p>This issue reinforced a critical lesson in container orchestration: <strong>Mutability is convenient, but dangerous.</strong></p><p>When relying on tags like :dev or :latest, you cannot assume your orchestrator will pull the new version. You must explicitly command it to do so. By changing my deployment scripts from specific pulls to general pulls, I ensured that my deployments are no longer silent failures, but reliable updates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30ae9e575c31" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ AWS Community Builders Program: A First-Timer’s Guide to Getting In (2026 Application Open)]]></title>
            <link>https://medium.com/@habeebbabasulaiman_39135/aws-community-builders-program-a-first-timers-guide-to-getting-in-2026-application-open-e5dc8960148f?source=rss-d9fddf96513c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5dc8960148f</guid>
            <dc:creator><![CDATA[Habeebbabasulaiman]]></dc:creator>
            <pubDate>Thu, 08 Jan 2026 12:19:31 GMT</pubDate>
            <atom:updated>2026-01-08T12:19:31.664Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*ra2Y3_LFsZdHdlOD2a2TtQ.jpeg" /></figure><p>Do you love teaching cloud, sharing tutorials, or building AWS projects? The <strong>AWS Community Builders Program</strong> is now open for applications — offering a unique platform for creators, speakers, writers, and community builders to grow, learn, and connect globally.</p><p><strong>Apply here:</strong> u<a href="https://go.aws/4hjva0x">https://go.aws/4hjva0x</a> (Official application link)</p><h3>🌍 What Is the AWS Community Builders Program?</h3><p>The <strong>AWS Community Builders Program</strong> is a global initiative by Amazon Web Services designed to support individuals who are passionate about AWS and actively contribute to the cloud ecosystem. It’s a <strong>year-long community experience</strong> that helps you grow your skills, expand your reach, and connect with other builders around the world.</p><p>This program is ideal for those who:</p><ul><li>Write technical content</li><li>Teach or mentor others</li><li>Speak at meetups or workshops</li><li>Build and share AWS projects</li><li>Lead community initiatives</li></ul><p>You don’t need to be a senior engineer — <strong>impact and consistency matter most</strong>.</p><h3>🎁 What You Get as a Community Builder</h3><p>Being selected as a Community Builder unlocks valuable benefits:</p><h3>🔧 Learning &amp; Growth</h3><p>• AWS Promotional Credits to power your cloud experiments<br> • Free AWS certification exam voucher<br> • Exclusive webinars &amp; product team interactions<br> • Early access to AWS features previews</p><h3>🤝 Networking &amp; Community</h3><p>• Access to a global Slack community<br> • Collaboration with others building in AWS<br> • Increased visibility for your talks, blogs, and projects</p><h3>🛠️ Professional Development</h3><p>• Recognition in the AWS Community Builders directory<br> • More speaking and leadership opportunities<br> • Access to mentorship and deeper AWS ecosystems</p><p>These benefits help you not just grow technically but also <strong>boost your career and influence</strong> within the tech community.</p><h3>🧠 Who Should Apply?</h3><p>You should apply if you are already doing — or planning to do — any of the following:</p><p>✔ Publish cloud tutorials or guides<br> ✔ Organize meetups, workshops, or AWS events<br> ✔ Lead technical communities or study groups<br> ✔ Build and share open-source AWS projects<br> ✔ Mentor others learning cloud technologies<br> ✔ Speak or teach cloud topics on any platform</p><p>Simply put: <strong>if you help others learn AWS, this program was built for you.</strong></p><h3>📝 How to Prepare a Winning Submission</h3><p>Here’s how to make your application stand out:</p><h3>📍1. Create Public Technical Content</h3><p>Blog posts, videos, GitHub repos, or recorded talks that teach AWS fundamentals or real-world use cases.</p><h3>📍2. Gather Strong Links</h3><p>You’ll need <strong>at least 2–3 public links</strong> that demonstrate your contribution to the community within the last 12 months.</p><p>Examples:<br> • In-depth AWS blog posts<br> • Workshop recordings<br> • Code repositories with AWS projects<br> • Conference presentations</p><h3>🧩 What You’ll Do in the Application</h3><p>When you apply, you’ll:</p><p>✅ Choose a technical focus area<br> ✅ Add your public links<br> ✅ Share your cloud journey<br> ✅ Explain why you want to help others grow with AWS</p><p>This is your chance to tell your story, show your impact, and highlight what makes your voice unique.</p><h3>🎯 Final Thoughts</h3><p>The AWS Community Builders Program is more than an award — it’s a <strong>launchpad</strong> for deeper learning, broader impact, and global connection. Whether you’re a student, mentor, speaker, or open-source contributor, this program amplifies your work and helps you scale your influence.</p><p><strong>Apply now:</strong> <a href="https://go.aws/4hjva0x">https://go.aws/4hjva0x</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5dc8960148f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>