<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Pubstack Blog - Cloud computing and engineering articles</title>
  <link href="https://www.pubstack.com/atom.xml" rel="self"/>
  <link href="https://www.pubstack.com/"/>
  <updated>2026-06-15T12:18:17+00:00</updated>
  <id>https://www.pubstack.com/</id>
  <author>
    <name>Carlos Camacho</name>
  </author>
  
  
  <entry>
    <title>OpenShell + SuperInference: Running Autonomous AI Agents at Scale in Secure Container Sandboxes</title>
    <summary>If 2025 was the year of “look what this agent can do” demos, 2026 is the year the industry is asking a harder question: what is the trust boundary for an agent that can actually act? Autonomous AI coding agents...</summary>
    <link href="https://www.pubstack.com/blog/2026/06/15/openshell-superinference-autonomous-agents-at-scale.html"/>
    <updated>2026-06-15T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2026/06/15/openshell-superinference-autonomous-agents-at-scale</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;If 2025 was the year of “look what this agent can do” demos,
2026 is the year the industry is asking a harder question:
&lt;strong&gt;what is the trust boundary for an agent that can actually
act?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Autonomous AI coding agents can now write code, execute shell
commands, read and modify files, make API calls, and iterate
on their own output. That’s powerful — and dangerous. An
agent with unrestricted access to your host system is one
prompt injection away from exfiltrating credentials, deleting
production databases, or sending unauthorized network
requests.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href=&quot;https://github.com/NVIDIA/OpenShell&quot;&gt;NVIDIA OpenShell&lt;/a&gt;&lt;/strong&gt;
solves this by providing sandboxed container runtimes for AI
agents — every session isolated, every resource metered,
every permission verified before execution. And
&lt;strong&gt;&lt;a href=&quot;https://github.com/superinference/ami&quot;&gt;SuperInference AMI&lt;/a&gt;&lt;/strong&gt;
is now a validated flavor image in this ecosystem, making it
the first autonomous coding agent that combines
multi-provider LLM routing, zero cold-start deployment, and
container-native detached execution in a single, minimal
image.&lt;/p&gt;

&lt;p&gt;This post covers the architecture, the integration, and why
this combination is the key building block for running
autonomous agents at enterprise scale.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/superinference/openshell_nvidia.png&quot; alt=&quot;OpenShell — Secure runtime for autonomous AI agents&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;what-is-openshell&quot;&gt;What is OpenShell?&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.nvidia.com/openshell/latest/index.html&quot;&gt;OpenShell&lt;/a&gt;
is an open-source project from NVIDIA that applies the
isolation principles of a web browser to agentic AI
workflows. Every agent runs inside its own sandbox — a
container with kernel-enforced security boundaries:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Landlock&lt;/strong&gt; file system restrictions — agents can only
touch what you allow&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;seccomp&lt;/strong&gt; system call filtering — dangerous syscalls are
blocked at the kernel level&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Network namespace isolation&lt;/strong&gt; — every outbound connection
is intercepted and evaluated against policy&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Per-binary network policy&lt;/strong&gt; — OpenShell identifies the
&lt;em&gt;exact binary&lt;/em&gt; making each connection, verifies its
SHA-256 hash, and applies rules. A compromised agent that
spawns a subprocess to exfiltrate data gets caught because
the subprocess has a different binary hash&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Credential isolation&lt;/strong&gt; — secrets are never stored inside
the sandbox. OpenShell’s inference routing proxy intercepts
outbound model API calls and injects credentials at the
network boundary&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The architecture is deny-all by default: every sandbox starts
locked down. You explicitly grant access to what the agent
needs via declarative YAML policies.&lt;/p&gt;

&lt;h2 id=&quot;why-ami-for-openshell&quot;&gt;Why AMI for OpenShell?&lt;/h2&gt;

&lt;p&gt;The OpenShell ecosystem follows a &lt;strong&gt;thin-base + flavor&lt;/strong&gt;
pattern. A minimal UBI (Red Hat Universal Base Image) base
provides OS-level dependencies, and each agent gets its own
flavor image containing only what it needs.&lt;/p&gt;

&lt;p&gt;Here’s how the flavors compare:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Image&lt;/th&gt;
      &lt;th&gt;Size&lt;/th&gt;
      &lt;th&gt;Cold Start&lt;/th&gt;
      &lt;th&gt;License&lt;/th&gt;
      &lt;th&gt;Runtime Downloads&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;openshell-ami&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;&lt;strong&gt;~200-250 MB&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;&lt;strong&gt;Instant&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;&lt;strong&gt;Apache 2.0&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;&lt;strong&gt;None&lt;/strong&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;openshell-claude&lt;/td&gt;
      &lt;td&gt;~350-400 MB&lt;/td&gt;
      &lt;td&gt;10-20s&lt;/td&gt;
      &lt;td&gt;Proprietary&lt;/td&gt;
      &lt;td&gt;Every boot&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;openshell-codex&lt;/td&gt;
      &lt;td&gt;~350-400 MB&lt;/td&gt;
      &lt;td&gt;Instant&lt;/td&gt;
      &lt;td&gt;Apache 2.0&lt;/td&gt;
      &lt;td&gt;None&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;openshell-adk&lt;/td&gt;
      &lt;td&gt;~300-350 MB&lt;/td&gt;
      &lt;td&gt;Instant&lt;/td&gt;
      &lt;td&gt;Apache 2.0&lt;/td&gt;
      &lt;td&gt;None&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;upstream monolith&lt;/td&gt;
      &lt;td&gt;2.81 GB&lt;/td&gt;
      &lt;td&gt;Fast&lt;/td&gt;
      &lt;td&gt;Mixed&lt;/td&gt;
      &lt;td&gt;Varies&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;AMI has the &lt;strong&gt;smallest footprint&lt;/strong&gt; of any flavor because it
ships as a single compiled binary — no Node.js runtime, no
Python, no npm packages in the container. The result is an
image roughly &lt;strong&gt;12x smaller&lt;/strong&gt; than the upstream OpenShell
Community monolith.&lt;/p&gt;

&lt;p&gt;And because AMI is licensed under Apache 2.0, the binary is
baked in at build time. No runtime downloads from vendor CDNs.
No licensing workarounds. No cold-start penalty. Mirror the
image to an internal registry and it works immediately —
critical for air-gapped and enterprise environments where
runtime internet access is prohibited.&lt;/p&gt;

&lt;p&gt;Compare this with Claude Code’s proprietary license (“All
rights reserved”), which requires downloading the agent from
Anthropic’s CDN on every uncached boot — a 10-20 second
cold-start penalty and a hard dependency on external network
access.&lt;/p&gt;

&lt;h2 id=&quot;the-integration-container-native-detached-mode&quot;&gt;The Integration: Container-Native Detached Mode&lt;/h2&gt;

&lt;p&gt;AMI wasn’t adapted for container deployment — &lt;strong&gt;detached
mode is a first-class execution path&lt;/strong&gt; designed from the
ground up for autonomous, non-interactive operation. No REPL,
no TUI, no human in the loop.&lt;/p&gt;

&lt;p&gt;The execution model is simple:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Pass a task, get structured output, read the exit code
podman run --rm \
  --tmpfs /dev/shm:rw,nosuid,nodev,exec,size=2g \
  -e AGENT_PROMPT=&quot;Fix the failing tests in src/auth/&quot; \
  -e ANTHROPIC_API_KEY=sk-ant-... \
  -v ./myproject:/sandbox/project \
  ghcr.io/superinference/openshell-ami
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Under the hood:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;The &lt;strong&gt;entrypoint&lt;/strong&gt; detects the agent name, verifies the
binary is present, writes a startup probe marker at
&lt;code&gt;/tmp/agent-ready&lt;/code&gt;, and execs into AMI detached mode&lt;/li&gt;
  &lt;li&gt;AMI receives the task via &lt;code&gt;--prompt&lt;/code&gt; or &lt;code&gt;AGENT_PROMPT&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;With &lt;code&gt;--yolo&lt;/code&gt;, AMI executes autonomously within the
sandbox policy — no permission prompts&lt;/li&gt;
  &lt;li&gt;Output streams as &lt;strong&gt;structured JSONL&lt;/strong&gt; to stdout —
complete execution traces, tool call logs, file changes,
and audit events&lt;/li&gt;
  &lt;li&gt;AMI exits with a &lt;strong&gt;semantic status code&lt;/strong&gt;: 0 (success),
1 (error), 2 (permission denied), 3 (max turns reached),
4 (aborted)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This makes AMI trivially integrable with any orchestration
system that can run containers: Kubernetes Jobs, GitHub
Actions, CI/CD pipelines, batch schedulers, or the kagenti
operator.&lt;/p&gt;

&lt;h3 id=&quot;kubernetes-deployment&quot;&gt;Kubernetes Deployment&lt;/h3&gt;

&lt;p&gt;For platform-managed deployments, AMI works with the kagenti
operator via an AgentRuntime custom resource:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;apiVersion: kagenti.dev/v1alpha1
kind: AgentRuntime
metadata:
  name: code-review-agent
spec:
  harness: ami
  image: ghcr.io/superinference/openshell-ami:latest
  env:
    - name: ANTHROPIC_API_KEY
      valueFrom:
        secretKeyRef:
          name: llm-credentials
          key: anthropic-key
    - name: AGENT_PROMPT
      value: &quot;Review the pending PR and post findings&quot;
  resources:
    limits:
      memory: 4Gi
      cpu: &quot;4&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The operator resolves the harness to a validated image,
manages lifecycle, injects sidecars for telemetry and
identity, and exposes the agent as a managed service.&lt;/p&gt;

&lt;h2 id=&quot;frito-the-universal-agent-flavor&quot;&gt;FRITO: The Universal Agent Flavor&lt;/h2&gt;

&lt;p&gt;Every other agent in the OpenShell ecosystem is locked to a
single LLM provider. &lt;code&gt;openshell-claude&lt;/code&gt; needs Anthropic.
&lt;code&gt;openshell-codex&lt;/code&gt; needs OpenAI. &lt;code&gt;openshell-adk&lt;/code&gt; needs Google.&lt;/p&gt;

&lt;p&gt;AMI’s &lt;strong&gt;FRITO&lt;/strong&gt; (Free-tier Retrieval &amp;amp; Inference Token
Ops) makes &lt;code&gt;openshell-ami&lt;/code&gt; the &lt;strong&gt;universal agent
flavor&lt;/strong&gt;. A single image works with any model backend:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Cloud providers&lt;/strong&gt;: Anthropic, OpenAI, Google, DeepSeek,
xAI, Mistral&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Free-tier routing&lt;/strong&gt;: GROQ, OpenRouter, GitHub Models,
Cerebras, HuggingFace, Together.AI&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Self-hosted&lt;/strong&gt;: Ollama, vLLM, any OpenAI-compatible
endpoint, Red Hat AI (RHOAI)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;FRITO rotates across providers with automatic fallback, quota
tracking, and cost optimization. In our
&lt;a href=&quot;/2026-06-11-frito-free-tier-ai-coding-matches-premium-models&quot;&gt;benchmark&lt;/a&gt;,
FRITO scored &lt;strong&gt;100% using only free-tier APIs&lt;/strong&gt; — matching
Claude Opus 4 and beating both Gemini models.&lt;/p&gt;

&lt;p&gt;For air-gapped deployments, point AMI at a local Ollama or
vLLM instance:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;podman run --rm --network=none \
  --tmpfs /dev/shm:rw,nosuid,nodev,exec,size=2g \
  -e DEFAULT_PROVIDER=ollama \
  -e OLLAMA_HOST=http://ollama.internal:11434 \
  -e AGENT_PROMPT=&quot;Audit src/ for security vulnerabilities&quot; \
  -v ./codebase:/sandbox/project \
  ghcr.io/superinference/openshell-ami
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;No internet access needed. Zero vendor CDN dependencies.&lt;/p&gt;

&lt;h2 id=&quot;two-layer-security-model&quot;&gt;Two-Layer Security Model&lt;/h2&gt;

&lt;p&gt;Running AMI inside OpenShell creates a &lt;strong&gt;defense-in-depth&lt;/strong&gt;
architecture with two independent security layers:&lt;/p&gt;

&lt;h3 id=&quot;outer-layer-openshell-sandbox-policy&quot;&gt;Outer Layer: OpenShell Sandbox Policy&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Container isolation — non-root &lt;code&gt;sandbox&lt;/code&gt; user, restricted
mounts, network policy&lt;/li&gt;
  &lt;li&gt;Filesystem confinement — writes limited to &lt;code&gt;/sandbox&lt;/code&gt; and
&lt;code&gt;/tmp&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;Resource limits — CPU, memory, disk quotas enforced by
cgroup&lt;/li&gt;
  &lt;li&gt;Network controls — outbound filtered, inbound blocked by
default&lt;/li&gt;
  &lt;li&gt;Credential injection — API keys injected at the network
boundary, never inside the sandbox&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;inner-layer-ami-permission-system&quot;&gt;Inner Layer: AMI Permission System&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;25 bash security validators&lt;/strong&gt; — command injection, shell
quoting, redirections, obfuscation detection&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Recursive descent AST parser&lt;/strong&gt; — full bash command
structure analysis before execution&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;4-tier command classification&lt;/strong&gt; — safe, unsafe,
destructive, hardline-blocked&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Environment scrubbing&lt;/strong&gt; — 30+ patterns strip API keys
and credentials from output&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Self-kill protection&lt;/strong&gt; — prevents the agent from
terminating its own process&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even when running with &lt;code&gt;--yolo&lt;/code&gt; (full autonomy), AMI’s
hardline security rules remain active — fork bombs,
&lt;code&gt;rm -rf /&lt;/code&gt;, and 19 other destructive patterns are
&lt;strong&gt;unconditionally blocked&lt;/strong&gt; regardless of permission mode.
The OpenShell sandbox provides the infrastructure-level
boundary on top of this.&lt;/p&gt;

&lt;p&gt;This means an attacker would need to bypass both AMI’s
application-layer security AND the kernel-enforced sandbox
to cause damage. Neither layer trusts the other.&lt;/p&gt;

&lt;h2 id=&quot;cicd-build-test-scan-publish&quot;&gt;CI/CD: Build, Test, Scan, Publish&lt;/h2&gt;

&lt;p&gt;We don’t just ship an image — we continuously validate it.
The &lt;code&gt;openshell-ami&lt;/code&gt; container image goes through an automated
pipeline on every push:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;build (image → artifact)
  ├─ Suite 1: OpenShell Container Tests (39 tests)
  ├─ Suite 2: Config Validation
  ├─ Suite 3: CLI Flags
  ├─ Suite 4: Security &amp;amp; Integrity
  └─ Suite 5: Provider Tests (150 tests)
       │
  publish (security scan → ghcr.io)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;All five test suites run &lt;strong&gt;in parallel&lt;/strong&gt; inside the container
itself — the same image that gets published is the one that
gets tested. No “works on my machine” gaps.&lt;/p&gt;

&lt;p&gt;The publish job includes a &lt;strong&gt;3-layer security scan&lt;/strong&gt; before
pushing to the registry:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Image env vars&lt;/strong&gt; — scans &lt;code&gt;docker inspect&lt;/code&gt; output for
API key patterns (&lt;code&gt;sk-ant-&lt;/code&gt;, &lt;code&gt;AIzaSy&lt;/code&gt;, &lt;code&gt;gsk_&lt;/code&gt;, etc.)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Image history&lt;/strong&gt; — scans all layer build commands for
leaked secrets&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Image filesystem&lt;/strong&gt; — runs a container to check
&lt;code&gt;/sandbox/.config/&lt;/code&gt; and &lt;code&gt;/sandbox/.superinference/&lt;/code&gt; for
credential files and key patterns&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Only after all three pass does the image get tagged and
pushed to
&lt;code&gt;ghcr.io/superinference/openshell-ami&lt;/code&gt;.&lt;/p&gt;

&lt;h2 id=&quot;why-this-matters-for-agents-at-scale&quot;&gt;Why This Matters for Agents at Scale&lt;/h2&gt;

&lt;p&gt;The industry is moving from “one developer, one agent” to
&lt;strong&gt;fleet-scale autonomous agent deployment&lt;/strong&gt;. Companies want
to run hundreds of agents across repositories, reviewing
PRs, fixing bugs, writing tests, performing security audits
— all without human intervention.&lt;/p&gt;

&lt;p&gt;This creates three hard problems that OpenShell + AMI solve
together:&lt;/p&gt;

&lt;h3 id=&quot;1-security-at-scale&quot;&gt;1. Security at Scale&lt;/h3&gt;

&lt;p&gt;One agent with unrestricted access is a risk. A hundred
agents with unrestricted access is an incident waiting to
happen. OpenShell’s sandbox-per-agent model means each agent
gets the minimum permissions it needs, with deny-all
defaults. AMI’s internal security layer means even a
compromised sandbox can’t execute destructive operations.
This scales linearly — adding more agents doesn’t increase
the blast radius of any individual agent.&lt;/p&gt;

&lt;h3 id=&quot;2-cost-at-scale&quot;&gt;2. Cost at Scale&lt;/h3&gt;

&lt;p&gt;Running Claude Code at scale means paying for Anthropic API
calls at premium rates, for every agent, on every task. AMI’s
FRITO routing means you can run the same workloads across
free-tier providers, self-hosted models, or whatever endpoint
your infrastructure provides. In our benchmarks, the
free-tier pool matched Claude Opus 4’s accuracy at zero API
cost. Multiply that by hundreds of agents and the savings are
enormous.&lt;/p&gt;

&lt;h3 id=&quot;3-operational-simplicity-at-scale&quot;&gt;3. Operational Simplicity at Scale&lt;/h3&gt;

&lt;p&gt;One container image. One deployment model. Any LLM backend.
No runtime downloads, no cold-start penalties, no vendor lock-in.
The &lt;code&gt;openshell-ami&lt;/code&gt; image works the same whether you’re
running it in GitHub Actions, a Kubernetes cluster, an
air-gapped datacenter, or a developer’s laptop. That
operational uniformity is what makes fleet-scale deployment
actually manageable.&lt;/p&gt;

&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;

&lt;p&gt;Pull the image and run your first autonomous agent in under
30 seconds:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# With any API key
docker run --rm \
  --tmpfs /dev/shm:rw,nosuid,nodev,exec,size=2g \
  -e AI_API_KEY=your-key-here \
  -e AGENT_PROMPT=&quot;Create a Python script that calculates fibonacci numbers&quot; \
  ghcr.io/superinference/openshell-ami

# With OpenShell CLI
openshell sandbox create --from ubi-ami \
  -e AI_API_KEY=your-key-here \
  -e AGENT_PROMPT=&quot;Fix the failing tests in src/auth/&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The image is published at
&lt;a href=&quot;https://github.com/superinference/ci/pkgs/container/openshell-ami&quot;&gt;&lt;code&gt;ghcr.io/superinference/openshell-ami&lt;/code&gt;&lt;/a&gt;,
and the source is at
&lt;a href=&quot;https://github.com/superinference/ami&quot;&gt;&lt;code&gt;github.com/superinference/ami&lt;/code&gt;&lt;/a&gt;.
The CI pipeline, test suites, and workflow configuration are
at
&lt;a href=&quot;https://github.com/superinference/ci&quot;&gt;&lt;code&gt;github.com/superinference/ci&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;whats-next&quot;&gt;What’s Next&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Multi-architecture builds&lt;/strong&gt; — ARM64 support for Apple
Silicon and Graviton instances&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;GPU passthrough&lt;/strong&gt; — local inference inside the sandbox
with NVIDIA GPU support (experimental in OpenShell)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Signed SBOMs&lt;/strong&gt; — software bill of materials for supply
chain security compliance&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;OpenShell Community contribution&lt;/strong&gt; — submitting
&lt;code&gt;openshell-ami&lt;/code&gt; as an official community sandbox flavor&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The future of autonomous agents isn’t about making them more
powerful — it’s about making them &lt;strong&gt;safe enough to trust at
scale&lt;/strong&gt;. OpenShell provides the cage. AMI provides the
intelligence. Together, they’re the foundation for the
agent-driven workforce.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;em&gt;The &lt;code&gt;openshell-ami&lt;/code&gt; container image is open source under the
Apache 2.0 license. Try it at
&lt;a href=&quot;https://github.com/superinference/ci/pkgs/container/openshell-ami&quot;&gt;ghcr.io/superinference/openshell-ami&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>FRITO: Free-Tier AI Coding That Matches Claude Opus 4</title>
    <summary>What if an autonomous AI coding agent using only free-tier API providers could match the accuracy of Claude Opus 4? We built FRITO (Free-tier Retrieval &amp; Inference Token Ops), a provider pool that rotates between free APIs from Google, Groq,...</summary>
    <link href="https://www.pubstack.com/blog/2026/06/11/frito-free-tier-ai-coding-matches-premium-models.html"/>
    <updated>2026-06-11T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2026/06/11/frito-free-tier-ai-coding-matches-premium-models</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;What if an autonomous AI coding agent using &lt;strong&gt;only free-tier
API providers&lt;/strong&gt; could match the accuracy of Claude Opus 4?&lt;/p&gt;

&lt;p&gt;We built FRITO (Free-tier Retrieval &amp;amp; Inference Token
Ops), a provider pool that rotates between free
APIs from Google, Groq, Cerebras, HuggingFace, OpenRouter,
and Mistral. Then we ran it against our 10-challenge coding
benchmark alongside Claude Opus 4, Gemini 2.5 Pro, and
Gemini 2.5 Flash.&lt;/p&gt;

&lt;p&gt;The result: &lt;strong&gt;FRITO scored 100% — matching Opus 4 and
beating both Gemini models.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/superinference/frito_benchmark.svg&quot; alt=&quot;FRITO Benchmark Results&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;the-benchmark&quot;&gt;The Benchmark&lt;/h2&gt;

&lt;p&gt;Our challenge suite covers the full spectrum of real-world
coding tasks that AI agents face daily:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;#&lt;/th&gt;
      &lt;th&gt;Challenge&lt;/th&gt;
      &lt;th&gt;Category&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;Single-file bugfix&lt;/td&gt;
      &lt;td&gt;Debug&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;2&lt;/td&gt;
      &lt;td&gt;Multi-file bugfix&lt;/td&gt;
      &lt;td&gt;Debug&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;3&lt;/td&gt;
      &lt;td&gt;Code generation from scratch&lt;/td&gt;
      &lt;td&gt;Generation&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;4&lt;/td&gt;
      &lt;td&gt;Extract and refactor&lt;/td&gt;
      &lt;td&gt;Refactor&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;5&lt;/td&gt;
      &lt;td&gt;Feature addition to existing code&lt;/td&gt;
      &lt;td&gt;Feature&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;6&lt;/td&gt;
      &lt;td&gt;Debug from stack trace&lt;/td&gt;
      &lt;td&gt;Debug&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;7&lt;/td&gt;
      &lt;td&gt;Test coverage expansion&lt;/td&gt;
      &lt;td&gt;Testing&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;8&lt;/td&gt;
      &lt;td&gt;Performance optimization&lt;/td&gt;
      &lt;td&gt;Optimization&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;9&lt;/td&gt;
      &lt;td&gt;API migration&lt;/td&gt;
      &lt;td&gt;Migration&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;10&lt;/td&gt;
      &lt;td&gt;Cross-file feature implementation&lt;/td&gt;
      &lt;td&gt;Feature&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Each challenge provides source files and a test suite. The
agent reads the task description, modifies or creates files,
and its solution is evaluated by running the test suite. No
human intervention — fully autonomous.&lt;/p&gt;

&lt;h2 id=&quot;results-the-full-comparison&quot;&gt;Results: The Full Comparison&lt;/h2&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Model&lt;/th&gt;
      &lt;th&gt;Pass Rate&lt;/th&gt;
      &lt;th&gt;Total Time&lt;/th&gt;
      &lt;th&gt;Avg Turns&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;FRITO (free tier)&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;&lt;strong&gt;10/10 (100%)&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;&lt;strong&gt;40 min&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;&lt;strong&gt;14.6&lt;/strong&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Claude Opus 4&lt;/td&gt;
      &lt;td&gt;10/10 (100%)&lt;/td&gt;
      &lt;td&gt;7 min&lt;/td&gt;
      &lt;td&gt;2.9&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Gemini 2.5 Pro&lt;/td&gt;
      &lt;td&gt;9/10 (90%)&lt;/td&gt;
      &lt;td&gt;13 min&lt;/td&gt;
      &lt;td&gt;11.5&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Gemini 2.5 Flash&lt;/td&gt;
      &lt;td&gt;8/10 (80%)&lt;/td&gt;
      &lt;td&gt;11 min&lt;/td&gt;
      &lt;td&gt;10.4&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;FRITO uses more turns (14.6 average vs 2.9 for Opus 4) and
takes longer (40 minutes vs 7 minutes). But it arrives at
the same destination — every single challenge solved.&lt;/p&gt;

&lt;h2 id=&quot;per-challenge-breakdown&quot;&gt;Per-Challenge Breakdown&lt;/h2&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Challenge&lt;/th&gt;
      &lt;th&gt;FRITO&lt;/th&gt;
      &lt;th&gt;Opus 4&lt;/th&gt;
      &lt;th&gt;Gemini Pro&lt;/th&gt;
      &lt;th&gt;Gemini Flash&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;01 Single-file bugfix&lt;/td&gt;
      &lt;td&gt;14 turns, 3m&lt;/td&gt;
      &lt;td&gt;8 turns, 25s&lt;/td&gt;
      &lt;td&gt;50 turns, 2.9m&lt;/td&gt;
      &lt;td&gt;50 turns, 2.4m&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;02 Multi-file bugfix&lt;/td&gt;
      &lt;td&gt;18 turns, 5.5m&lt;/td&gt;
      &lt;td&gt;4 turns, 30s&lt;/td&gt;
      &lt;td&gt;50 turns, 2.9m&lt;/td&gt;
      &lt;td&gt;50 turns, 2.7m&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;03 Code generation&lt;/td&gt;
      &lt;td&gt;10 turns, 50s&lt;/td&gt;
      &lt;td&gt;3 turns, 15s&lt;/td&gt;
      &lt;td&gt;50 turns, FAIL&lt;/td&gt;
      &lt;td&gt;3 turns, 13s&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;04 Refactor extract&lt;/td&gt;
      &lt;td&gt;29 turns, 17m&lt;/td&gt;
      &lt;td&gt;solved, 2.1m&lt;/td&gt;
      &lt;td&gt;9 turns, 1.3m&lt;/td&gt;
      &lt;td&gt;50 turns, 2.4m&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;05 Feature addition&lt;/td&gt;
      &lt;td&gt;14 turns, 3.2m&lt;/td&gt;
      &lt;td&gt;4 turns, 45s&lt;/td&gt;
      &lt;td&gt;11 turns, 1m&lt;/td&gt;
      &lt;td&gt;50 turns, 2.8m&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;06 Debug stack trace&lt;/td&gt;
      &lt;td&gt;10 turns, 49s&lt;/td&gt;
      &lt;td&gt;solved, 20s&lt;/td&gt;
      &lt;td&gt;50 turns, FAIL&lt;/td&gt;
      &lt;td&gt;50 turns, 1.8m&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;07 Test coverage&lt;/td&gt;
      &lt;td&gt;10 turns, 53s&lt;/td&gt;
      &lt;td&gt;solved, 56s&lt;/td&gt;
      &lt;td&gt;—&lt;/td&gt;
      &lt;td&gt;50 turns, 3.2m&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;08 Perf optimization&lt;/td&gt;
      &lt;td&gt;11 turns, 1.9m&lt;/td&gt;
      &lt;td&gt;solved, 28s&lt;/td&gt;
      &lt;td&gt;50 turns, 3.6m&lt;/td&gt;
      &lt;td&gt;50 turns, 2.3m&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;09 API migration&lt;/td&gt;
      &lt;td&gt;16 turns, 4.2m&lt;/td&gt;
      &lt;td&gt;5 turns, 30s&lt;/td&gt;
      &lt;td&gt;9 turns, FAIL&lt;/td&gt;
      &lt;td&gt;50 turns, 2.5m&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;10 Cross-file feature&lt;/td&gt;
      &lt;td&gt;14 turns, 3m&lt;/td&gt;
      &lt;td&gt;5 turns, 45s&lt;/td&gt;
      &lt;td&gt;50 turns, FAIL&lt;/td&gt;
      &lt;td&gt;50 turns, FAIL&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Notice the pattern: FRITO takes &lt;strong&gt;more turns on every
challenge&lt;/strong&gt;, but it &lt;strong&gt;never fails&lt;/strong&gt;. Even on the hardest
tasks — refactor extract (29 turns) and multi-file bugfix
(18 turns) — it eventually finds the solution by iterating
through its provider pool, trying different models, and
self-correcting.&lt;/p&gt;

&lt;p&gt;Meanwhile, the other models sometimes fail outright:
Gemini 2.5 Pro hit its 50-turn limit on code generation,
debug stack trace, API migration, and cross-file feature
without solving them. Gemini Flash failed on the cross-file
feature too.&lt;/p&gt;

&lt;h2 id=&quot;how-frito-works&quot;&gt;How FRITO Works&lt;/h2&gt;

&lt;p&gt;FRITO is built into the
&lt;a href=&quot;https://www.superinference.org&quot;&gt;SuperInference&lt;/a&gt;
agent framework. The architecture has three key components:&lt;/p&gt;

&lt;h3 id=&quot;1-provider-pool-rotation&quot;&gt;1. Provider Pool Rotation&lt;/h3&gt;

&lt;p&gt;Six free-tier providers are configured in a pool, each with
their own rate limits, API keys, and model offerings:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Provider&lt;/th&gt;
      &lt;th&gt;Model&lt;/th&gt;
      &lt;th&gt;RPM Limit&lt;/th&gt;
      &lt;th&gt;Speed&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Google&lt;/td&gt;
      &lt;td&gt;Gemini 2.5 Flash&lt;/td&gt;
      &lt;td&gt;15&lt;/td&gt;
      &lt;td&gt;Fast&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Groq&lt;/td&gt;
      &lt;td&gt;Llama 3.3 70B&lt;/td&gt;
      &lt;td&gt;30&lt;/td&gt;
      &lt;td&gt;Fast&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Cerebras&lt;/td&gt;
      &lt;td&gt;ZAI-GLM 4.7&lt;/td&gt;
      &lt;td&gt;30&lt;/td&gt;
      &lt;td&gt;Fast&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;OpenRouter&lt;/td&gt;
      &lt;td&gt;Llama 3.3 70B (free)&lt;/td&gt;
      &lt;td&gt;10&lt;/td&gt;
      &lt;td&gt;Medium&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Mistral&lt;/td&gt;
      &lt;td&gt;Mistral Small&lt;/td&gt;
      &lt;td&gt;5&lt;/td&gt;
      &lt;td&gt;Medium&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;HuggingFace&lt;/td&gt;
      &lt;td&gt;DeepSeek V3&lt;/td&gt;
      &lt;td&gt;10&lt;/td&gt;
      &lt;td&gt;Medium&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;When one provider hits its rate limit, the engine
immediately rotates to the next available one. There’s
no retry-and-wait loop — the request goes straight to the
next provider in the pool.&lt;/p&gt;

&lt;h3 id=&quot;2-rpm-pacing&quot;&gt;2. RPM Pacing&lt;/h3&gt;

&lt;p&gt;Rather than firing requests as fast as possible and hitting
429 errors, FRITO proactively paces requests. Each provider
tracks its last request timestamp and calculates the minimum
interval between calls:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;minInterval = 60,000ms / requestsPerMinute
delay = max(0, minInterval - elapsed)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;For Google at 15 RPM, that’s a 4-second minimum gap between
calls. For Groq at 30 RPM, it’s 2 seconds. This means the
engine rarely hits rate limits in the first place, and when
it does, rotation is instant.&lt;/p&gt;

&lt;h3 id=&quot;3-dual-model-architecture&quot;&gt;3. Dual-Model Architecture&lt;/h3&gt;

&lt;p&gt;Some free-tier providers (like HuggingFace) don’t support
tool calling. FRITO handles this with a dual-model approach:
when the pool selects a model without tool support, it runs
a &lt;strong&gt;reasoning phase&lt;/strong&gt; with that model (planning what to do),
then executes the actual tool calls through a tool-capable
model from another provider. This lets FRITO use the
reasoning capabilities of every model in the pool, even
those that can’t directly call tools.&lt;/p&gt;

&lt;h2 id=&quot;the-insight-autonomous-agents-that-never-stop&quot;&gt;The Insight: Autonomous Agents That Never Stop&lt;/h2&gt;

&lt;p&gt;The fundamental insight is simple:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;If your agent is autonomous, time is not a constraint —
it’s a resource.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A human developer using an AI assistant cares about latency.
Waiting 40 minutes for a response is unacceptable in an
interactive session. But for autonomous tasks — CI pipelines,
overnight batch processing, background code maintenance,
automated PR review — the clock doesn’t matter.&lt;/p&gt;

&lt;p&gt;This unlocks a different paradigm: &lt;strong&gt;long-running autonomous
agents that operate continuously at scale&lt;/strong&gt;. Imagine fleets
of agents working around the clock — reviewing every PR in
your organization, triaging incoming issues, running
regression hunts across your test suite, migrating
deprecated APIs file by file, or generating test coverage
for untested code paths. Each agent takes more turns and
more time than a frontier model would, but it runs
unattended and delivers the same quality.&lt;/p&gt;

&lt;p&gt;The real power emerges at scale. A single FRITO agent
handles 10 tasks overnight while you sleep. Ten agents
handle a hundred. A hundred agents can sweep an entire
codebase — refactoring, testing, documenting — as a
background process that runs continuously. Tasks that
would be impractical to assign to human developers (or
too tedious) become tractable when you can deploy
persistent autonomous agents that self-correct and
iterate until every test passes.&lt;/p&gt;

&lt;p&gt;This isn’t about replacing interactive AI assistants.
It’s about enabling a new class of workload: &lt;strong&gt;always-on
AI operations&lt;/strong&gt; that maintain, improve, and guard your
codebase autonomously, scaling horizontally without
scaling effort.&lt;/p&gt;

&lt;h2 id=&quot;the-broader-implication&quot;&gt;The Broader Implication&lt;/h2&gt;

&lt;p&gt;This result challenges a common assumption in the AI
industry: that &lt;strong&gt;model quality is primarily a function
of model size and training cost&lt;/strong&gt;. Our benchmark shows
that for well-structured agentic tasks, the &lt;strong&gt;orchestration
layer matters more than the individual model&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A simple model that can try, fail, and retry with different
approaches — rotating through providers, self-correcting from
test failures, and iterating until tests pass — achieves the
same outcome as a frontier model that gets it right in fewer
attempts.&lt;/p&gt;

&lt;p&gt;This has implications for:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Startups&lt;/strong&gt;: Deploy autonomous agents for background
and batch tasks from day one — free-tier rotation
delivers frontier-quality results with zero
infrastructure overhead.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Open source&lt;/strong&gt;: Projects can integrate AI assistance
without requiring users to bring premium API keys.
FRITO works with free accounts from any of the six
providers.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Scaling autonomous operations&lt;/strong&gt;: The combination of
provider rotation and self-correcting iteration means
you can run fleets of long-lived agents — maintaining
codebases, enforcing standards, and catching regressions
— as a continuous background process.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;try-it-yourself&quot;&gt;Try It Yourself&lt;/h2&gt;

&lt;p&gt;FRITO is available today through three interfaces in
&lt;a href=&quot;https://www.superinference.org&quot;&gt;SuperInference&lt;/a&gt;. All
three require the same one-time setup: create free API
accounts and configure your keys.&lt;/p&gt;

&lt;h3 id=&quot;1-setup-get-your-free-api-keys&quot;&gt;1. Setup: Get your free API keys&lt;/h3&gt;

&lt;p&gt;Create free accounts at any combination of these providers
(the more you configure, the larger your rotation pool):&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Provider&lt;/th&gt;
      &lt;th&gt;Sign Up&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Google AI Studio&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://aistudio.google.com/apikey&quot;&gt;aistudio.google.com/apikey&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Groq&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://console.groq.com/keys&quot;&gt;console.groq.com/keys&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Cerebras&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://cloud.cerebras.ai&quot;&gt;cloud.cerebras.ai&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;OpenRouter&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://openrouter.ai/keys&quot;&gt;openrouter.ai/keys&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Mistral&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://console.mistral.ai/api-keys&quot;&gt;console.mistral.ai/api-keys&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;HuggingFace&lt;/td&gt;
      &lt;td&gt;&lt;a href=&quot;https://huggingface.co/settings/tokens&quot;&gt;huggingface.co/settings/tokens&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;You can provide keys via environment variables:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;export GOOGLE_API_KEY=&quot;AIzaSy...&quot;
export GROQ_API_KEY=&quot;gsk_...&quot;
export CEREBRAS_API_KEY=&quot;csk-...&quot;
export OPENROUTER_API_KEY=&quot;sk-or-...&quot;
export MISTRAL_API_KEY=&quot;your-key&quot;
export HF_TOKEN=&quot;hf_...&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Or create the configuration file directly at
&lt;code&gt;~/.ami/frito.json&lt;/code&gt;. This is the file FRITO reads at
startup — you can build it by hand or let &lt;code&gt;/frito setup&lt;/code&gt;
generate it:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{
  &quot;enabled&quot;: true,
  &quot;quality&quot;: &quot;balanced&quot;,
  &quot;providers&quot;: {
    &quot;google&quot;: {
      &quot;keys&quot;: [&quot;AIzaSy...&quot;],
      &quot;model&quot;: &quot;gemini-2.5-flash&quot;,
      &quot;tier&quot;: &quot;permanent&quot;
    },
    &quot;groq&quot;: {
      &quot;keys&quot;: [&quot;gsk_...&quot;],
      &quot;model&quot;: &quot;llama-3.3-70b-versatile&quot;,
      &quot;tier&quot;: &quot;permanent&quot;
    },
    &quot;cerebras&quot;: {
      &quot;keys&quot;: [&quot;csk-...&quot;],
      &quot;model&quot;: &quot;zai-glm-4.7&quot;,
      &quot;tier&quot;: &quot;permanent&quot;
    },
    &quot;openrouter&quot;: {
      &quot;keys&quot;: [&quot;sk-or-...&quot;],
      &quot;model&quot;: &quot;meta-llama/llama-3.3-70b-instruct:free&quot;,
      &quot;tier&quot;: &quot;permanent&quot;
    },
    &quot;mistral&quot;: {
      &quot;keys&quot;: [&quot;your-mistral-key&quot;],
      &quot;model&quot;: &quot;mistral-small-latest&quot;,
      &quot;tier&quot;: &quot;permanent&quot;
    },
    &quot;huggingface&quot;: {
      &quot;keys&quot;: [&quot;hf_...&quot;],
      &quot;model&quot;: &quot;deepseek-ai/DeepSeek-V3-0324&quot;,
      &quot;baseUrl&quot;: &quot;https://router.huggingface.co/v1&quot;,
      &quot;tier&quot;: &quot;permanent&quot;
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The &lt;code&gt;quality&lt;/code&gt; field controls model selection: &lt;code&gt;&quot;min&quot;&lt;/code&gt;
accepts any model, &lt;code&gt;&quot;balanced&quot;&lt;/code&gt; skips budget-tier models,
and &lt;code&gt;&quot;max&quot;&lt;/code&gt; uses only premium-tier models. Each provider
entry supports multiple keys — if you have several Google
API keys, list them all in the &lt;code&gt;keys&lt;/code&gt; array and FRITO
will rotate between them when one hits its rate limit.&lt;/p&gt;

&lt;p&gt;You don’t need all six providers. Even two or three give
you meaningful rotation capacity. The more you add, the
larger the pool and the less likely you are to stall
waiting for a rate limit to reset.&lt;/p&gt;

&lt;h3 id=&quot;2-interactive-cli-repl&quot;&gt;2. Interactive CLI (REPL)&lt;/h3&gt;

&lt;p&gt;Launch the AMI CLI and use the &lt;code&gt;/frito&lt;/code&gt; slash command to
configure and enable free-tier routing:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;ami
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Inside the REPL:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/frito setup      # Interactive wizard — detects your keys
/frito status     # See which providers are active
/frito on         # Enable free-tier routing
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Once FRITO is active, every prompt you send is automatically
routed through the provider pool. You’ll see which model is
handling each turn in the status bar.&lt;/p&gt;

&lt;h3 id=&quot;3-cli-detached-mode-autonomous&quot;&gt;3. CLI Detached Mode (Autonomous)&lt;/h3&gt;

&lt;p&gt;For autonomous tasks — the mode used in the benchmark —
run AMI in detached mode with a prompt:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;ami --prompt &quot;Fix the bug in src/parser.ts — the test
command is: npm test&quot; --max-turns 50 --yolo
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;With FRITO configured, AMI automatically uses the provider
pool. The &lt;code&gt;--max-turns 50&lt;/code&gt; flag gives the agent room to
iterate, and &lt;code&gt;--yolo&lt;/code&gt; auto-approves tool calls for fully
unattended execution. This is the same mode the benchmark
uses — the agent reads files, edits code, runs tests, and
self-corrects until the tests pass.&lt;/p&gt;

&lt;p&gt;You can also pipe the output to JSON for programmatic use:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;ami --prompt &quot;Migrate callback API to async/await in
src/api.ts&quot; --max-turns 50 --yolo --output-format json
--quiet &amp;gt; result.json
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;4-vs-code-extension&quot;&gt;4. VS Code Extension&lt;/h3&gt;

&lt;p&gt;Install the &lt;strong&gt;SuperInference&lt;/strong&gt; extension from the VS Code
marketplace. Open the AMI chat panel and run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/frito setup
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The extension detects your configured API keys and enables
provider rotation. From there, every chat message routes
through the FRITO pool — you get the same multi-provider
resilience directly in your editor.&lt;/p&gt;

&lt;h2 id=&quot;whats-next&quot;&gt;What’s Next&lt;/h2&gt;

&lt;p&gt;We’re exploring several directions:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Parallel provider execution&lt;/strong&gt;: Send the same prompt
to multiple free providers simultaneously and use the
fastest valid response&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Adaptive quality routing&lt;/strong&gt;: Route simple tasks to
faster models and complex tasks to more capable ones&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Provider health monitoring&lt;/strong&gt;: Track per-provider
success rates and deprioritize providers that produce
more errors&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Expanded benchmark&lt;/strong&gt;: Adding challenges for
documentation generation, security fixes, and
multi-language support&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The key takeaway: &lt;strong&gt;the best AI coding agent isn’t
necessarily the one with the largest model — it’s
the one with the smartest orchestration.&lt;/strong&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;em&gt;FRITO is part of &lt;a href=&quot;https://www.superinference.org&quot;&gt;SuperInference&lt;/a&gt;,
an open-source feedback-augmented LLM agent framework.
The full benchmark results and provider configuration
are available in the
&lt;a href=&quot;https://github.com/superinference/ami&quot;&gt;GitHub repository&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>SuperInference: A Feedback-Augmented LLM Agent Framework for Complex Reasoning</title>
    <summary>Large Language Models are powerful, but single-shot prompting falls apart when tasks require multi-step reasoning, iterative refinement, and real-world tool usage. SuperInference is an open-source framework that solves this by combining agentic orchestration with information-theoretic principles — giving LLMs the...</summary>
    <link href="https://www.pubstack.com/blog/2026/06/05/superinference-feedback-augmented-llm-agent-framework.html"/>
    <updated>2026-06-05T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2026/06/05/superinference-feedback-augmented-llm-agent-framework</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Large Language Models are powerful, but single-shot prompting
falls apart when tasks require multi-step reasoning, iterative
refinement, and real-world tool usage. &lt;strong&gt;SuperInference&lt;/strong&gt; is an
open-source framework that solves this by combining agentic
orchestration with information-theoretic principles — giving
LLMs the ability to know &lt;em&gt;when&lt;/em&gt; and &lt;em&gt;how&lt;/em&gt; to iterate.&lt;/p&gt;

&lt;h2 id=&quot;what-is-superinference&quot;&gt;What is SuperInference?&lt;/h2&gt;

&lt;p&gt;SuperInference is a feedback-augmented LLM agent framework
designed for complex programming tasks and multi-step
reasoning. Rather than relying on ad-hoc prompt chaining,
it provides a principled, reusable architecture where an AI
agent iteratively refines its outputs using execution feedback,
maintains an explicit belief state about task progress, and
uses mathematically grounded stopping criteria to determine
when further reasoning is cost-effective.&lt;/p&gt;

&lt;p&gt;The project is fully open-source under the Apache 2.0 license
and available at &lt;a href=&quot;https://www.superinference.org&quot;&gt;superinference.org&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/superinference/si_cli.png&quot; alt=&quot;SuperInference AMI CLI&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;the-pre-loop-planner-retriever-executor&quot;&gt;The PRE Loop: Planner-Retriever-Executor&lt;/h2&gt;

&lt;p&gt;At the heart of SuperInference lies the &lt;strong&gt;PRE loop&lt;/strong&gt; with
critic-gated memory — a feedback cycle that mirrors how
expert programmers actually work:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Planner&lt;/strong&gt; — Maintains a belief state (probability
distribution over hidden task states) and fires events
when Expected Information Gain (EIG) exceeds a threshold.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Retriever&lt;/strong&gt; — Accesses semantic memory through an
embedding-based noisy channel (cosine similarity over
OpenAI’s &lt;code&gt;text-embedding-3-small&lt;/code&gt;).&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Executor&lt;/strong&gt; — Generates candidate actions conditioned
on the retrieved context.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Critic&lt;/strong&gt; — Evaluates results with explicit error rates
(false positive α, false negative β) and gates memory
updates so only high-quality artifacts are stored.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Memory&lt;/strong&gt; — Stores only critic-approved artifacts,
preventing error cascading across iterations.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This creates a closed feedback loop: observations refine
beliefs, EIG guides iteration depth, and stopping criteria
prevent diminishing returns.&lt;/p&gt;

&lt;h2 id=&quot;the-math-behind-it&quot;&gt;The Math Behind It&lt;/h2&gt;

&lt;p&gt;SuperInference formalizes agent operation as a &lt;strong&gt;Partially
Observable Markov Decision Process (POMDP)&lt;/strong&gt; with:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;A hidden state space &lt;strong&gt;S&lt;/strong&gt; representing task progress,
available tools, and unresolved subgoals.&lt;/li&gt;
  &lt;li&gt;An observation space &lt;strong&gt;O&lt;/strong&gt; covering critic decisions,
execution results, and retrieved context.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Bayesian belief updates&lt;/strong&gt; with interpolation rates
(λ+ = 0.35 default, 0.70 for strong evidence).&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;EIG stopping criteria&lt;/strong&gt; — iteration stops when expected
information gain falls below ε = 0.01.&lt;/li&gt;
  &lt;li&gt;Explicit modeling of &lt;strong&gt;noisy channels&lt;/strong&gt; for retrieval
imperfections and critic errors.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This mathematical foundation means SuperInference doesn’t
just &lt;em&gt;hope&lt;/em&gt; additional iterations help — it &lt;em&gt;measures&lt;/em&gt;
whether they will.&lt;/p&gt;

&lt;h2 id=&quot;multi-provider-multi-platform&quot;&gt;Multi-Provider, Multi-Platform&lt;/h2&gt;

&lt;p&gt;SuperInference works with virtually any LLM provider:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Provider&lt;/th&gt;
      &lt;th&gt;Models&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;OpenAI&lt;/td&gt;
      &lt;td&gt;GPT-4, GPT-4 Turbo, GPT-4o&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Google&lt;/td&gt;
      &lt;td&gt;Gemini 2.5 Pro, Gemini 2.5 Flash&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Anthropic&lt;/td&gt;
      &lt;td&gt;Claude 3 Opus, Sonnet, Haiku&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Others&lt;/td&gt;
      &lt;td&gt;DeepSeek, Groq, Mistral, Ollama, OpenRouter&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;It ships as a &lt;strong&gt;CLI REPL&lt;/strong&gt;, a &lt;strong&gt;VS Code extension&lt;/strong&gt;
(search “AMI - SuperInference” in the marketplace), and
an &lt;strong&gt;OpenClaw plugin&lt;/strong&gt; — so it fits into whatever workflow
you already have.&lt;/p&gt;

&lt;h2 id=&quot;16-built-in-tools&quot;&gt;16 Built-in Tools&lt;/h2&gt;

&lt;p&gt;SuperInference comes equipped with tools for real-world
tasks: bash execution, file read/write/edit, grep search,
web fetching, PDF parsing, symbol navigation, code
formatting, and more. Combined with slash commands
(&lt;code&gt;/model&lt;/code&gt;, &lt;code&gt;/session&lt;/code&gt;, &lt;code&gt;/memory&lt;/code&gt;, &lt;code&gt;/cost&lt;/code&gt;, &lt;code&gt;/resume&lt;/code&gt;,
&lt;code&gt;/compact&lt;/code&gt;, and others), it provides a complete interactive
development environment.&lt;/p&gt;

&lt;h2 id=&quot;performance-325x-improvement-on-hard-tasks&quot;&gt;Performance: 3.25x Improvement on Hard Tasks&lt;/h2&gt;

&lt;p&gt;On the DABStep benchmark for complex reasoning:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Hard tasks&lt;/strong&gt;: 12.7% → 41.3% accuracy (&lt;strong&gt;3.25x improvement&lt;/strong&gt;)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Leaderboard rank&lt;/strong&gt;: 3rd place overall (as of December 2025)&lt;/li&gt;
  &lt;li&gt;Most gains are concentrated in the &lt;strong&gt;first two refinement
rounds&lt;/strong&gt; (peak 50.7% at round 2 for hard tasks)&lt;/li&gt;
  &lt;li&gt;Correctly solved tasks average &lt;strong&gt;1.9 rounds&lt;/strong&gt; vs. 2.4
for failed tasks — the framework knows when to stop&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Quick install
curl -fsSL https://www.superinference.org/install.sh | bash
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Set your API key and you’re ready to go:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;export AI_API_KEY=&quot;your-key-here&quot;
ami --model gpt-4o
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;vs-code-extension&quot;&gt;VS Code Extension&lt;/h2&gt;

&lt;p&gt;SuperInference is also available as a VS Code extension
called &lt;strong&gt;AMI - SuperInference&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Open VS Code and go to the Extensions view
(&lt;code&gt;Ctrl+Shift+X&lt;/code&gt; / &lt;code&gt;Cmd+Shift+X&lt;/code&gt;).&lt;/li&gt;
  &lt;li&gt;Search for &lt;strong&gt;“AMI”&lt;/strong&gt; or &lt;strong&gt;“SuperInference”&lt;/strong&gt;.&lt;/li&gt;
  &lt;li&gt;Click &lt;strong&gt;Install&lt;/strong&gt;.&lt;/li&gt;
  &lt;li&gt;Open the chat panel with &lt;code&gt;Ctrl+Alt+P&lt;/code&gt; (&lt;code&gt;Cmd+Alt+P&lt;/code&gt;
on macOS).&lt;/li&gt;
  &lt;li&gt;Set your API key when prompted.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;img src=&quot;/static/superinference/si_vscode.png&quot; alt=&quot;SuperInference VS Code Extension&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The extension provides inline code lenses above functions
for quick actions (Explain, Fix, Edit, Review, Test,
Optimize) and supports the same slash commands as the CLI
(&lt;code&gt;/model&lt;/code&gt;, &lt;code&gt;/session&lt;/code&gt;, &lt;code&gt;/memory&lt;/code&gt;, &lt;code&gt;/cost&lt;/code&gt;, &lt;code&gt;/resume&lt;/code&gt;,
&lt;code&gt;/compact&lt;/code&gt;).&lt;/p&gt;

&lt;h2 id=&quot;demo&quot;&gt;Demo&lt;/h2&gt;

&lt;p&gt;Here’s SuperInference in action:&lt;/p&gt;

&lt;script src=&quot;https://asciinema.org/a/6CBDXgG2Rq4Ted6L.js&quot; id=&quot;asciicast-6CBDXgG2Rq4Ted6L&quot; async=&quot;true&quot;&gt;&lt;/script&gt;

&lt;h2 id=&quot;a-fun-example-the-tortilla-paper&quot;&gt;A Fun Example: The Tortilla Paper&lt;/h2&gt;

&lt;p&gt;To showcase SuperInference’s ability to handle complex,
multi-step tasks beyond code, we asked it to write a full
research paper on the perfect Spanish tortilla — complete
with historical context, culinary science, and regional
variations. The result is a fully formatted LaTeX paper
that demonstrates how the PRE loop handles iterative
document generation.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/superinference/tortilla.png&quot; alt=&quot;The Perfect Spanish Tortilla: A Culinary Investigation&quot; /&gt;&lt;/p&gt;

&lt;p&gt;You can download the full generated paper here:
&lt;a href=&quot;/static/superinference/tortilla_paper.pdf&quot;&gt;tortilla_paper.pdf&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;the-research&quot;&gt;The Research&lt;/h2&gt;

&lt;p&gt;SuperInference is backed by a peer-reviewed paper WIP authored by
Carlos Camacho-González (Red Hat / Universidad Complutense
de Madrid), Cristina Catalán-Torrecilla, Luis Llana,
Alberto Núñez, and Luis Tomás.&lt;/p&gt;

&lt;p&gt;The research was funded through Horizon Europe grant 101093129,
Spanish Ministry of Science projects PID2023-149943OB-I00
and PID2021-122215NB-C31, and Madrid region project
TEC-2024/COM-235.&lt;/p&gt;

&lt;h2 id=&quot;why-it-matters&quot;&gt;Why It Matters&lt;/h2&gt;

&lt;p&gt;Most LLM agent frameworks treat iteration as an afterthought —
retry on failure, chain prompts linearly, or let the user
decide when to stop. SuperInference inverts this: iteration
is the &lt;em&gt;core mechanism&lt;/em&gt;, governed by information theory
rather than heuristics. The result is an agent that reliably
handles multi-step tasks, knows when to push deeper, and
knows when to stop — all without model retraining.&lt;/p&gt;

&lt;p&gt;If you’re building with LLMs and need more than single-shot
prompting, give SuperInference a look:
&lt;a href=&quot;https://github.com/superinference&quot;&gt;github.com/superinference&lt;/a&gt; |
&lt;a href=&quot;https://www.superinference.org&quot;&gt;superinference.org&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>OpenClaw: The Open-Source AI Agent Framework That Changed Everything</title>
    <summary>In November 2025, Austrian developer Peter Steinberger quietly pushed a side project to GitHub. Six months later, it has 374,000 stars, backing from NVIDIA, OpenAI, and GitHub, and has been called by Jensen Huang “probably the single most important release...</summary>
    <link href="https://www.pubstack.com/blog/2026/05/21/openclaw-the-open-source-ai-agent-framework.html"/>
    <updated>2026-05-21T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2026/05/21/openclaw-the-open-source-ai-agent-framework</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;In November 2025, Austrian developer Peter Steinberger quietly pushed a side
project to GitHub. Six months later, it has 374,000 stars, backing from
NVIDIA, OpenAI, and GitHub, and has been called by Jensen Huang “probably
the single most important release of software, probably ever.” The project
is &lt;strong&gt;OpenClaw&lt;/strong&gt; — an open-source autonomous AI agent framework that doesn’t
just answer questions but &lt;strong&gt;executes work&lt;/strong&gt;. This post is a comprehensive
deep dive into what OpenClaw is, how it works, why businesses are adopting
it, and what you need to know to get started.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agentic_ai/openclaw_framework.svg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;what-is-openclaw&quot;&gt;What is OpenClaw?&lt;/h2&gt;

&lt;p&gt;OpenClaw is a &lt;strong&gt;personal AI assistant you run on your own devices&lt;/strong&gt;. Unlike
cloud-hosted AI chatbots, OpenClaw runs locally, connects to the LLM of
your choice (Claude, GPT, DeepSeek, or others), and interfaces with you
through the messaging platforms you already use — Slack, Telegram, Discord,
WhatsApp, Signal, iMessage, and 20+ more.&lt;/p&gt;

&lt;p&gt;But calling OpenClaw a “chatbot” misses the point. OpenClaw is best
understood as an &lt;strong&gt;execution layer&lt;/strong&gt; within the modern AI stack. Most AI
systems today focus on reasoning — they generate text, analyze data, and
suggest next steps, but they don’t execute those steps. OpenClaw bridges
that gap. It connects AI-generated decisions directly to systems where
work happens, carrying out those decisions automatically.&lt;/p&gt;

&lt;p&gt;The key distinction: traditional AI assistants are &lt;strong&gt;conversational&lt;/strong&gt;.
OpenClaw is &lt;strong&gt;agentic&lt;/strong&gt;. It doesn’t wait for you to tell it what to do
step by step — it takes a goal, decomposes it, selects the right tools,
executes, and reports back.&lt;/p&gt;

&lt;h2 id=&quot;the-origin-story&quot;&gt;The Origin Story&lt;/h2&gt;

&lt;p&gt;The journey from a side project to the fastest-growing open-source project
in history is worth understanding, because it reveals why OpenClaw
resonated so deeply with the developer community.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-mermaid&quot;&gt;timeline
    title OpenClaw Timeline
    November 2025 : Steinberger publishes &quot;Clawdbot&quot; to GitHub
    January 25, 2026 : Official launch — 9,000 stars in 24 hours
    January 27, 2026 : Renamed to &quot;Moltbot&quot; after Anthropic trademark complaint
    January 30, 2026 : Renamed to &quot;OpenClaw&quot;
    February 2, 2026 : Reaches 100,000 GitHub stars
    February 14, 2026 : Steinberger announces move to OpenAI
    March 2, 2026 : 247,000 stars and 47,700 forks
    May 2026 : 374,000+ stars — one of the largest OSS projects ever
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Peter Steinberger&lt;/strong&gt; is the founder of PSPDFKit, a document SDK deployed on
over a billion devices. When he built Clawdbot, it wasn’t a research
prototype — it was a production-grade tool built by someone who understood
what production software demands. That DNA shows in OpenClaw’s
architecture: local-first, sandboxed, observable, and extensible.&lt;/p&gt;

&lt;p&gt;The naming saga is part of the legend. Originally called &lt;strong&gt;Clawdbot&lt;/strong&gt; (a nod
to Anthropic’s Claude), it was renamed to &lt;strong&gt;Moltbot&lt;/strong&gt; after Anthropic filed
trademark complaints. Three days later, Steinberger renamed it again to
&lt;strong&gt;OpenClaw&lt;/strong&gt; because Moltbot “never quite rolled off the tongue.” The lobster
mascot stayed, and the community embraced it — contributors are called
“clawtributors,” the plugin registry is “ClawHub,” and the motto is
“EXFOLIATE! EXFOLIATE!”&lt;/p&gt;

&lt;p&gt;On February 14, 2026, Steinberger announced he was joining OpenAI and
transferred OpenClaw to an independent non-profit foundation. The project
remains MIT-licensed, community-governed, and vendor-neutral.&lt;/p&gt;

&lt;h2 id=&quot;architecture-deep-dive&quot;&gt;Architecture Deep Dive&lt;/h2&gt;

&lt;p&gt;OpenClaw’s architecture is centered around a &lt;strong&gt;Gateway&lt;/strong&gt; — a local-first
control plane that orchestrates everything.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-mermaid&quot;&gt;graph TB
    subgraph &quot;User Channels&quot;
        SL[Slack]
        TG[Telegram]
        DC[Discord]
        WA[WhatsApp]
        SG[Signal]
        IM[iMessage]
        WC[WebChat]
    end

    subgraph &quot;OpenClaw Gateway&quot;
        direction TB
        RT[Router]
        SM[Session Manager]
        TM[Tool Manager]
        EV[Event Bus]
    end

    subgraph &quot;Agent Sessions&quot;
        A1[Agent: Work]
        A2[Agent: Personal]
        A3[Agent: DevOps]
    end

    subgraph &quot;LLM Providers&quot;
        CL[Claude]
        GP[GPT]
        DS[DeepSeek]
    end

    subgraph &quot;Tools &amp;amp; Skills&quot;
        BR[Browser]
        FS[File System]
        SH[Shell]
        CV[Canvas]
        CR[Cron Jobs]
        SK[Custom Skills]
    end

    SL &amp;amp; TG &amp;amp; DC &amp;amp; WA &amp;amp; SG &amp;amp; IM &amp;amp; WC --&amp;gt; RT
    RT --&amp;gt; SM
    SM --&amp;gt; A1 &amp;amp; A2 &amp;amp; A3
    A1 &amp;amp; A2 &amp;amp; A3 --&amp;gt; TM
    TM --&amp;gt; BR &amp;amp; FS &amp;amp; SH &amp;amp; CV &amp;amp; CR &amp;amp; SK
    A1 &amp;amp; A2 &amp;amp; A3 --&amp;gt; CL &amp;amp; GP &amp;amp; DS
    EV -.-&amp;gt; SM
    EV -.-&amp;gt; TM
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;the-gateway&quot;&gt;The Gateway&lt;/h3&gt;

&lt;p&gt;The Gateway is a daemon process (launchd on macOS, systemd on Linux) that
listens on a configurable port (default 18789). It is the &lt;strong&gt;single control
plane&lt;/strong&gt; for sessions, channels, tools, and events. Critically, the Gateway
is just the orchestration layer — the product is the assistant that emerges
from the interaction between the user, the LLM, and the tools.&lt;/p&gt;

&lt;h3 id=&quot;multi-agent-routing&quot;&gt;Multi-Agent Routing&lt;/h3&gt;

&lt;p&gt;One of OpenClaw’s most powerful features is &lt;strong&gt;multi-agent routing&lt;/strong&gt;. You
can configure different agents for different contexts — a work agent that
connects to your company Slack and has access to your codebase, a personal
agent that handles your Signal messages and calendar, and a DevOps agent
that monitors your infrastructure via Telegram alerts.&lt;/p&gt;

&lt;p&gt;Each agent gets its own:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Workspace&lt;/strong&gt;: isolated file system scope&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Session history&lt;/strong&gt;: persistent memory across conversations&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Tool permissions&lt;/strong&gt;: what the agent can and cannot do&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;LLM configuration&lt;/strong&gt;: which model powers it&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;sessions&quot;&gt;Sessions&lt;/h3&gt;

&lt;p&gt;Sessions are first-class objects in OpenClaw. The system provides tools for
managing them: &lt;code&gt;sessions_list&lt;/code&gt;, &lt;code&gt;sessions_history&lt;/code&gt;, &lt;code&gt;sessions_send&lt;/code&gt;, and
&lt;code&gt;sessions_spawn&lt;/code&gt;. This enables the agent to maintain context across
interactions and even spawn sub-sessions for complex tasks.&lt;/p&gt;

&lt;h2 id=&quot;how-messages-flow-through-openclaw&quot;&gt;How Messages Flow Through OpenClaw&lt;/h2&gt;

&lt;p&gt;Understanding the message flow reveals why OpenClaw feels so responsive
despite its complex architecture.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-mermaid&quot;&gt;sequenceDiagram
    participant U as User
    participant C as Channel (Slack/Telegram/...)
    participant G as Gateway
    participant R as Router
    participant S as Session
    participant L as LLM Provider
    participant T as Tools

    U-&amp;gt;&amp;gt;C: Send message
    C-&amp;gt;&amp;gt;G: Webhook / WebSocket
    G-&amp;gt;&amp;gt;R: Route by channel + sender
    R-&amp;gt;&amp;gt;S: Dispatch to agent session
    S-&amp;gt;&amp;gt;L: Send context + message
    L--&amp;gt;&amp;gt;S: Response with tool calls
    S-&amp;gt;&amp;gt;T: Execute tool calls
    T--&amp;gt;&amp;gt;S: Tool results
    S-&amp;gt;&amp;gt;L: Continue with results
    L--&amp;gt;&amp;gt;S: Final response
    S-&amp;gt;&amp;gt;G: Send reply
    G-&amp;gt;&amp;gt;C: Deliver to channel
    C-&amp;gt;&amp;gt;U: Display response
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The flow is asynchronous and non-blocking. While one session is waiting
for an LLM response, others continue processing. The Gateway handles
backpressure, rate limiting, and failover between LLM providers
transparently.&lt;/p&gt;

&lt;h2 id=&quot;the-skills-ecosystem&quot;&gt;The Skills Ecosystem&lt;/h2&gt;

&lt;p&gt;Skills are what make OpenClaw extensible. A skill is a directory containing
a &lt;code&gt;SKILL.md&lt;/code&gt; file with metadata, instructions, and tool-usage patterns. The
agent reads the skill file and gains new capabilities without code changes.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-mermaid&quot;&gt;graph LR
    subgraph &quot;Skill Types&quot;
        B[Bundled Skills]
        M[Managed Skills]
        W[Workspace Skills]
    end

    subgraph &quot;Skill Lifecycle&quot;
        D[Discover on ClawHub]
        I[Install via CLI]
        C[Configure in workspace]
        A[Agent loads SKILL.md]
        E[Execute skill tools]
    end

    subgraph &quot;Skill Components&quot;
        SM[SKILL.md - Instructions]
        AG[AGENTS.md - Agent config]
        TL[TOOLS.md - Tool definitions]
        SO[SOUL.md - Personality]
    end

    B --&amp;gt; A
    D --&amp;gt; I --&amp;gt; C --&amp;gt; A --&amp;gt; E
    W --&amp;gt; A
    SM &amp;amp; AG &amp;amp; TL &amp;amp; SO --&amp;gt; A
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;skill-types&quot;&gt;Skill Types&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Bundled skills&lt;/strong&gt;: Ship with OpenClaw (browser, canvas, cron, sessions)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Managed skills&lt;/strong&gt;: Installed from ClawHub, the community registry&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Workspace skills&lt;/strong&gt;: Custom skills you create in
&lt;code&gt;~/.openclaw/workspace/skills/&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;clawhub&quot;&gt;ClawHub&lt;/h3&gt;

&lt;p&gt;ClawHub (clawhub.ai) is the community skill registry. It works like npm
for agent capabilities — you browse, install, and update skills with a
single command. However, ClawHub has also been a source of security
concern (more on this in the Security section).&lt;/p&gt;

&lt;h3 id=&quot;building-a-custom-skill&quot;&gt;Building a Custom Skill&lt;/h3&gt;

&lt;p&gt;Creating a skill is remarkably simple. You write a &lt;code&gt;SKILL.md&lt;/code&gt; file
that describes what the skill does, what tools it needs, and how the
agent should use them:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;---
name: daily-standup
description: Automate daily standup collection and summary
tools:
  - sessions_send
  - cron
---

# Daily Standup Skill

Collect standup updates from team members every morning at 9:00 AM.

## Workflow
1. At 9:00 AM, send a message to each team member asking for:
   - What they did yesterday
   - What they plan to do today
   - Any blockers
2. Wait for responses (timeout: 2 hours)
3. Compile responses into a summary
4. Post the summary to the #standup channel
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The agent reads this natural language description and executes the workflow
using its available tools. No code required.&lt;/p&gt;

&lt;h2 id=&quot;channel-integrations&quot;&gt;Channel Integrations&lt;/h2&gt;

&lt;p&gt;OpenClaw supports &lt;strong&gt;25+ messaging platforms&lt;/strong&gt;, making it the most broadly
integrated AI agent framework available.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-mermaid&quot;&gt;graph TB
    subgraph &quot;Enterprise&quot;
        SL[Slack]
        MT[Microsoft Teams]
        GC[Google Chat]
        MM[Mattermost]
        NC[Nextcloud Talk]
    end

    subgraph &quot;Consumer&quot;
        WA[WhatsApp]
        TG[Telegram]
        SG[Signal]
        IM[iMessage]
        DC[Discord]
    end

    subgraph &quot;Asia-Pacific&quot;
        WE[WeChat]
        QQ[QQ]
        LN[LINE]
        ZL[Zalo]
        FS[Feishu / Lark]
    end

    subgraph &quot;Developer &amp;amp; Social&quot;
        IR[IRC]
        MX[Matrix]
        TW[Twitch]
        NS[Nostr]
        SY[Synology Chat]
    end

    subgraph &quot;Native&quot;
        MC[macOS App]
        IO[iOS Node]
        AN[Android Node]
        WB[WebChat]
    end

    OC((OpenClaw&amp;lt;br/&amp;gt;Gateway))

    SL &amp;amp; MT &amp;amp; GC &amp;amp; MM &amp;amp; NC --&amp;gt; OC
    WA &amp;amp; TG &amp;amp; SG &amp;amp; IM &amp;amp; DC --&amp;gt; OC
    WE &amp;amp; QQ &amp;amp; LN &amp;amp; ZL &amp;amp; FS --&amp;gt; OC
    IR &amp;amp; MX &amp;amp; TW &amp;amp; NS &amp;amp; SY --&amp;gt; OC
    MC &amp;amp; IO &amp;amp; AN &amp;amp; WB --&amp;gt; OC
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This breadth matters for businesses. Your team uses Slack? Your customers
reach out on WhatsApp? Your DevOps alerts come through Telegram? Your
Asian market uses WeChat? OpenClaw handles all of them through a single
agent configuration.&lt;/p&gt;

&lt;h3 id=&quot;dm-routing-and-access-control&quot;&gt;DM Routing and Access Control&lt;/h3&gt;

&lt;p&gt;By default, DMs from messaging platforms are treated as &lt;strong&gt;untrusted
input&lt;/strong&gt;. The default DM policy is &lt;code&gt;&quot;pairing&quot;&lt;/code&gt; — unknown senders receive a
pairing code, and the bot won’t process their messages until approved. This
prevents random strangers from interacting with your agent (and your data).&lt;/p&gt;

&lt;h2 id=&quot;business-use-cases&quot;&gt;Business Use Cases&lt;/h2&gt;

&lt;p&gt;This is where OpenClaw gets interesting for organizations. The combination
of autonomous execution, broad integrations, and the skills system creates
a platform that can automate complex business workflows.&lt;/p&gt;

&lt;h3 id=&quot;use-case-1-sales-lead-generation-and-qualification&quot;&gt;Use Case 1: Sales Lead Generation and Qualification&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-mermaid&quot;&gt;graph LR
    subgraph &quot;Lead Sources&quot;
        LI[LinkedIn Alerts]
        EM[Inbound Emails]
        WF[Website Forms]
    end

    subgraph &quot;OpenClaw Agent&quot;
        EN[Enrich Lead Data]
        SC[Score Against ICP]
        RS[Research Company]
        DR[Draft Outreach]
    end

    subgraph &quot;Output&quot;
        CR[Update CRM]
        SL[Notify Sales on Slack]
        EM2[Send Personalized Email]
    end

    LI &amp;amp; EM &amp;amp; WF --&amp;gt; EN --&amp;gt; SC --&amp;gt; RS --&amp;gt; DR
    DR --&amp;gt; CR &amp;amp; SL &amp;amp; EM2
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;The workflow&lt;/strong&gt;: When a new lead comes in (via email, form submission, or
LinkedIn alert), the OpenClaw agent:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Enriches&lt;/strong&gt; the lead with company data, recent news, and funding info&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Scores&lt;/strong&gt; the lead against your Ideal Customer Profile&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Researches&lt;/strong&gt; the company’s tech stack, recent hires, and pain points&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Drafts&lt;/strong&gt; a personalized outreach email referencing specific details&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Updates&lt;/strong&gt; your CRM with the enriched data and lead score&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Notifies&lt;/strong&gt; the assigned sales rep on Slack with a summary&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Freelancers and small businesses have been early adopters of this pattern,
using OpenClaw to automate prospect research and outreach that would
otherwise require a dedicated SDR.&lt;/p&gt;

&lt;h3 id=&quot;use-case-2-customer-support-triage-and-resolution&quot;&gt;Use Case 2: Customer Support Triage and Resolution&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;The workflow&lt;/strong&gt;: The agent monitors your support channels (email,
Slack, Discord) and:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Categorizes incoming issues by type and severity&lt;/li&gt;
  &lt;li&gt;Searches your knowledge base and documentation for solutions&lt;/li&gt;
  &lt;li&gt;For known issues: drafts a response and queues it for human review&lt;/li&gt;
  &lt;li&gt;For unknown issues: escalates to the right team with full context&lt;/li&gt;
  &lt;li&gt;Tracks resolution time and updates the customer&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Business impact&lt;/strong&gt;: Reduces first-response time from hours to seconds.
Companies report 60-70% of L1 support tickets being handled or triaged
without human intervention.&lt;/p&gt;

&lt;h3 id=&quot;use-case-3-devops-and-infrastructure-monitoring&quot;&gt;Use Case 3: DevOps and Infrastructure Monitoring&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-mermaid&quot;&gt;graph TB
    subgraph &quot;Monitoring Sources&quot;
        AL[Alerts - PagerDuty]
        LG[Logs - Datadog]
        MT[Metrics - Grafana]
    end

    subgraph &quot;OpenClaw DevOps Agent&quot;
        AN[Analyze Alert Context]
        DG[Diagnose Root Cause]
        FX[Generate Fix]
        TS[Run Tests]
        PR[Create PR]
    end

    subgraph &quot;Actions&quot;
        NF[Notify Team on Slack]
        PM[Post-Mortem Draft]
        DP[Deploy Fix via CI/CD]
    end

    AL &amp;amp; LG &amp;amp; MT --&amp;gt; AN --&amp;gt; DG --&amp;gt; FX --&amp;gt; TS
    TS --&amp;gt;|Pass| PR --&amp;gt; DP
    TS --&amp;gt;|Fail| DG
    AN --&amp;gt; NF
    PR --&amp;gt; PM
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;The workflow&lt;/strong&gt;: When an alert fires, the agent:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Analyzes logs and metrics to identify the root cause&lt;/li&gt;
  &lt;li&gt;Searches the codebase for the relevant code&lt;/li&gt;
  &lt;li&gt;Generates and tests a fix locally&lt;/li&gt;
  &lt;li&gt;Creates a PR with the fix and a draft post-mortem&lt;/li&gt;
  &lt;li&gt;Pages a human only if it can’t resolve the issue automatically&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is the use case that made Jensen Huang call OpenClaw “probably the
single most important release of software, probably ever.”&lt;/p&gt;

&lt;h3 id=&quot;use-case-4-content-operations&quot;&gt;Use Case 4: Content Operations&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;The workflow&lt;/strong&gt;: For content teams, the agent can:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Monitor competitor blogs and industry news via RSS/web browsing&lt;/li&gt;
  &lt;li&gt;Generate content briefs based on trending topics and SEO gaps&lt;/li&gt;
  &lt;li&gt;Draft articles with proper formatting, images, and metadata&lt;/li&gt;
  &lt;li&gt;Schedule publishing across platforms&lt;/li&gt;
  &lt;li&gt;Monitor engagement metrics and suggest optimizations&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;use-case-5-financial-operations-and-compliance&quot;&gt;Use Case 5: Financial Operations and Compliance&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;The workflow&lt;/strong&gt;: For finance teams:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Monitor transactions for anomalies and flag potential compliance issues&lt;/li&gt;
  &lt;li&gt;Generate daily/weekly financial summaries from accounting systems&lt;/li&gt;
  &lt;li&gt;Reconcile invoices against purchase orders&lt;/li&gt;
  &lt;li&gt;Draft compliance reports for regulatory requirements&lt;/li&gt;
  &lt;li&gt;Alert the CFO via their preferred channel when thresholds are exceeded&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;use-case-6-hr-and-recruitment&quot;&gt;Use Case 6: HR and Recruitment&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;The workflow&lt;/strong&gt;: The agent automates recruitment pipeline tasks:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Screen incoming resumes against job requirements&lt;/li&gt;
  &lt;li&gt;Schedule interviews by coordinating calendars&lt;/li&gt;
  &lt;li&gt;Send status updates to candidates&lt;/li&gt;
  &lt;li&gt;Compile interview feedback from the team&lt;/li&gt;
  &lt;li&gt;Generate offer letter drafts&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;security-model&quot;&gt;Security Model&lt;/h2&gt;

&lt;p&gt;Security is the most contentious aspect of OpenClaw — and rightfully so.
An autonomous agent with access to your email, calendar, file system,
and messaging platforms is powerful but dangerous if misconfigured.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-mermaid&quot;&gt;graph TB
    subgraph &quot;Security Layers&quot;
        direction TB
        L1[DM Access Control&amp;lt;br/&amp;gt;Pairing codes for unknown senders]
        L2[Permission Levels&amp;lt;br/&amp;gt;auto / prompt / forbidden actions]
        L3[Sandbox Isolation&amp;lt;br/&amp;gt;Docker, SSH, or OpenShell]
        L4[Tool Allowlists&amp;lt;br/&amp;gt;Per-agent tool permissions]
        L5[Audit Logging&amp;lt;br/&amp;gt;Every tool call recorded]
    end

    L1 --&amp;gt; L2 --&amp;gt; L3 --&amp;gt; L4 --&amp;gt; L5

    subgraph &quot;Risk Mitigations&quot;
        DC[openclaw doctor&amp;lt;br/&amp;gt;Surfaces risky configs]
        SB[Non-main session sandboxing&amp;lt;br/&amp;gt;Isolates group/channel sessions]
        PP[Pairing policy&amp;lt;br/&amp;gt;Default: require approval]
    end

    L1 -.-&amp;gt; PP
    L3 -.-&amp;gt; SB
    L1 -.-&amp;gt; DC
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;default-security-posture&quot;&gt;Default Security Posture&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;DM policy&lt;/strong&gt;: &lt;code&gt;&quot;pairing&quot;&lt;/code&gt; — unknown senders must be approved&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Main session&lt;/strong&gt;: Runs on host with full access (it’s just you)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Non-main sessions&lt;/strong&gt;: Can be sandboxed via Docker by setting
&lt;code&gt;agents.defaults.sandbox.mode: &quot;non-main&quot;&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Default sandbox permissions&lt;/strong&gt;: Allow bash, process, read, write, edit,
session tools. Deny browser, canvas, nodes, cron, discord, gateway.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;the-clawhub-malware-incident&quot;&gt;The ClawHub Malware Incident&lt;/h3&gt;

&lt;p&gt;In February 2026, Bitdefender scanned ClawHub and found &lt;strong&gt;nearly 900
malicious packages&lt;/strong&gt; — almost 20% of the registry. Some accounts were
uploading poisoned skills every few minutes using automated scripts. This
is the npm/PyPI supply chain attack problem, amplified by the fact that
malicious skills can instruct an AI agent to exfiltrate data or execute
arbitrary commands.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cisco’s AI security team&lt;/strong&gt; tested a third-party skill and confirmed it
performed data exfiltration and prompt injection without user awareness.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lessons for businesses&lt;/strong&gt;: Treat the ClawHub registry like you treat npm
— vet third-party packages, pin versions, and audit regularly. Use only
bundled or workspace skills for sensitive operations. Run &lt;code&gt;openclaw doctor&lt;/code&gt;
to surface risky configurations.&lt;/p&gt;

&lt;h3 id=&quot;prompt-injection-risks&quot;&gt;Prompt Injection Risks&lt;/h3&gt;

&lt;p&gt;Because OpenClaw processes messages from external sources (email, chat,
web pages), it’s susceptible to &lt;strong&gt;prompt injection&lt;/strong&gt; — malicious
instructions embedded in data that trick the LLM into treating them as
legitimate commands. A carefully crafted email could, in theory, instruct
the agent to forward sensitive data to an attacker.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mitigations&lt;/strong&gt;: Use sandboxing for all non-main sessions, restrict tool
permissions to the minimum needed, and never give agents write access to
systems they shouldn’t modify.&lt;/p&gt;

&lt;h2 id=&quot;deployment-models&quot;&gt;Deployment Models&lt;/h2&gt;

&lt;p&gt;OpenClaw supports multiple deployment topologies, from a developer’s
laptop to an enterprise fleet.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-mermaid&quot;&gt;graph TB
    subgraph &quot;Local Development&quot;
        LP[Laptop / Desktop]
        LP --&amp;gt; GW1[Gateway Daemon]
        GW1 --&amp;gt; LLM1[LLM API]
    end

    subgraph &quot;Small Team (Docker)&quot;
        SV[Server / VPS]
        SV --&amp;gt; DC1[Docker Compose]
        DC1 --&amp;gt; GW2[Gateway Container]
        DC1 --&amp;gt; SB1[Sandbox Containers]
        GW2 --&amp;gt; LLM2[LLM API]
    end

    subgraph &quot;Enterprise (Orchestrated)&quot;
        K8[Kubernetes Cluster]
        K8 --&amp;gt; GW3[Gateway Pods]
        K8 --&amp;gt; SB2[Sandbox Pods]
        K8 --&amp;gt; NM[NVIDIA NemoClaw&amp;lt;br/&amp;gt;Governance Layer]
        GW3 --&amp;gt; LLM3[LLM API / Self-hosted]
        NM --&amp;gt; GW3
    end
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;local-developer--freelancer&quot;&gt;Local (Developer / Freelancer)&lt;/h3&gt;

&lt;p&gt;The simplest deployment. Install via npm, run &lt;code&gt;openclaw onboard&lt;/code&gt;, and
you’re up in minutes. The gateway runs as a daemon, and you interact
through your preferred messaging app.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;npm install -g openclaw@latest
openclaw onboard --install-daemon
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;docker-small-team&quot;&gt;Docker (Small Team)&lt;/h3&gt;

&lt;p&gt;For teams, Docker Compose provides isolation and reproducibility. The
included &lt;code&gt;docker-compose.yml&lt;/code&gt; sets up the gateway and sandbox containers.
Configuration is mounted via volumes, and the agent persists state across
restarts.&lt;/p&gt;

&lt;h3 id=&quot;cloud-flyio--render&quot;&gt;Cloud (Fly.io / Render)&lt;/h3&gt;

&lt;p&gt;OpenClaw ships with &lt;code&gt;fly.toml&lt;/code&gt; and &lt;code&gt;render.yaml&lt;/code&gt; for one-click deployment
to cloud platforms. This is ideal for teams that want a shared agent
accessible from anywhere without managing infrastructure.&lt;/p&gt;

&lt;h3 id=&quot;enterprise-kubernetes--nemoclaw&quot;&gt;Enterprise (Kubernetes + NemoClaw)&lt;/h3&gt;

&lt;p&gt;For enterprises, NVIDIA’s &lt;strong&gt;NemoClaw&lt;/strong&gt; adds a governance layer on top of
OpenClaw with security policies, execution controls, audit trails, and
compliance features. This is the path for organizations that need SOC 2
compliance, role-based access control, and centralized management.&lt;/p&gt;

&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;

&lt;h3 id=&quot;prerequisites&quot;&gt;Prerequisites&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Node.js 24&lt;/strong&gt; (recommended) or Node.js 22.19+&lt;/li&gt;
  &lt;li&gt;An API key for your preferred LLM provider&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;installation&quot;&gt;Installation&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;npm install -g openclaw@latest
openclaw onboard --install-daemon
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The &lt;code&gt;onboard&lt;/code&gt; command walks you through:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Gateway setup&lt;/strong&gt;: Configuring the daemon and port&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;LLM configuration&lt;/strong&gt;: Setting your preferred model and API key&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Channel setup&lt;/strong&gt;: Connecting your first messaging platform&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;First skill&lt;/strong&gt;: Installing a starter skill from ClawHub&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;minimal-configuration&quot;&gt;Minimal Configuration&lt;/h3&gt;

&lt;p&gt;Your configuration lives at &lt;code&gt;~/.openclaw/openclaw.json&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{
  &quot;agent&quot;: {
    &quot;model&quot;: &quot;anthropic/claude-sonnet-4-6&quot;
  },
  &quot;channels&quot;: {
    &quot;telegram&quot;: {
      &quot;enabled&quot;: true,
      &quot;token&quot;: &quot;YOUR_BOT_TOKEN&quot;
    }
  },
  &quot;security&quot;: {
    &quot;dmPolicy&quot;: &quot;pairing&quot;,
    &quot;sandbox&quot;: {
      &quot;mode&quot;: &quot;non-main&quot;
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;chat-commands&quot;&gt;Chat Commands&lt;/h3&gt;

&lt;p&gt;Once running, you can control the agent through chat commands:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Command&lt;/th&gt;
      &lt;th&gt;Description&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code&gt;/status&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;Show agent status and active sessions&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code&gt;/new&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;Start a new session&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code&gt;/reset&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;Clear session history&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code&gt;/compact&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;Compress context to save tokens&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code&gt;/think &amp;lt;level&amp;gt;&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;Set reasoning depth&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code&gt;/verbose on/off&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;Toggle detailed responses&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code&gt;/usage off/tokens/full&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;Control usage display&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code&gt;/restart&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;Restart the gateway&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h2 id=&quot;openclaw-vs-other-agent-frameworks&quot;&gt;OpenClaw vs. Other Agent Frameworks&lt;/h2&gt;

&lt;p&gt;How does OpenClaw compare to other approaches?&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Feature&lt;/th&gt;
      &lt;th&gt;OpenClaw&lt;/th&gt;
      &lt;th&gt;Claude Code&lt;/th&gt;
      &lt;th&gt;AutoGPT&lt;/th&gt;
      &lt;th&gt;LangChain Agents&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Deployment&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;Self-hosted, local-first&lt;/td&gt;
      &lt;td&gt;Cloud + CLI&lt;/td&gt;
      &lt;td&gt;Self-hosted&lt;/td&gt;
      &lt;td&gt;Framework (build your own)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Messaging integrations&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;25+ platforms&lt;/td&gt;
      &lt;td&gt;Terminal/IDE&lt;/td&gt;
      &lt;td&gt;Web UI&lt;/td&gt;
      &lt;td&gt;Custom&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Skills/plugins&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;ClawHub ecosystem&lt;/td&gt;
      &lt;td&gt;Built-in tools&lt;/td&gt;
      &lt;td&gt;Plugins&lt;/td&gt;
      &lt;td&gt;Tools/chains&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Multi-agent&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;Native routing&lt;/td&gt;
      &lt;td&gt;Single agent&lt;/td&gt;
      &lt;td&gt;Single agent&lt;/td&gt;
      &lt;td&gt;Multi-agent support&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Voice&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;macOS, iOS, Android&lt;/td&gt;
      &lt;td&gt;No&lt;/td&gt;
      &lt;td&gt;No&lt;/td&gt;
      &lt;td&gt;No&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Canvas/UI&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;Live Canvas (A2UI)&lt;/td&gt;
      &lt;td&gt;No&lt;/td&gt;
      &lt;td&gt;No&lt;/td&gt;
      &lt;td&gt;No&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Sandbox&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;Docker/SSH/OpenShell&lt;/td&gt;
      &lt;td&gt;Built-in sandbox&lt;/td&gt;
      &lt;td&gt;Limited&lt;/td&gt;
      &lt;td&gt;No&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;License&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;MIT&lt;/td&gt;
      &lt;td&gt;Proprietary&lt;/td&gt;
      &lt;td&gt;MIT&lt;/td&gt;
      &lt;td&gt;MIT&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;Maturity&lt;/strong&gt;&lt;/td&gt;
      &lt;td&gt;6 months, massive community&lt;/td&gt;
      &lt;td&gt;Production, Anthropic-backed&lt;/td&gt;
      &lt;td&gt;2+ years&lt;/td&gt;
      &lt;td&gt;3+ years&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;OpenClaw’s unique advantage is the combination of &lt;strong&gt;local-first
architecture&lt;/strong&gt;, &lt;strong&gt;broad messaging integrations&lt;/strong&gt;, and a &lt;strong&gt;thriving
ecosystem&lt;/strong&gt;. Its weakness is the security surface area that comes with
that breadth.&lt;/p&gt;

&lt;h2 id=&quot;the-industry-response&quot;&gt;The Industry Response&lt;/h2&gt;

&lt;p&gt;OpenClaw’s impact has been seismic and polarizing:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;NVIDIA&lt;/strong&gt;: CEO Jensen Huang called it “probably the single most important
release of software, probably ever.” NVIDIA built NemoClaw as a
governance layer.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Microsoft&lt;/strong&gt;: CEO Satya Nadella initially called OpenClaw a “virus”-like
security risk. By May 2026, Microsoft was internally testing “ClawPilot”
(Project Lobster), an OpenClaw-based desktop environment.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Google&lt;/strong&gt;: Began building “Remy,” a competing agent framework.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;China&lt;/strong&gt;: The government restricted OpenClaw in state agencies citing
security risks, while simultaneously encouraging local governments to
build industry around it. Tencent and Z.ai launched OpenClaw-based
services. Investors pursued the “lobster trade.”&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;OpenAI&lt;/strong&gt;: Hired Steinberger. Became a sponsor.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;the-road-ahead&quot;&gt;The Road Ahead&lt;/h2&gt;

&lt;p&gt;OpenClaw is now governed by an independent non-profit foundation. The
project is MIT-licensed and community-driven. With 374,000+ stars, 77,600+
forks, and 51,000+ commits from hundreds of contributors, it has achieved
escape velocity as an open-source project.&lt;/p&gt;

&lt;p&gt;Key developments to watch:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Enterprise governance&lt;/strong&gt;: NemoClaw and similar governance layers will
determine whether OpenClaw can meet corporate compliance requirements&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Skill quality and safety&lt;/strong&gt;: The ClawHub malware incident showed that
the skills ecosystem needs better vetting, signing, and sandboxing&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Platform competition&lt;/strong&gt;: As Microsoft, Google, and others build
competing agents, OpenClaw’s open-source, vendor-neutral positioning
becomes both its greatest strength and its biggest challenge&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Regulatory landscape&lt;/strong&gt;: Governments worldwide are grappling with how
to regulate autonomous AI agents. OpenClaw’s broad adoption makes it a
focal point for these discussions&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;OpenClaw represents a fundamental shift in how we interact with AI. It
moves AI from a &lt;strong&gt;conversational tool&lt;/strong&gt; to an &lt;strong&gt;execution platform&lt;/strong&gt; — from
“ask me anything” to “let me handle that.” For businesses, it offers the
promise of automating complex workflows across every communication channel.
For developers, it provides an extensible, open-source foundation for
building autonomous systems.&lt;/p&gt;

&lt;p&gt;But with that power comes real responsibility. The security surface area is
vast, the skill ecosystem needs maturing, and the line between “helpful
automation” and “uncontrolled autonomous action” requires careful
guardrails (as the MoltMatch dating-profile incident demonstrated).&lt;/p&gt;

&lt;p&gt;The lobster is out of the tank. Whether OpenClaw becomes the Linux of AI
agents — ubiquitous, foundational, and trusted — depends on how the
community addresses these challenges. What’s already clear is that the
question is no longer “should we use AI agents?” but “how do we deploy
them responsibly?”&lt;/p&gt;

&lt;p&gt;The answer starts with understanding what you’re deploying. And now you do.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>From User Stories to AI Prompts: Bridging Agile and Agentic Development</title>
    <summary>Agile development transformed how teams build software by emphasizing iteration, user stories, and continuous delivery. Now, agentic AI is transforming how code gets written within those iterations. But how do these two paradigms fit together? Can user stories serve as...</summary>
    <link href="https://www.pubstack.com/blog/2026/05/21/agile-meets-agentic.html"/>
    <updated>2026-05-21T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2026/05/21/agile-meets-agentic</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Agile development transformed how teams build software by emphasizing
iteration, user stories, and continuous delivery. Now, agentic AI is
transforming how code gets written within those iterations. But how do
these two paradigms fit together? Can user stories serve as specifications
for AI agents? Where does agile end and agentic begin? This post explores
the convergence of agile methodology and AI-assisted development.&lt;/p&gt;

&lt;h2 id=&quot;the-agile-agentic-connection&quot;&gt;The Agile-Agentic Connection&lt;/h2&gt;

&lt;p&gt;At its core, agile development is about delivering value incrementally
through short feedback loops. Agentic AI accelerates these loops by
compressing the time between “here’s what I want” and “here’s a working
implementation.”&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agentic_ai/agile_meets_agentic.svg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The alignment is natural:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Agile Concept&lt;/th&gt;
      &lt;th&gt;Agentic Equivalent&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;User story&lt;/td&gt;
      &lt;td&gt;Agent prompt / specification&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Sprint&lt;/td&gt;
      &lt;td&gt;Agent session&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Acceptance criteria&lt;/td&gt;
      &lt;td&gt;Verification tests&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Code review&lt;/td&gt;
      &lt;td&gt;Agent output review&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Retrospective&lt;/td&gt;
      &lt;td&gt;Prompt refinement&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;But there are important differences. Agile assumes human developers
who understand context implicitly. AI agents need explicit context.
This gap is where spec-driven development bridges the two worlds.&lt;/p&gt;

&lt;h2 id=&quot;user-stories-as-agent-specifications&quot;&gt;User Stories as Agent Specifications&lt;/h2&gt;

&lt;p&gt;A traditional user story follows the format:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;As a [user type],
I want [functionality],
So that [benefit].
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This format works well for communicating intent between humans, but it’s
too ambiguous for AI agents. Consider:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;As a user,
I want to reset my password,
So that I can regain access to my account.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;A human developer reads this and brings years of context: they know
about email verification, token expiration, password strength rules,
and rate limiting. An AI agent needs these details spelled out.&lt;/p&gt;

&lt;h3 id=&quot;enriched-user-stories&quot;&gt;Enriched User Stories&lt;/h3&gt;

&lt;p&gt;To bridge the gap, enrich user stories with the specifics an agent needs:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;## User Story
As a registered user who has forgotten their password,
I want to reset it via email verification,
So that I can regain access to my account.

## Acceptance Criteria
- User enters email and receives a reset link within 30 seconds
- Reset token expires after 1 hour
- Token is single-use (invalidated after first use)
- New password must meet strength requirements:
  minimum 8 chars, 1 uppercase, 1 number, 1 special char
- Failed reset attempts are rate-limited: max 3 per hour per email
- Successful reset invalidates all existing sessions

## Technical Constraints
- Token: cryptographically random, 256 bits, stored as SHA-256 hash
- Email: sent via existing SendGrid integration
- Database: update users table, add password_reset_tokens table
- API: POST /auth/forgot-password, POST /auth/reset-password

## Edge Cases
- What if the email doesn&apos;t exist? Return 200 (no information leak)
- What if the user requests multiple resets? Only latest token valid
- What if the token is tampered with? Return 400, log attempt
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This enriched story preserves the agile format while providing enough
detail for an AI agent to generate a correct implementation.&lt;/p&gt;

&lt;h2 id=&quot;sprint-planning-with-ai-agents&quot;&gt;Sprint Planning with AI Agents&lt;/h2&gt;

&lt;p&gt;Sprint planning changes when AI agents are part of the team:&lt;/p&gt;

&lt;h3 id=&quot;estimation&quot;&gt;Estimation&lt;/h3&gt;

&lt;p&gt;Story points become less about implementation effort and more about
specification effort and review effort. A complex feature might take
2 hours to specify, 5 minutes for the agent to implement, and 1 hour
to review — compared to 2 days of implementation without the agent.&lt;/p&gt;

&lt;h3 id=&quot;capacity&quot;&gt;Capacity&lt;/h3&gt;

&lt;p&gt;Team capacity is no longer just human hours. It’s a combination of:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Human hours for specification writing and review&lt;/li&gt;
  &lt;li&gt;Agent compute budget (API costs, execution time)&lt;/li&gt;
  &lt;li&gt;Review pipeline capacity&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;task-breakdown&quot;&gt;Task Breakdown&lt;/h3&gt;

&lt;p&gt;Instead of breaking stories into implementation sub-tasks (design DB
schema, write API handler, add validation, write tests), the breakdown
becomes:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Write specification for the feature&lt;/li&gt;
  &lt;li&gt;Generate implementation via agent&lt;/li&gt;
  &lt;li&gt;Review and verify the output&lt;/li&gt;
  &lt;li&gt;Integrate with existing code&lt;/li&gt;
  &lt;li&gt;Manual testing and edge case verification&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;the-daily-standup-in-an-agentic-world&quot;&gt;The Daily Standup in an Agentic World&lt;/h2&gt;

&lt;p&gt;The daily standup questions evolve:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Traditional&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;What did you do yesterday?&lt;/li&gt;
  &lt;li&gt;What will you do today?&lt;/li&gt;
  &lt;li&gt;Any blockers?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Agentic&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;What did you specify and verify yesterday?&lt;/li&gt;
  &lt;li&gt;What specifications are you writing today?&lt;/li&gt;
  &lt;li&gt;Are any agent outputs failing verification?&lt;/li&gt;
  &lt;li&gt;Do any specs need team input on edge cases?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The focus shifts from “what code did you write” to “what behaviors
did you define and validate.”&lt;/p&gt;

&lt;h2 id=&quot;retrospectives-and-prompt-refinement&quot;&gt;Retrospectives and Prompt Refinement&lt;/h2&gt;

&lt;p&gt;Agile retrospectives become even more valuable in an agentic context.
The team reflects on:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Spec quality&lt;/strong&gt;: Which specifications produced good implementations
on the first try? Which required multiple iterations? Why?&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Agent effectiveness&lt;/strong&gt;: Are there task types where the agent
consistently struggles? Should we adjust our approach for those?&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Review efficiency&lt;/strong&gt;: Are reviewers catching the same types of
issues repeatedly? Can those be added to the spec template?&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Prompt patterns&lt;/strong&gt;: Which prompt structures work best for different
task types?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These insights feed back into better specifications, creating a
virtuous cycle of improvement.&lt;/p&gt;

&lt;h2 id=&quot;the-role-of-the-product-owner&quot;&gt;The Role of the Product Owner&lt;/h2&gt;

&lt;p&gt;The product owner’s role becomes more important, not less. In an
agentic world, the quality of the specification determines the quality
of the output. The product owner must:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Write clear acceptance criteria&lt;/strong&gt;: Vague criteria lead to
vague implementations&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Prioritize ruthlessly&lt;/strong&gt;: Agents can implement features faster,
which means more features compete for review bandwidth&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Define “done” precisely&lt;/strong&gt;: The definition of done must be
specific enough for automated verification&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Manage the spec backlog&lt;/strong&gt;: Specifications need review and
refinement just like code&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;anti-patterns-to-avoid&quot;&gt;Anti-Patterns to Avoid&lt;/h2&gt;

&lt;h3 id=&quot;1-just-let-the-agent-figure-it-out&quot;&gt;1. “Just Let the Agent Figure It Out”&lt;/h3&gt;

&lt;p&gt;Skipping the specification and asking the agent to “build a login
page” produces lowest-common-denominator results. Agents are powerful
but not psychic.&lt;/p&gt;

&lt;h3 id=&quot;2-over-specification&quot;&gt;2. Over-Specification&lt;/h3&gt;

&lt;p&gt;Writing 20-page specs for every feature defeats the purpose. Match
the spec detail to the task complexity. A one-line config change
doesn’t need a spec.&lt;/p&gt;

&lt;h3 id=&quot;3-skipping-review&quot;&gt;3. Skipping Review&lt;/h3&gt;

&lt;p&gt;“The tests pass, ship it.” Passing tests verify behavior, not design.
A human still needs to review the agent’s architectural choices,
naming conventions, and integration points.&lt;/p&gt;

&lt;h3 id=&quot;4-treating-agents-like-junior-developers&quot;&gt;4. Treating Agents Like Junior Developers&lt;/h3&gt;

&lt;p&gt;Agents aren’t learning on the job. They don’t benefit from code
reviews the way humans do. Feedback should go into the spec and
prompt, not into comments on the generated code.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;Agile and agentic development are complementary, not competing.
Agile provides the framework — short iterations, user-centered design,
continuous feedback. Agentic AI provides the execution engine —
fast implementation from specifications, automated verification,
and tireless iteration.&lt;/p&gt;

&lt;p&gt;The teams that thrive will be those who integrate AI agents into
their agile workflows thoughtfully: writing better specifications,
reviewing agent output critically, and continuously refining their
processes through retrospection. The sprint isn’t going away — it’s
getting supercharged.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>The Future of Software Engineering with Autonomous AI Agents</title>
    <summary>We stand at an inflection point in software engineering. AI agents can now write code, debug issues, deploy services, and even review pull requests. But this isn’t the end of the story — it’s the beginning. What does the future...</summary>
    <link href="https://www.pubstack.com/blog/2026/05/20/future-of-software-engineering.html"/>
    <updated>2026-05-20T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2026/05/20/future-of-software-engineering</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;We stand at an inflection point in software engineering. AI agents can
now write code, debug issues, deploy services, and even review pull
requests. But this isn’t the end of the story — it’s the beginning.
What does the future look like when AI agents become as common in
development teams as version control and CI/CD? This post explores
the trajectory of software engineering in an AI-native world.&lt;/p&gt;

&lt;h2 id=&quot;where-we-are-today-2025-2026&quot;&gt;Where We Are Today (2025-2026)&lt;/h2&gt;

&lt;p&gt;The current generation of AI agents operates as &lt;strong&gt;powerful assistants&lt;/strong&gt;.
They excel at:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agentic_ai/future_software_eng.svg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Writing functions and components from descriptions&lt;/li&gt;
  &lt;li&gt;Fixing bugs when pointed to the right area&lt;/li&gt;
  &lt;li&gt;Generating tests from specifications&lt;/li&gt;
  &lt;li&gt;Explaining and documenting existing code&lt;/li&gt;
  &lt;li&gt;Performing routine refactoring&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But they still require human direction for:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;System architecture decisions&lt;/li&gt;
  &lt;li&gt;Understanding business requirements&lt;/li&gt;
  &lt;li&gt;Navigating organizational context&lt;/li&gt;
  &lt;li&gt;Making judgment calls about trade-offs&lt;/li&gt;
  &lt;li&gt;Ensuring security and compliance&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;the-near-future-2027-2028-agent-teams&quot;&gt;The Near Future (2027-2028): Agent Teams&lt;/h2&gt;

&lt;p&gt;The next phase will see &lt;strong&gt;teams of specialized agents&lt;/strong&gt; working together
on complex tasks with minimal human intervention.&lt;/p&gt;

&lt;h3 id=&quot;autonomous-code-review&quot;&gt;Autonomous Code Review&lt;/h3&gt;

&lt;p&gt;Today, AI-assisted code review flags potential issues. Tomorrow, review
agents will understand the full context of a change — the ticket it
addresses, the architecture it fits into, the deployment it’ll be part
of — and provide reviews as thorough as a senior engineer’s.&lt;/p&gt;

&lt;h3 id=&quot;self-healing-systems&quot;&gt;Self-Healing Systems&lt;/h3&gt;

&lt;p&gt;When a production alert fires, an agent will:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Analyze logs and metrics to identify the root cause&lt;/li&gt;
  &lt;li&gt;Search the codebase for the relevant code&lt;/li&gt;
  &lt;li&gt;Generate and test a fix&lt;/li&gt;
  &lt;li&gt;Create a PR with the fix and a post-mortem&lt;/li&gt;
  &lt;li&gt;Page a human only if it can’t resolve the issue&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;continuous-architecture&quot;&gt;Continuous Architecture&lt;/h3&gt;

&lt;p&gt;Agents will continuously analyze codebases for architectural drift,
technical debt, and performance bottlenecks. Instead of quarterly
tech debt sprints, improvements will be proposed continuously as
small, reviewable PRs.&lt;/p&gt;

&lt;h2 id=&quot;the-medium-term-2029-2031-specification-first-engineering&quot;&gt;The Medium Term (2029-2031): Specification-First Engineering&lt;/h2&gt;

&lt;p&gt;As agents become more capable, the development process inverts. Instead
of humans writing code and AI assisting, humans will write specifications
and AI will implement.&lt;/p&gt;

&lt;h3 id=&quot;the-specification-engineer&quot;&gt;The Specification Engineer&lt;/h3&gt;

&lt;p&gt;A new role emerges: the &lt;strong&gt;specification engineer&lt;/strong&gt;. Part product
manager, part architect, part technical writer. This person:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Translates business requirements into formal specifications&lt;/li&gt;
  &lt;li&gt;Defines acceptance criteria and verification strategies&lt;/li&gt;
  &lt;li&gt;Reviews and refines specifications based on implementation results&lt;/li&gt;
  &lt;li&gt;Maintains the specification repository as the source of truth&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;executable-specifications&quot;&gt;Executable Specifications&lt;/h3&gt;

&lt;p&gt;Specifications evolve from documents to executable artifacts.
A specification isn’t just a description — it’s a runnable contract
that can:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Generate implementations across multiple languages&lt;/li&gt;
  &lt;li&gt;Produce test suites automatically&lt;/li&gt;
  &lt;li&gt;Verify compliance continuously&lt;/li&gt;
  &lt;li&gt;Generate documentation and API references&lt;/li&gt;
  &lt;li&gt;Evolve through version-controlled changes&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;bidirectional-specification-code-sync&quot;&gt;Bidirectional Specification-Code Sync&lt;/h3&gt;

&lt;p&gt;Changes can flow in both directions:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Spec → Code&lt;/strong&gt;: Update the spec, regenerate the implementation&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Code → Spec&lt;/strong&gt;: Modify the code, and the spec updates to reflect
the actual behavior&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This eliminates the perennial problem of documentation diverging
from reality.&lt;/p&gt;

&lt;h2 id=&quot;the-long-term-2032-ai-native-development&quot;&gt;The Long Term (2032+): AI-Native Development&lt;/h2&gt;

&lt;p&gt;The furthest horizon sees development environments built entirely
around AI agents.&lt;/p&gt;

&lt;h3 id=&quot;natural-language-as-interface&quot;&gt;Natural Language as Interface&lt;/h3&gt;

&lt;p&gt;The primary interface for software development becomes natural
language. Developers describe systems in conversation, agents build
them, and the feedback loop is measured in seconds, not sprints.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Developer: &quot;We need a payment processing service that
handles Stripe and PayPal, with idempotency guarantees
and PCI compliance.&quot;

Agent: [designs schema, implements service, writes tests,
sets up CI, deploys to staging, runs compliance checks]

Agent: &quot;Service deployed to staging. 47 tests passing.
PCI scan clean. Here&apos;s the architecture diagram and API
docs. Ready for production when you are.&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;emergent-architecture&quot;&gt;Emergent Architecture&lt;/h3&gt;

&lt;p&gt;Instead of upfront architecture decisions, systems self-organize
around specifications. Agents discover optimal architectures through
experimentation — trying different patterns, benchmarking them,
and selecting the best approach based on actual performance data.&lt;/p&gt;

&lt;h3 id=&quot;perpetual-maintenance&quot;&gt;Perpetual Maintenance&lt;/h3&gt;

&lt;p&gt;Software maintenance — currently the majority of engineering effort —
becomes largely automated. Agents continuously:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Update dependencies and resolve breaking changes&lt;/li&gt;
  &lt;li&gt;Migrate to new API versions&lt;/li&gt;
  &lt;li&gt;Optimize performance based on production metrics&lt;/li&gt;
  &lt;li&gt;Refactor code to match evolving best practices&lt;/li&gt;
  &lt;li&gt;Fix security vulnerabilities as they’re disclosed&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what-stays-human&quot;&gt;What Stays Human&lt;/h2&gt;

&lt;p&gt;Even in the most AI-native future, some things remain fundamentally
human:&lt;/p&gt;

&lt;h3 id=&quot;1-deciding-what-to-build&quot;&gt;1. Deciding What to Build&lt;/h3&gt;

&lt;p&gt;AI can build anything, but choosing what to build requires
understanding human needs, market dynamics, and strategic priorities.
Product vision remains a human domain.&lt;/p&gt;

&lt;h3 id=&quot;2-ethical-judgment&quot;&gt;2. Ethical Judgment&lt;/h3&gt;

&lt;p&gt;Should this feature track user behavior? Should this algorithm
optimize for engagement or well-being? Should this data be collected
at all? These questions require human values, not computational
optimization.&lt;/p&gt;

&lt;h3 id=&quot;3-creative-direction&quot;&gt;3. Creative Direction&lt;/h3&gt;

&lt;p&gt;AI can generate a thousand designs, but choosing the one that
resonates — that tells the right story, evokes the right emotion,
serves the right purpose — requires human taste and creative vision.&lt;/p&gt;

&lt;h3 id=&quot;4-organizational-navigation&quot;&gt;4. Organizational Navigation&lt;/h3&gt;

&lt;p&gt;Software exists within organizations that have politics, incentives,
and culture. Navigating these human dynamics — building consensus,
managing stakeholders, aligning teams — remains human work.&lt;/p&gt;

&lt;h3 id=&quot;5-accountability&quot;&gt;5. Accountability&lt;/h3&gt;

&lt;p&gt;When systems fail, humans are accountable. The engineer who approved
the deployment, the product manager who defined the requirements,
the executive who set the priorities — accountability can’t be
delegated to an AI.&lt;/p&gt;

&lt;h2 id=&quot;preparing-for-the-future&quot;&gt;Preparing for the Future&lt;/h2&gt;

&lt;p&gt;For engineers today, the best preparation is:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Learn to write great specifications&lt;/strong&gt;: The ability to precisely
describe what a system should do is becoming more valuable than
the ability to implement it.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Develop architectural thinking&lt;/strong&gt;: Understanding trade-offs,
system design, and non-functional requirements will differentiate
senior engineers from junior ones.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Build review skills&lt;/strong&gt;: The ability to quickly assess whether
generated code is correct, secure, and maintainable is a core
competency.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Embrace the tools&lt;/strong&gt;: Use AI agents in your daily work. The
intuition for when to use them, what prompts work best, and
how to verify their output comes from practice.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Focus on the human skills&lt;/strong&gt;: Communication, empathy, judgment,
and leadership become more important as technical execution
becomes automated.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;The future of software engineering isn’t about humans versus AI —
it’s about humans directing AI. The engineers who thrive will be
those who elevate themselves from writing code to designing systems,
from debugging functions to defining behaviors, from implementing
features to imagining possibilities.&lt;/p&gt;

&lt;p&gt;The tools are changing. The craft endures. And the most exciting
software hasn’t been built yet.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Human-in-the-Loop: Designing AI Agent Guardrails</title>
    <summary>Autonomous AI agents can write code, execute commands, and deploy services — but should they always do so without human oversight? The answer is nuanced. Some actions are safe to automate fully, while others carry risks that demand human review....</summary>
    <link href="https://www.pubstack.com/blog/2026/04/18/human-in-the-loop.html"/>
    <updated>2026-04-18T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2026/04/18/human-in-the-loop</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Autonomous AI agents can write code, execute commands, and deploy
services — but should they always do so without human oversight? The
answer is nuanced. Some actions are safe to automate fully, while
others carry risks that demand human review. Designing the right
&lt;strong&gt;guardrails&lt;/strong&gt; — the boundaries between autonomy and oversight — is
one of the most important challenges in agentic AI systems.&lt;/p&gt;

&lt;h2 id=&quot;the-autonomy-spectrum&quot;&gt;The Autonomy Spectrum&lt;/h2&gt;

&lt;p&gt;Not all agent actions carry the same risk. Consider this spectrum:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agentic_ai/human_in_the_loop.svg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Low Risk ◄──────────────────────────────────► High Risk

Read file    Edit file    Run tests    Deploy    Delete data
Search code  Add comment  Install pkg  Push code Drop table
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Low-risk actions&lt;/strong&gt; are read-only, local, and reversible. An agent
reading files or searching code can’t cause damage — let it run freely.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Medium-risk actions&lt;/strong&gt; modify local state but are reversible. Editing
a file or running tests might break things temporarily, but &lt;code&gt;git
checkout&lt;/code&gt; restores the original state.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;High-risk actions&lt;/strong&gt; affect shared systems, are hard to reverse, or
could cause data loss. Deploying to production, pushing to a shared
branch, or deleting database records demand human confirmation.&lt;/p&gt;

&lt;h2 id=&quot;guardrail-patterns&quot;&gt;Guardrail Patterns&lt;/h2&gt;

&lt;h3 id=&quot;pattern-1-permission-levels&quot;&gt;Pattern 1: Permission Levels&lt;/h3&gt;

&lt;p&gt;Define permission levels and assign each tool or action to a level:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-yaml&quot;&gt;permissions:
  auto:
    - read_file
    - search_code
    - list_directory
    - run_tests
  prompt:
    - edit_file
    - write_file
    - install_package
    - create_branch
  forbidden:
    - force_push
    - delete_branch
    - drop_database
    - modify_ci_pipeline
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The agent executes &lt;code&gt;auto&lt;/code&gt; actions freely, asks for confirmation before
&lt;code&gt;prompt&lt;/code&gt; actions, and never attempts &lt;code&gt;forbidden&lt;/code&gt; actions.&lt;/p&gt;

&lt;h3 id=&quot;pattern-2-blast-radius-estimation&quot;&gt;Pattern 2: Blast Radius Estimation&lt;/h3&gt;

&lt;p&gt;Before executing an action, the agent estimates its blast radius —
how many systems, users, or data records could be affected:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Action: Deploy service-auth to production
Blast radius: 50,000 active users, 12 dependent services
Recommendation: Requires human approval

Action: Update README.md typo
Blast radius: 0 users, 0 services
Recommendation: Auto-approve
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;pattern-3-dry-run-first&quot;&gt;Pattern 3: Dry Run First&lt;/h3&gt;

&lt;p&gt;For any state-modifying action, run it in dry-run mode first and show
the human what would happen:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Agent: I&apos;d like to refactor the auth module. Here&apos;s what I plan to do:

- Rename src/auth.py → src/authentication.py
- Update 14 import statements across 8 files
- Add 3 new test cases to test_auth.py
- Remove deprecated login_v1() function (unused, 0 callers)

Shall I proceed? [Yes / No / Show details]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This gives the human enough information to make a quick decision
without needing to review every line.&lt;/p&gt;

&lt;h3 id=&quot;pattern-4-undo-stack&quot;&gt;Pattern 4: Undo Stack&lt;/h3&gt;

&lt;p&gt;Maintain a stack of reversible actions so that any sequence of changes
can be rolled back:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Action log:
1. Created file: src/rate_limiter.py [undo: delete file]
2. Modified: src/server.py:45-60 [undo: restore original]
3. Added: requirements.txt:redis&amp;gt;=4.0 [undo: remove line]
4. Ran: pytest tests/ [undo: N/A - read-only]

Agent: All 4 tests pass. Would you like to keep these changes or roll back?
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;pattern-5-progressive-trust&quot;&gt;Pattern 5: Progressive Trust&lt;/h3&gt;

&lt;p&gt;Start with tight guardrails and loosen them as the agent demonstrates
reliability:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Session start: All edits require approval
After 5 approved edits: Auto-approve edits to test files
After 10 approved edits: Auto-approve edits to files agent created
After 20 approved edits: Auto-approve all file edits
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The trust relationship builds over time, similar to how a new team
member earns increasing autonomy.&lt;/p&gt;

&lt;h2 id=&quot;implementing-guardrails-in-practice&quot;&gt;Implementing Guardrails in Practice&lt;/h2&gt;

&lt;h3 id=&quot;the-confirmation-interface&quot;&gt;The Confirmation Interface&lt;/h3&gt;

&lt;p&gt;When an agent requests human approval, the interface matters. A good
confirmation prompt:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;States the action clearly&lt;/strong&gt;: What will happen&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Shows the impact&lt;/strong&gt;: What’s affected&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Provides context&lt;/strong&gt;: Why the agent wants to do this&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Offers options&lt;/strong&gt;: Approve, deny, or modify&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Avoid generic “Are you sure?” prompts. They lead to confirmation
fatigue where humans click “Yes” without reading.&lt;/p&gt;

&lt;h3 id=&quot;handling-denial&quot;&gt;Handling Denial&lt;/h3&gt;

&lt;p&gt;When a human denies an action, the agent should:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Accept the denial without arguing&lt;/li&gt;
  &lt;li&gt;Understand &lt;em&gt;why&lt;/em&gt; (if the human provides a reason)&lt;/li&gt;
  &lt;li&gt;Adjust its approach accordingly&lt;/li&gt;
  &lt;li&gt;Find an alternative path or ask for guidance&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The worst outcome is an agent that keeps requesting the same denied
action in slightly different forms.&lt;/p&gt;

&lt;h3 id=&quot;asynchronous-review&quot;&gt;Asynchronous Review&lt;/h3&gt;

&lt;p&gt;Not all human-in-the-loop interactions need to be synchronous. For
longer tasks, the agent can:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Complete the work in a draft state (branch, PR, preview)&lt;/li&gt;
  &lt;li&gt;Notify the human that work is ready for review&lt;/li&gt;
  &lt;li&gt;Wait for approval before merging or deploying&lt;/li&gt;
  &lt;li&gt;Continue with other tasks in the meantime&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This asynchronous pattern respects human time and keeps the agent
productive.&lt;/p&gt;

&lt;h2 id=&quot;the-cost-of-too-many-guardrails&quot;&gt;The Cost of Too Many Guardrails&lt;/h2&gt;

&lt;p&gt;Guardrails have a cost. Every confirmation prompt interrupts the
human, breaks flow, and slows the agent down. If an agent asks
for permission to read every file, no one will use it.&lt;/p&gt;

&lt;p&gt;The goal is to find the &lt;strong&gt;minimum viable guardrails&lt;/strong&gt; — the smallest
set of checks that prevents unacceptable outcomes while preserving
the agent’s usefulness. This balance is different for every team,
every project, and every risk tolerance.&lt;/p&gt;

&lt;h2 id=&quot;principles-for-guardrail-design&quot;&gt;Principles for Guardrail Design&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Match guardrails to reversibility&lt;/strong&gt;: Easily reversible actions
need fewer guardrails than irreversible ones&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Consider the blast radius&lt;/strong&gt;: Actions affecting many users or
systems need more oversight than local changes&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Avoid confirmation fatigue&lt;/strong&gt;: Too many prompts train humans
to click “Yes” without thinking&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Make guardrails configurable&lt;/strong&gt;: Different teams and projects
have different risk tolerances&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Log everything&lt;/strong&gt;: Even auto-approved actions should be logged
for audit and debugging&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Fail safe&lt;/strong&gt;: When in doubt, ask the human. A false alarm is
better than an unintended action&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Human-in-the-loop isn’t about limiting AI agents — it’s about
deploying them responsibly. The best guardrail systems are invisible
when things go right and indispensable when things could go wrong.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Multi-Agent Systems: When One AI Isn't Enough</title>
    <summary>A single AI agent can write a function, fix a bug, or answer a question. But what about redesigning an entire microservice architecture? Or migrating a million-line codebase to a new framework? These tasks exceed what any single agent can...</summary>
    <link href="https://www.pubstack.com/blog/2026/02/12/multi-agent-systems.html"/>
    <updated>2026-02-12T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2026/02/12/multi-agent-systems</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;A single AI agent can write a function, fix a bug, or answer a question.
But what about redesigning an entire microservice architecture? Or
migrating a million-line codebase to a new framework? These tasks exceed
what any single agent can handle — not because the model isn’t smart
enough, but because the context is too large, the concerns too diverse,
and the coordination too complex. Enter &lt;strong&gt;multi-agent systems&lt;/strong&gt;.&lt;/p&gt;

&lt;h2 id=&quot;why-multiple-agents&quot;&gt;Why Multiple Agents?&lt;/h2&gt;

&lt;p&gt;The case for multi-agent systems comes down to three factors:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agentic_ai/multi_agent_systems.svg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;1-context-window-limitations&quot;&gt;1. Context Window Limitations&lt;/h3&gt;

&lt;p&gt;Even the largest language models have finite context windows. A single
agent working on a large codebase quickly runs out of context space.
Multiple agents can each focus on a subset of the problem, keeping
their context focused and relevant.&lt;/p&gt;

&lt;h3 id=&quot;2-specialization&quot;&gt;2. Specialization&lt;/h3&gt;

&lt;p&gt;Different tasks require different expertise. A security audit agent
needs different knowledge than a performance optimization agent. By
specializing agents, you can give each one a focused system prompt,
relevant tools, and domain-specific knowledge.&lt;/p&gt;

&lt;h3 id=&quot;3-parallelism&quot;&gt;3. Parallelism&lt;/h3&gt;

&lt;p&gt;Some tasks are embarrassingly parallel. Reviewing 50 files doesn’t
require reviewing them in sequence — 50 agents can review them
simultaneously, reducing wall-clock time from hours to minutes.&lt;/p&gt;

&lt;h2 id=&quot;multi-agent-topologies&quot;&gt;Multi-Agent Topologies&lt;/h2&gt;

&lt;h3 id=&quot;flat-collaboration&quot;&gt;Flat Collaboration&lt;/h3&gt;

&lt;p&gt;All agents are peers with equal authority. They communicate through
shared state (a file system, a database, a message queue) and coordinate
through conventions rather than hierarchy.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Agent A ←→ Agent B ←→ Agent C
    ↕                    ↕
         Shared State
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Pros&lt;/strong&gt;: Simple, no single point of failure.
&lt;strong&gt;Cons&lt;/strong&gt;: Coordination is difficult, agents can conflict.&lt;/p&gt;

&lt;h3 id=&quot;hierarchical-supervisor-worker&quot;&gt;Hierarchical (Supervisor-Worker)&lt;/h3&gt;

&lt;p&gt;A supervisor agent manages a team of worker agents. The supervisor
decomposes the task, assigns sub-tasks, collects results, and handles
conflicts.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;        Supervisor
       /    |     \
  Worker  Worker  Worker
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Pros&lt;/strong&gt;: Clear coordination, handles complex tasks well.
&lt;strong&gt;Cons&lt;/strong&gt;: Supervisor is a bottleneck and single point of failure.&lt;/p&gt;

&lt;h3 id=&quot;assembly-line&quot;&gt;Assembly Line&lt;/h3&gt;

&lt;p&gt;Each agent handles one phase of a multi-phase process. Output from
one agent feeds directly into the next.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Agent A → Agent B → Agent C → Agent D
(Plan)   (Implement) (Test)  (Review)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Pros&lt;/strong&gt;: Clear responsibilities, easy to debug.
&lt;strong&gt;Cons&lt;/strong&gt;: Rigid, slow if phases can’t overlap.&lt;/p&gt;

&lt;h3 id=&quot;debate--adversarial&quot;&gt;Debate / Adversarial&lt;/h3&gt;

&lt;p&gt;Multiple agents tackle the same problem independently, then a judge
agent evaluates their solutions and picks the best one (or synthesizes
a hybrid).&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Agent A ──┐
Agent B ──┼──→ Judge → Result
Agent C ──┘
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Pros&lt;/strong&gt;: Reduces individual bias, catches more edge cases.
&lt;strong&gt;Cons&lt;/strong&gt;: Expensive (multiple full implementations), needs a good
judge.&lt;/p&gt;

&lt;h2 id=&quot;communication-patterns&quot;&gt;Communication Patterns&lt;/h2&gt;

&lt;p&gt;How agents communicate determines the system’s reliability and
scalability:&lt;/p&gt;

&lt;h3 id=&quot;message-passing&quot;&gt;Message Passing&lt;/h3&gt;

&lt;p&gt;Agents send structured messages to each other. Each message includes
the sender, recipient, content, and metadata. This is the most
flexible pattern but requires a message routing layer.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{
  &quot;from&quot;: &quot;planner&quot;,
  &quot;to&quot;: &quot;implementer&quot;,
  &quot;type&quot;: &quot;task_assignment&quot;,
  &quot;content&quot;: {
    &quot;task&quot;: &quot;implement_rate_limiter&quot;,
    &quot;spec&quot;: &quot;...&quot;,
    &quot;constraints&quot;: [&quot;must be thread-safe&quot;, &quot;O(1) lookup&quot;]
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;shared-workspace&quot;&gt;Shared Workspace&lt;/h3&gt;

&lt;p&gt;Agents read from and write to a shared workspace (typically the file
system). Coordination happens through file locks, conventions, or a
task board.&lt;/p&gt;

&lt;p&gt;This is how systems like Claude Code work — the agent reads files,
makes changes, runs tests, and the file system serves as both the
communication channel and the state store.&lt;/p&gt;

&lt;h3 id=&quot;event-driven&quot;&gt;Event-Driven&lt;/h3&gt;

&lt;p&gt;Agents publish events (e.g., “file modified”, “test failed”,
“review complete”) to a central bus. Other agents subscribe to
relevant events and react accordingly.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Agent A publishes: FileModified(&quot;src/auth.py&quot;)
Agent B (test runner) reacts: runs tests for auth module
Agent C (reviewer) reacts: reviews changes to auth.py
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;real-world-example-ai-powered-code-migration&quot;&gt;Real-World Example: AI-Powered Code Migration&lt;/h2&gt;

&lt;p&gt;Consider migrating a Python 2 codebase to Python 3. Here’s how a
multi-agent system might handle it:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Supervisor Agent&lt;/strong&gt;: Scans the codebase, identifies all Python 2
files, creates a task board, and monitors progress.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Analyzer Agents&lt;/strong&gt; (3-5): Each takes a batch of files and identifies
Python 2 patterns that need migration (print statements, unicode
handling, dict methods, etc.).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Migrator Agents&lt;/strong&gt; (5-10): Each takes assigned files and performs
the actual migration, applying Python 3 patterns.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test Agent&lt;/strong&gt;: Runs the test suite after each batch of changes,
reports failures back to the supervisor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conflict Resolver&lt;/strong&gt;: When two migrator agents change the same
file or when changes in one file break another, this agent detects
and resolves the conflict.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Report Agent&lt;/strong&gt;: Generates a migration progress report with
statistics on files migrated, tests passing, and remaining work.&lt;/p&gt;

&lt;p&gt;This system can migrate thousands of files in parallel while
maintaining consistency and catching regressions.&lt;/p&gt;

&lt;h2 id=&quot;challenges&quot;&gt;Challenges&lt;/h2&gt;

&lt;h3 id=&quot;coordination-overhead&quot;&gt;Coordination Overhead&lt;/h3&gt;

&lt;p&gt;More agents means more communication, more state management, and
more potential for miscommunication. The overhead can dominate
the actual work for small tasks.&lt;/p&gt;

&lt;h3 id=&quot;conflict-resolution&quot;&gt;Conflict Resolution&lt;/h3&gt;

&lt;p&gt;When agents modify the same files or make contradictory decisions,
you need a strategy for resolution. Options include:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Locking (pessimistic concurrency)&lt;/li&gt;
  &lt;li&gt;Merge with conflict detection (optimistic concurrency)&lt;/li&gt;
  &lt;li&gt;Supervisor arbitration&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;cost&quot;&gt;Cost&lt;/h3&gt;

&lt;p&gt;Running multiple agents in parallel multiplies API costs. A
10-agent system costs roughly 10x a single agent. This is
acceptable for large, high-value tasks but prohibitive for
routine work.&lt;/p&gt;

&lt;h3 id=&quot;debugging&quot;&gt;Debugging&lt;/h3&gt;

&lt;p&gt;When something goes wrong in a multi-agent system, tracing the
cause requires understanding the interactions between agents. Good
logging, tracing, and replay capabilities are essential.&lt;/p&gt;

&lt;h2 id=&quot;when-to-use-multi-agent-systems&quot;&gt;When to Use Multi-Agent Systems&lt;/h2&gt;

&lt;p&gt;Use multi-agent systems when:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The task is too large for a single context window&lt;/li&gt;
  &lt;li&gt;Different parts of the task require different expertise&lt;/li&gt;
  &lt;li&gt;Sub-tasks can be parallelized for speed&lt;/li&gt;
  &lt;li&gt;You need redundancy or adversarial verification&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Stick with a single agent when:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The task fits in one context window&lt;/li&gt;
  &lt;li&gt;The task is sequential by nature&lt;/li&gt;
  &lt;li&gt;The coordination overhead would exceed the time savings&lt;/li&gt;
  &lt;li&gt;Cost is a primary constraint&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Multi-agent systems are a powerful tool in the agentic AI toolkit,
but they’re not always the right tool. Start with a single agent
and scale to multiple agents only when the problem demands it.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>The Spec-Code-Verify Loop: A New Development Paradigm</title>
    <summary>Software development has always been cyclical — write, test, fix, repeat. But the emergence of AI agents introduces a fundamentally new cycle: Spec → Code → Verify. This loop represents a paradigm shift in how software is built, where human...</summary>
    <link href="https://www.pubstack.com/blog/2025/12/08/the-spec-code-verify-loop.html"/>
    <updated>2025-12-08T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2025/12/08/the-spec-code-verify-loop</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Software development has always been cyclical — write, test, fix, repeat.
But the emergence of AI agents introduces a fundamentally new cycle:
&lt;strong&gt;Spec → Code → Verify&lt;/strong&gt;. This loop represents a paradigm shift in how
software is built, where human intent drives machine execution and
automated verification closes the feedback loop.&lt;/p&gt;

&lt;h2 id=&quot;the-three-phases&quot;&gt;The Three Phases&lt;/h2&gt;

&lt;h3 id=&quot;phase-1-spec&quot;&gt;Phase 1: Spec&lt;/h3&gt;

&lt;p&gt;The developer writes a specification that describes the desired behavior,
constraints, and acceptance criteria. The spec is the primary artifact —
it captures &lt;em&gt;what&lt;/em&gt; the system should do without prescribing &lt;em&gt;how&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agentic_ai/spec_code_verify.svg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;A good spec answers these questions:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;What does this component do?&lt;/li&gt;
  &lt;li&gt;What are its inputs and outputs?&lt;/li&gt;
  &lt;li&gt;What are the constraints and invariants?&lt;/li&gt;
  &lt;li&gt;What should happen in error cases?&lt;/li&gt;
  &lt;li&gt;How do we know it’s correct?&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;phase-2-code&quot;&gt;Phase 2: Code&lt;/h3&gt;

&lt;p&gt;An AI agent consumes the specification and generates an implementation.
The agent brings knowledge of programming patterns, libraries, and best
practices. It translates the &lt;em&gt;what&lt;/em&gt; into the &lt;em&gt;how&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;This phase is where the leverage of AI agents becomes clear. A
specification that takes 30 minutes to write might describe a component
that would take a full day to implement manually. The agent compresses
implementation time dramatically.&lt;/p&gt;

&lt;h3 id=&quot;phase-3-verify&quot;&gt;Phase 3: Verify&lt;/h3&gt;

&lt;p&gt;The generated code is verified against the specification through a
combination of:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Automated tests&lt;/strong&gt; derived from the spec&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Static analysis&lt;/strong&gt; checking types, contracts, and constraints&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Human review&lt;/strong&gt; for architectural fit and non-functional requirements&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Runtime validation&lt;/strong&gt; in staging or preview environments&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If verification passes, the code is accepted. If it fails, the loop
continues — either by refining the spec (if the spec was incomplete)
or by regenerating the code (if the implementation was incorrect).&lt;/p&gt;

&lt;h2 id=&quot;how-it-differs-from-tdd&quot;&gt;How It Differs from TDD&lt;/h2&gt;

&lt;p&gt;Test-driven development (TDD) follows a Red-Green-Refactor cycle:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Write failing test → Write minimal code to pass → Refactor
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The Spec-Code-Verify loop shares TDD’s emphasis on verification-first
thinking but differs in key ways:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Aspect&lt;/th&gt;
      &lt;th&gt;TDD&lt;/th&gt;
      &lt;th&gt;Spec-Code-Verify&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Primary artifact&lt;/td&gt;
      &lt;td&gt;Test cases&lt;/td&gt;
      &lt;td&gt;Specification&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Who writes code?&lt;/td&gt;
      &lt;td&gt;Human developer&lt;/td&gt;
      &lt;td&gt;AI agent&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Granularity&lt;/td&gt;
      &lt;td&gt;Method/function level&lt;/td&gt;
      &lt;td&gt;Feature/component level&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Iteration speed&lt;/td&gt;
      &lt;td&gt;Minutes&lt;/td&gt;
      &lt;td&gt;Seconds to minutes&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Verification scope&lt;/td&gt;
      &lt;td&gt;Unit tests&lt;/td&gt;
      &lt;td&gt;Tests + analysis + review&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;The SCV loop operates at a higher level of abstraction. Instead of
testing individual methods, you’re specifying and verifying complete
behaviors. This doesn’t replace unit testing — it layers on top of it.&lt;/p&gt;

&lt;h2 id=&quot;a-worked-example&quot;&gt;A Worked Example&lt;/h2&gt;

&lt;p&gt;Let’s walk through a concrete example: building a rate limiter.&lt;/p&gt;

&lt;h3 id=&quot;step-1-write-the-spec&quot;&gt;Step 1: Write the Spec&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;## Rate Limiter

### Behavior
Implement a sliding window rate limiter that tracks requests
per client IP address.

### Configuration
- window_size: duration (default: 60 seconds)
- max_requests: integer (default: 100)

### Interface
- check(ip: string) -&amp;gt; {allowed: bool, remaining: int, reset_at: timestamp}
- reset(ip: string) -&amp;gt; void

### Requirements
- Thread-safe for concurrent access
- Memory-efficient: clean up expired entries
- Time complexity: O(1) for check operations
- Must handle clock skew gracefully

### Edge Cases
- First request from a new IP is always allowed
- Exactly max_requests in a window should be allowed
- Request max_requests + 1 should be denied
- After window expires, full quota is restored
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;step-2-generate-code&quot;&gt;Step 2: Generate Code&lt;/h3&gt;

&lt;p&gt;The AI agent reads the spec and generates an implementation — perhaps
using a sorted set to track timestamps, with a background cleanup
routine for expired entries.&lt;/p&gt;

&lt;h3 id=&quot;step-3-verify&quot;&gt;Step 3: Verify&lt;/h3&gt;

&lt;p&gt;From the spec, we derive verification:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;def test_first_request_allowed():
    limiter = RateLimiter(max_requests=5, window_size=60)
    result = limiter.check(&quot;192.168.1.1&quot;)
    assert result.allowed is True
    assert result.remaining == 4

def test_at_limit():
    limiter = RateLimiter(max_requests=2, window_size=60)
    limiter.check(&quot;10.0.0.1&quot;)
    result = limiter.check(&quot;10.0.0.1&quot;)
    assert result.allowed is True
    assert result.remaining == 0

def test_over_limit():
    limiter = RateLimiter(max_requests=2, window_size=60)
    limiter.check(&quot;10.0.0.1&quot;)
    limiter.check(&quot;10.0.0.1&quot;)
    result = limiter.check(&quot;10.0.0.1&quot;)
    assert result.allowed is False

def test_window_expiry():
    limiter = RateLimiter(max_requests=1, window_size=1)
    limiter.check(&quot;10.0.0.1&quot;)
    time.sleep(1.1)
    result = limiter.check(&quot;10.0.0.1&quot;)
    assert result.allowed is True

def test_thread_safety():
    limiter = RateLimiter(max_requests=100, window_size=60)
    results = parallel_execute(
        [lambda: limiter.check(&quot;10.0.0.1&quot;)] * 200
    )
    allowed = sum(1 for r in results if r.allowed)
    assert allowed == 100
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If all tests pass, the rate limiter is verified. If the thread safety
test fails, the agent regenerates with explicit locking. If the spec
didn’t mention thread safety, we’d discover it during review and
update the spec.&lt;/p&gt;

&lt;h2 id=&quot;the-economics-of-the-loop&quot;&gt;The Economics of the Loop&lt;/h2&gt;

&lt;p&gt;The SCV loop changes the economics of software development:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Spec writing&lt;/strong&gt; is high-value human work that AI can’t fully
automate — it requires understanding business context, user needs,
and system constraints&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Code generation&lt;/strong&gt; is increasingly commoditized — AI agents can
produce competent implementations from good specs&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Verification&lt;/strong&gt; is partially automatable but requires human
judgment for architectural and design decisions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This means the highest-leverage activity for a developer shifts from
writing code to writing specifications and reviewing generated code.
The bottleneck moves from implementation capacity to specification
quality.&lt;/p&gt;

&lt;h2 id=&quot;making-the-loop-faster&quot;&gt;Making the Loop Faster&lt;/h2&gt;

&lt;p&gt;Several practices accelerate the SCV loop:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Template your specs&lt;/strong&gt;: Create reusable templates for common
component types (APIs, data models, workers, etc.)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Automate verification&lt;/strong&gt;: The more of the verification step
that’s automated, the faster the loop turns&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Cache intermediate results&lt;/strong&gt;: If only the spec’s error handling
section changed, you might not need to regenerate the entire
implementation&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Parallelize across components&lt;/strong&gt;: Different components can be
in different phases of the loop simultaneously&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Tighten feedback&lt;/strong&gt;: Show verification results immediately,
not in a batch at the end&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;The Spec-Code-Verify loop isn’t just a process improvement — it’s a
fundamental rethinking of who does what in software development.
Developers become architects and reviewers. AI agents become
implementers. And specifications become the connective tissue that
holds it all together.&lt;/p&gt;

&lt;p&gt;The developers who master this loop will ship faster, with fewer
bugs, and with better documentation than those who continue writing
every line by hand. The loop is the future of software development
— and it’s available today.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Tool Use in AI Agents: Extending LLM Capabilities</title>
    <summary>Large language models are remarkable at understanding and generating text, but text alone can’t deploy a server, query a database, or fix a failing build. Tool use is the mechanism that transforms an LLM from a conversational partner into an...</summary>
    <link href="https://www.pubstack.com/blog/2025/10/05/tool-use-in-ai-agents.html"/>
    <updated>2025-10-05T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2025/10/05/tool-use-in-ai-agents</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Large language models are remarkable at understanding and generating text,
but text alone can’t deploy a server, query a database, or fix a failing
build. &lt;strong&gt;Tool use&lt;/strong&gt; is the mechanism that transforms an LLM from a
conversational partner into an autonomous agent capable of acting in the
real world. This post explores how tool use works, why it matters, and
how to design effective tool interfaces for AI agents.&lt;/p&gt;

&lt;h2 id=&quot;what-is-tool-use&quot;&gt;What is Tool Use?&lt;/h2&gt;

&lt;p&gt;Tool use — also called function calling — allows an AI model to invoke
external functions during a conversation. Instead of generating a text
response, the model outputs a structured request to call a specific tool
with specific parameters. The tool executes, returns a result, and the
model continues its reasoning with the new information.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agentic_ai/tool_use_agents.svg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;A typical tool use flow looks like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;User: &quot;What&apos;s the current CPU usage on prod-server-1?&quot;

Model thinks: I need to check server metrics.
Model calls: get_server_metrics(host=&quot;prod-server-1&quot;, metric=&quot;cpu&quot;)
Tool returns: {&quot;cpu_percent&quot;: 73.2, &quot;timestamp&quot;: &quot;2025-10-05T14:30:00Z&quot;}

Model responds: &quot;prod-server-1 is currently at 73.2% CPU usage.&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The model decides &lt;em&gt;when&lt;/em&gt; to use a tool, &lt;em&gt;which&lt;/em&gt; tool to use, and &lt;em&gt;what
parameters&lt;/em&gt; to pass — all based on the conversation context and the
tool descriptions it has been given.&lt;/p&gt;

&lt;h2 id=&quot;categories-of-tools&quot;&gt;Categories of Tools&lt;/h2&gt;

&lt;h3 id=&quot;information-retrieval&quot;&gt;Information Retrieval&lt;/h3&gt;

&lt;p&gt;Tools that fetch data the model doesn’t have access to:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Web search&lt;/strong&gt;: Finding current information beyond the training cutoff&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Database queries&lt;/strong&gt;: Looking up records, aggregations, and relationships&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;File reading&lt;/strong&gt;: Accessing source code, configuration files, and logs&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;API calls&lt;/strong&gt;: Retrieving data from external services&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;environment-interaction&quot;&gt;Environment Interaction&lt;/h3&gt;

&lt;p&gt;Tools that modify state or take actions:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;File writing/editing&lt;/strong&gt;: Creating and modifying source code&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Shell execution&lt;/strong&gt;: Running commands, scripts, and build processes&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;API mutations&lt;/strong&gt;: Creating resources, updating records, deploying services&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Git operations&lt;/strong&gt;: Committing, branching, and managing version control&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;computation&quot;&gt;Computation&lt;/h3&gt;

&lt;p&gt;Tools that perform calculations the model can’t reliably do in its head:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Code execution&lt;/strong&gt;: Running Python, JavaScript, or other code in a sandbox&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Mathematical computation&lt;/strong&gt;: Precise arithmetic, statistics, and modeling&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Data transformation&lt;/strong&gt;: Parsing, filtering, and reformatting data&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;designing-good-tool-interfaces&quot;&gt;Designing Good Tool Interfaces&lt;/h2&gt;

&lt;p&gt;The quality of an agent’s tool use depends heavily on how the tools are
designed. Here are principles for creating effective tool interfaces:&lt;/p&gt;

&lt;h3 id=&quot;1-clear-descriptive-names&quot;&gt;1. Clear, Descriptive Names&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;// Good
{&quot;name&quot;: &quot;search_codebase&quot;, &quot;description&quot;: &quot;Search for files and symbols in the project repository&quot;}

// Bad
{&quot;name&quot;: &quot;search&quot;, &quot;description&quot;: &quot;Searches for things&quot;}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The model uses the name and description to decide when to use a tool.
Vague descriptions lead to incorrect tool selection.&lt;/p&gt;

&lt;h3 id=&quot;2-well-typed-parameters&quot;&gt;2. Well-Typed Parameters&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{
  &quot;name&quot;: &quot;create_issue&quot;,
  &quot;parameters&quot;: {
    &quot;title&quot;: {&quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Issue title, max 100 chars&quot;},
    &quot;body&quot;: {&quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Detailed description in markdown&quot;},
    &quot;labels&quot;: {&quot;type&quot;: &quot;array&quot;, &quot;items&quot;: {&quot;type&quot;: &quot;string&quot;}, &quot;description&quot;: &quot;Labels to apply&quot;},
    &quot;priority&quot;: {&quot;type&quot;: &quot;string&quot;, &quot;enum&quot;: [&quot;low&quot;, &quot;medium&quot;, &quot;high&quot;, &quot;critical&quot;]}
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Constrained parameter types (enums, bounded ranges, required fields)
reduce the chance of malformed tool calls.&lt;/p&gt;

&lt;h3 id=&quot;3-informative-return-values&quot;&gt;3. Informative Return Values&lt;/h3&gt;

&lt;p&gt;Return enough context for the model to reason about the result:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;// Good: includes context
{&quot;status&quot;: &quot;success&quot;, &quot;file&quot;: &quot;src/auth.py&quot;, &quot;lines_changed&quot;: 15, &quot;warnings&quot;: [&quot;unused import on line 3&quot;]}

// Bad: minimal information
{&quot;status&quot;: &quot;ok&quot;}
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;4-graceful-error-handling&quot;&gt;4. Graceful Error Handling&lt;/h3&gt;

&lt;p&gt;Tools should return structured errors that help the model self-correct:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-json&quot;&gt;{&quot;error&quot;: &quot;file_not_found&quot;, &quot;message&quot;: &quot;src/auth.py does not exist&quot;, &quot;suggestion&quot;: &quot;Did you mean src/authentication.py?&quot;}
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;the-tool-selection-problem&quot;&gt;The Tool Selection Problem&lt;/h2&gt;

&lt;p&gt;One of the biggest challenges in tool use is &lt;strong&gt;tool selection&lt;/strong&gt; — choosing
the right tool for the job when many tools are available. Models must
consider:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Which tools are relevant to the current task?&lt;/li&gt;
  &lt;li&gt;What’s the most efficient sequence of tool calls?&lt;/li&gt;
  &lt;li&gt;When should the model reason internally vs. call a tool?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Research shows that models perform better with &lt;strong&gt;focused toolsets&lt;/strong&gt; (5-15
tools relevant to the current task) rather than massive toolsets (100+
tools). If your agent needs many tools, consider organizing them into
categories and loading only the relevant category based on the task.&lt;/p&gt;

&lt;h2 id=&quot;security-considerations&quot;&gt;Security Considerations&lt;/h2&gt;

&lt;p&gt;Tool use introduces security concerns that don’t exist in pure text
generation:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Injection attacks&lt;/strong&gt;: User input might contain instructions that
manipulate tool calls (e.g., injecting shell commands)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Permission scope&lt;/strong&gt;: An agent should have the minimum permissions
needed for its task — not root access to everything&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Data exfiltration&lt;/strong&gt;: An agent with read access to sensitive data
and write access to external services could leak information&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Unintended side effects&lt;/strong&gt;: A tool call that modifies production
data can’t be undone by regenerating the model’s response&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Design your tool layer with the principle of least privilege. Sandbox
execution environments. Log every tool call. And always keep a human
in the loop for high-impact actions.&lt;/p&gt;

&lt;h2 id=&quot;the-future-of-tool-use&quot;&gt;The Future of Tool Use&lt;/h2&gt;

&lt;p&gt;Tool use is evolving rapidly:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Self-generated tools&lt;/strong&gt;: Agents that write their own tools when
existing ones don’t fit the task&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Tool learning&lt;/strong&gt;: Models that improve their tool use strategies
through experience&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Standardization&lt;/strong&gt;: Protocols like MCP (Model Context Protocol)
that standardize how tools are described and invoked across
different platforms&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Composable tools&lt;/strong&gt;: Micro-tools that agents combine dynamically
to handle novel situations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As tool ecosystems mature, the distinction between “what the model
knows” and “what the model can do” will continue to blur. The most
capable agents won’t be the ones with the largest models — they’ll
be the ones with the best tools.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Test-Driven AI: How Specifications Become Validation</title>
    <summary>When AI agents generate code, how do you know the code is correct? Traditional testing requires a human to write test cases — but in a spec-driven world, the specification itself becomes the source of truth for validation. This post...</summary>
    <link href="https://www.pubstack.com/blog/2025/07/22/test-driven-ai.html"/>
    <updated>2025-07-22T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2025/07/22/test-driven-ai</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;When AI agents generate code, how do you know the code is correct?
Traditional testing requires a human to write test cases — but in a
spec-driven world, the specification itself becomes the source of
truth for validation. This post explores how to turn specifications
into automated tests that verify AI-generated code.&lt;/p&gt;

&lt;h2 id=&quot;the-trust-problem&quot;&gt;The Trust Problem&lt;/h2&gt;

&lt;p&gt;AI-generated code has a fundamental trust problem. An LLM can produce
code that looks correct, compiles without errors, and even passes a
cursory review — but still contains subtle bugs. The model optimizes
for plausibility, not correctness.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agentic_ai/test_driven_ai.svg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;This isn’t unique to AI. Human developers write bugs too. The
difference is that experienced developers have intuition about where
bugs hide — edge cases, boundary conditions, concurrency issues. AI
agents need a more systematic approach: &lt;strong&gt;specification-based testing&lt;/strong&gt;.&lt;/p&gt;

&lt;h2 id=&quot;from-spec-to-test-the-transformation&quot;&gt;From Spec to Test: The Transformation&lt;/h2&gt;

&lt;p&gt;A well-written specification contains everything needed to generate
tests. Consider this spec fragment:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;## Email Validation

The system must validate email addresses according to RFC 5322.

- Valid: user@example.com, user+tag@domain.co.uk
- Invalid: @example.com, user@, user@.com
- Maximum length: 254 characters
- Must not contain spaces
- Domain must have at least one dot
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;From this spec, we can derive multiple test categories:&lt;/p&gt;

&lt;h3 id=&quot;1-positive-tests-happy-path&quot;&gt;1. Positive Tests (Happy Path)&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;def test_valid_standard_email():
    assert validate_email(&quot;user@example.com&quot;) is True

def test_valid_plus_addressing():
    assert validate_email(&quot;user+tag@domain.co.uk&quot;) is True
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;2-negative-tests-invalid-input&quot;&gt;2. Negative Tests (Invalid Input)&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;def test_missing_local_part():
    assert validate_email(&quot;@example.com&quot;) is False

def test_missing_domain():
    assert validate_email(&quot;user@&quot;) is False

def test_domain_starts_with_dot():
    assert validate_email(&quot;user@.com&quot;) is False
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;3-boundary-tests&quot;&gt;3. Boundary Tests&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;def test_max_length_email():
    local = &quot;a&quot; * 64
    domain = &quot;b&quot; * 185 + &quot;.com&quot;
    assert validate_email(f&quot;{local}@{domain}&quot;) is True

def test_exceeds_max_length():
    email = &quot;a&quot; * 255 + &quot;@example.com&quot;
    assert validate_email(email) is False
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;4-constraint-tests&quot;&gt;4. Constraint Tests&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;def test_no_spaces_allowed():
    assert validate_email(&quot;user @example.com&quot;) is False

def test_domain_has_dot():
    assert validate_email(&quot;user@localhost&quot;) is False
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;the-spec-test-generate-loop&quot;&gt;The Spec-Test-Generate Loop&lt;/h2&gt;

&lt;p&gt;In test-driven AI, the workflow becomes:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Write Spec → Generate Tests from Spec → Generate Code → Run Tests
     ↑                                                       │
     └───────────── Refine Spec if Tests Reveal Gaps ────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This loop has several advantages over traditional TDD:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Tests come from the spec, not the implementation&lt;/strong&gt;: This prevents
the common TDD trap of writing tests that mirror the implementation
rather than testing the behavior.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;AI can generate both tests and code&lt;/strong&gt;: But from different
perspectives. The test-generating agent focuses on “what could go
wrong” while the code-generating agent focuses on “how to make it
work.”&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Spec gaps become visible&lt;/strong&gt;: When you try to generate tests from
a spec, you quickly discover what’s missing. “What happens when
the email contains unicode characters?” If the spec doesn’t say,
the test can’t be written, and the gap becomes visible.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;property-based-testing-from-specs&quot;&gt;Property-Based Testing from Specs&lt;/h2&gt;

&lt;p&gt;Beyond example-based tests, specifications often imply properties that
should hold for all inputs. These are ideal for property-based testing:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;from hypothesis import given, strategies as st

@given(st.emails())
def test_valid_emails_are_accepted(email):
    &quot;&quot;&quot;Any well-formed email should be accepted.&quot;&quot;&quot;
    assert validate_email(email) is True

@given(st.text().filter(lambda x: &apos;@&apos; not in x))
def test_strings_without_at_are_rejected(text):
    &quot;&quot;&quot;No string without @ can be a valid email.&quot;&quot;&quot;
    assert validate_email(text) is False
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Property-based tests are particularly valuable for AI-generated code
because they explore the input space much more broadly than hand-written
examples.&lt;/p&gt;

&lt;h2 id=&quot;contract-testing-for-apis&quot;&gt;Contract Testing for APIs&lt;/h2&gt;

&lt;p&gt;When your spec defines an API contract, you can generate contract tests
that verify both the request and response schemas:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;def test_lookup_returns_correct_schema():
    response = client.post(&quot;/api/v1/users/lookup&quot;,
                          json={&quot;email&quot;: &quot;test@example.com&quot;})
    assert response.status_code == 200
    data = response.json()
    assert &quot;user_id&quot; in data
    assert &quot;department&quot; in data
    assert &quot;manager_email&quot; in data
    assert isinstance(data[&quot;active&quot;], bool)

def test_lookup_invalid_email_returns_422():
    response = client.post(&quot;/api/v1/users/lookup&quot;,
                          json={&quot;email&quot;: &quot;not-an-email&quot;})
    assert response.status_code == 422
    assert response.json()[&quot;error&quot;] == &quot;invalid_email_format&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;measuring-coverage-against-the-spec&quot;&gt;Measuring Coverage Against the Spec&lt;/h2&gt;

&lt;p&gt;Traditional code coverage measures which lines of code were executed.
In spec-driven testing, we care about &lt;strong&gt;spec coverage&lt;/strong&gt; — which
requirements from the specification have been tested.&lt;/p&gt;

&lt;p&gt;A simple approach is to tag each test with the spec requirement it
validates:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;@spec(&quot;EMAIL-001: Valid emails are accepted&quot;)
def test_valid_email():
    ...

@spec(&quot;EMAIL-002: Maximum length is 254 characters&quot;)
def test_max_length():
    ...
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then generate a coverage report that maps requirements to tests:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;EMAIL-001: ✓ Covered (3 tests)
EMAIL-002: ✓ Covered (2 tests)
EMAIL-003: ✗ NOT COVERED
EMAIL-004: ✓ Covered (1 test)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This gives you confidence not just that the code works, but that every
aspect of the specification has been verified.&lt;/p&gt;

&lt;h2 id=&quot;practical-recommendations&quot;&gt;Practical Recommendations&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Write specs before asking AI to generate code&lt;/strong&gt;. The spec is your
leverage. Without it, you’re reviewing code without knowing what
“correct” means.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Use a different AI agent for test generation&lt;/strong&gt;. Having the same
model generate both code and tests creates correlated failures.
Use a different model, or at minimum a different prompt strategy.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Run tests automatically&lt;/strong&gt;. The verification step should be
automated in your CI pipeline. When tests fail, the spec and
implementation are out of sync.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Treat test failures as spec signals&lt;/strong&gt;. A failing test might mean
the code is wrong — or it might mean the spec is incomplete. Both
are valuable signals.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Start with the critical path&lt;/strong&gt;. You don’t need 100% spec coverage
on day one. Start with the features where bugs would be most costly
and expand from there.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Test-driven AI isn’t about replacing human judgment. It’s about making
AI-generated code as trustworthy as human-written code — and often
more so, because the validation is systematic rather than ad hoc.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Building AI Agent Pipelines: Architecture Patterns</title>
    <summary>As AI agents move from research prototypes to production systems, the question shifts from “can it work?” to “how do we architect it?” Building reliable agent pipelines requires patterns that handle failure, maintain state, and compose multiple agents into coherent...</summary>
    <link href="https://www.pubstack.com/blog/2025/05/10/building-ai-agent-pipelines.html"/>
    <updated>2025-05-10T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2025/05/10/building-ai-agent-pipelines</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;As AI agents move from research prototypes to production systems, the
question shifts from “can it work?” to “how do we architect it?” Building
reliable agent pipelines requires patterns that handle failure, maintain
state, and compose multiple agents into coherent workflows. In this post,
we explore the architecture patterns that make agent pipelines production-ready.&lt;/p&gt;

&lt;h2 id=&quot;why-pipelines&quot;&gt;Why Pipelines?&lt;/h2&gt;

&lt;p&gt;A single AI agent can handle a single task, but real-world problems
rarely fit into a single step. Consider a code review pipeline:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;An agent reads the diff and identifies changed files&lt;/li&gt;
  &lt;li&gt;Another agent analyzes the changes for potential bugs&lt;/li&gt;
  &lt;li&gt;A third agent checks for style and convention violations&lt;/li&gt;
  &lt;li&gt;A fourth agent synthesizes the findings into a review comment&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;img src=&quot;/static/agentic_ai/agent_pipelines.svg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Each step requires different context, different tools, and potentially
different models. A pipeline orchestrates these steps into a reliable,
repeatable workflow.&lt;/p&gt;

&lt;h2 id=&quot;pattern-1-sequential-pipeline&quot;&gt;Pattern 1: Sequential Pipeline&lt;/h2&gt;

&lt;p&gt;The simplest pattern chains agents in sequence, where each agent’s
output becomes the next agent’s input.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Agent A → Agent B → Agent C → Result
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;: When each step depends on the previous step’s output
and the order is fixed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: A documentation generator that:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Reads source code and identifies public APIs&lt;/li&gt;
  &lt;li&gt;Generates documentation for each API&lt;/li&gt;
  &lt;li&gt;Formats and assembles the final document&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Trade-offs&lt;/strong&gt;: Simple to implement and debug, but slow — total latency
is the sum of all steps. A failure in any step blocks everything
downstream.&lt;/p&gt;

&lt;h2 id=&quot;pattern-2-parallel-fan-out--fan-in&quot;&gt;Pattern 2: Parallel Fan-Out / Fan-In&lt;/h2&gt;

&lt;p&gt;Multiple agents work on independent sub-tasks simultaneously, and their
results are combined.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;         ┌─→ Agent B ─┐
Agent A ─┤             ├─→ Agent D
         └─→ Agent C ─┘
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;: When sub-tasks are independent and can be processed
concurrently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: A security audit pipeline that simultaneously:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Scans for dependency vulnerabilities&lt;/li&gt;
  &lt;li&gt;Analyzes code for injection risks&lt;/li&gt;
  &lt;li&gt;Reviews configuration files for exposed secrets&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Trade-offs&lt;/strong&gt;: Faster than sequential, but requires careful result
merging. The fan-in agent (Agent D) must handle partial failures —
what happens if one branch fails but others succeed?&lt;/p&gt;

&lt;h2 id=&quot;pattern-3-router--dispatcher&quot;&gt;Pattern 3: Router / Dispatcher&lt;/h2&gt;

&lt;p&gt;A routing agent examines the input and dispatches it to the appropriate
specialized agent.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;              ┌─→ Bug Fix Agent
Router Agent ─┤─→ Feature Agent
              └─→ Refactor Agent
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;: When different inputs require fundamentally different
processing strategies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: An AI coding assistant that routes requests differently
based on whether the user wants to fix a bug, add a feature, or
refactor existing code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trade-offs&lt;/strong&gt;: Highly flexible, but the router itself becomes a
single point of failure. A misrouted request can produce subtly wrong
results that are hard to detect.&lt;/p&gt;

&lt;h2 id=&quot;pattern-4-iterative-refinement-loop&quot;&gt;Pattern 4: Iterative Refinement Loop&lt;/h2&gt;

&lt;p&gt;An agent generates output, an evaluator checks it, and if it doesn’t
meet criteria, the agent tries again with feedback.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Agent → Evaluator → [Pass] → Result
  ↑         │
  └─[Fail]──┘
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;: When quality matters more than speed and you have
clear evaluation criteria.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: A code generation pipeline where:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;An agent generates code from a specification&lt;/li&gt;
  &lt;li&gt;The code is compiled and tests are run&lt;/li&gt;
  &lt;li&gt;If tests fail, the agent receives the error output and tries again&lt;/li&gt;
  &lt;li&gt;The loop continues until tests pass or a retry limit is reached&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Trade-offs&lt;/strong&gt;: Can produce high-quality output, but may loop
indefinitely without good stopping criteria. Each iteration adds cost
and latency.&lt;/p&gt;

&lt;h2 id=&quot;pattern-5-supervisor--worker&quot;&gt;Pattern 5: Supervisor / Worker&lt;/h2&gt;

&lt;p&gt;A supervisor agent manages a pool of worker agents, assigning tasks,
monitoring progress, and handling failures.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;         Supervisor
        /    |    \
  Worker  Worker  Worker
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;: When you need dynamic task allocation and the number
of sub-tasks isn’t known in advance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: A large-scale code migration where the supervisor:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Scans the codebase and identifies files that need migration&lt;/li&gt;
  &lt;li&gt;Assigns each file to a worker agent&lt;/li&gt;
  &lt;li&gt;Monitors worker progress and reassigns failed tasks&lt;/li&gt;
  &lt;li&gt;Aggregates results and generates a migration report&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Trade-offs&lt;/strong&gt;: Highly scalable, but complex to implement correctly.
The supervisor must handle worker failures, timeouts, and conflicting
changes.&lt;/p&gt;

&lt;h2 id=&quot;implementation-considerations&quot;&gt;Implementation Considerations&lt;/h2&gt;

&lt;h3 id=&quot;state-management&quot;&gt;State Management&lt;/h3&gt;

&lt;p&gt;Every pipeline needs a strategy for passing state between agents.
Options include:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Message passing&lt;/strong&gt;: Each agent receives and returns structured
messages. Simple but limited in size.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Shared context store&lt;/strong&gt;: A central store (database, file system)
where agents read and write. More flexible but introduces
coordination challenges.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Event sourcing&lt;/strong&gt;: Every action and result is recorded as an event.
Provides full auditability but adds complexity.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;error-handling&quot;&gt;Error Handling&lt;/h3&gt;

&lt;p&gt;Agent pipelines fail in ways that traditional software doesn’t:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Hallucination&lt;/strong&gt;: An agent produces confident but incorrect output&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Timeout&lt;/strong&gt;: An LLM call takes too long or gets rate-limited&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Drift&lt;/strong&gt;: An agent goes off-track on a long task&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Conflict&lt;/strong&gt;: Two agents make conflicting changes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Design your pipeline with these failure modes in mind. Use retries
with exponential backoff, set hard limits on iterations, and always
have a human escalation path.&lt;/p&gt;

&lt;h3 id=&quot;observability&quot;&gt;Observability&lt;/h3&gt;

&lt;p&gt;You can’t debug what you can’t see. Every agent pipeline needs:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Structured logging of all agent inputs and outputs&lt;/li&gt;
  &lt;li&gt;Tracing across agent boundaries (distributed tracing)&lt;/li&gt;
  &lt;li&gt;Metrics on latency, cost, and success rate per step&lt;/li&gt;
  &lt;li&gt;A way to replay failed pipelines with the same inputs&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;choosing-the-right-pattern&quot;&gt;Choosing the Right Pattern&lt;/h2&gt;

&lt;p&gt;There’s no universal best pattern. The right choice depends on your
specific requirements:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Pattern&lt;/th&gt;
      &lt;th&gt;Best For&lt;/th&gt;
      &lt;th&gt;Avoid When&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Sequential&lt;/td&gt;
      &lt;td&gt;Simple, ordered workflows&lt;/td&gt;
      &lt;td&gt;Latency is critical&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Fan-Out/In&lt;/td&gt;
      &lt;td&gt;Independent sub-tasks&lt;/td&gt;
      &lt;td&gt;Results are tightly coupled&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Router&lt;/td&gt;
      &lt;td&gt;Diverse input types&lt;/td&gt;
      &lt;td&gt;Classification is ambiguous&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Iterative&lt;/td&gt;
      &lt;td&gt;Quality-critical output&lt;/td&gt;
      &lt;td&gt;No clear evaluation criteria&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Supervisor&lt;/td&gt;
      &lt;td&gt;Dynamic, large-scale tasks&lt;/td&gt;
      &lt;td&gt;Simple, predictable workflows&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;In practice, production pipelines often combine multiple patterns. A
supervisor might dispatch work to sequential sub-pipelines, each of
which contains an iterative refinement loop. The key is to start simple
and add complexity only when the problem demands it.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;Building AI agent pipelines is an emerging discipline that borrows
from distributed systems, workflow orchestration, and software
architecture. The patterns described here provide a starting point,
but the field is evolving rapidly. The engineers who master these
patterns will be well-positioned to build the next generation of
AI-powered systems.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Spec-Driven Development: Writing the What Before the How</title>
    <summary>In the age of AI-assisted coding, the most powerful thing you can write isn’t code — it’s a specification. Spec-driven development (SDD) is a methodology where the specification is the primary artifact, and code is a derived output. This approach...</summary>
    <link href="https://www.pubstack.com/blog/2025/03/20/spec-driven-development.html"/>
    <updated>2025-03-20T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2025/03/20/spec-driven-development</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;In the age of AI-assisted coding, the most powerful thing you can write
isn’t code — it’s a &lt;strong&gt;specification&lt;/strong&gt;. Spec-driven development (SDD) is
a methodology where the specification is the primary artifact, and code
is a derived output. This approach becomes particularly powerful when
AI agents are the ones generating the code from your specs.&lt;/p&gt;

&lt;h2 id=&quot;what-is-spec-driven-development&quot;&gt;What is Spec-Driven Development?&lt;/h2&gt;

&lt;p&gt;Spec-driven development is an approach where you start by writing a clear,
detailed specification of what a system should do — its inputs, outputs,
behaviors, constraints, and edge cases — before any code is written. The
specification serves as both the blueprint and the acceptance criteria.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agentic_ai/spec_driven_dev.svg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;This isn’t a new idea. Formal methods, design-by-contract, and even
test-driven development (TDD) share DNA with SDD. What’s new is the
execution model: &lt;strong&gt;AI agents can now consume specifications and produce
working implementations&lt;/strong&gt;.&lt;/p&gt;

&lt;h2 id=&quot;the-traditional-approach-vs-sdd&quot;&gt;The Traditional Approach vs. SDD&lt;/h2&gt;

&lt;h3 id=&quot;traditional-development&quot;&gt;Traditional Development&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;Idea → Code → Test → Fix → Deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In traditional development, the specification often lives informally in
the developer’s head, in scattered Jira tickets, or in meetings. The code
becomes the de facto specification, and understanding the system means
reading the implementation.&lt;/p&gt;

&lt;h3 id=&quot;spec-driven-development&quot;&gt;Spec-Driven Development&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;Idea → Spec → Generate → Verify → Deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In SDD, the specification is explicit, structured, and machine-readable.
It captures not just &lt;em&gt;what&lt;/em&gt; the system does but &lt;em&gt;why&lt;/em&gt; it does it, what the
constraints are, and how success is measured.&lt;/p&gt;

&lt;h2 id=&quot;anatomy-of-a-good-specification&quot;&gt;Anatomy of a Good Specification&lt;/h2&gt;

&lt;p&gt;A well-written specification for SDD includes:&lt;/p&gt;

&lt;h3 id=&quot;1-purpose-and-context&quot;&gt;1. Purpose and Context&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;## Purpose
A REST API endpoint that validates user email addresses
against a corporate directory and returns their department
and manager information.

## Context
This endpoint will be consumed by the onboarding flow
in the HR dashboard. It must handle 500 concurrent requests
and respond within 200ms at p95.
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;2-interface-contract&quot;&gt;2. Interface Contract&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;## API Contract
POST /api/v1/users/lookup

Request:
  - email: string (required, valid email format)

Response 200:
  - user_id: string
  - department: string
  - manager_email: string
  - active: boolean

Response 404:
  - error: &quot;user_not_found&quot;

Response 422:
  - error: &quot;invalid_email_format&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;3-behavioral-requirements&quot;&gt;3. Behavioral Requirements&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;## Behaviors
- Email matching is case-insensitive
- Inactive users are returned with active: false
- Results are cached for 5 minutes
- Rate limiting: 100 requests per minute per client IP
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;4-edge-cases-and-constraints&quot;&gt;4. Edge Cases and Constraints&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-markdown&quot;&gt;## Edge Cases
- Users with multiple email aliases should resolve to
  their primary email
- Distribution lists should return 404, not a user record
- If the directory service is unavailable, return 503
  with a retry-after header
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;why-sdd-works-well-with-ai-agents&quot;&gt;Why SDD Works Well with AI Agents&lt;/h2&gt;

&lt;p&gt;The combination of SDD and AI agents creates a powerful feedback loop:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Specifications are natural language&lt;/strong&gt;: AI models excel at understanding
and acting on natural language descriptions. A well-written spec is
essentially a sophisticated prompt.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Verification is built in&lt;/strong&gt;: Because the spec defines expected behaviors,
you can automatically verify whether the generated code meets the spec.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Iteration is cheap&lt;/strong&gt;: If the generated code doesn’t match the spec,
you can refine the spec or ask the agent to try again — both are
faster than manual coding.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Knowledge is preserved&lt;/strong&gt;: The spec persists as documentation even
after the code is generated. When you need to modify the system,
you update the spec first.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;practical-tips-for-writing-specs&quot;&gt;Practical Tips for Writing Specs&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Be specific about boundaries&lt;/strong&gt;: “Fast” isn’t a spec. “Responds in
under 200ms at p95 under 500 concurrent connections” is.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Include examples&lt;/strong&gt;: Concrete input/output examples eliminate ambiguity
more effectively than abstract descriptions.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;State what should NOT happen&lt;/strong&gt;: Negative requirements (“must not
expose internal IDs”) prevent a class of bugs that positive
requirements miss.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Version your specs&lt;/strong&gt;: Specs evolve with your system. Track changes
the same way you track code changes.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Start small&lt;/strong&gt;: You don’t need to spec an entire system. Start with
a single endpoint, a single component, or a single workflow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;the-spec-as-a-living-document&quot;&gt;The Spec as a Living Document&lt;/h2&gt;

&lt;p&gt;One of the most powerful aspects of SDD is that the specification becomes
a living document that evolves with the system. Unlike comments that rot
or documentation that diverges from reality, a spec that is actively
used to generate and verify code stays current by necessity.&lt;/p&gt;

&lt;p&gt;When a bug is found, the first question isn’t “what went wrong in the
code?” but “what’s missing from the spec?” This reframing shifts the
team’s attention from implementation details to system behavior — which
is ultimately what matters.&lt;/p&gt;

&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;

&lt;p&gt;If you’re interested in adopting SDD, start with your next feature:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Write a one-page spec before touching any code&lt;/li&gt;
  &lt;li&gt;Share it with your team for review&lt;/li&gt;
  &lt;li&gt;Use an AI agent to generate the implementation&lt;/li&gt;
  &lt;li&gt;Verify the output against the spec&lt;/li&gt;
  &lt;li&gt;Iterate on both the spec and the implementation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The initial investment in writing a good spec pays dividends throughout
the entire lifecycle of the feature — from implementation to testing
to maintenance to eventual replacement.&lt;/p&gt;

&lt;p&gt;Spec-driven development isn’t about replacing developers with AI. It’s
about elevating the developer’s role from code writer to system designer.
And that’s a much more valuable position to be in.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>The Rise of Agentic AI: From Chatbots to Autonomous Agents</title>
    <summary>The AI landscape has undergone a dramatic transformation. What began as simple chatbots responding to fixed prompts has evolved into autonomous agents capable of reasoning, planning, and executing multi-step tasks. This shift from reactive AI to agentic AI represents one...</summary>
    <link href="https://www.pubstack.com/blog/2025/01/15/the-rise-of-agentic-ai.html"/>
    <updated>2025-01-15T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2025/01/15/the-rise-of-agentic-ai</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;The AI landscape has undergone a dramatic transformation. What began as simple
chatbots responding to fixed prompts has evolved into autonomous agents capable
of reasoning, planning, and executing multi-step tasks. This shift from
&lt;strong&gt;reactive AI&lt;/strong&gt; to &lt;strong&gt;agentic AI&lt;/strong&gt; represents one of the most significant
paradigm changes in the history of software engineering.&lt;/p&gt;

&lt;h2 id=&quot;what-makes-ai-agentic&quot;&gt;What Makes AI “Agentic”?&lt;/h2&gt;

&lt;p&gt;Traditional AI systems, including early large language models, operate in a
request-response pattern. You ask a question, you get an answer. Agentic AI
breaks this mold by introducing &lt;strong&gt;autonomy&lt;/strong&gt;, &lt;strong&gt;goal-directed behavior&lt;/strong&gt;, and
&lt;strong&gt;environmental interaction&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agentic_ai/rise_of_agentic_ai.svg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;An agentic AI system exhibits several key characteristics:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Goal decomposition&lt;/strong&gt;: The ability to break complex objectives into
manageable sub-tasks&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Tool use&lt;/strong&gt;: Interacting with external systems, APIs, databases, and
file systems&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Memory and context&lt;/strong&gt;: Maintaining state across interactions and learning
from prior steps&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Self-correction&lt;/strong&gt;: Detecting errors in its own output and iterating
toward a better solution&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Planning&lt;/strong&gt;: Creating and revising execution plans based on intermediate
results&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;the-evolution-timeline&quot;&gt;The Evolution Timeline&lt;/h2&gt;

&lt;h3 id=&quot;phase-1-rule-based-systems-1960s-1990s&quot;&gt;Phase 1: Rule-Based Systems (1960s-1990s)&lt;/h3&gt;

&lt;p&gt;Expert systems like MYCIN and DENDRAL encoded human knowledge as if-then rules.
They were brittle, narrow, and required painstaking manual knowledge
engineering. But they established the idea that computers could make decisions
in complex domains.&lt;/p&gt;

&lt;h3 id=&quot;phase-2-statistical-ml-2000s-2010s&quot;&gt;Phase 2: Statistical ML (2000s-2010s)&lt;/h3&gt;

&lt;p&gt;Machine learning shifted the paradigm from hand-crafted rules to learned
patterns. Systems like recommendation engines and spam filters could generalize
from data, but they remained task-specific and lacked the ability to reason
across domains.&lt;/p&gt;

&lt;h3 id=&quot;phase-3-foundation-models-2020-2023&quot;&gt;Phase 3: Foundation Models (2020-2023)&lt;/h3&gt;

&lt;p&gt;Large language models like GPT-3 and GPT-4 demonstrated emergent capabilities
in reasoning, code generation, and natural language understanding. However,
they were still fundamentally reactive — waiting for prompts and generating
responses without the ability to take actions in the world.&lt;/p&gt;

&lt;h3 id=&quot;phase-4-agentic-ai-2024-present&quot;&gt;Phase 4: Agentic AI (2024-Present)&lt;/h3&gt;

&lt;p&gt;The current wave combines foundation models with tool use, planning
frameworks, and execution environments. Systems like Claude Code, Devin,
and AutoGPT represent this new paradigm — AI that doesn’t just answer
questions but &lt;strong&gt;does work&lt;/strong&gt;.&lt;/p&gt;

&lt;h2 id=&quot;why-agentic-ai-matters-for-engineers&quot;&gt;Why Agentic AI Matters for Engineers&lt;/h2&gt;

&lt;p&gt;For software engineers, agentic AI changes the fundamental nature of the
development process:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;From writing code to directing agents&lt;/strong&gt;: Engineers increasingly specify
&lt;em&gt;what&lt;/em&gt; they want rather than &lt;em&gt;how&lt;/em&gt; to implement it&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;From debugging to reviewing&lt;/strong&gt;: The review process shifts from finding
bugs in your own code to validating AI-generated solutions&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;From solo work to human-AI collaboration&lt;/strong&gt;: Development becomes a
dialogue between human intent and machine execution&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;From sequential to parallel&lt;/strong&gt;: Multiple agents can work on different
aspects of a system simultaneously&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;the-architecture-of-an-ai-agent&quot;&gt;The Architecture of an AI Agent&lt;/h2&gt;

&lt;p&gt;A typical agentic AI system consists of several components:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;┌─────────────────────────────────────┐
│           Agent Controller          │
│  ┌──────────┐  ┌─────────────────┐  │
│  │ Planner  │  │ Memory/Context  │  │
│  └──────────┘  └─────────────────┘  │
│  ┌──────────┐  ┌─────────────────┐  │
│  │ Executor │  │  Self-Evaluator │  │
│  └──────────┘  └─────────────────┘  │
└──────────────┬──────────────────────┘
               │
    ┌──────────┼──────────┐
    │          │          │
┌───▼───┐ ┌───▼───┐ ┌───▼───┐
│ Tool  │ │ Tool  │ │ Tool  │
│  API  │ │ Shell │ │  Web  │
└───────┘ └───────┘ └───────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The &lt;strong&gt;Planner&lt;/strong&gt; decomposes goals into steps. The &lt;strong&gt;Executor&lt;/strong&gt; carries out each
step using available tools. The &lt;strong&gt;Memory&lt;/strong&gt; maintains context across steps.
The &lt;strong&gt;Self-Evaluator&lt;/strong&gt; assesses whether the output meets the original goal
and triggers replanning when needed.&lt;/p&gt;

&lt;h2 id=&quot;challenges-and-open-questions&quot;&gt;Challenges and Open Questions&lt;/h2&gt;

&lt;p&gt;Despite the progress, agentic AI faces real challenges:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Reliability&lt;/strong&gt;: Agents can go off track, especially on long tasks with
many steps&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Safety&lt;/strong&gt;: Autonomous systems need guardrails to prevent unintended
consequences&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Cost&lt;/strong&gt;: Running agents involves significant compute, especially when
they iterate multiple times&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Evaluation&lt;/strong&gt;: How do you measure the quality of an agent’s work across
diverse tasks?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;looking-ahead&quot;&gt;Looking Ahead&lt;/h2&gt;

&lt;p&gt;We are still in the early days of agentic AI. The trajectory is clear:
AI systems will become more autonomous, more capable, and more deeply
integrated into the software development lifecycle. The engineers who thrive
will be those who learn to work &lt;em&gt;with&lt;/em&gt; agents — directing them with clear
specifications, reviewing their work critically, and building systems that
combine human judgment with machine execution.&lt;/p&gt;

&lt;p&gt;The rise of agentic AI isn’t the end of software engineering. It’s the
beginning of a new chapter — one where the most valuable skill is knowing
&lt;strong&gt;what to build&lt;/strong&gt;, not just &lt;strong&gt;how to build it&lt;/strong&gt;.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>PostgreSQL Modeling Workflow with pgModeler and binaries from pgmodeler-builder</title>
    <summary>If you work with PostgreSQL databases and have a passion for open-source tools, you’ve likely heard of pgModeler—a powerful, multiplatform database modeler. But what if you could have or need consistent, automated builds of this essential tool across major platforms...</summary>
    <link href="https://www.pubstack.com/blog/2024/12/05/pgmodeler-builder.html"/>
    <updated>2024-12-05T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2024/12/05/pgmodeler-builder</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;If you work with PostgreSQL databases and have a passion for
open-source tools, you’ve likely heard of
&lt;strong&gt;pgModeler&lt;/strong&gt;—a powerful, multiplatform database modeler.
But what if you could have or need consistent, automated builds of this essential
tool across major platforms like Linux, Windows, and macOS?
Enter
&lt;a href=&quot;https://github.com/ccamacho/pgmodeler-builder&quot;&gt;&lt;strong&gt;pgmodeler-builder&lt;/strong&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/ccamacho/pgmodeler-builder&quot;&gt;https://github.com/ccamacho/pgmodeler-builder&lt;/a&gt;,
a repository designed to
make monthly builds of pgModeler seamless and accessible.&lt;/p&gt;

&lt;h3 id=&quot;what-is-pgmodeler-builder&quot;&gt;What is &lt;strong&gt;pgmodeler-builder&lt;/strong&gt;?&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;pgmodeler-builder&lt;/strong&gt; is a GitHub Actions-powered workflow
designed to generate monthly builds of &lt;strong&gt;pgModeler&lt;/strong&gt;.
It ensures that the tool is always up-to-date for users on &lt;strong&gt;Linux&lt;/strong&gt;, &lt;strong&gt;Windows&lt;/strong&gt;, and &lt;strong&gt;macOS&lt;/strong&gt;.
The releases includes:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;.tarball, and .zip&lt;/strong&gt; files for compiled sources.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;.AppImage&lt;/strong&gt; for Linux users.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;.dmg&lt;/strong&gt; for ARM-based macOS.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;.exe&lt;/strong&gt; for Windows.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;why-pgmodeler&quot;&gt;Why pgModeler?&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;pgModeler&lt;/strong&gt; is a standout in the PostgreSQL ecosystem.
As an open-source and cross-platform database modeler,
it simplifies database design and management with
features tailored for PostgreSQL.
It’s the go-to solution for developers and DBAs who prioritize free and open-source software.&lt;/p&gt;

&lt;h3 id=&quot;key-benefits-of-pgmodeler-builder&quot;&gt;Key Benefits of pgmodeler-builder&lt;/h3&gt;

&lt;p&gt;This repository brings several advantages to the table:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Automated, Regular Builds&lt;/strong&gt;: Ensure you’re using the latest version with scheduled monthly releases.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Cross-Platform Compatibility&lt;/strong&gt;: Access builds tailored to your operating system.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Streamlined Updates&lt;/strong&gt;: The repository makes it easy to add new releases or versions with minimal effort.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Community-Driven Improvements&lt;/strong&gt;: Contributions are welcomed, allowing developers to refine and optimize workflows further.&lt;/li&gt;
&lt;/ol&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>LLM performance: Speculative decoding</title>
    <summary>In the world of natural language processing (NLP), large language models (LLMs) like GPT-3 and GPT-4 have set new benchmarks in generating human-like text. However, as these models grow in size and complexity, the computational resources required to generate text,...</summary>
    <link href="https://www.pubstack.com/blog/2024/07/01/llm-speculative-decoding.html"/>
    <updated>2024-07-01T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2024/07/01/llm-speculative-decoding</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;In the world of natural language processing (NLP), large language models
(LLMs) like GPT-3 and GPT-4 have set new benchmarks in generating human-like text.
However, as these models grow in size and complexity, the computational
resources required to generate text, especially in real-time applications,
become a significant challenge. One of the techniques developed to address
this challenge is &lt;strong&gt;speculative decoding&lt;/strong&gt;.&lt;/p&gt;

&lt;h2 id=&quot;speculative-decoding-enhancing-efficiency-in-large-language-models&quot;&gt;Speculative Decoding: Enhancing Efficiency in Large Language Models&lt;/h2&gt;

&lt;p&gt;In this article, we’ll explore what speculative decoding is, how it works, and its impact on the efficiency of large language models.&lt;/p&gt;

&lt;h2 id=&quot;what-is-speculative-decoding&quot;&gt;What is Speculative Decoding?&lt;/h2&gt;

&lt;p&gt;Speculative decoding is a technique designed to accelerate the text generation process in large language models by making informed “guesses” about future tokens (words or subwords) in a sequence. The core idea is to leverage the model’s knowledge and certain statistical assumptions to predict parts of the output sequence in parallel, rather than generating tokens one at a time sequentially. This parallelization can lead to significant speed-ups, especially in latency-sensitive applications like chatbots, real-time translation, and voice assistants.&lt;/p&gt;

&lt;h3 id=&quot;the-problem-with-sequential-decoding&quot;&gt;The Problem with Sequential Decoding&lt;/h3&gt;

&lt;p&gt;In traditional autoregressive language models, text generation is inherently sequential. The model generates one token at a time, with each token conditioned on all previously generated tokens. For instance, when generating a sentence like “The cat sat on the mat,” the model first generates “The,” then “cat,” and so on. Each step involves calculating probabilities for the next token based on the previously generated tokens.&lt;/p&gt;

&lt;p&gt;While this approach ensures that each token is optimally generated given the context, it also means that the process is slow, particularly when working with long sequences or complex models. The time complexity of generating a sequence of &lt;code&gt;n&lt;/code&gt; tokens in a sequential manner is &lt;code&gt;O(n)&lt;/code&gt;, where each step requires a full pass through the model. This limitation becomes more pronounced as the model size and the length of the generated text increase.&lt;/p&gt;

&lt;h2 id=&quot;how-does-speculative-decoding-work&quot;&gt;How Does Speculative Decoding Work?&lt;/h2&gt;

&lt;p&gt;Speculative decoding introduces parallelism into the text generation process by predicting multiple tokens at once. It involves generating “speculative” sequences or fragments of text that are likely to occur, based on the model’s understanding of the context and certain statistical heuristics.&lt;/p&gt;

&lt;h3 id=&quot;steps-involved-in-speculative-decoding&quot;&gt;Steps Involved in Speculative Decoding&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Initial Prediction&lt;/strong&gt;: The model starts by generating a few tokens using the traditional autoregressive approach. These tokens serve as a seed for speculative decoding.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Speculative Branching&lt;/strong&gt;: Based on the initial tokens, the model speculatively generates multiple possible sequences (branches) for the next few tokens. Each branch is a possible continuation of the text, generated in parallel.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Pruning and Selection&lt;/strong&gt;: Once the speculative branches are generated, the model evaluates them using a scoring mechanism (e.g., likelihood or a heuristic based on language structure). The most likely branch or branches are selected for further expansion.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Verification&lt;/strong&gt;: The selected speculative sequence is then verified by generating the next token(s) using the standard autoregressive method. If the speculative sequence aligns with the sequentially generated sequence, it is accepted and integrated into the final output.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Backtracking&lt;/strong&gt;: If the speculative sequence deviates significantly from what the sequential model would generate, the model can backtrack to the point of divergence and correct the sequence. This ensures that the final output maintains high quality and coherence.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;example-of-speculative-decoding&quot;&gt;Example of Speculative Decoding&lt;/h3&gt;

&lt;p&gt;Imagine you are using a language model to generate a story. After generating the phrase “Once upon a time,” the model could speculatively generate several possible continuations like:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;“there was a king who ruled over a vast kingdom.”&lt;/li&gt;
  &lt;li&gt;“a young girl found a mysterious key.”&lt;/li&gt;
  &lt;li&gt;“an old man discovered a hidden treasure.”&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each of these continuations could be scored based on how likely they are given the initial phrase. The model might select “there was a king who ruled” as the most probable continuation. It would then verify this by generating the next token (“over”) using the standard method. If everything aligns, it proceeds with the speculative branch, saving time by not generating each token one by one.&lt;/p&gt;

&lt;h2 id=&quot;benefits-of-speculative-decoding&quot;&gt;Benefits of Speculative Decoding&lt;/h2&gt;

&lt;p&gt;Speculative decoding offers several advantages, particularly in the context of large language models:&lt;/p&gt;

&lt;h3 id=&quot;1-increased-speed&quot;&gt;1. &lt;strong&gt;Increased Speed&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;The most immediate benefit of speculative decoding is the speed-up in text generation. By generating multiple tokens in parallel, the model can produce text faster, which is crucial for applications where response time is critical. For example, in a real-time translation system, reducing latency can significantly improve user experience.&lt;/p&gt;

&lt;h3 id=&quot;2-reduced-computational-load&quot;&gt;2. &lt;strong&gt;Reduced Computational Load&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;Although speculative decoding involves generating multiple branches, it can ultimately reduce the computational load by avoiding unnecessary calculations. Since speculative branches that deviate from the expected output are pruned early, the model doesn’t waste resources on less likely sequences.&lt;/p&gt;

&lt;h3 id=&quot;3-improved-throughput&quot;&gt;3. &lt;strong&gt;Improved Throughput&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;In environments where multiple text generation tasks are running concurrently (e.g., cloud-based NLP services), speculative decoding can improve overall throughput. By handling multiple tokens at once, the system can serve more requests in a given time frame, making it more scalable.&lt;/p&gt;

&lt;h3 id=&quot;4-enhanced-flexibility&quot;&gt;4. &lt;strong&gt;Enhanced Flexibility&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;Speculative decoding can be fine-tuned based on the application’s needs. For example, the number of speculative branches, the depth of branching, and the criteria for pruning can all be adjusted to balance between speed and quality. This flexibility allows developers to optimize performance for specific use cases.&lt;/p&gt;

&lt;h2 id=&quot;challenges-and-considerations&quot;&gt;Challenges and Considerations&lt;/h2&gt;

&lt;p&gt;While speculative decoding offers significant benefits, it also comes with challenges that need to be carefully managed:&lt;/p&gt;

&lt;h3 id=&quot;1-trade-off-between-speed-and-accuracy&quot;&gt;1. &lt;strong&gt;Trade-off Between Speed and Accuracy&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;One of the primary challenges is balancing speed with accuracy. If the model speculatively generates too many tokens without sufficient verification, the quality of the generated text might suffer. On the other hand, excessive verification can negate the speed benefits.&lt;/p&gt;

&lt;h3 id=&quot;2-complexity-in-implementation&quot;&gt;2. &lt;strong&gt;Complexity in Implementation&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;Implementing speculative decoding requires a more complex setup compared to traditional sequential decoding. It involves managing multiple speculative branches, scoring them, and handling backtracking when necessary. This added complexity can increase the development time and computational overhead.&lt;/p&gt;

&lt;h3 id=&quot;3-resource-management&quot;&gt;3. &lt;strong&gt;Resource Management&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;While speculative decoding can reduce the time complexity of text generation, it may increase the overall resource usage during the speculative phase, particularly in terms of memory and computational power. Efficient management of these resources is crucial to maximize the benefits of speculative decoding.&lt;/p&gt;

&lt;h3 id=&quot;4-quality-assurance&quot;&gt;4. &lt;strong&gt;Quality Assurance&lt;/strong&gt;&lt;/h3&gt;

&lt;p&gt;Ensuring that the final output remains coherent and high-quality is essential. Speculative decoding must be carefully tuned to avoid producing text that is disjointed or semantically inconsistent. This requires rigorous testing and fine-tuning, especially for applications where accuracy is critical.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;Speculative decoding is a powerful technique that enhances the efficiency of large language models by introducing parallelism into the text generation process. By speculatively generating multiple tokens at once and selecting the most likely sequence, models can achieve faster response times without compromising too much on quality.&lt;/p&gt;

&lt;p&gt;As large language models continue to evolve, techniques like speculative decoding will play an increasingly important role in making these models more practical for real-world applications. While challenges remain in balancing speed, accuracy, and resource usage, the potential benefits make speculative decoding a valuable tool in the NLP toolkit. As researchers and developers continue to refine these methods, we can expect to see even more efficient and powerful language models in the future.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Sizing an LLM: Parameters</title>
    <summary>Large language models (LLMs) like GPT-3 and GPT-4 have become a cornerstone of modern natural language processing (NLP) applications, driving advancements in machine translation, text generation, question answering, and more. These models are powered by neural networks with billions of...</summary>
    <link href="https://www.pubstack.com/blog/2024/05/01/llm-parameters.html"/>
    <updated>2024-05-01T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2024/05/01/llm-parameters</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Large language models (LLMs) like GPT-3 and GPT-4 have become a cornerstone of
modern natural language processing (NLP) applications, driving advancements in
machine translation, text generation, question answering, and more.
These models are powered by neural networks with billions of parameters,
making them incredibly powerful but also resource-intensive.&lt;/p&gt;

&lt;h2 id=&quot;understanding-large-language-models-parameters-calculations-and-vram-requirements&quot;&gt;Understanding Large Language Models: Parameters, Calculations, and VRAM Requirements&lt;/h2&gt;

&lt;p&gt;In this blog post, we’ll explore what parameters in large language models
are, how they are calculated, and the implications of these calculations
on the space required to load a model into VRAM (Video RAM).&lt;/p&gt;

&lt;h2 id=&quot;what-are-large-language-models&quot;&gt;What Are Large Language Models?&lt;/h2&gt;

&lt;p&gt;Large language models are deep learning models designed to understand and generate human language. They are typically based on transformer architectures, which allow the model to handle complex language tasks by capturing contextual information from input text sequences.&lt;/p&gt;

&lt;h3 id=&quot;parameters-the-building-blocks-of-llms&quot;&gt;Parameters: The Building Blocks of LLMs&lt;/h3&gt;

&lt;p&gt;In the context of neural networks, parameters refer to the weights and biases within the model. These are the elements that the model adjusts during training to minimize the difference between its predictions and the actual outcomes (i.e., to reduce the loss function). The parameters are what the model “learns” and are essential for the model’s ability to generalize from training data to unseen text.&lt;/p&gt;

&lt;p&gt;The number of parameters in a model is a key factor in its complexity and capacity. For example, GPT-3 has 175 billion parameters, while earlier versions like GPT-2 had 1.5 billion parameters. The sheer scale of these models means they can capture a wide range of linguistic patterns, making them versatile across different NLP tasks.&lt;/p&gt;

&lt;h2 id=&quot;how-are-parameters-calculated&quot;&gt;How Are Parameters Calculated?&lt;/h2&gt;

&lt;p&gt;Calculating the parameters of a language model involves understanding the architecture of the model. For transformer-based models, the parameters are primarily located in:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Embedding Layers&lt;/strong&gt;: These layers convert input tokens (words, subwords, or characters) into vectors of continuous numbers. The parameters here are the weights used to create these embeddings.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Attention Mechanisms&lt;/strong&gt;: Transformers rely heavily on attention mechanisms, particularly self-attention, to determine the importance of each word in a sequence relative to others. The parameters in these mechanisms include weights that govern the interactions between different tokens.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Feedforward Layers&lt;/strong&gt;: After the attention mechanism processes the input, the output is passed through feedforward neural networks, which consist of fully connected layers. Each of these layers has its own set of parameters (weights and biases).&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Output Layers&lt;/strong&gt;: Finally, the processed data is passed through the output layers, which convert the model’s internal representation back into a format that can be interpreted (e.g., predicting the next word in a sequence).&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;example-calculation&quot;&gt;Example Calculation&lt;/h3&gt;

&lt;p&gt;Let’s consider a simplified transformer model with the following characteristics:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Embedding Size&lt;/strong&gt;: 512&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Number of Layers&lt;/strong&gt;: 12&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Attention Heads&lt;/strong&gt;: 8&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Vocabulary Size&lt;/strong&gt;: 50,000&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The total number of parameters can be broken down as follows:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Embedding Layer&lt;/strong&gt;:
    &lt;ul&gt;
      &lt;li&gt;The embedding layer would have &lt;code&gt;Vocabulary Size * Embedding Size&lt;/code&gt; parameters.&lt;/li&gt;
      &lt;li&gt;Example: (50,000 \times 512 = 25,600,000) parameters.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Attention Mechanism&lt;/strong&gt;:
    &lt;ul&gt;
      &lt;li&gt;Each attention head has &lt;code&gt;Embedding Size / Attention Heads&lt;/code&gt; parameters for queries, keys, and values.&lt;/li&gt;
      &lt;li&gt;Example: If we have 8 heads, each head would have (512 / 8 = 64) parameters per token.&lt;/li&gt;
      &lt;li&gt;For the entire model: (12 \times 8 \times (Embedding Size \times Embedding Size / Attention Heads) = 12 \times 8 \times (512 \times 64) = 3,932,160) parameters.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Feedforward Layers&lt;/strong&gt;:
    &lt;ul&gt;
      &lt;li&gt;Each layer typically has &lt;code&gt;2 * Embedding Size^2&lt;/code&gt; parameters.&lt;/li&gt;
      &lt;li&gt;Example: (12 \times 2 \times 512^2 = 6,291,456) parameters.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Output Layers&lt;/strong&gt;:
    &lt;ul&gt;
      &lt;li&gt;The output layer usually has &lt;code&gt;Embedding Size * Vocabulary Size&lt;/code&gt; parameters.&lt;/li&gt;
      &lt;li&gt;Example: (512 \times 50,000 = 25,600,000) parameters.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Adding these up, the total number of parameters for this simplified model would be approximately:&lt;/p&gt;

&lt;p&gt;[
25,600,000 + 3,932,160 + 6,291,456 + 25,600,000 = 61,423,616 \text{ parameters}
]&lt;/p&gt;

&lt;h2 id=&quot;vram-requirements-how-much-space-do-llms-need&quot;&gt;VRAM Requirements: How Much Space Do LLMs Need?&lt;/h2&gt;

&lt;p&gt;The enormous number of parameters in large language models poses significant challenges for deployment, especially concerning memory requirements. VRAM, which is specialized memory used by GPUs (Graphics Processing Units), plays a critical role in running these models efficiently.&lt;/p&gt;

&lt;h3 id=&quot;parameter-storage&quot;&gt;Parameter Storage&lt;/h3&gt;

&lt;p&gt;Each parameter in a model is typically stored as a floating-point number, usually in 16-bit (FP16), 32-bit (FP32), or in some cases, 8-bit (INT8) precision. The choice of precision affects both the VRAM requirements and the performance of the model.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;FP32 (32-bit precision)&lt;/strong&gt;: Each parameter requires 4 bytes.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;FP16 (16-bit precision)&lt;/strong&gt;: Each parameter requires 2 bytes.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;INT8 (8-bit precision)&lt;/strong&gt;: Each parameter requires 1 byte.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Using our previous example of a model with approximately 61 million parameters:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;FP32&lt;/strong&gt;: (61,423,616 \times 4 = 245,694,464) bytes or roughly 234 MB of VRAM.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;FP16&lt;/strong&gt;: (61,423,616 \times 2 = 122,847,232) bytes or roughly 117 MB of VRAM.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;INT8&lt;/strong&gt;: (61,423,616 \times 1 = 61,423,616) bytes or roughly 58.6 MB of VRAM.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;additional-memory-requirements&quot;&gt;Additional Memory Requirements&lt;/h3&gt;

&lt;p&gt;Besides storing the parameters, VRAM is also needed for:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Activations&lt;/strong&gt;: Intermediate activations during the forward and backward passes require additional memory. The size of activations can be substantial, especially for deep networks with many layers.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Optimizer States&lt;/strong&gt;: When training a model, optimizers like Adam maintain additional states for each parameter, such as momentums and velocities, which also consume VRAM.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Batch Size&lt;/strong&gt;: The size of the input batch processed by the model in one go also affects VRAM usage. Larger batch sizes require more memory for both the input data and the activations.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;estimating-vram-requirements&quot;&gt;Estimating VRAM Requirements&lt;/h3&gt;

&lt;p&gt;To estimate the total VRAM required, you can use the following rule of thumb:&lt;/p&gt;

&lt;p&gt;[
\text{Total VRAM} \approx \text{Model Parameters} + \text{Activations} + \text{Optimizer States} + \text{Input Data}
]&lt;/p&gt;

&lt;p&gt;For a model with 61 million parameters using FP32 precision, a small batch size, and moderate complexity, you might need:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Model Parameters&lt;/strong&gt;: 234 MB (from above)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Activations&lt;/strong&gt;: 200 MB (estimated)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Optimizer States&lt;/strong&gt;: 468 MB (2 times model parameters, typical for Adam)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Input Data&lt;/strong&gt;: 50 MB (depends on input size and batch size)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Total estimated VRAM requirement: (234 + 200 + 468 + 50 = 952) MB.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;Large language models are incredibly powerful tools that rely on a vast number of parameters to perform complex language tasks. Understanding how these parameters are calculated and their impact on VRAM usage is crucial for effectively deploying these models in real-world applications. While the resource demands are significant, advances in model optimization, mixed precision training, and hardware capabilities are making it increasingly feasible to leverage these models in various settings. As technology continues to evolve, the balance between model size, performance, and resource efficiency will remain a critical area of focus in the development of large language models.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Sharing your GPU in the cloud</title>
    <summary>In this post we will introduce different methods for sharing GPU resources across workloads in K8s clusters. GPU sharing refers to the practice of allowing multiple users or processes to access and utilize the resources of a single Graphics Processing...</summary>
    <link href="https://www.pubstack.com/blog/2024/04/08/sharing-your-gpu-in-the-cloud.html"/>
    <updated>2024-04-08T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2024/04/08/sharing-your-gpu-in-the-cloud</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;In this post we will introduce different methods for sharing GPU resources
across workloads in K8s clusters.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/gpu_post/cloud_lego.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;GPU sharing refers to the practice of allowing multiple users or processes
to access and utilize the resources of a single Graphics Processing Unit (GPU) concurrently.
This approach can be beneficial in scenarios where there are multiple workloads
that can utilize GPU resources intermittently or simultaneously, such as in cloud
computing environments, data centers, or research institutions.&lt;/p&gt;

&lt;h3 id=&quot;prerequisites&quot;&gt;Prerequisites:&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;OpenShift 4.15 deployed.&lt;/li&gt;
  &lt;li&gt;NFD operator.&lt;/li&gt;
  &lt;li&gt;Nvidia GPU operator from master.&lt;/li&gt;
&lt;/ul&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/gpu_post/slice.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Time-slicing, is a technique used in GPU resource management where the available
GPU resources are divided into time intervals, or “slices,” and allocated to different
users or processes sequentially. Each user or process is granted access to the GPU
for a specified duration, known as a time slice, before the GPU is relinquished and
made available to the next user or process in the queue.
This method of GPU sharing is particularly useful in environments where there are
multiple users or processes vying for access to limited GPU resources. By allocating
GPU time slices to different users or processes, time-slicing ensures fair and efficient
utilization of the GPU among multiple competing workloads.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/gpu_post/instance.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Multi-Instance GPU (MIG), revolutionizes GPU utilization in data center environments
by allowing a single physical GPU to be partitioned into multiple isolated instances,
each with its own dedicated compute resources, memory, and performance profiles. MIG
enables efficient sharing of GPU resources among multiple users or workloads by
providing predictable performance guarantees and workload isolation. With MIG,
administrators can dynamically adjust the number and size of MIG instances to adapt
to changing workload demands, ensuring optimal resource utilization and scalability.
This innovative technology enhances flexibility, efficiency, and performance in
GPU-accelerated computing environments, enabling organizations to meet the diverse
needs of applications and users while maximizing GPU utilization.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/gpu_post/semaphore.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Multi-Process Service (MPS), facilitates the concurrent sharing of a single
GPU among multiple CUDA applications. By allowing the GPU to swiftly transition
between various CUDA contexts, MPS optimizes GPU resource utilization across
multiple processes. This capability enables efficient allocation of GPU resources
to different applications running simultaneously, ensuring that the GPU is
effectively utilized even when serving multiple workloads concurrently. MPS
enhances GPU efficiency by dynamically managing CUDA contexts, enabling seamless
context switching and minimizing overhead, thus maximizing GPU throughput and
responsiveness in multi-application environments.&lt;/p&gt;

&lt;div style=&quot;display: flex; justify-content: center;&quot;&gt;
  &lt;div style=&quot;width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/gpu_post/gpu_lego.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Overall, these techniques aim to improve the efficiency of GPU utilization and
accommodate the diverse needs of users or processes sharing the GPU resources.&lt;/p&gt;

&lt;p&gt;A shortcut to the different strategies reviewed as follows:&lt;/p&gt;

&lt;h3 id=&quot;strategies&quot;&gt;Strategies&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;#quick-check&quot;&gt;Quick check&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#time-slicing&quot;&gt;Enabling Time-slicing&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#mig&quot;&gt;Enabling Multi-Instance GPU (MIG)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#mps&quot;&gt;Enabling MPS&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#reset&quot;&gt;Reset&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;quick-check-&quot;&gt;Quick check &lt;a name=&quot;quick-check&quot;&gt;&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;Let’s check before anything that the GPU is detected and configured before continuing.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;NODE=my-host-example-com
kubectl label --list nodes $NODE | \
  grep nvidia.com 
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;enabling-time-slicing-&quot;&gt;Enabling Time-slicing &lt;a name=&quot;time-slicing&quot;&gt;&lt;/a&gt;&lt;/h2&gt;

&lt;div style=&quot;float: right; width: 150px; background: white;&quot;&gt;&lt;img src=&quot;/static/gpu_post/icon.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;The following CR example defines how we will be sharing the GPU
in a config map (this wont have any effect in the cluster at the moment).&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cat &amp;lt;&amp;lt; EOF | kubectl apply -f -
---
apiVersion: v1
kind: ConfigMap
metadata:
  # name: device-plugin-config # NVIDIA
  name: time-slicing-config #OpenShift
  namespace: nvidia-gpu-operator
data:
  NVIDIA-A100-PCIE-40GB: |-
    version: v1
    sharing:
      timeSlicing:
        resources:
          - name: nvidia.com/gpu
            replicas: 10
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;With the resource created we need to patch the initial ClusterPolicy
from the GPU operator &lt;code&gt;gpu-cluster-policy&lt;/code&gt;.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc patch clusterpolicy \
    gpu-cluster-policy \
    -n nvidia-gpu-operator \
    --type merge \
    -p &apos;{&quot;spec&quot;: {&quot;devicePlugin&quot;: {&quot;config&quot;: {&quot;name&quot;: &quot;time-slicing-config&quot;}}}}&apos;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The previous example will update the &lt;code&gt;devicePlugin&lt;/code&gt; configuration in the &lt;code&gt;gpu-cluster-policy&lt;/code&gt;.
When inspecting the cluster policy it should look like&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;devicePlugin:
  config:
    default: &apos;&apos;
    name: time-slicing-config
  enabled: true
  mps:
    root: /run/nvidia/mps
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;So we fetch the configuration from the previously created config map &lt;code&gt;time-slicing-config&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;To make sure the NFD operator runs we label the node stating that the &lt;code&gt;device-plugin.config&lt;/code&gt; should point to &lt;code&gt;NVIDIA-A100-PCIE-40GB&lt;/code&gt;. And we label the node we want to apply the configuration&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc label \
  --overwrite node my-host-example-com \
  nvidia.com/device-plugin.config=NVIDIA-A100-PCIE-40GB
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;After a few minutes we can change that the NFD operator reconfigured the node to use time-slicing&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc get node \
  --selector=nvidia.com/gpu.product=NVIDIA-A100-PCIE-40GB-SHARED \
  -o json | jq &apos;.items[0].status.capacity&apos;
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;{
  &quot;cpu&quot;: &quot;128&quot;,
  &quot;ephemeral-storage&quot;: &quot;3123565732Ki&quot;,
  &quot;hugepages-1Gi&quot;: &quot;0&quot;,
  &quot;hugepages-2Mi&quot;: &quot;0&quot;,
  &quot;memory&quot;: &quot;527845520Ki&quot;,
  &quot;nvidia.com/gpu&quot;: &quot;8&quot;,
  &quot;pods&quot;: &quot;250&quot;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now we test we can schedule the shared GPU to a pod (or many slices).
Note that we allocate the pod with the limits instead of the nodeselector
because the GPU label name changed, so we assume we dont know the name.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cat &amp;lt;&amp;lt; EOF | kubectl create -f -
---
apiVersion: v1
kind: Pod
metadata:
  # generateName: command-nvidia-smi-
  name: command-nvidia-smi
spec:
  restartPolicy: Never
  containers:
    - name: cuda-container
      image: nvcr.io/nvidia/cuda:12.1.0-base-ubi8
      command: [&quot;/bin/sh&quot;,&quot;-c&quot;]
      args: [&quot;nvidia-smi&quot;]
      resources:
        limits:
          nvidia.com/gpu: 1 # requesting 1 GPU
  # nodeSelector:
  #   nvidia.com/gpu.product: NVIDIA-A100-PCIE-40GB
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;pod/command-nvidia-smi created
ccamacho@guateque:~/dev/$ kubectl logs command-nvidia-smi
Mon Apr  8 10:01:26 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.15              Driver Version: 550.54.15      CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA A100-PCIE-40GB          On  |   00000000:0A:00.0 Off |                    0 |
| N/A   35C    P0             38W /  250W |   39023MiB /  40960MiB |      0%      Default |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
+-----------------------------------------------------------------------------------------+
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In the previous case a pod will be scheduled and its execution will end, now let’s see
how can we schedule the 8 slices that were created before.&lt;/p&gt;

&lt;p&gt;We can create a deployment with 11 pods that will run
&lt;a href=&quot;https://docs.nvidia.com/datacenter/dcgm/latest/user-guide/feature-overview.html#cuda-test-generator-dcgmproftester&quot;&gt;dcgmproftester12&lt;/a&gt;.
In this case dcgmproftester12 will generate load as a half-precision
matrix-multiply-accumulate for the Tensor Cores (-t 1004) for 5 minutes (-d 300).&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cat &amp;lt;&amp;lt; EOF | kubectl apply -f -
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nvidia-plugin-test
  labels:
    app: nvidia-plugin-test
spec:
  replicas: 11
  selector:
    matchLabels:
      app: nvidia-plugin-test
  template:
    metadata:
      labels:
        app: nvidia-plugin-test
    spec:
      tolerations:
        - key: nvidia.com/gpu
          operator: Exists
          effect: NoSchedule
      containers:
       - name: dcgmproftester12
         image: nvcr.io/nvidia/cloud-native/dcgm:3.3.5-1-ubi9
         # What is the difference between nvcr.io/nvidia/cloud-native and nvcr.io/nvidia/k8s?
         command: [&quot;/bin/sh&quot;, &quot;-c&quot;]
         args:
            - while true; do /usr/bin/dcgmproftester12 --no-dcgm-validation -t 1004 -d 30; sleep 30; done
         resources:
           limits:
             # To check gpu vs gpu.shared (MPS)
             nvidia.com/gpu: &quot;1&quot;
         securityContext:
           privileged: true
         # The following SYS_ADMIN capability is not enough  
         # securityContext:
         #   capabilities:
         #     add: [&quot;SYS_ADMIN&quot;]
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Where we have 8 from those 8 slices that were created used (8 running and 3 pending).&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;ccamacho@guateque:~/dev$ kubectl get pods --selector=app=nvidia-plugin-test
NAME                                  READY   STATUS    RESTARTS   AGE
nvidia-plugin-test-6988cc8f8f-22gt2   1/1     Running   0          53s
nvidia-plugin-test-6988cc8f8f-45dgd   1/1     Running   0          53s
nvidia-plugin-test-6988cc8f8f-gjrg8   1/1     Running   0          53s
nvidia-plugin-test-6988cc8f8f-lwlvh   1/1     Running   0          53s
nvidia-plugin-test-6988cc8f8f-rq6hx   1/1     Running   0          53s
nvidia-plugin-test-6988cc8f8f-tgkxm   1/1     Running   0          53s
nvidia-plugin-test-6988cc8f8f-wdc7l   1/1     Running   0          53s
nvidia-plugin-test-6988cc8f8f-wmzz9   1/1     Running   0          53s
nvidia-plugin-test-6988cc8f8f-wn8jt   0/1     Pending   0          53s
nvidia-plugin-test-6988cc8f8f-x5lbp   0/1     Pending   0          53s
nvidia-plugin-test-6988cc8f8f-zdvwn   0/1     Pending   0          53s
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If &lt;code&gt;is forbidden: unable to validate against any security context constraint: [spec.initContainers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed spec.init&lt;/code&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc adm policy add-scc-to-user privileged -z default -n &amp;lt;namespace&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;After &lt;code&gt;dcgmproftester12&lt;/code&gt; finishes, the pods logs show:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;Skipping CreateDcgmGroups() since DCGM validation is disabled
Worker 0:0 [1004]: TensorEngineActive: generated ???, dcgm 0 (1.78e+05 gflops).
.
.
.
Worker 0:0 [1004]: TensorEngineActive: generated ???, dcgm 0 (1.89e+05 gflops).
Worker 0:0 [1004]: TensorEngineActive: generated ???, dcgm 0 (1.89e+05 gflops).
Worker 0:0 [1004]: TensorEngineActive: generated ???, dcgm 0 (1.89e+05 gflops).
Worker 0:0 [1004]: TensorEngineActive: generated ???, dcgm 0 (1.89e+05 gflops).
Worker 0:0 [1004]: TensorEngineActive: generated ???, dcgm 0 (1.89e+05 gflops).
Worker 0:0[1004]: Message: Bus ID 00000000:0A:00.0 mapped to cuda device ID 0
DCGM CudaContext Init completed successfully.
CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR: 2048
CUDA_VISIBLE_DEVICES: GPU-539a31f4-1487-3a42-cc55-910b7bf82d0c
CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT: 108
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR: 167936
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR: 8
CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR: 0
CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH: 5120
CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE: 1215
Max Memory bandwidth: 1555200000000 bytes (1555.2 GiB)
CU_DEVICE_ATTRIBUTE_ECC_SUPPORT: true
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc rsh \
  -n nvidia-gpu-operator \
  $(kubectl get pods -n nvidia-gpu-operator | grep -E &apos;nvidia-dcgm-exporter.*&apos; | awk &apos;{print $1}&apos;) nvidia-smi
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;enabling-multi-instance-gpu-mig-&quot;&gt;Enabling Multi-Instance GPU (MIG) &lt;a name=&quot;mig&quot;&gt;&lt;/a&gt;&lt;/h2&gt;

&lt;div style=&quot;float: right; width: 150px; background: white;&quot;&gt;&lt;img src=&quot;/static/gpu_post/motherboard_gpu.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Similarly as time-slicing the configuration needs to be adjusted using both configmaps
and updating the cluster policy to the changes are applied correctly. The labeling
step done in time-slicing needs to be executed only once.&lt;/p&gt;

&lt;p&gt;Depending on the GPU different &lt;a href=&quot;https://docs.nvidia.com/datacenter/tesla/mig-user-guide/index.html&quot;&gt;MIG partitions can be created&lt;/a&gt;:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Product&lt;/th&gt;
      &lt;th&gt;Architecture&lt;/th&gt;
      &lt;th&gt;Microarchitecture&lt;/th&gt;
      &lt;th&gt;Compute Capability&lt;/th&gt;
      &lt;th&gt;Memory Size&lt;/th&gt;
      &lt;th&gt;Max Number of Instances&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;H100-SXM5&lt;/td&gt;
      &lt;td&gt;Hopper&lt;/td&gt;
      &lt;td&gt;GH100&lt;/td&gt;
      &lt;td&gt;9.0&lt;/td&gt;
      &lt;td&gt;80GB&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;H100-PCIE&lt;/td&gt;
      &lt;td&gt;Hopper&lt;/td&gt;
      &lt;td&gt;GH100&lt;/td&gt;
      &lt;td&gt;9.0&lt;/td&gt;
      &lt;td&gt;80GB&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;H100-SXM5&lt;/td&gt;
      &lt;td&gt;Hopper&lt;/td&gt;
      &lt;td&gt;GH100&lt;/td&gt;
      &lt;td&gt;9.0&lt;/td&gt;
      &lt;td&gt;94GB&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;H100-PCIE&lt;/td&gt;
      &lt;td&gt;Hopper&lt;/td&gt;
      &lt;td&gt;GH100&lt;/td&gt;
      &lt;td&gt;9.0&lt;/td&gt;
      &lt;td&gt;94GB&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;H100 on GH200&lt;/td&gt;
      &lt;td&gt;Hopper&lt;/td&gt;
      &lt;td&gt;GH100&lt;/td&gt;
      &lt;td&gt;9.0&lt;/td&gt;
      &lt;td&gt;96GB&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;A100-SXM4&lt;/td&gt;
      &lt;td&gt;NVIDIA Ampere&lt;/td&gt;
      &lt;td&gt;GA100&lt;/td&gt;
      &lt;td&gt;8.0&lt;/td&gt;
      &lt;td&gt;40GB&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;A100-SXM4&lt;/td&gt;
      &lt;td&gt;NVIDIA Ampere&lt;/td&gt;
      &lt;td&gt;GA100&lt;/td&gt;
      &lt;td&gt;8.0&lt;/td&gt;
      &lt;td&gt;80GB&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;A100-PCIE&lt;/td&gt;
      &lt;td&gt;NVIDIA Ampere&lt;/td&gt;
      &lt;td&gt;GA100&lt;/td&gt;
      &lt;td&gt;8.0&lt;/td&gt;
      &lt;td&gt;40GB&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;A100-PCIE&lt;/td&gt;
      &lt;td&gt;NVIDIA Ampere&lt;/td&gt;
      &lt;td&gt;GA100&lt;/td&gt;
      &lt;td&gt;8.0&lt;/td&gt;
      &lt;td&gt;80GB&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;A30&lt;/td&gt;
      &lt;td&gt;NVIDIA Ampere&lt;/td&gt;
      &lt;td&gt;GA100&lt;/td&gt;
      &lt;td&gt;8.0&lt;/td&gt;
      &lt;td&gt;24GB&lt;/td&gt;
      &lt;td&gt;4&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Where in the case of the A100 we can have the following profiles:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Profile&lt;/th&gt;
      &lt;th&gt;Memory&lt;/th&gt;
      &lt;th&gt;Compute Units&lt;/th&gt;
      &lt;th&gt;Maximum number of homogeneous instances&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;1g.5gb&lt;/td&gt;
      &lt;td&gt;5 GB&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;2g.10gb&lt;/td&gt;
      &lt;td&gt;10 GB&lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
      &lt;td&gt;3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;3g.20gb&lt;/td&gt;
      &lt;td&gt;20 GB&lt;/td&gt;
      &lt;td&gt;3&lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;4g.20gb&lt;/td&gt;
      &lt;td&gt;20 GB&lt;/td&gt;
      &lt;td&gt;4&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;7g.40gb&lt;/td&gt;
      &lt;td&gt;40 GB&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;We can check that by running:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc rsh \
  -n nvidia-gpu-operator \
  $(kubectl get pods -n nvidia-gpu-operator | grep -E &apos;nvidia-dcgm-exporter.*&apos; | awk &apos;{print $1}&apos;) nvidia-smi mig -lgip
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Where the profiles are described with the notation &lt;code&gt;&amp;lt;COMPUTE&amp;gt;.&amp;lt;MEMORY&amp;gt;&lt;/code&gt;, an administrator
will create a set of profiles that can be consumed by the workloads.&lt;/p&gt;

&lt;p&gt;And let’s check how many MIG-enabled are available.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc rsh \
  -n nvidia-gpu-operator \
  $(kubectl get pods -n nvidia-gpu-operator | grep -E &apos;nvidia-driver-daemonset.*&apos; | awk &apos;{print $1}&apos;) nvidia-smi mig -lgi
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This should output &lt;code&gt;No MIG-enabled devices found.&lt;/code&gt; because we didn’t create any device yet.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.nvidia.com/datacenter/cloud-native/openshift/latest/mig-ocp.html#configuring-mig-devices-in-openshift&quot;&gt;The strategies could be&lt;/a&gt; (it is important that &lt;code&gt;A GEOMETRY MUST BE DEFINED PER CLUSTER&lt;/code&gt;)
single, all GPUs within the same node with the same geometry i.e. 1g.5gb.
mixed, heterogeneous advertisement like single node with multiple GPUs, each GPU can be configured in a different MIG geometry.&lt;/p&gt;

&lt;p&gt;Let see our MIG related labels&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;kubectl get node -o json | \
   jq &apos;.items[0].metadata.labels | with_entries(select(.key | startswith(&quot;nvidia.com&quot;)))&apos;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Where the MIG related labels are:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;.
.
.
  &quot;nvidia.com/mig.capable&quot;: &quot;true&quot;,
  &quot;nvidia.com/mig.config&quot;: &quot;all-disabled&quot;,
  &quot;nvidia.com/mig.config.state&quot;: &quot;success&quot;,
  &quot;nvidia.com/mig.strategy&quot;: &quot;single&quot;,
  &quot;nvidia.com/mps.capable&quot;: &quot;false&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cat &amp;lt;&amp;lt; EOF | kubectl apply -f -
---
apiVersion: v1
kind: ConfigMap
metadata:
  # name: device-plugin-config # NVIDIA
  name: mig-profiles-config #OpenShift
  namespace: nvidia-gpu-operator
data:
  NVIDIA-A100-PCIE-40GB: |-
    version: v1
    sharing:
      timeSlicing:
        resources:
          - name: nvidia.com/gpu
            replicas: 2
          - name: nvidia.com/mig-1g.5gb
            replicas: 2
          - name: nvidia.com/mig-2g.10gb
            replicas: 2
          - name: nvidia.com/mig-3g.20gb
            replicas: 2
          - name: nvidia.com/mig-7g.40gb
            replicas: 2
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc patch clusterpolicy gpu-cluster-policy \
    -n nvidia-gpu-operator --type merge \
    -p &apos;{&quot;spec&quot;: {&quot;devicePlugin&quot;: {&quot;config&quot;: {&quot;name&quot;: &quot;mig-profiles-config&quot;}}}}&apos;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The device config plugin already points to this GPU name &lt;code&gt;NVIDIA-A100-PCIE-40GB&lt;/code&gt;,
when we configured timeslicing.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc label \
  --overwrite node my-host-example-com \
  nvidia.com/device-plugin.config=NVIDIA-A100-PCIE-40GB
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;We patch the cluster policy to enable a &lt;code&gt;mixed&lt;/code&gt; strategy.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;STRATEGY=mixed
oc patch clusterpolicy/gpu-cluster-policy \
  --type=&apos;json&apos; \
  -p=&apos;[{&quot;op&quot;: &quot;replace&quot;, &quot;path&quot;: &quot;/spec/mig/strategy&quot;, &quot;value&quot;: &apos;$STRATEGY&apos;}]&apos;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;We apply the MIG Partitioning profiles, you can relabel as you need to change between
different MIG profiles:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;
NODE_NAME=my-host-example-com
MIG_CONFIGURATION=all-disabled
# MIG_CONFIGURATION=all-1g.5gb
# MIG_CONFIGURATION=all-1g.10gb
# MIG_CONFIGURATION=all-2g.10gb
# MIG_CONFIGURATION=all-3g.20gb
# MIG_CONFIGURATION=all-7g.40gb

oc label node/$NODE_NAME nvidia.com/mig.config=$MIG_CONFIGURATION --overwrite=true

# or
kubectl label nodes $NODE_NAME nvidia.com/mig.config=$MIG_CONFIGURATION --overwrite 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Wait for the mig-manager to perform the reconfiguration:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc -n nvidia-gpu-operator logs ds/nvidia-mig-manager --all-containers -f --prefix
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Get all the MIG-enabled devices.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc rsh \
  -n nvidia-gpu-operator \
  $(kubectl get pods -n nvidia-gpu-operator | grep -E &apos;nvidia-driver-daemonset.*&apos; | awk &apos;{print $1}&apos;) nvidia-smi mig -lgi
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If this return &lt;code&gt;No MIG-enabled devices found.&lt;/code&gt; there is something wrong that needs to be debugged.&lt;/p&gt;

&lt;p&gt;Otherwise:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;+-------------------------------------------------------+
| GPU instances:                                        |
| GPU   Name             Profile  Instance   Placement  |
|                          ID       ID       Start:Size |
|=======================================================|
|   0  MIG 3g.20gb          9        1          4:4     |
+-------------------------------------------------------+
|   0  MIG 3g.20gb          9        2          0:4     |
+-------------------------------------------------------+
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Make sure the capabilities match&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;kubectl describe nodes my-host-example-com | grep &quot;nvidia.com/&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;See that we stop using &lt;code&gt;nvidia.com/gpu&lt;/code&gt; for &lt;code&gt;mig-3g.20gb&lt;/code&gt; instead.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;                    nvidia.com/mig-3g.20gb.slices.gi=3
                    nvidia.com/mig.capable=true
                    nvidia.com/mig.config=all-3g.20gb
                    nvidia.com/mig.config.state=success
                    nvidia.com/mig.strategy=mixed
                    nvidia.com/mps.capable=false
                    nvidia.com/gpu-driver-upgrade-enabled: true
  nvidia.com/gpu:          0
  nvidia.com/mig-3g.20gb:  4
  nvidia.com/gpu:          0
  nvidia.com/mig-3g.20gb:  4
  nvidia.com/gpu          0             0
  nvidia.com/mig-3g.20gb  0             0
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Lets test it:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cat &amp;lt;&amp;lt; EOF | kubectl apply -f -
---
apiVersion: v1
kind: Pod
metadata:
  name: test-1
  namespace: model-serving-test
spec:
  restartPolicy: OnFailure
  containers:
  - name: gpu-test
    image: nvcr.io/nvidia/pytorch:23.07-py3
    command: [&quot;nvidia-smi&quot;]
    args: [&quot;-L&quot;]
    resources:
      limits:
        nvidia.com/mig-3g.20gb: 1
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The pod should be scheduled and to show in the logs something like:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;GPU 0: NVIDIA A100-PCIE-40GB (UUID: GPU-539a31f4-1487-3a42-cc55-910b7bf82d0c)
MIG 3g.20gb Device 0: (UUID: MIG-e3864840-4bd8-5b03-9ed2-59a7f1d73b5f)
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;enabling-mps-&quot;&gt;Enabling MPS &lt;a name=&quot;mps&quot;&gt;&lt;/a&gt;&lt;/h2&gt;

&lt;div style=&quot;float: right; width: 150px; background: white;&quot;&gt;&lt;img src=&quot;/static/gpu_post/multi.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;We go through a similar process as enabling time-slicing.
We create a config map with the MPS configuration.
The labeling step done in time-slicing needs to be executed only once.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cat &amp;lt;&amp;lt; EOF | kubectl apply -f -
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: mps-enable-config #OpenShift
  namespace: nvidia-gpu-operator
data:
  NVIDIA-A100-PCIE-40GB: |-
    version: v1
    sharing:
      mps:
        # renameByDefault: false
        # if we rename the resources they will move
        # to gpu.shared vs gpu
        resources:
        - name: nvidia.com/gpu
          replicas: 10
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And we path the cluster policy to apply the configuration from the new config map. Now we patch the CR&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc patch clusterpolicy \
    gpu-cluster-policy \
    -n nvidia-gpu-operator \
    --type merge \
    -p &apos;{&quot;spec&quot;: {&quot;devicePlugin&quot;: {&quot;config&quot;: {&quot;name&quot;: &quot;mps-enable-config&quot;}}}}&apos;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;With the cluster policy patched, we dont have to relabel the node because it was done in a previous step:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc label \
  --overwrite node my-host-example-com \
  nvidia.com/device-plugin.config=NVIDIA-A100-PCIE-40GB
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To trigger the NFD &lt;code&gt;gpu-feature-discovery-XXX&lt;/code&gt; POD &lt;code&gt;YOU NEED TO MAKE SURE THE CLUSTER POLICY IS PATCHED&lt;/code&gt;.
Now the product name should change from -SHARED (from time slicing) to the original name.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc get node \
  --selector=nvidia.com/gpu.product=NVIDIA-A100-PCIE-40GB \
  -o json | jq &apos;.items[0].status.capacity&apos;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And we query the gpu labels.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;kubectl describe node my-host-example-com | awk &apos;/^Labels:/,/^Taints:/&apos; | grep nvidia.com
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And these should be available:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;nvidia.com/gpu.sharing-strategy=mps
nvidia.com/mps.capable=true
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The MPS Control Daemon should be up and running:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;pod_name=$(kubectl get pods -n nvidia-gpu-operator -o=name | grep &apos;nvidia-device-plugin-mps-control-daemon-&apos; | tail -n 1 | cut -d &apos;/&apos; -f 2)
kubectl logs -n nvidia-gpu-operator $pod_name
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;nvidia-device-plugin-mps-control-daemon-9ff2n
I0405 12:49:04.996976 46 main.go:78] Starting NVIDIA MPS Control Daemon d838ad11
commit: d838ad11d323a71f19c136fabbf65c9e23b2ae81
I0405 12:49:04.997136 46 main.go:55] &quot;Starting NVIDIA MPS Control Daemon&quot; version=&amp;lt;
d838ad11
commit: d838ad11d323a71f19c136fabbf65c9e23b2ae81
&amp;gt;
I0405 12:49:04.997150 46 main.go:107] Starting OS watcher.
I0405 12:49:04.997615 46 main.go:121] Starting Daemons.
I0405 12:49:04.997654 46 main.go:164] Loading configuration.
I0405 12:49:04.998024 46 main.go:172] Updating config with default resource matching patterns.
I0405 12:49:04.998064 46 main.go:183]
Running with config:
{
&quot;version&quot;: &quot;v1&quot;,
&quot;flags&quot;: {
&quot;migStrategy&quot;: &quot;single&quot;,
&quot;failOnInitError&quot;: null,
&quot;gdsEnabled&quot;: null,
&quot;mofedEnabled&quot;: null,
&quot;useNodeFeatureAPI&quot;: null,
&quot;plugin&quot;: {
&quot;passDeviceSpecs&quot;: null,
&quot;deviceListStrategy&quot;: null,
&quot;deviceIDStrategy&quot;: null,
&quot;cdiAnnotationPrefix&quot;: null,
&quot;nvidiaCTKPath&quot;: null,
&quot;containerDriverRoot&quot;: null
}
},
&quot;resources&quot;: {
&quot;gpus&quot;: [
{
&quot;pattern&quot;: &quot;*&quot;,
&quot;name&quot;: &quot;nvidia.com/gpu&quot;
}
],
&quot;mig&quot;: [
{
&quot;pattern&quot;: &quot;*&quot;,
&quot;name&quot;: &quot;nvidia.com/gpu&quot;
}
]
},
&quot;sharing&quot;: {
&quot;timeSlicing&quot;: {},
&quot;mps&quot;: {
&quot;renameByDefault&quot;: true,
&quot;failRequestsGreaterThanOne&quot;: true,
&quot;resources&quot;: [
{
&quot;name&quot;: &quot;nvidia.com/gpu&quot;,
&quot;rename&quot;: &quot;nvidia.com/gpu.shared&quot;,
&quot;devices&quot;: &quot;all&quot;,
&quot;replicas&quot;: 10
}
]
}
}
}
I0405 12:49:04.998071 46 main.go:187] Retrieving MPS daemons.
I0405 12:49:05.073068 46 daemon.go:93] &quot;Staring MPS daemon&quot; resource=&quot;nvidia.com/gpu.shared&quot;
I0405 12:49:05.113709 46 daemon.go:131] &quot;Starting log tailer&quot; resource=&quot;nvidia.com/gpu.shared&quot;
[2024-04-05 12:49:05.086 Control 61] Starting control daemon using socket /mps/nvidia.com/gpu.shared/pipe/control
[2024-04-05 12:49:05.086 Control 61] To connect CUDA applications to this daemon, set env CUDA_MPS_PIPE_DIRECTORY=/mps/nvidia.com/gpu.shared/pipe
[2024-04-05 12:49:05.100 Control 61] Accepting connection...
[2024-04-05 12:49:05.100 Control 61] NEW UI
[2024-04-05 12:49:05.100 Control 61] Cmd:set_default_device_pinned_mem_limit 0 4096M
[2024-04-05 12:49:05.100 Control 61] UI closed
[2024-04-05 12:49:05.113 Control 61] Accepting connection...
[2024-04-05 12:49:05.113 Control 61] NEW UI
[2024-04-05 12:49:05.113 Control 61] Cmd:set_default_active_thread_percentage 10
[2024-04-05 12:49:05.113 Control 61] 10.0
[2024-04-05 12:49:05.113 Control 61] UI closed
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Make sure the capabilities match&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;kubectl describe nodes my-host-example-com | grep &quot;nvidia.com/&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;                    nvidia.com/device-plugin.config=NVIDIA-A100-PCIE-40GB
                    nvidia.com/gfd.timestamp=1715175821
                    nvidia.com/gpu.product=NVIDIA-A100-PCIE-40GB
                    nvidia.com/gpu.replicas=10
                    nvidia.com/gpu.sharing-strategy=mps
  nvidia.com/gpu:         2
  nvidia.com/gpu.shared:  20
  nvidia.com/gpu:         0
  nvidia.com/gpu.shared:  20
  nvidia.com/gpu         0             0
  nvidia.com/gpu.shared  0             0

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Lets see how to schedule a pod using mps:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cat &amp;lt;&amp;lt; EOF | kubectl create -f -
---
apiVersion: v1
kind: Pod
metadata:
  generateName: command-nvidia-smi-
  # name: command-nvidia-smi
spec:
  hostIPC: true # 
  securityContext:
    runAsUser: 1000 # 
  restartPolicy: Never
  containers:
    - name: cuda-container
      image: nvcr.io/nvidia/cuda:12.1.0-base-ubi8
      command: [&quot;/bin/sh&quot;,&quot;-c&quot;]
      args: [&quot;nvidia-smi&quot;]
      resources:
        limits:
          nvidia.com/gpu: &quot;1&quot;
  # nodeSelector:
  #   nvidia.com/gpu.product: NVIDIA-A100-PCIE-40GB
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cat &amp;lt;&amp;lt; EOF | kubectl create -f -
---
apiVersion: v1
kind: Pod
metadata:
  generateName: dcgmproftester12-
  # name: dcgmproftester12
  namespace: nvidia-gpu-operator
spec:
  hostIPC: true # 
  securityContext:
    runAsUser: 0 # 
  restartPolicy: Never
  containers:
    - name: dcgmproftester12
      image: nvcr.io/nvidia/cloud-native/dcgm:3.3.5-1-ubi9
      command: [&quot;/bin/sh&quot;, &quot;-c&quot;]
      args:
        - while true; do /usr/bin/dcgmproftester12 --no-dcgm-validation -t 1004 -d 300; sleep 30; done
      securityContext:
        privileged: true
      # The following SYS_ADMIN capability is not enough  
        capabilities:
          add: [&quot;SYS_ADMIN&quot;]
      resources:
        limits:
          nvidia.com/gpu: &quot;1&quot;
  # nodeSelector:
  #   nvidia.com/gpu.product: NVIDIA-A100-PCIE-40GB
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;From the host:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo chroot /run/nvidia/driver nvidia-smi
tail -f /run/nvidia/mps/nvidia.com/gpu/log/server.log
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If it works you should see something like:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo chroot /run/nvidia/driver nvidia-smi
Thu May  9 18:01:08 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.15              Driver Version: 550.54.15      CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA A100-PCIE-40GB          On  |   00000000:0A:00.0 Off |                    0 |
| N/A   55C    P0            121W /  250W |     495MiB /  40960MiB |    100%   E. Process |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
|   1  NVIDIA A100-PCIE-40GB          On  |   00000000:AE:00.0 Off |                    0 |
| N/A   38C    P0             62W /  250W |      38MiB /  40960MiB |      0%   E. Process |
|                                         |                        |             Disabled |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A    543063      C   nvidia-cuda-mps-server                         30MiB |
|    0   N/A  N/A    686657    M+C   /usr/bin/dcgmproftester12                     456MiB |
|    1   N/A  N/A    543063      C   nvidia-cuda-mps-server                         30MiB |
+-----------------------------------------------------------------------------------------+
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Where the dcgmproftester12 and nvidia-cuda-mps-server are running.&lt;/p&gt;

&lt;p&gt;And a deployment to schedule multiple pods:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cat &amp;lt;&amp;lt; EOF | kubectl apply -f -
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nvidia-plugin-test
  labels:
    app: nvidia-plugin-test
spec:
  replicas: 5
  selector:
    matchLabels:
      app: nvidia-plugin-test
  template:
    metadata:
      labels:
        app: nvidia-plugin-test
    spec:
      tolerations:
        - key: nvidia.com/gpu.shared
          operator: Exists
          effect: NoSchedule
      containers:
       - name: dcgmproftester12
         image: nvcr.io/nvidia/cloud-native/dcgm:3.3.5-1-ubi9
         # What is the difference between nvcr.io/nvidia/cloud-native and nvcr.io/nvidia/k8s?
         command: [&quot;/bin/sh&quot;, &quot;-c&quot;]
         args:
            - while true; do /usr/bin/dcgmproftester12 --no-dcgm-validation -t 1004 -d 30; sleep 30; done
         resources:
           limits:
             nvidia.com/gpu: &quot;1&quot;
         securityContext:
           privileged: true
         # The following SYS_ADMIN capability is not enough  
         # securityContext:
         #   capabilities:
         #     add: [&quot;SYS_ADMIN&quot;]
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;reset-&quot;&gt;Reset &lt;a name=&quot;reset&quot;&gt;&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;To reset the cluster to un-share the GPUs proceed to:&lt;/p&gt;

&lt;p&gt;Make sure pods are not using the GPU. The following snippet will
fetch all pods from any namespace requesting a GPU,from the pod spec
&lt;code&gt;resources.limits.nvidia\.com/gpu: &quot;1&quot;&lt;/code&gt;.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;kubectl get pods --all-namespaces -o=jsonpath=&apos;{range .items[*]}{.metadata.namespace}{&quot;\t&quot;}{.metadata.name}{&quot;\n&quot;}{end}&apos; \
| while read -r namespace pod; do \
    kubectl get pod &quot;$pod&quot; -n &quot;$namespace&quot; -o=jsonpath=&apos;{range .spec.containers[*]}{.name}{&quot;\t&quot;}{.resources.limits.nvidia\.com/gpu}{&quot;\n&quot;}{end}&apos; \
    | grep &apos;1&apos; &amp;gt;/dev/null &amp;amp;&amp;amp; \
    echo &quot;$namespace\t$pod&quot;; \
  done
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The previous command shouldn’t return any pod name,
otherwise you have pods requesting GPU access.&lt;/p&gt;

&lt;p&gt;Recreate the NVIDIA GPU operator cluster policy.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc get clusterpolicies gpu-cluster-policy -o yaml
oc delete clusterpolicy gpu-cluster-policy

#oc get nodefeaturediscoveries nfd-instance -o yaml -n openshift-nfd
#oc delete nodefeaturediscovery nfd-instance -n openshift-nfd

#NODE=my-host-example-com
#kubectl label --list nodes $NODE | \
#  grep nvidia.com | \
#  awk -F= &apos;{print $1}&apos; | xargs -I{} kubectl label node $NODE {}-
&lt;/code&gt;&lt;/pre&gt;

&lt;!--
- Create both the NFD nodefeaturediscovery and the Nvidia clusterpolicy
- Make sure labels are consistent with an initialized GPU
--&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;kubectl label --list nodes $NODE | grep nvidia.com
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Create a new NVIDIA GPU operator cluster policy.&lt;/p&gt;

&lt;!--
- Remove the nodefeaturediscovery.
- Remove the clusterpolicy.
- Remove the node labels.
- Create a new nodefeaturediscovery and a new clusterpolicy.
--&gt;
&lt;h2 id=&quot;update-log&quot;&gt;Update log:&lt;/h2&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;2024/04/04:&lt;/strong&gt; Initial draft.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;2024/04/08:&lt;/strong&gt; Initial post.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>7 career skills: Build your network</title>
    <summary>I’m writing this blog post as a partial output from the work done with James Mernim in the RHT’s mentoring program. We reviewed a framework called the “7 careers skills’’ in which we focused on one specifically called ‘building your...</summary>
    <link href="https://www.pubstack.com/blog/2023/10/03/build-your-network.html"/>
    <updated>2023-10-03T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2023/10/03/build-your-network</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;I’m writing this blog post as a partial output from the work done with James Mernim in the RHT’s mentoring program. We reviewed a framework called the “7 careers skills’’ in which we focused on one specifically called ‘building your network’.&lt;/p&gt;

&lt;h2 id=&quot;careers-skills-build-your-network&quot;&gt;Careers skills: Build your network&lt;/h2&gt;

&lt;p&gt;The -7 career skills- is a framework part of the official career coaching program in Red Hat where the main goal is to provide a growth mindset and the tools to move forward in the direction the coachee decides to go.&lt;/p&gt;

&lt;p&gt;The reasons for writing this post are many, among them, I would like to introduce the –7 careers skills– framework, with the initial description of the exercise called ‘building your network’. Also, to highlight the Importance of having a set of well defined ‘Career Tools’ as part of an officially supported ‘career coaching program’.&lt;/p&gt;

&lt;p&gt;The content that will be described here is a written exercise designed to help individuals reflect on their career, gain insights, and develop a growth-mindset. This exercise will map a set of relationships with individuals, whether personal, informational, or structural relationships, play a vital role in career development and to actually materialize them as “opportunities for growth”. This post aims to educate readers about the significance of these relationships and how they can be leveraged.&lt;/p&gt;

&lt;p&gt;In Red Hat, it is commonly used a coaching framework called  the ‘7 career skills’, these skills are: Build your network, Stretch yourself, Adapt to change, Reflect and plan, Know yourself, Spot opportunities, and Build your brand.&lt;/p&gt;

&lt;p&gt;Today I’m going to describe “Building your network” and we will end by doing an exercise to realize how big or healthy your ‘network’ is.&lt;/p&gt;

&lt;p&gt;A career tool is a written exercise for a mentee or coachee to complete assisting their thinking, insights and reflection, and they help build up the mindset moving onwards and providing structure, focus and if possible some lightbulb moments.&lt;/p&gt;

&lt;h2 id=&quot;mapping-your-network-of-career-supporters&quot;&gt;Mapping your network of career supporters&lt;/h2&gt;

&lt;p&gt;When we think about our career, people are a key differentiator, the right person in the right place will boost your motivation to make you thrive. Chances are that when you reflect on your career, you’ll identify particular people who have played a major role, both in a positive and negative way. It can be family, friends or co-workers who support us. Often, it’s a great manager who gives us a chance. We succeed via our relationships with others “It’s usually how we get access to opportunities for career development and learning”.&lt;/p&gt;

&lt;h2 id=&quot;spoiler-alert&quot;&gt;Spoiler alert!!!&lt;/h2&gt;

&lt;p&gt;Did you watch the movie “Oppenheimer”? (if not, I will love to spoil the first 5 minutes for you)…&lt;/p&gt;

&lt;p&gt;Robert Oppenheimer was a theoretical physicist studying in the Cambridge’s Cavendish Laboratory
under a professor named Blackett. He didn’t seem happy working there “in the lab”, this, until the point
of adding cyanide to his professor’s apple. Then, someone in his network called Niels Bohr, said to him
“you don’t seem happy here”… “Get out of Cambridge and go somewhere they let you think”… “Where to go”…
“Go with Born (University of Göttingen)”… Then, the movie actually starts building its arguments and you
will see Oppenheimer’s evolution across the time.&lt;/p&gt;

&lt;hr /&gt;
&lt;ul&gt;
  &lt;li&gt;The main goal of this exercise is to help you to “find your Niels Bohr” -&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;

&lt;p&gt;There is also some interesting research and academic theory around how these networks function. Sociologist Mark Granovetter developed the idea of ‘strong’ and ‘weak’ ties within networks. Weak ties are relationships outside of your immediate circle, and they are more important for spotting opportunities and accessing new information. Granovetter also found that a person’s number of connections was less important than their diversity. This activity is designed to help you think about and understand your network. It draws on theory about the kinds of relationships we need to build to have the right kind of career support in place.&lt;/p&gt;

&lt;h2 id=&quot;relationships&quot;&gt;Relationships&lt;/h2&gt;

&lt;p&gt;There are three categories of relationships which can be helpful:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Personal: Those who believe in you, listen to you and whom you trust. You can show ‘vulnerability’ and they can provide reassurance. Surround yourself with positive people. Those in your emotional support network will:
    &lt;ul&gt;
      &lt;li&gt;Be willing to listen to you.&lt;/li&gt;
      &lt;li&gt;Provide reassurance.&lt;/li&gt;
      &lt;li&gt;Be dependable.&lt;/li&gt;
      &lt;li&gt;Be a person to go to for advice.&lt;/li&gt;
      &lt;li&gt;Be a person you can trust and who trusts you.&lt;/li&gt;
      &lt;li&gt;Encourages you to be your best and has faith in your abilities.&lt;/li&gt;
      &lt;li&gt;Is concerned that you reach your goals.&lt;/li&gt;
      &lt;li&gt;Provides a positive but honest voice.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Informational: This type of connection is about know-how. These are the people who keep you in the loop about what is going on, tell you about the unwritten rules and share their knowledge and experience with you. Those in your informational support network will:&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;Share their know-how, knowledge and experience with you.&lt;/li&gt;
      &lt;li&gt;Keep you in touch with what is going on.&lt;/li&gt;
      &lt;li&gt;Decode unwritten laws.&lt;/li&gt;
      &lt;li&gt;Inform you of company policies and procedures that may affect you.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Structural: These are the connectors to other functions. These people will endorse you, champion you, and help you be more visible. Find people who will mentor or champion you. Those in your structural support network will:&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;Connect you to other functions.&lt;/li&gt;
      &lt;li&gt;Endorse you.&lt;/li&gt;
      &lt;li&gt;Champion you.&lt;/li&gt;
      &lt;li&gt;Help you be more visible.&lt;/li&gt;
      &lt;li&gt;Help you maximize your exposure.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;example-of-the-exercise-build-your-network&quot;&gt;Example of the exercise “Build your network”&lt;/h3&gt;

&lt;p&gt;Here is an example network map, the three types of
relationship are represented as a Venn diagram,
you’ll notice that there might be some overlaps
depending on how many people you are able to allocate
in the diagram.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/build_network/network_map.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Once you finish allocating all the people in the diagram
(write their names by hand where it says “Insert text”)
it should help make an abstract idea of your support
network more concrete and understandable.&lt;/p&gt;

&lt;p&gt;Suggestions for Expanding One’s Network can be many, these
suggestions will try to provide some insights and ideas about
some practical steps they can take to improve their network.
Among them, contributing to other organizations, attending
conferences, and engaging in stronger communication roles within
the same organization, internally, we also have the technical gigs program.
All this with the idea of provisioning some practical steps you can take
to improve your network.&lt;/p&gt;

&lt;p&gt;In summary, this post aims to educate and guide readers on the importance of building and maintaining a supportive network in their careers. It should introduce the –7 career skills- framework with emphasis in building your network, with a glimpse of some theoretical and practical advice to help individuals strengthen their professional connections and ultimately advance in their careers.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Kubernetes MLOps 101: Deployment and usage</title>
    <summary>MLOps stands for Machine Learning Operations. MLOps is a core function of Machine Learning engineering, focused on streamlining the process of taking machine learning models to production and then maintaining and monitoring them. MLOps is a collaborative function, often comprising...</summary>
    <link href="https://www.pubstack.com/blog/2023/07/17/mlops-101.html"/>
    <updated>2023-07-17T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2023/07/17/mlops-101</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;&lt;a href=&quot;https://www.databricks.com/glossary/mlops&quot;&gt;MLOps&lt;/a&gt; stands
for Machine Learning Operations. MLOps is a core
function of Machine Learning engineering, focused on streamlining the
process of taking machine learning models to production and then maintaining
and monitoring them. MLOps is a collaborative function, often comprising
data scientists, DevOps engineers, and IT.&lt;/p&gt;

&lt;p&gt;Kubeflow is an open-source platform built on Kubernetes
designed to simplify the deployment and management of
machine learning (ML) workflows. It provides a set of
tools and frameworks that enable data scientists and ML engineers
to build, deploy, and scale ML models efficiently.&lt;/p&gt;

&lt;p&gt;Kubeflow’s goal is to facilitate the adoption of machine learning
best practices and enable reproducibility, scalability, and
collaboration in ML workflows.&lt;/p&gt;

&lt;h2 id=&quot;tldr&quot;&gt;TL;DR;&lt;/h2&gt;

&lt;p&gt;This post will be an initial approach to how to
deploy some MLOps tools on top of OpenSHift 4.12,
among them Kubeflow, and the OpenDataHub project.
The goal of this tutorial is to play with the technology
and have a learning environment as fast as possible.&lt;/p&gt;

&lt;h3 id=&quot;references-for-future-steps-workshops-and-activities&quot;&gt;References for future steps, workshops, and activities&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;https://developers.redhat.com/developer-sandbox/activities/use-rhods-to-master-nlp&quot;&gt;https://developers.redhat.com/developer-sandbox/activities/use-rhods-to-master-nlp&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://demo.redhat.com/&quot;&gt;https://demo.redhat.com/&lt;/a&gt; “MLOps with Red Hat OpenShift Data Science: Retail Coupon App Workshop”&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;1-deploying-the-infrastructure&quot;&gt;1. Deploying the infrastructure&lt;/h2&gt;

&lt;h3 id=&quot;requirements-installation&quot;&gt;Requirements installation&lt;/h3&gt;

&lt;p&gt;KubeInit is a project that aims to simplify
the deployment of Kubernetes distributions.
It provides a set of Ansible playbooks and collections
to automate the installation and configuration of
Kubernetes clusters.&lt;/p&gt;

&lt;p&gt;Install the required dependencies by running the following commands:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Install the requirements assuming python3/pip3 is installed
python3 -m pip install --upgrade pip \
                                 shyaml \
                                 ansible \
                                 netaddr

# Clone the KubeInit repository and navigate to the project&apos;s directory
git clone https://github.com/Kubeinit/kubeinit.git
cd kubeinit

# Install the Ansible collection requirements
ansible-galaxy collection install --force --requirements-file kubeinit/requirements.yml

# Build and install the collection
rm -rf ~/.ansible/collections/ansible_collections/kubeinit/kubeinit
ansible-galaxy collection build kubeinit --verbose --force --output-path releases/
ansible-galaxy collection install --force --force-with-deps releases/kubeinit-kubeinit-`cat kubeinit/galaxy.yml | shyaml get-value version`.tar.gz
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;deploy-a-single-node-412-okd-cluster-as-our-development-environment&quot;&gt;Deploy a single node 4.12 OKD cluster as our development environment&lt;/h3&gt;

&lt;p&gt;This step will get us a single-node OpenShift 4.12 development environment.
From the hypervisor run:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Run the playbook
ansible-playbook \
    -v --user root \
    -e kubeinit_spec=okd-libvirt-1-0-1 \
    -e hypervisor_hosts_spec=&apos;[{&quot;ansible_host&quot;:&quot;nyctea&quot;},{&quot;ansible_host&quot;:&quot;tyto&quot;}]&apos; \
    -e controller_node_disk_size=&apos;300G&apos; \
    -e controller_node_ram_size=&apos;88080384&apos; \
    ./kubeinit/playbook.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To cleanup the environment include the &lt;code&gt;-e kubeinit_stop_after_task=task-cleanup-hypervisors&lt;/code&gt; variable.&lt;/p&gt;

&lt;p&gt;Depending on the value of &lt;code&gt;kubeinit_spec&lt;/code&gt; we can choose between multiple K8s distributions,
determine how many controller or compute nodes, and how many hypervisors we will like
to spread the cluster guests, for more information go to the
&lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;Kubeinit Github&lt;/a&gt; repository or the
&lt;a href=&quot;https://docs.kubeinit.org/&quot;&gt;docs website&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;configuring-the-storage-pv-backend&quot;&gt;Configuring the storage PV backend&lt;/h3&gt;

&lt;p&gt;From the hypervisor connect to the service guest by running:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;ssh -i ~/.ssh/okdcluster_id_rsa root@10.0.0.253
# Install some tools
yum groupinstall &apos;Development Tools&apos; -y
yum install git -y
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To support the PersistentVolumeClaims (PVCs) from the Kubeflow deployment,
a storage PV backend needs to be set up.
We will setup some basic default storage class to support the PVC from the Kubeflow deployment.
Follow the steps below to configure the backend:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Create a new namespace for the NFS provisioner
oc new-project nfsprovisioner-operator
sleep 30;
# Deploy NFS Provisioner operator in the terminal
cat &amp;lt;&amp;lt; EOF | oc apply -f -
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: nfs-provisioner-operator
  namespace: openshift-operators
spec:
  channel: alpha
  installPlanApproval: Automatic
  name: nfs-provisioner-operator
  source: community-operators
  sourceNamespace: openshift-marketplace
EOF

# We assume this is a single node deployment, we will get the first worker node
export target_node=$(oc get nodes | grep worker | head -1 | cut -d&apos; &apos; -f1)
# We assign the NFS provisioner role to our first worker node
oc label node/${target_node} app=nfs-provisioner
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, we need to configure the worker node filesystem to
support the location where the PVs will be stored.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# ssh to the node
oc debug node/${target_node}

# Configure the local folder for the PVs
chroot /host
mkdir -p /home/core/nfs
chcon -Rvt svirt_sandbox_file_t /home/core/nfs
exit; exit
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;setting-up-the-container-registries-credentials&quot;&gt;Setting up the container registries credentials&lt;/h3&gt;

&lt;p&gt;Connect to the worker node to configure the OpenShift registry token,
get the OpenShift registry token list (pullsecrets)
from &lt;a href=&quot;https://cloud.redhat.com/openshift/install/pull-secret&quot;&gt;cloud.redhat.com&lt;/a&gt;
and store it locally as &lt;code&gt;/root/config.json&lt;/code&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# There is a local pull-secret for pulling from the internal cluster container registry
# TODO: Make sure we have the local registry and the RHT credentials together

# By default there is a local container registry in this single node cluster
# and those credentials are deployed in the OCP cluster.

# Merge the local rendered registry-auths.json from the services guest
# With the token downloaded from cloud.redhat.com
# store it as rht-registry-auths.json and merge them with:

cd
jq -s  &apos;.[0] * .[1]&apos; registry-auths.json rht-registry-auths.json &amp;gt; full-registry-auths.json
oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=full-registry-auths.json

# oc create secret generic pull-secret -n openshift-config --type=kubernetes.io/dockerconfigjson --from-file=.dockerconfigjson=/root/downloaded_token.json
# oc secrets link default pull-secret -n openshift-config --for=pull
# Refer to: https://access.redhat.com/solutions/4902871 for further information
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Make sure the registry secret is correct by printing its value.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc get secret pull-secret -n openshift-config --template=&apos;&apos;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Or configure it in the cluster per node by (not required and done in the previous step):&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;ssh core@10.0.0.1 # (First controller node, in this case, a single node cluster)
podman login registry.redhat.io
podman login registry.access.redhat.com
# Username: ***@redhat.com
# Password: 
# Login Succeeded!
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Create the NFSProvisioner Custom Resource&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cat &amp;lt;&amp;lt; EOF | oc apply -f -  
apiVersion: cache.jhouse.com/v1alpha1
kind: NFSProvisioner
metadata:
  name: nfsprovisioner-sample
  namespace: nfsprovisioner-operator
spec:
  nodeSelector: 
    app: nfs-provisioner
  hostPathDir: &quot;/home/core/nfs&quot;
EOF
sleep 30;

# Check if NFS Server is running
oc get pod

# Update annotation of the NFS StorageClass
oc patch storageclass nfs -p &apos;{&quot;metadata&quot;: {&quot;annotations&quot;:{&quot;storageclass.kubernetes.io/is-default-class&quot;:&quot;true&quot;}}}&apos;

# Check the default next to nfs StorageClass
oc get sc
NAME            PROVISIONER       RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
nfs (default)   example.com/nfs   Delete          Immediate           false                  4m29s

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Create a test PVC to verify the claims can be filled correctly&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Create a test PVC
cat &amp;lt;&amp;lt; EOF | oc apply -f -  
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: nfs-pvc-example
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 1Mi
  storageClassName: nfs
EOF

# Check the test PV/PVC
oc get pv,pvc

NAME                                                        CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS      CLAIM                                                 STORAGECLASS   REASON   AGE
persistentvolume/pvc-e30ba0c8-4a41-4fa0-bc2c-999190fd0282   1Mi        RWX            Delete           Bound       nfsprovisioner-operator/nfs-pvc-example               nfs                     5s
NAME                                    STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
persistentvolumeclaim/nfs-pvc-example   Bound    pvc-e30ba0c8-4a41-4fa0-bc2c-999190fd0282   1Mi        RWX            nfs            5s

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The output shown here indicates that the NFS server,
NFS provisioner, and NFS StorageClass are all working fine.
You can use the NFS StorageClass for any test scenarios that need PVC.&lt;/p&gt;

&lt;p&gt;The following snippets allow to play with the applications
deployed to the single-node cluster providing an easy revert option.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Note:&lt;/em&gt;&lt;/strong&gt; For rollbacking the env and try
new things, instead of redeploying (30 mins)
try restoring the snapshots (1 min).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;########
# BACKUP
vms=( $(virsh list --all | grep running | awk &apos;{print $2}&apos;) )
# Create an initial snapshot for each VM
for i in &quot;${vms[@]}&quot;; \
do \
echo &quot;virsh snapshot-create-as --domain $i --name $i-fresh-install --description $i-fresh-install --atomic&quot;; \
virsh snapshot-create-as --domain &quot;$i&quot; --name &quot;$i&quot;-fresh-install --description &quot;$i&quot;-fresh-install --atomic; \
done
# List current snapshots (After they should be already created)
for i in &quot;${vms[@]}&quot;; \
do \
virsh snapshot-list --domain &quot;$i&quot;; \
done
########

#########
# RESTORE
vms=( $(virsh list --all | grep running | awk &apos;{print $2}&apos;) )
for i in &quot;${vms[@]}&quot;; \
do \
virsh shutdown $i;
virsh snapshot-revert --domain $i --snapshotname $i-fresh-install --running;
virsh list --all;
done
#########

#########
# DELETE
vms=( $(virsh list --all | grep -E &apos;running|shut&apos; | awk &apos;{print $2}&apos;) )
for i in &quot;${vms[@]}&quot;; \
do \
virsh snapshot-delete --domain $i --snapshotname $i-fresh-install;
done
#########
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;2-deploying-the-mlops-applications&quot;&gt;2. Deploying the MLOps applications&lt;/h2&gt;

&lt;p&gt;This section will explore the installation of
different MLOps components in an OCP 4.12 cluster.&lt;/p&gt;

&lt;p&gt;Select one subsection exclusively (2.1, 2.2, or 2.3 but not all of them).&lt;/p&gt;

&lt;p&gt;From the services pod execute:&lt;/p&gt;

&lt;h3 id=&quot;21-deploying-the-kubeflow-pipelines-component&quot;&gt;2.1 Deploying the Kubeflow pipelines component&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;###################################
# Installing the Kubeflow templates
# https://www.kubeflow.org/docs/components/pipelines/v1/installation/localcluster-deployment/#deploying-kubeflow-pipelines
#
###############################
# Kubeflow pipelines standalone
# We will deploy kubeflow 2.0.0
#
cd
export PIPELINE_VERSION=2.0.0
kubectl apply -k &quot;github.com/kubeflow/pipelines/manifests/kustomize/cluster-scoped-resources?ref=$PIPELINE_VERSION&quot;
kubectl wait --for condition=established --timeout=60s crd/applications.app.k8s.io
kubectl apply -k &quot;github.com/kubeflow/pipelines/manifests/kustomize/env/platform-agnostic-pns?ref=$PIPELINE_VERSION&quot;
sleep 30
oc get pods -n kubeflow

NAME                                               READY   STATUS    RESTARTS      AGE
cache-deployer-deployment-76f8bc8897-t48vs         1/1     Running   0             3m
cache-server-65fc86f747-2rg7t                      1/1     Running   0             3m
metadata-envoy-deployment-5bf6bbb856-tqw85         1/1     Running   0             3m
metadata-grpc-deployment-784b8b5fb4-l94tm          1/1     Running   3 (52s ago)   3m
metadata-writer-647bfd9f77-m5c8w                   1/1     Running   0             3m
minio-65dff76b66-vstbk                             1/1     Running   0             3m
ml-pipeline-86965f8976-qbgqs                       1/1     Running   0             3m
ml-pipeline-persistenceagent-dbc9d95b6-g7nsb       1/1     Running   0             3m
ml-pipeline-scheduledworkflow-6fbf57b54d-446f5     1/1     Running   0             2m59s
ml-pipeline-ui-5b99c79fc8-2vbcp                    1/1     Running   0             2m59s
ml-pipeline-viewer-crd-5fdb467bb5-rktvs            1/1     Running   0             2m59s
ml-pipeline-visualizationserver-6cf48684f5-b929v   1/1     Running   0             2m59s
mysql-c999c6c8-jzths                               1/1     Running   0             2m59s
workflow-controller-6c85bc4f95-lmkrg               1/1     Running   0             2m59s
##########################
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To access the Kubeflow pipelines UI, follow these steps:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Create an initial SSH hop from your machine to the hypervisor
ssh -L 38080:localhost:38080 root@labserver
# A second hop will connect you to the services guest
ssh -L 38080:localhost:8080 -i ~/.ssh/okdcluster_id_rsa root@10.0.0.253
# Once we are in a network segment with access to the Kubeflow services
# we can forward the traffic to the ml-pipeline-ui pod
kubectl port-forward -n kubeflow svc/ml-pipeline-ui 8080:80
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;After running the hop/forwarding commands, you can access the Kubeflow
pipelines UI by opening your browser and visit &lt;code&gt;http://localhost:38080&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeflow/kubeflow_ui.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Once all the pods are running the UI should work as expected without reporting any issue.&lt;/p&gt;

&lt;h3 id=&quot;22-deploying-the-modelmesh-service-operator&quot;&gt;2.2 Deploying the modelmesh service operator&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cd
git clone https://github.com/opendatahub-io/modelmesh-serving.git --branch release-v0.11.0-alpha
cd modelmesh-serving
cd opendatahub/quickstart/basic/
./deploy.sh 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Make sure the pvc, replicaset, pod, and service are all running before continuing.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Check the OpenDataHub ModelServing&apos;s inference service
oc get isvc -n modelmesh-serving
# NAME                 URL                                               READY   PREV   LATEST   PREVROLLEDOUTREVISION   LATESTREADYREVISION   AGE
# example-onnx-mnist   grpc://modelmesh-serving.modelmesh-serving:8033   True                                                                  42m
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#Check the URL for the deployed model
oc get routes
# NAME                 HOST/PORT                                                             PATH                            SERVICES            PORT   TERMINATION     WILDCARD
# example-onnx-mnist   example-onnx-mnist-modelmesh-serving.apps.okdcluster.kubeinit.local   /v2/models/example-onnx-mnist   modelmesh-serving   8008   edge/Redirect   None
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Let’s test a model from the manifests folder.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;export HOST_URL=$(oc get route example-onnx-mnist -ojsonpath=&apos;{.spec.host}&apos; -n modelmesh-serving)
export HOST_PATH=$(oc get route example-onnx-mnist -ojsonpath=&apos;{.spec.path}&apos; -n modelmesh-serving)
export COMMON_MANIFESTS_DIR=&apos;/root/modelmesh-serving/opendatahub/quickstart/common_manifests&apos;
curl --silent --location --fail --show-error --insecure https://${HOST_URL}${HOST_PATH}/infer -d  @${COMMON_MANIFESTS_DIR}/input-onnx.json

# This is the expected output
# {&quot;model_name&quot;:&quot;example-onnx-mnist__isvc-b29c3d91f3&quot;,&quot;model_version&quot;:&quot;1&quot;,&quot;outputs&quot;:[{&quot;name&quot;:&quot;Plus214_Output_0&quot;,&quot;datatype&quot;:&quot;FP32&quot;,&quot;shape&quot;:[1,10],&quot;data&quot;:[-8.233053,-7.7497034,-3.4236815,12.3630295,-12.079103,17.266596,-10.570976,0.7130762,3.321715,1.3621228]}]}
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;23-deploying-all-kubeflow-components-wip-pending-failing-resources&quot;&gt;2.3 Deploying all Kubeflow components (WIP pending failing resources)&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;##########################
# Complete install
# From: https://github.com/kubeflow/manifests#installation
cd
git clone https://github.com/kubeflow/manifests kubeflow_manifests
cd kubeflow_manifests
while ! kustomize build example | awk &apos;!/well-defined/&apos; | kubectl apply -f -; do echo &quot;Retrying to apply resources&quot;; sleep 10; done
##########################

# WIP checking Security Context Constraints by executing:

# We deploy all the Security Context Constraints
# cd
# git clone https://github.com/opendatahub-io/manifests.git ocp_manifests
# cd ocp_manifests
# while ! kustomize build openshift/openshiftstack/application/openshift/openshift-scc/base | kubectl apply -f -; do echo &quot;Retrying to apply resources&quot;; sleep 10; done
# while ! kustomize build openshift/openshiftstack/application/openshift/openshift-scc/overlays/istio | kubectl apply -f -; do echo &quot;Retrying to apply resources&quot;; sleep 10; done
# while ! kustomize build openshift/openshiftstack/application/openshift/openshift-scc/overlays/servicemesh | kubectl apply -f -; do echo &quot;Retrying to apply resources&quot;; sleep 10; done
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;checking-that-all-the-services-are-running&quot;&gt;Checking that all the services are running&lt;/h3&gt;

&lt;p&gt;To ensure that all services that were deployed are
running, check pod, service, replicaset,
deployment, and pvc.&lt;/p&gt;

&lt;h2 id=&quot;3-running-kubeflow-creating-experiments-pipelines-and-executions&quot;&gt;3. Running Kubeflow (Creating experiments, pipelines, and executions)&lt;/h2&gt;

&lt;p&gt;Kubeflow simplifies the development and deployment of machine learning
pipelines by providing a higher level of abstraction over Kubernetes.
It offers a resilient framework for distributed computing,
allowing ML pipelines to be scalable and production-ready.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 400px; background: white;&quot;&gt;
  &lt;img src=&quot;/static/kubeflow/kubeflow_components.webp&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;
&lt;/div&gt;

&lt;p&gt;In this section, we will explore the process of creating a machine learning
pipeline using Kubeflow, covering various components and their integration
throughout the ML solution lifecycle, that is creating the experiment, pipeline, and run.&lt;/p&gt;

&lt;p&gt;The following components are the main organizational structure within Kubeflow.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;A Kubeflow Experiment is a logical grouping of machine learning runs or trials.
It provides a way to organize and track multiple iterations of training or evaluation experiments.
Experiments help in managing different versions of models, hyperparameters, and data configurations.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;A Kubeflow Pipeline is a workflow that defines a series of interconnected steps or components for an end-to-end machine learning process.
It allows for the orchestration and automation of complex ML workflows, including data preprocessing, model training, evaluation, and deployment.
Pipelines enable reproducibility, scalability, and collaboration in ML development by providing a visual representation of the workflow and its dependencies.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;A Kubeflow Run refers to the execution of a pipeline or an individual component within a pipeline.
It represents a specific instance of running a pipeline or a component with specific inputs and outputs.
Runs can be triggered manually or automatically based on predefined conditions or events.
Each run captures metadata and logs, allowing for easy tracking, monitoring, and troubleshooting of the pipeline’s execution.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;running-our-first-experiment&quot;&gt;Running our first experiment&lt;/h3&gt;

&lt;p&gt;Text&lt;/p&gt;

&lt;h3 id=&quot;creating-an-experiment&quot;&gt;Creating an experiment&lt;/h3&gt;

&lt;p&gt;Text&lt;/p&gt;

&lt;h3 id=&quot;creating-the-pipeline&quot;&gt;Creating the pipeline&lt;/h3&gt;

&lt;p&gt;Text&lt;/p&gt;

&lt;h3 id=&quot;running-the-pipeline&quot;&gt;Running the pipeline&lt;/h3&gt;

&lt;p&gt;Text&lt;/p&gt;

&lt;h2 id=&quot;conclusions&quot;&gt;Conclusions&lt;/h2&gt;

&lt;p&gt;Deploying Kubeflow using KubeInit simplifies the process of setting up a
scalable and reproducible ML workflow platform. With KubeInit’s Ansible
playbooks and collections, you can automate the deployment of Kubernetes
and easily configure the necessary components for Kubeflow.
By leveraging Kubeflow’s templates and services, data scientists and ML
engineers can accelerate the development and deployment of machine learning models.&lt;/p&gt;

&lt;h2 id=&quot;interesting-errors&quot;&gt;Interesting errors&lt;/h2&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  Warning  Failed          8m1s (x6 over 11m)   kubelet            Error: ImagePullBackOff
  Warning  Failed          6m16s (x5 over 11m)  kubelet            Failed to pull image &quot;mysql:8.0.29&quot;: rpc error: code = Unknown desc = reading manifest 8.0.29 in docker.io/library/mysql: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
  Normal   BackOff         103s (x28 over 11m)  kubelet            Back-off pulling image &quot;mysql:8.0.29&quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;the-end&quot;&gt;The end&lt;/h2&gt;

&lt;p&gt;If you like this post, please try the code, raise issues, and ask for more details, features, or
anything that you feel interested in. Also, it would be awesome if you become a stargazer to catch up
updates and new features.&lt;/p&gt;

&lt;p&gt;This is the &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;main repository&lt;/a&gt; for the infrastructure automation
based on Ansible.&lt;/p&gt;

&lt;p&gt;Happy Kubeflow’ing &amp;amp; Kubeinit’ing!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>The homelab project</title>
    <summary>Homelabs, also known as home data center, refers to a personal setup created by technology enthusiasts or professionals in their homes for learning, experimentation, or production purposes. It typically consists of a collection of computer hardware, networking equipment, and software...</summary>
    <link href="https://www.pubstack.com/blog/2023/05/26/the-homelab-project.html"/>
    <updated>2023-05-26T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2023/05/26/the-homelab-project</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Homelabs, also known as home data center, refers to a personal setup created by
technology enthusiasts or professionals in their homes for learning, experimentation,
or production purposes. It typically consists of a collection of computer hardware,
networking equipment, and software that simulates or replicates a professional IT environment.&lt;/p&gt;

&lt;p&gt;Homelabs serve various purposes, including:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Learning and Skill Development: Many individuals use homelabs to enhance their
knowledge and skills in areas such as system administration, networking, virtualization,
storage, and cybersecurity. It provides a hands-on environment to experiment with different
technologies, configurations, and software without the constraints of a production environment.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Testing and Prototyping: Homelabs offer a safe and controlled environment to test new software,
applications, or hardware configurations. It allows individuals to evaluate their performance,
compatibility, and feasibility before deploying them in a production environment.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Personal Projects and Services: Some people build homelabs to host personal projects, services,
or applications. For example, they may set up media servers, game servers, file sharing platforms,
or websites to meet their specific needs or interests.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Home Automation and Internet of Things (IoT): Homelabs can be utilized for setting up smart home
automation systems and experimenting with IoT devices. This enables individuals to control and
manage various aspects of their home, such as lighting, temperature, security, and entertainment systems.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Data Storage and Backup: Homelabs often include storage solutions like Network-Attached Storage
(NAS) or storage area network (SAN) devices, which allow users to store and backup their data locally.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Homelabs can range from a single server or a few network devices to a comprehensive setup with
multiple servers, switches, routers, and other equipment. They can be built using off-the-shelf
components or repurposed enterprise-grade hardware, depending on the user’s requirements, budget,
and level of expertise.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/homelab/00_intro/00_homelab.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;While building and maintaining a homelab can be challenging, it can also be a rewarding and educational experience.
The availability of upstream communities and resources can help you overcome difficulties and find support from
other homelab enthusiasts.
Start with a clear plan, research thoroughly, and take it step by step, adjusting your goals and complexity as you
gain experience.&lt;/p&gt;

&lt;h2 id=&quot;origins&quot;&gt;Origins&lt;/h2&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/homelab/00_intro/02_humble_home_lab.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Datacenters are large-scale facilities designed to house and manage extensive computing infrastructure 
for businesses or organizations. They have high-end server racks, robust networking equipment, redundant
power and cooling systems, and advanced security measures. Datacenters offer scalability, reliability,
and support for critical operations, often involving multiple clients or users. In contrast, homelabs
are personal setups in individuals’ homes used for learning, experimentation, or small-scale production.
They typically consist of a collection of hardware, networking devices, and software. Homelabs provide a
controlled environment for skill development, testing, and hosting personal projects, but on a smaller
scale with limited resources and fewer users.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/homelab/00_intro/03_ideal_rack.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;
&lt;p&gt;The ideal homelab architecture typically includes a combination of components to create a versatile and
powerful setup. It starts with robust server hardware, whether it’s rack-mounted servers or repurposed 
desktop machines, equipped with ample processing power, memory, and storage capacity. Networking equipment
such as routers, switches, and firewalls play a crucial role in connecting devices and enabling communication
within the homelab. Virtualization software like VMware or Hyper-V allows for the creation and management of
virtual machines, enabling efficient resource utilization. Storage solutions, including NAS
(Network Attached Storage) or SAN (Storage Area Network), provide ample storage capacity for data and backups.
Additionally, monitoring and management tools help ensure the stability and performance of the homelab environment.
The ideal architecture emphasizes flexibility, scalability, and the ability to experiment with various technologies
and configurations to meet specific learning or project requirements.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/homelab/00_intro/04_networking.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Networking is a crucial component in an ideal homelab architecture, enabling devices to communicate and share resources
effectively. It starts with a reliable and feature-rich router that provides internet access and manages IP addresses.
A network switch connects multiple devices within the homelab, allowing seamless communication. Managed switches offer
advanced features for improved network performance and segmentation. Implementing a firewall ensures the security of the
homelab, protecting against unauthorized access. Additionally, utilizing technologies like VLANs and QoS can enhance
network efficiency and prioritize traffic. Proper networking setup enables connectivity, facilitates the sharing of
services and resources, and creates a robust foundation for various homelab activities and projects.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/homelab/00_intro/05_storage.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Storage is a critical component in an ideal homelab architecture, providing ample space to store data, virtual machine
images, and backups. Network Attached Storage (NAS) or Storage Area Network (SAN) solutions offer centralized storage with
high capacity and performance. NAS devices are easy to set up and provide shared file access over the network, making them
suitable for storing media, documents, and backups. SANs, on the other hand, deliver fast and reliable storage for virtual machine environments,
supporting features like RAID, snapshotting, and replication. Additionally, leveraging cloud storage services can provide off-site backups and enhance
data accessibility. By incorporating a robust storage solution into the homelab architecture, users can ensure data integrity, scalability, and
efficient management of their digital assets.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/homelab/00_intro/06_compute.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Compute is a fundamental aspect of an ideal homelab architecture, empowering users to run diverse workloads and applications. It typically revolves
around powerful server hardware, which can include rack-mounted servers or repurposed desktop machines with ample processing power, memory, and storage
capacity. Virtualization technologies like VMware or Hyper-V allow for the creation and management of virtual machines, enabling efficient utilization of
resources and the ability to run multiple operating systems and applications simultaneously. Additionally, containerization platforms such as Docker and
Kubernetes offer lightweight and scalable environments for deploying and managing containerized applications. The compute component of a homelab provides
the necessary horsepower to support a wide range of experiments, projects, and learning opportunities, empowering users to explore various technologies
and configurations.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/homelab/00_intro/07_nice_homelab.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;
&lt;p&gt;A cool homelab is a sight to behold, with a sleek equipment rack housing powerful servers and illuminated by LED lights. Neatly managed cables run along
cable management arms and trays, with color-coded sleeves adding style and clarity. High-performance networking switches, routers, and firewalls display
blinking status lights, creating an entrancing visual display. Multiple monitors on a spacious desk provide a command center, surrounded by shelves and
storage units for additional hardware. The room is optimized for airflow and ventilation, ensuring the equipment remains cool and efficient. Whiteboards
or smart boards adorn the walls, inspiring creativity and organization. This cool homelab is a blend of functionality, organization, and aesthetic
appeal, reflecting a passion for technology and a commitment to continuous learning and exploration.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/homelab/00_intro/08_reality_mess.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Keeping things organized in a homelab can be a real challenge, but it’s crucial for maintaining efficiency and ease of use. One area that often requires
attention is cable management. With numerous devices, power cords, and networking cables, it’s easy for things to become a tangled mess. Implementing
cable management techniques such as using cable ties, Velcro straps, or cable management trays can help keep cables organized and prevent them from
becoming a jumbled mess. Additionally, labeling cables and ports can make it easier to trace connections and troubleshoot any issues that may arise.
Regular maintenance and periodic cable cleanups can go a long way in maintaining a tidy and well-organized homelab.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/homelab/00_intro/09_reality_mess.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Aside from cables, proper equipment and component organization also contribute to an organized homelab. Utilizing equipment racks or shelves can provide
a designated space for servers, switches, and other hardware. Grouping similar components together and using clear labeling or color-coding techniques
can simplify identification and access. It’s also helpful to have a central documentation system to keep track of configurations, IP addresses, and
system changes. By investing time and effort into organizing the physical and virtual aspects of the homelab, users can save valuable time during
troubleshooting, upgrades, and expansions, ensuring a smoother and more efficient homelab experience overall.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/homelab/00_intro/10_reality_cabling.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;
&lt;p&gt;Cabling is a crucial aspect of homelab organization, and a few extra tips can help maintain a tidy setup. Planning the cabling layout in advance,
considering cable lengths and future expansions, reduces clutter. Utilizing color-coded cables or cable sleeves simplifies identification. Within server
racks or cabinets, employing cable management tools like arms, managers, and routing channels guides cables neatly and improves airflow. Regular cable
audits and cleanups remove unused cables and ensure secure connections. Documenting the cabling infrastructure with diagrams or management software aids
in troubleshooting and modifications, preventing confusion and saving time. By implementing these strategies, the homelab maintains an organized and
efficient cabling system.&lt;/p&gt;

&lt;h2 id=&quot;before&quot;&gt;Before&lt;/h2&gt;

&lt;p&gt;Building a homelab is all about trial and error, and things can get a bit messy and disorganized at times. It’s totally normal!
When you start setting up your homelab, you might run into issues and face configuration problems. But don’t worry, that’s how you
learn! Embrace the challenges and see them as opportunities to grow your skills. Your homelab might end up looking like a tangled
web of cables, but that’s part of the fun.&lt;/p&gt;

&lt;div class=&quot;col&quot;&gt;
  &lt;h4 class=&quot;block-title&quot;&gt;Before homelab gallery&lt;/h4&gt;
	&lt;div class=&quot;block-body&quot;&gt;
		&lt;ul class=&quot;item-list-round&quot; data-magnific=&quot;gallery&quot;&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/before/00.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/before/00.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/before/01.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/before/01.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/before/02.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/before/02.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/before/03.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/before/03.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/before/04.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/before/04.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/before/05.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/before/05.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/before/06.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/before/06.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/before/07.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/before/07.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
		&lt;/ul&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;hr style=&quot;clear:both; border:0px solid #fff;&quot; /&gt;

&lt;p&gt;Take the time to label and document everything-it’ll save you headaches down the road.
And remember, there’s a whole &lt;a href=&quot;https://www.reddit.com/r/homelab&quot;&gt;homelab&lt;/a&gt; community out there
ready to help you out when things get rough!&lt;/p&gt;

&lt;h2 id=&quot;bom&quot;&gt;BoM&lt;/h2&gt;

&lt;p&gt;Next are the details of my enclosure homelab’s bill of materials (BoM).
Picture this, a comprehensive list of all the hardware and equipment required to build this box of awesomeness.
The BoM is like a treasure map, guiding me through the vast landscape of parts and stuff
to deep dive into the heart and soul of my homelab setup.
There are many parts not in this BoM list because they are not used in the final layout.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Item&lt;/th&gt;
      &lt;th&gt;Quantity&lt;/th&gt;
      &lt;th&gt;Price&lt;/th&gt;
      &lt;th&gt;Total&lt;/th&gt;
      &lt;th&gt;Image&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Countertop (240cm, cut in 2x70cm &amp;amp; 2x50cm)&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/01_tablero.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;T-slot 2020 profiles&lt;/td&gt;
      &lt;td&gt;12&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/02_t-slot.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;3 way connectors&lt;/td&gt;
      &lt;td&gt;8&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/03_3_way_connector.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M4 hexagonal head screws (5mm and 25mm)&lt;/td&gt;
      &lt;td&gt;50/50&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/04_m3_4mmlong_screw.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;T-slot 2020 corner connectors&lt;/td&gt;
      &lt;td&gt;8&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/06_90_degree_connector.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;T-slot 90 degrees connectors&lt;/td&gt;
      &lt;td&gt;50&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/07_90_degree_connector.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;T-slot M4 nut&lt;/td&gt;
      &lt;td&gt;50&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/08_t-slot_nut.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Spax wood screws 2mmx25mm&lt;/td&gt;
      &lt;td&gt;50&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/09_spax_2mm_screw.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;L (90 degrees) bracket 30mmx80mmx55mmx2mm&lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/12_L_bracket_30X80X55X2.5MM_SIMPSON.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Heavy 90 degrees connectors&lt;/td&gt;
      &lt;td&gt;50&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/13_corner.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Heavy floor feets&lt;/td&gt;
      &lt;td&gt;4&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/16_feet.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Upper door shock absorver&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/17_shock.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Nylon wheels (1 inch), M8&lt;/td&gt;
      &lt;td&gt;4&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/18_wheels_1inch_nylon.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;M8 hexagon connector&lt;/td&gt;
      &lt;td&gt;4&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/19_m10_hexagon_connector.png&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Washers&lt;/td&gt;
      &lt;td&gt;50&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/21_washers.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Hinges&lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/22_hinge.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Glass doors (255mmx610mm)&lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/23_glass_doors_5mm.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;19” rack profile  (2x12U,4x2U,2x4U)&lt;/td&gt;
      &lt;td&gt;8&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/81_Adam_Hall_19inch_61535.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;19” rack shelf (250mm)&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/91_shelve.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;19” rack shelf (150mm)&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/92_shelve_150mm.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;19” rack power distributor&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/93_power.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;19” rack rail depth adapter kit&lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;TBD&lt;/td&gt;
      &lt;td&gt;&lt;img src=&quot;/static/homelab/01_materials/95_RDA2U.jpg&quot; width=&quot;50&quot; height=&quot;50&quot; /&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;div class=&quot;col&quot;&gt;
  &lt;h4 class=&quot;block-title&quot;&gt;Materials gallery&lt;/h4&gt;
	&lt;div class=&quot;block-body&quot;&gt;
		&lt;ul class=&quot;item-list-round&quot; data-magnific=&quot;gallery&quot;&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/01_tablero.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/01_tablero.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/02_t-slot.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/02_t-slot.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/03_3_way_connector.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/03_3_way_connector.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/04_m3_4mmlong_screw.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/04_m3_4mmlong_screw.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/06_90_degree_connector.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/06_90_degree_connector.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/07_90_degree_connector.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/07_90_degree_connector.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/08_t-slot_nut.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/08_t-slot_nut.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/09_spax_2mm_screw.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/09_spax_2mm_screw.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/12_L_bracket_30X80X55X2.5MM_SIMPSON.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/12_L_bracket_30X80X55X2.5MM_SIMPSON.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/13_corner.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/13_corner.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/16_feet.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/16_feet.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/17_shock.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/17_shock.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/18_wheels_1inch_nylon.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/18_wheels_1inch_nylon.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/19_m10_hexagon_connector.png&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/19_m10_hexagon_connector.png&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/21_washers.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/21_washers.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/22_hinge.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/22_hinge.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/23_glass_doors_5mm.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/23_glass_doors_5mm.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/81_Adam_Hall_19inch_61535.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/81_Adam_Hall_19inch_61535.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/91_shelve.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/91_shelve.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/92_shelve_150mm.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/92_shelve_150mm.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/93_power.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/93_power.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/01_materials/95_RDA2U.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/01_materials/95_RDA2U.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
		&lt;/ul&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;hr style=&quot;clear:both; border:0px solid #fff;&quot; /&gt;

&lt;p&gt;In conclusion, the bill of materials (BoM) serves as the backbone of my homelab’s main rack enclosure, providing a
detailed roadmap to its inner workings. Through extensive research, careful consideration, and a touch of geeky enthusiasm, I’ve curated a collection of hardware and equipment that forms the foundation of it.&lt;/p&gt;

&lt;h2 id=&quot;after-building-the-homelab&quot;&gt;After building the homelab&lt;/h2&gt;

&lt;p&gt;I’ll like to share  the journey I embarked on to build my homelab.
It was no walk in the park, but oh , the end result is worth every bit of the sweat and tears.
First, I dove headfirst into the technical realm, researching hardware options like a mad scientist on a caffeine-fueled mission.
Then came the fun part-trial and error galore!. But hey, that’s how we learn, right? Finally,
I had my homelab up and running, ready to tackle any tech challenge thrown my way.
So, buckle up, folks, and get ready to witness the fruits of my homelab labor-let the geeky adventures begin!&lt;/p&gt;

&lt;div class=&quot;col&quot;&gt;
  &lt;h4 class=&quot;block-title&quot;&gt;After homelab gallery&lt;/h4&gt;
	&lt;div class=&quot;block-body&quot;&gt;
		&lt;ul class=&quot;item-list-round&quot; data-magnific=&quot;gallery&quot;&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/00.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/00.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/01.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/01.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/02.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/02.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/03.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/03.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/04.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/04.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/05.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/05.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/06.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/06.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/07.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/07.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/08.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/08.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/09.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/09.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/10.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/10.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/11.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/11.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/12.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/12.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/13.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/13.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/14.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/14.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/15.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/15.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/16.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/16.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/17.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/17.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/20.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/20.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/21.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/21.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/22.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/22.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/23.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/23.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/24.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/24.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/25.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/25.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/26.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/26.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/27.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/27.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/28.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/28.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/29.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/29.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/30.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/30.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/31.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/31.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/32.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/32.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/33.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/33.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/34.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/34.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/35.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/35.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/36.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/36.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/40.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/40.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/41.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/41.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/42.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/42.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/50.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/50.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/51.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/51.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/52.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/52.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/53.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/53.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/54.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/54.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/55.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/55.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/60.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/60.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/61.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/61.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/80.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/80.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/81.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/81.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/82.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/82.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/83.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/83.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/84.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/84.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/85.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/85.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/86.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/86.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/87.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/87.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/88.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/88.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/89.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/89.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/90.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/90.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/91.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/91.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/02_building/after/92.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/02_building/after/92.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
		&lt;/ul&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;hr style=&quot;clear:both; border:0px solid #fff;&quot; /&gt;

&lt;p&gt;My homelab build process was an exhilarating roller coaster ride filled with learning,
challenges, and moments of pure triumph.&lt;/p&gt;

&lt;h2 id=&quot;showcase&quot;&gt;Showcase&lt;/h2&gt;

&lt;p&gt;After a lot of trial and error, messy cables, I’ve finally created a tech wonderland right in the comfort of my own home.
Picture this: a sleek rack filled with powerful custom machines, and blinking lights. I’ve got my own mini data center going on!
With my homelab, I can experiment with cutting-edge technologies, host my own services, and learn like a pro.
It’s my own little tech playground, and boy, it feels good to have accomplished this.
Welcome to my homelab, where the possibilities are endless.
BTW all this stuff was 100% sponsored by ME.&lt;/p&gt;

&lt;div class=&quot;col&quot;&gt;
  &lt;h4 class=&quot;block-title&quot;&gt;Showcase gallery&lt;/h4&gt;
	&lt;div class=&quot;block-body&quot;&gt;
		&lt;ul class=&quot;item-list-round&quot; data-magnific=&quot;gallery&quot;&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/03_showcase/00.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/03_showcase/00.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/03_showcase/01.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/03_showcase/01.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/03_showcase/02.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/03_showcase/02.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/03_showcase/03.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/03_showcase/03.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/03_showcase/04.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/03_showcase/04.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/03_showcase/05.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/03_showcase/05.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
		&lt;/ul&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;hr style=&quot;clear:both; border:0px solid #fff;&quot; /&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;video width=&quot;480&quot; height=&quot;320&quot; controls=&quot;controls&quot;&gt;
    &lt;source src=&quot;/static/homelab/02_building/after/93.mp4&quot; type=&quot;video/mp4&quot; /&gt;
  &lt;/video&gt;
&lt;/div&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;video width=&quot;480&quot; height=&quot;320&quot; controls=&quot;controls&quot;&gt;
    &lt;source src=&quot;/static/homelab/02_building/after/94.mp4&quot; type=&quot;video/mp4&quot; /&gt;
  &lt;/video&gt;
&lt;/div&gt;

&lt;h2 id=&quot;status&quot;&gt;Status&lt;/h2&gt;

&lt;p&gt;At the moment some pictures of the build…&lt;/p&gt;

&lt;div class=&quot;col&quot;&gt;
  &lt;h4 class=&quot;block-title&quot;&gt;Showcase gallery&lt;/h4&gt;
	&lt;div class=&quot;block-body&quot;&gt;
		&lt;ul class=&quot;item-list-round&quot; data-magnific=&quot;gallery&quot;&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/homelab/04_state/00_homelab_status_2023_08.jpg&quot; style=&quot;background-image: url(&apos;/static/homelab/04_state/00_homelab_status_2023_08.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
		&lt;/ul&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;hr style=&quot;clear:both; border:0px solid #fff;&quot; /&gt;

&lt;h2 id=&quot;deploying&quot;&gt;Deploying&lt;/h2&gt;

&lt;p&gt;To deploy things here I’m using Ansible, and tools like Kubeinit, these are designed to simplify the
process of setting up and managing complex infrastructure, such as Kubernetes clusters, within a homelab
environment.&lt;/p&gt;

&lt;p&gt;Let’s talk about deployment tools for homelabs, like Kubeinit. These tools are super handy when you want
to set up and manage complex stuff like Kubernetes clusters in your homelab. Kubeinit, for example, is an
awesome open-source tool that makes deploying Kubernetes a breeze. It takes care of all the nitty-gritty
installation and configuration details, so you don’t have to stress about it. Plus, it lets you customize
your cluster to fit your needs. And the best part? There’s a friendly community around tools like Kubeinit
that’s always ready to lend a hand and share their wisdom.&lt;/p&gt;

&lt;p&gt;Kubeinit is an open-source deployment tool specifically tailored for setting up Kubernetes clusters.
It aims to provide an easy and reproducible way to deploy Kubernetes in different configurations,
such as single-node or multi-node clusters. Kubeinit automates the installation process, handles configuration
management, and assists in deploying additional services and tools commonly used with Kubernetes.&lt;/p&gt;

&lt;p&gt;Deployment tools like Kubeinit can be highly beneficial for homelab enthusiasts looking to leverage Kubernetes
and containerization technologies. They simplify the setup process, reduce manual work, and provide a standardized
approach to deploying and managing Kubernetes clusters within a homelab environment.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/homelab/00_intro/deploy.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;update-log&quot;&gt;Update log:&lt;/h2&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;2023/05/26:&lt;/strong&gt; Initial version.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;2023/10/04:&lt;/strong&gt; Status gallery.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Agile 101 +Jira</title>
    <summary>Agile methodologies are a set of iterative and incremental approaches to software development that prioritize collaboration, flexibility, and rapid response to change. NOTE: WIP document subject to changes. Agile 101 - DFG:Upgrades (migrations, adoption, and backup and recovery) Benefits Some...</summary>
    <link href="https://www.pubstack.com/blog/2023/03/23/Agile-101.html"/>
    <updated>2023-03-23T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2023/03/23/Agile-101</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Agile methodologies are a set of iterative and incremental approaches to software development that prioritize collaboration, flexibility, and rapid response to change.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;NOTE:&lt;/em&gt;&lt;/strong&gt;  WIP document subject to changes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;agile-101---dfgupgrades-migrations-adoption-and-backup-and-recovery&quot;&gt;Agile 101 - DFG:Upgrades (migrations, adoption, and backup and recovery)&lt;/h2&gt;

&lt;h3 id=&quot;benefits&quot;&gt;Benefits&lt;/h3&gt;

&lt;p&gt;Some benefits include:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Increased flexibility: Agile methodologies enable teams to respond quickly to changes in requirements, timelines, or resources. Teams can adjust their approach based on feedback from stakeholders or changes in the market.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Better collaboration: Agile methodologies emphasize communication and collaboration between team members, stakeholders, and customers. This leads to better alignment and understanding of project goals and expectations.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Improved quality: Agile methodologies prioritize continuous testing and feedback, leading to higher-quality software products.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Faster time-to-market: Agile methodologies help teams deliver software products faster and more frequently. This enables teams to respond quickly to changing market conditions and customer needs.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Increased customer satisfaction: By prioritizing collaboration, feedback, and responsiveness, agile methodologies help teams deliver products that better meet customer needs and expectations.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also, Agile methodologies improve team performance and vision by promoting:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Transparency: Agile methodologies encourage teams to be transparent about their progress, challenges, and goals. This helps teams stay aligned and focused on the most important priorities.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Continuous improvement: Agile methodologies encourage teams to reflect on their processes and outcomes and make changes based on feedback. This helps teams continually improve and innovate.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Empowerment: Agile methodologies empower team members to take ownership of their work, make decisions, and collaborate with others. This leads to higher levels of engagement, creativity, and job satisfaction.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Agile methodologies are a powerful approach to software development that promote collaboration, flexibility, and continuous improvement. They can help teams deliver higher-quality software products faster, while also increasing customer satisfaction and team morale.&lt;/p&gt;

&lt;h3 id=&quot;core-values&quot;&gt;Core values&lt;/h3&gt;

&lt;p&gt;The Agile Manifesto outlines four core values that underpin all agile methodologies:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Individuals and interactions over processes and tools: This value emphasizes the importance of people and collaboration in the software development process. Agile methodologies prioritize face-to-face communication, feedback, and collaboration among team members and stakeholders over following rigid processes or relying on tools.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Working software over comprehensive documentation: This value prioritizes delivering working software over spending time and resources on extensive documentation. Agile methodologies emphasize the importance of frequent releases and testing to ensure that software is functional and meets user needs.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Customer collaboration over contract negotiation: This value emphasizes the importance of working closely with customers and stakeholders throughout the software development process. Agile methodologies prioritize customer feedback and input to ensure that the final product meets their needs and expectations.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Responding to change over following a plan: This value recognizes that the software development process is inherently unpredictable and that plans may need to change. Agile methodologies prioritize flexibility and the ability to respond quickly to changes in requirements, timelines, or resources.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These core values guide the behavior and decision-making of agile teams and help them deliver high-quality software products that meet customer needs and expectations.&lt;/p&gt;

&lt;h3 id=&quot;principles&quot;&gt;Principles&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Customer satisfaction: Delivering value to the customer is the highest priority.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Changing requirements: Agile processes are flexible and can adapt to changing requirements, even in the later stages of development.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Delivering frequently: Frequent delivery of working software builds trust, encourages feedback, and enables the customer to realize benefits earlier.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Collaboration: Agile processes emphasize collaboration between customers, developers, and stakeholders to ensure the best outcome.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Motivated individuals: Teams should be composed of self-motivated individuals who are empowered to make decisions and work collaboratively.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Face-to-face communication: Communication is key, and face-to-face communication is the most effective way to convey information.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Working software: Working software is the primary measure of progress.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Sustainable development: Agile processes promote sustainable development, with a focus on maintaining a steady pace and avoiding burnout.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Technical excellence: A strong focus on technical excellence is necessary to maintain quality and enable agility.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Simplicity: Simplicity is a key aspect of agile development, with a focus on delivering the simplest possible solution that meets customer needs.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Self-organizing teams: Teams should be self-organizing, with the ability to adapt to changing requirements and make decisions.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Reflection and adaptation: Agile processes promote reflection and adaptation, with a focus on continuous improvement and learning from experience.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;roles&quot;&gt;Roles&lt;/h3&gt;

&lt;p&gt;The main roles in agile are:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Product Owner: The product owner is responsible for defining and prioritizing the features of the product or service being developed. They are the primary point of contact for the development team and are responsible for communicating the vision and goals of the product to the team.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Scrum Master: The scrum master is responsible for ensuring that the development team follows the agile process and for facilitating communication and collaboration within the team. They help remove obstacles and ensure that the team is working efficiently and effectively.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Development Team: The development team is responsible for designing, developing, testing, and delivering the product or service being developed. They work together to complete the tasks necessary to meet the project goals.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Stakeholders: Stakeholders are individuals or groups with an interest in the project, such as customers, users, or managers. They provide feedback and input to the product owner and development team to ensure that the product meets their needs and expectations.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Agile Coach: An agile coach is a mentor who helps teams adopt and implement agile methodologies. They provide guidance and support to the team and help them identify areas for improvement.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Business Analyst: A business analyst is responsible for understanding and documenting the requirements of the product or service being developed. They work closely with the product owner to ensure that the development team understands the project goals and requirements.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Quality Assurance (QA) Engineer: A QA engineer is responsible for testing the product or service to ensure that it meets quality standards and user requirements. They work closely with the development team to identify and resolve defects.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The specific roles and responsibilities may vary depending on the particular agile methodology being used and the needs of the project.&lt;/p&gt;

&lt;h3 id=&quot;agile-components&quot;&gt;Agile components&lt;/h3&gt;

&lt;p&gt;The six key components that make up the Agile methodology:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;User Stories: User stories are brief, non-technical descriptions of a feature or requirement from the user’s perspective. They are used to capture user requirements and help the development team understand what the user wants.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Backlog: The product backlog is a prioritized list of user stories or features that need to be developed. It is managed by the product owner and is used to guide the development team’s work.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Sprints: Sprints are short, time-boxed iterations in which the development team works to deliver a set of features or user stories. Sprints typically last 1-4 weeks, and at the end of each sprint, the team delivers a potentially shippable product increment.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Daily Stand-ups: Daily stand-ups are brief, daily meetings in which the development team discusses progress, identifies obstacles, and plans the day’s work. They are intended to keep the team informed and ensure that everyone is working towards the same goals.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Sprint Review: The sprint review is a meeting held at the end of each sprint to demonstrate the work that has been completed to the stakeholders. It is an opportunity for the team to get feedback on the product and make any necessary adjustments.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Sprint Retrospective: The sprint retrospective is a meeting held at the end of each sprint to review the team’s process and identify areas for improvement. The team reflects on what went well and what didn’t, and then makes adjustments for the next sprint.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These six components work together to guide the agile process, from capturing user requirements through to delivering a high-quality product increment at the end of each sprint.&lt;/p&gt;

&lt;h3 id=&quot;agile-phases&quot;&gt;Agile Phases&lt;/h3&gt;

&lt;p&gt;While there are different variations of the Agile methodology, most include the following phases:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Project Initiation: In this phase, the team identifies the scope of the project, the stakeholders involved, and the objectives and goals of the project. The team also establishes the project’s vision and creates a product roadmap to guide the development process.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Planning and Requirements Analysis: In this phase, the team identifies the user requirements and translates them into user stories or features. The product backlog is created and prioritized based on customer needs and business objectives. The team also creates a project plan, which outlines the timeline, resources, and budget required to complete the project.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Design and Prototyping: In this phase, the team designs the architecture of the system and creates a prototype of the product. The design and prototype are reviewed and tested to ensure they meet the user requirements and project goals.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Development and Iterations: In this phase, the team begins to develop the product incrementally through a series of iterations or sprints. Each iteration typically lasts 1-4 weeks and results in a working product increment. The team conducts regular sprint reviews and retrospectives to evaluate progress and identify areas for improvement.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Testing: In this phase, the team tests the product to ensure that it meets the user requirements and quality standards. Testing is conducted throughout the development process and includes unit testing, integration testing, and acceptance testing.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Deployment and Maintenance: In this phase, the team deploys the product to the production environment and provides ongoing maintenance and support. The team continues to refine the product based on user feedback and implements updates and improvements as necessary.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s important to note that Agile methodology is iterative and flexible, and these phases are not necessarily sequential. The team can move back and forth between phases as needed to respond to changes and adjust the product as it evolves.&lt;/p&gt;

&lt;h2 id=&quot;delivery-focused-group-dfg-internal-mechanics&quot;&gt;Delivery Focused Group (DFG) internal mechanics&lt;/h2&gt;

&lt;p&gt;A delivery focused group is responsible end-to-end for the delivery of the stories
(includes improvements that can’t be characterized as features, delivering new upstream
releases, bug fixing, errata, test coverage improvements, working with support and the field, etc…) in its functional scope. The group is cross-functional, regrouping product managers, engineers and quality engineers to achieve the delivery.&lt;/p&gt;

&lt;p&gt;Groups will cross organizational boundaries, but also technology component boundaries. For example a group in charge of developing a feature will also take care of the installation, update and upgrade of this feature using the framework provided by the deployment tooling group. The group is responsible for the product implementation: its members determine the technical solution in their area of concern. They are maintaining one backlog for each group. The delivery focused groups should be small (5 to 9), and our goal is to aim to self-organisation. You can only be on one team at a time.&lt;/p&gt;

&lt;h3 id=&quot;organization-of-the-dfgupgrades-squads&quot;&gt;Organization of the DFG:Upgrades (squads)&lt;/h3&gt;

&lt;p&gt;The DFG:Upgrades provides and maintain a framework for migrating, updating or upgrading from an earlier version of Red Hat OpenStack (OSP) version to an equal or later version.&lt;/p&gt;

&lt;p&gt;There are three squads in this DFG, each of them with  an specific core mission.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Updates&lt;/th&gt;
      &lt;th&gt;Upgrades&lt;/th&gt;
      &lt;th&gt;Migrations, adoption, and backup and recovery&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;…&lt;/td&gt;
      &lt;td&gt;…&lt;/td&gt;
      &lt;td&gt;OpenStack migration tooling (OS migrate)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;…&lt;/td&gt;
      &lt;td&gt;…&lt;/td&gt;
      &lt;td&gt;Next-gen adoption framework&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;…&lt;/td&gt;
      &lt;td&gt;…&lt;/td&gt;
      &lt;td&gt;Backup and recovery strategies for updates and upgrades&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;agile-tooling-for-the-squad&quot;&gt;Agile tooling for the squad&lt;/h3&gt;

&lt;h4 id=&quot;main-jira-plan&quot;&gt;Main Jira plan&lt;/h4&gt;

&lt;p&gt;A Jira plan is a high-level view of a project’s roadmap, timelines, and milestones. It is a visual representation of the project plan that allows teams to see the big picture and understand how different tasks and issues fit together. Jira plans can include details such as start and end dates, priorities, dependencies, and progress indicators. They are often used to communicate project status and progress to stakeholders, and can help teams stay aligned and focused on project goals. Jira plans can be created and managed within the Jira software, and are often used in conjunction with other Jira tools such as boards and dashboards. It allows:&lt;/p&gt;

&lt;p&gt;Resource allocation: Jira Plan allows teams to allocate resources effectively by identifying tasks and assigning them to specific team members.&lt;/p&gt;

&lt;p&gt;Time management: Jira Plan helps teams manage their time more efficiently by setting deadlines and prioritizing tasks.&lt;/p&gt;

&lt;p&gt;Budgeting: Jira Plan can be used to monitor project budgets and ensure that resources are being used effectively.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agile_101/plan.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;In particular the above image shows the &lt;a href=&quot;https://issues.redhat.com/secure/PortfolioPlanView.jspa?id=1988&amp;amp;sid=1996#plan/backlog&quot;&gt;Jira plan&lt;/a&gt; for OSP, including a time-based view of the roadmap, timelines, and milestones.&lt;/p&gt;

&lt;h4 id=&quot;main-jira-board&quot;&gt;Main Jira board&lt;/h4&gt;

&lt;p&gt;A Jira board is a visual representation of a team’s work that allows team members to track and manage their tasks and issues in real-time. Jira boards can be customized to reflect a team’s unique workflow and can include different views, such as a Kanban board or a Scrum board.&lt;/p&gt;

&lt;p&gt;In a Kanban board, tasks are represented as cards that move across different columns that reflect different stages of the workflow, such as “To Do,” “In Progress,” and “Done.” The columns can be customized to match the team’s specific workflow, and team members can easily see the status of each task and identify any bottlenecks or areas for improvement.&lt;/p&gt;

&lt;p&gt;In a Scrum board, tasks are represented as cards that are grouped into sprints, which are typically two-week time periods in which the team works to complete specific goals. The Scrum board includes columns for the different stages of the sprint, such as “To Do,” “In Progress,” “Code Review,” and “Done,” and team members can track the progress of each task and see how it fits into the larger sprint goal.&lt;/p&gt;

&lt;p&gt;Jira boards can be used by development teams, project managers, and other stakeholders to manage and track work in real-time, and to ensure that everyone is aligned and focused on the team’s goals.&lt;/p&gt;

&lt;p&gt;Visualization: Jira Board provides a visual representation of tasks and project progress, making it easier for team members to see what’s been done and what still needs to be done.&lt;/p&gt;

&lt;p&gt;Collaboration: Jira Board facilitates collaboration and communication between team members, allowing them to easily see what others are working on and identify areas where they can help.&lt;/p&gt;

&lt;p&gt;Prioritization: Jira Board helps teams prioritize tasks and focus on what’s most important, ensuring that the team is working on the right things at the right time.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agile_101/board_main.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;In particular the previous image, the &lt;a href=&quot;https://issues.redhat.com/secure/RapidBoard.jspa?rapidView=16007&amp;amp;view=reporting&amp;amp;chart=burndownChart&amp;amp;sprint=49387&quot;&gt;Jira DFG:Upgrades board link&lt;/a&gt; shows the whole team work.&lt;/p&gt;

&lt;h4 id=&quot;squad-board&quot;&gt;Squad board&lt;/h4&gt;

&lt;p&gt;The squad board is represented by a subset of the filters used for the main DFG Jira board. This can help different squads part of the main DFG to focus on specific subsets of work, and to avoid being overwhelmed by too much information.&lt;/p&gt;

&lt;p&gt;For example, a DFG might have a main Jira board that includes all of their projects and issues, but they may also have sub-boards for each squad that focus on specific projects or workflows. These sub-boards would only include the filters and columns that are relevant to that specific project or workflow, allowing team members to focus on the work that is most important to them.&lt;/p&gt;

&lt;p&gt;Sub-boards can also be used to create more detailed views of specific issues or sets of issues. For example, a team might create a sub-board that shows all of the issues related to a specific feature or bug fix, allowing them to easily track progress and collaborate on solutions.&lt;/p&gt;

&lt;p&gt;Managing sub-boards might be a useful tool for organizing and managing work in Jira, and can help teams to stay focused and productive.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agile_101/board_secondary.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;In particular the previous image, the &lt;a href=&quot;https://issues.redhat.com/secure/RapidBoard.jspa?rapidView=16774&amp;amp;view=reporting&amp;amp;chart=burndownChart&amp;amp;sprint=49387&quot;&gt;Jira DFG:Upgrades squad sub-board link&lt;/a&gt; shows a sub-set of all the tasks for the team, so the squad can be focused on their specific planned work. It is important to show that this view gives us the ability to compare the overall team’s progress with respect of each squad.&lt;/p&gt;

&lt;h4 id=&quot;squad-dashboard&quot;&gt;Squad dashboard&lt;/h4&gt;

&lt;p&gt;A Jira dashboard is a customizable, visual display of key metrics and information from Jira projects and issues. It is designed to provide users with a high-level overview of project status, progress, and key performance indicators (KPIs).&lt;/p&gt;

&lt;p&gt;Jira dashboards can be configured to display different types of data, such as progress of individual projects, workload of team members, and number of open and closed issues. They can also include custom widgets and gadgets, such as charts, graphs, and filters, that allow users to drill down into specific data and see details about individual issues or projects.&lt;/p&gt;

&lt;p&gt;Jira dashboards can be personalized to meet the needs of individual users, teams, or departments, and can be shared across the organization to ensure everyone is aligned and working towards the same goals. They are a powerful tool for project managers and team members to stay on top of their work and make informed decisions based on real-time data. In particular, they allow:&lt;/p&gt;

&lt;p&gt;Performance tracking: Jira Dashboards provide real-time insights into project performance, enabling teams to identify areas for improvement and track progress against goals.&lt;/p&gt;

&lt;p&gt;Customization: Jira Dashboards can be customized to display the information that’s most important to each team member, helping to streamline workflows and improve productivity.&lt;/p&gt;

&lt;p&gt;Decision making: Jira Dashboards provide the information needed to make informed decisions, helping teams to adjust course and make changes as needed.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agile_101/dashboard.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The previous image shows the &lt;a href=&quot;https://issues.redhat.com/secure/Dashboard.jspa?selectPageId=12349106&quot;&gt;Jira DFG:Upgrades migrations dashboard&lt;/a&gt; where it can be seen:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The remaining days of the sprint.&lt;/li&gt;
  &lt;li&gt;The people involved in the squad tasks.&lt;/li&gt;
  &lt;li&gt;The effort allocation for the remaining tasks planned for the sprint.&lt;/li&gt;
  &lt;li&gt;The current open tasks for the sprint.&lt;/li&gt;
  &lt;li&gt;The current closed tasks for the sprint.&lt;/li&gt;
  &lt;li&gt;The already groomed list of tasks that will be planned for the next sprint.&lt;/li&gt;
  &lt;li&gt;Both burn-down charts for the whole team and the squad.&lt;/li&gt;
  &lt;li&gt;The list of epics that should be worked on.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;sprint-timeline&quot;&gt;Sprint Timeline&lt;/h4&gt;

&lt;p&gt;As the sprint moves forward there are a set of activities that are handled by all the team members.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Sprint Planning&lt;/th&gt;
      &lt;th&gt;Sprint Execution&lt;/th&gt;
      &lt;th&gt;Sprint Review&lt;/th&gt;
      &lt;th&gt;Sprint Retrospective&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Determine scope and objectives of the sprint.&lt;/td&gt;
      &lt;td&gt;Develop and test user stories.&lt;/td&gt;
      &lt;td&gt;Demo the product to stakeholders and gather feedback.&lt;/td&gt;
      &lt;td&gt;Reflect on the sprint and identify areas for improvement.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Create a sprint backlog.&lt;/td&gt;
      &lt;td&gt;Conduct daily stand-up meetings.&lt;/td&gt;
      &lt;td&gt;Review and prioritize backlog for next sprint.&lt;/td&gt;
      &lt;td&gt;Discuss what went well, what could have been better, and how to improve.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Define user stories and acceptance criteria.&lt;/td&gt;
      &lt;td&gt;Collaborate and communicate with team members.&lt;/td&gt;
      &lt;td&gt;Analyze metrics and data to identify areas for improvement.&lt;/td&gt;
      &lt;td&gt;Assign action items and determine a plan for implementing changes.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Estimate the effort required for each user story.&lt;/td&gt;
      &lt;td&gt;Conduct user testing and integrate feedback.&lt;/td&gt;
      &lt;td&gt;Celebrate successes and recognize team members for their contributions.&lt;/td&gt;
      &lt;td&gt;Plan for the next sprint and make adjustments as needed.&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h4 id=&quot;constant-grooming-and-backlog-ranking&quot;&gt;Constant grooming and backlog ranking&lt;/h4&gt;

&lt;p&gt;It might be considered a good practice to do constant grooming and backlog ranking in agile development.&lt;/p&gt;

&lt;p&gt;Grooming, also known as backlog refinement, is the process of reviewing and updating the product backlog to ensure that it is up-to-date and prioritized. This involves reviewing user stories, breaking them down into smaller tasks, and estimating the effort required to complete each task. By doing this regularly, the team can ensure that the backlog is accurate and up-to-date, and that everyone understands the scope of the work that needs to be done.&lt;/p&gt;

&lt;p&gt;Backlog ranking is the process of prioritizing user stories and tasks based on their importance and value to the product. This involves considering factors such as customer needs, business goals, and technical dependencies, and assigning each item in the backlog a priority level. By doing this regularly, the team can ensure that they are always working on the most important and valuable items, and that they are delivering value to the customer in a timely manner.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/agile_101/grooming.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The previous image shows in each sprint how the process of constantly revising the backlog and ranking the tasks takes place.&lt;/p&gt;

&lt;p&gt;By doing constant grooming and backlog ranking, the team can stay focused on the most important work, and can ensure that they are delivering value to the customer in a timely manner. This helps to ensure that the project stays on track, and that the team is able to deliver a high-quality product that meets the needs of the customer.&lt;/p&gt;

&lt;h2 id=&quot;some-final-conclusions&quot;&gt;Some final conclusions&lt;/h2&gt;

&lt;p&gt;Agile is an iterative and flexible approach to software development that emphasizes collaboration, customer satisfaction, and continuous improvement. It consists of a set of core values, such as valuing individuals and interactions over processes and tools, and 12 principles, such as delivering working software frequently and embracing change.&lt;/p&gt;

&lt;p&gt;Agile methodology is made up of six key components, including user stories, backlog, sprints, daily stand-ups, sprint review, and sprint retrospective. These components work together to guide the agile process, from capturing user requirements through to delivering a high-quality product increment at the end of each sprint.&lt;/p&gt;

&lt;p&gt;By embracing agile methodologies, teams can achieve a variety of benefits, such as increased productivity, better collaboration, improved quality, faster time-to-market, and greater customer satisfaction. By focusing on continuous improvement and adapting to change, agile teams can remain responsive to customer needs and competitive in an ever-changing market.&lt;/p&gt;

&lt;p&gt;Jira is a popular project management tool that can be used to support agile development. It includes a number of features, such as Jira plans, boards, and dashboards, that allow teams to plan, track, and manage their work in a flexible and collaborative way.&lt;/p&gt;

&lt;p&gt;Jira plans are high-level roadmaps that help teams to visualize their work over time, and to track progress towards their goals. Jira boards are visual representations of the work that needs to be done, and can be customized to reflect different workflows and priorities. Jira dashboards are customizable views that provide users with a high-level overview of project status and progress, and can be personalized to meet the needs of individual users or teams.&lt;/p&gt;

&lt;p&gt;Some of the benefits of using Jira for agile development include improved collaboration, increased transparency, and better visibility into project status and progress. By using Jira, teams can stay organized, focused, and productive, and can deliver high-quality software products that meet the needs of their customers.&lt;/p&gt;

&lt;p&gt;Finally, constant grooming and backlog ranking are important practices in agile development that help teams to stay focused on the most important work, and to deliver value to the customer in a timely manner. By regularly reviewing and updating the backlog, teams can ensure that they are working on the most important and valuable items, and can adjust their plans as needed to stay on track.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>ChatGPT a world breaker technology</title>
    <summary>ChatGPT is a large language model developed by OpenAI. It is a variant of the GPT (Generative Pre-training Transformer) model, which is trained on a massive amount of text data and is capable of generating human-like text. Benefits of ChatGPT...</summary>
    <link href="https://www.pubstack.com/blog/2022/12/10/chatgpt.html"/>
    <updated>2022-12-10T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2022/12/10/chatgpt</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;ChatGPT is a large language model developed by OpenAI.
It is a variant of the GPT (Generative Pre-training Transformer) model,
which is trained on a massive amount of text data and is capable of
generating human-like text.&lt;/p&gt;

&lt;h2 id=&quot;benefits-of-chatgpt&quot;&gt;Benefits of ChatGPT&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;ChatGPT’s ability to generate human-like text makes
it useful in a variety of applications such as chatbots,
language translation, and text summarization.&lt;/li&gt;
  &lt;li&gt;ChatGPT can be fine-tuned on specific tasks, such as
answering questions, providing information, or composing
coherent and grammatically correct text.&lt;/li&gt;
  &lt;li&gt;ChatGPT’s ability to understand and respond to context
allows it to generate text that is relevant to the input it receives.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;potential-usage-of-chatgpt&quot;&gt;Potential usage of ChatGPT&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Chatbots for customer service, virtual assistance, and e-commerce.&lt;/li&gt;
  &lt;li&gt;Generating text for social media, email, and messaging platforms.&lt;/li&gt;
  &lt;li&gt;Improving language translation and summarization systems.&lt;/li&gt;
  &lt;li&gt;Helping with content creation, such as composing articles, stories, or poetry.&lt;/li&gt;
  &lt;li&gt;Generating responses in virtual reality and gaming
and many more.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;technical-details&quot;&gt;Technical details&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;ChatGPT is based on the transformer architecture.&lt;/li&gt;
  &lt;li&gt;It is trained on a massive amount of text data, which allows it to generate human-like text.&lt;/li&gt;
  &lt;li&gt;The cost to run ChatGPT will depend on the specific use case and the hardware it is running on.&lt;/li&gt;
  &lt;li&gt;The cost can be reduced by using the model in a “serverless” fashion, where the model is hosted by the provider and you only pay for the computation you use.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;ChatGPT is a powerful and versatile language model that can be used to improve a wide range of natural language processing tasks. Its ability to generate human-like text, understand context, and perform various language-based tasks makes it an attractive option for developers and researchers looking to build advanced language-based applications.&lt;/p&gt;

&lt;p&gt;This article was generated with ChatGPT.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Deploying a Kubernetes cluster with Windows containers support</title>
    <summary>Workloads running on top of Windows-based infrastructure still represent a huge opportunity for ‘the cloud’, specific applications like video-games development (Unity) rely heavily on the Microsoft Windows ecosystem to work and be used among developers and customers. Hence the need...</summary>
    <link href="https://www.pubstack.com/blog/2022/06/30/Kubernetes-cluster-with-Windows-containers-support.html"/>
    <updated>2022-06-30T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2022/06/30/Kubernetes-cluster-with-Windows-containers-support</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Workloads running on top of Windows-based infrastructure still
represent a huge opportunity for ‘the cloud’, specific applications
like video-games development (Unity) rely heavily on the Microsoft Windows ecosystem
to work and be used among developers and customers. Hence the need
to provide a consistent cloud infrastructure for such Windows based software.&lt;/p&gt;

&lt;h1 id=&quot;tldr&quot;&gt;TL;DR;&lt;/h1&gt;

&lt;p&gt;This post will show you how to deploy a Kubernetes cluster with
Windows containers support, and what to expect from it.&lt;/p&gt;

&lt;h2 id=&quot;the-good-the-bad-and-the-ugly&quot;&gt;The good, the bad and the ugly&lt;/h2&gt;

&lt;p&gt;From what is available in the documentation, the support for Windows workloads
started in Kubernetes 1.5 (2017 ‘alfa’), and as a stable build on K8s 1.14 (2019),
but even at the moment of writing this post, all the documentation, the
container runtime support, and the CNI connectivity supporting this type of
specific workloads is fairly limited. Before showing the actual 1-command deployment
magic, this post will go through an brief review about what was needed, and what was
done to have this ‘working’.&lt;/p&gt;

&lt;p&gt;The following sections are an initial assessment of what is working, and how easy is to
integrate these functional components in a more fashioned and automated way using Kubeinit.&lt;/p&gt;

&lt;h3 id=&quot;the-good&quot;&gt;The good&lt;/h3&gt;

&lt;p&gt;It works!!!. With some specific limitations about the container runtimes that are
supported, and the CNI plugins that have support for topologies like vxlan tunnels
you can have something working once you know what is currently supported for your distro.&lt;/p&gt;

&lt;p&gt;There are a lot of resources spread on the Internet that will give you an idea of what
should work, and in some cases how-to deploy it.&lt;/p&gt;

&lt;h4 id=&quot;useful-links&quot;&gt;Useful links:&lt;/h4&gt;

&lt;p&gt;This is the partial list of resources checked to finish the integration of Windows workloads
in Kubeinit:&lt;/p&gt;

&lt;p&gt;Blog posts and documentation:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;https://www.jamessturtevant.com/posts/Windows-Containers-on-Windows-10-without-Docker-using-Containerd/&lt;/li&gt;
  &lt;li&gt;https://github.com/lippertmarkus/vagrant-k8s-win-hostprocess&lt;/li&gt;
  &lt;li&gt;https://docs.microsoft.com/en-us/virtualization/windowscontainers/kubernetes/common-problems&lt;/li&gt;
  &lt;li&gt;https://techcommunity.microsoft.com/t5/networking-blog/introducing-kubernetes-overlay-networking-for-windows/ba-p/363082&lt;/li&gt;
  &lt;li&gt;https://deepkb.com/CO_000014/en/kb/IMPORT-4bb99d54-1582-32fa-b130-b496089f7678/guide-for-adding-windows-nodes-in-kubernetes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Official code from Kubernetes:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;https://github.com/kubernetes/kubernetes/issues/94924&lt;/li&gt;
  &lt;li&gt;https://github.com/kubernetes/kubernetes/blob/master/cluster/gce/windows/k8s-node-setup.psm1&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Code from the CNI Microsoft team:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;https://github.com/Microsoft/SDN/blob/master/Kubernetes/windows/start-kubelet.ps1&lt;/li&gt;
  &lt;li&gt;https://github.com/microsoft/SDN/blob/master/Kubernetes/windows/helper.psm1&lt;/li&gt;
  &lt;li&gt;https://github.com/microsoft/SDN/tree/master/Kubernetes/flannel/overlay&lt;/li&gt;
  &lt;li&gt;https://github.com/microsoft/SDN/blob/master/Kubernetes/flannel/register-svc.ps1&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Code from the Windows K8s sig:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;https://github.com/kubernetes-sigs/sig-windows-dev-tools&lt;/li&gt;
  &lt;li&gt;https://github.com/kubernetes-sigs/sig-windows-tools/issues/128&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Code from the CNI dev team:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;https://github.com/containernetworking/plugins/blob/main/plugins/main/windows/win-overlay/sample-v2.conf&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;the-bad&quot;&gt;The bad&lt;/h3&gt;

&lt;p&gt;It is pretty cumbersome to catch all the steps, ordering, and combinations of services
that actually work. Also, the support for different distributions might lead to being
forced to use i.e. container runtimes which at the moment are just not supported.&lt;/p&gt;

&lt;h3 id=&quot;the-ugly&quot;&gt;The ugly&lt;/h3&gt;

&lt;p&gt;While reading about what to install and how to configure I ended up with situations like the next one.
What’s the difference between sdnoverlay from
&lt;a href=&quot;https://github.com/microsoft/windows-container-networking/releases/download/v0.3.0/windows-container-networking-cni-amd64-v0.3.0.zip&quot;&gt;microsoft/windows-container-networking&lt;/a&gt;
and winoverlay from
&lt;a href=&quot;https://github.com/containernetworking/plugins/releases/download/v1.1.1/cni-plugins-windows-amd64-v1.1.1.tgz&quot;&gt;containernetworking/plugins&lt;/a&gt;
remains unknown to me (mostly because of my limited time to dig into it with more detail), they are supposed
to do the same, but there are plugins maintained by different folks with different names,
so it created a little bit (or too much) confusion for me when doing this initial integration.&lt;/p&gt;

&lt;p&gt;We assume by default that the components that can be consumed in their “stable” releases will just work.
An example of this “not happening” is this, by default, I thought that the CNI plugin winoverlay will
work “as-is” in Vanilla Kubernetes, because this same configuration is supported and working on OpenSHift and OKD.
This assumption might not be true, at the moment of writing this post (July 1st, 2022), the support for containerD and Windows compute nodes in this
&lt;a href=&quot;https://github.com/containernetworking/plugins/pull/725&quot;&gt;GitHub PR&lt;/a&gt; is merged, but not released upstream (v1.1.1 does not have this change)
so whatever you pull from the released versions will just won’t work…&lt;/p&gt;

&lt;h2 id=&quot;architectural-considerations-and-deployment&quot;&gt;Architectural considerations and deployment&lt;/h2&gt;

&lt;p&gt;Before going ahead, this section will briefly introduce Kubeinit’s architectural reference
so you know ahead what is deployed, where, and how.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/arch/kubeinit_network_legend.png&quot; alt=&quot;&quot; /&gt;
The picture above shows the legend of the main functional components of the platform.&lt;/p&gt;

&lt;p&gt;The left icon represents the services pod, that will run all the infrastructure services required to have the cluster up and running, services like HAProxy, Bind, and a local container registry among others that will support the cluster external required services.&lt;/p&gt;

&lt;p&gt;The right icon represents the Virtual Machines instances that will host each node of the cluster, these nodes can be, the control-plane nodes and the worker nodes, the control-plane nodes will be Linux, and depending on the Kubernetes distribution they will have installed CentOS Stream, Debian, Fedora CoreOS, or CoreOS. The worker nodes will have the same Linux distribution as the control-plane nodes with the addition of the recently added Windows worker nodes.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/arch/kubeinit_network_physical.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Now, we have a representation of the physical topology of a deployed cluster, the requirement is to have a set of hypervisors where the cluster nodes (guests) will be deployed, these hypervisors must be connected in a way that they can all reach each others (or having them connected in a L2 segment). Another assumed-by-default requirement is to have
SSH passwordless access to the nodes where you are calling Ansible from.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/arch/kubeinit_network_logical.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The logical topology represents a fairly more detailed view about how the components are actually ‘connected’
by allowing all the guests in the cluster (including the services pod) to be reachable without any distinction
of what is deployed where within the cluster.&lt;/p&gt;

&lt;p&gt;In this particular case, we have installed OVS in each hypervisor and by using OVN we create an internal overlay
network to provide a consistent and uniform way to access any cluster resource.&lt;/p&gt;

&lt;h3 id=&quot;latest-kubeinits-support-for-windows-workloads&quot;&gt;Latest Kubeinit’s support for Windows workloads&lt;/h3&gt;

&lt;p&gt;With some context of what will be deployed from the previous sections, let’s go ahead
and test this awesome cool feature in a magical 1-command deployment.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;NOTE: Please check the complete instructions from the main
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit#readme&quot;&gt;README&lt;/a&gt; page,
also, a good reference to know the hypervisor requirements is the
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/blob/main/ci/install_gitlab_node.sh&quot;&gt;CI install script&lt;/a&gt;
there you will find what is required to set up the hypervisors based on Debian/Ubuntu/CentOS Stream/Fedora.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;deploying&quot;&gt;Deploying&lt;/h3&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Install the requirements assuming python3/pip3 is installed
pip3 install \
        --upgrade \
        pip \
        shyaml \
        ansible \
        netaddr

# Get the project&apos;s source code
git clone https://github.com/Kubeinit/kubeinit.git
cd kubeinit

# Install the Ansible collection requirements
ansible-galaxy collection install --force --requirements-file kubeinit/requirements.yml

# Build and install the collection
rm -rf ~/.ansible/collections/ansible_collections/kubeinit/kubeinit
ansible-galaxy collection build kubeinit --verbose --force --output-path releases/
ansible-galaxy collection install --force --force-with-deps releases/kubeinit-kubeinit-`cat kubeinit/galaxy.yml | shyaml get-value version`.tar.gz

# Run the deployment
ansible-playbook \
    --user root \
    -v \
    -e kubeinit_spec=&quot;k8s-libvirt-1-1-1&quot; \
    -e kubeinit_libvirt_cloud_user_create=true \
    -e hypervisor_hosts_spec=&apos;[[ansible_host=nyctea],[ansible_host=tyto]]&apos; \
    -e cluster_nodes_spec=&apos;[[when_group=compute_nodes,os=windows]]&apos; \
    -e compute_node_ram_size=16777216 \
    ./kubeinit/playbook.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If you will like to cleanup your environment after using Kubeinit, just run the same
deployment command appending &lt;code&gt;-e kubeinit_stop_after_task=task-cleanup-hypervisors&lt;/code&gt;
that will clean all the resources deployed by the installer.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;NOTE: If you have an error when deploying the services pod like
‘TASK [kubeinit.kubeinit.kubeinit_services : Install python3] … unreachable Could not resolve host: mirrorlist.centos.org’
make sure your DNS server is reachable, by default it is used the 1.1.1.1
DNS server from Google, and it might be blocked in your internal network, run
&lt;code&gt;export KUBEINIT_COMMON_DNS_PUBLIC=&amp;lt;your valid DNS&amp;gt;&lt;/code&gt; and
then run the deployment as usual.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The ‘new’ parameter present when running the Ansible playbook is called
&lt;code&gt;cluster_nodes_spec&lt;/code&gt;, this parameter allows to determine
the OS (Operative System) of the compute nodes. There are still in progress some features
to fully allow to customize the setup and decide how many nodes will be Windows based and how many will
have Linux installed.
The only supported version is Windows server 2022 Datacenter Edition.
This Windows Server installation is based on the actual .ISO installer, so if a user want’s
to use this in a more stable scenario they will need to register these cluster’s nodes.&lt;/p&gt;

&lt;p&gt;Once the deployment finishes, in the case of having Windows compute nodes it
will be around ~50 minutes (at least the first time because we need to download all the .ISO images),
you can VNC into your Windows compute nodes firstly by forwarding the 5900 port like:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;[ccamacho@laptop]$ ssh root@nyctea -L 5900:127.0.0.1:5900
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then, from your workstation start a VNC session to 127.0.0.1:5900.&lt;/p&gt;

&lt;p&gt;Or even better, you can SSH directly into your Windows computes like:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# This will get you into the first controller node.
[ccamacho@nyctea]$ ssh -i .ssh/k8scluster_id_rsa root@10.0.0.1
# This will get you to your first compute node.
[ccamacho@nyctea]$ ssh -i .ssh/k8scluster_id_rsa root@10.0.0.2
# This will get you to the services pod.
[ccamacho@nyctea]$ ssh -i .ssh/k8scluster_id_rsa root@10.0.0.253
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The default IP segment assigned for the cluster nodes is the 10.0.0.0/24 network,
where  the IPs are assigned in order, first the controller nodes, then the computes, and the last
IP for the services pod. In this example, given that the kubeinit_spec is &lt;code&gt;k8s-libvirt-1-1-1&lt;/code&gt;
we will deploy a vanilla Kubernetes cluster on top of libvirt with one controller, one compute,
and using a single hypervisor (explained in the same order than the spec content).&lt;/p&gt;

&lt;p&gt;This same configuration is deployed periodically, you can check the status of the execution in the
&lt;a href=&quot;https://ci.kubeinit.org/file/kubeinit-ci/jobs/okd-libvirt-1-1-1-h-periodic-pid-weekly-u/index.html&quot;&gt;periodic job page&lt;/a&gt;&lt;/p&gt;

&lt;h3 id=&quot;considerations&quot;&gt;Considerations&lt;/h3&gt;

&lt;p&gt;After having the cluster deployed, some considerations include determining from now on
in the applications deployments the OS of the guests where the workloads will run.&lt;/p&gt;

&lt;p&gt;The behavior I was able to see is that the Linux deployment tried to be scheduled in the
Windows compute nodes, which at some point it just timed-out.&lt;/p&gt;

&lt;p&gt;So make sure your deployments use the nodeSelector like:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;nodeSelector:
 kubernetes.io/os: linux
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;nodeSelector:
 kubernetes.io/os: windows
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;conclusions&quot;&gt;Conclusions&lt;/h2&gt;

&lt;p&gt;While it was hard to make it work at first, having
Windows workloads integrated into some of the use cases,
proves how easy it was to extend Kubeinit’s core architectural
structure with new types of nodes, and new types of workloads.&lt;/p&gt;

&lt;p&gt;This new use case enables other types of workloads that might
benefit other completely different usages of ‘the cloud’ we were used to seeing.&lt;/p&gt;

&lt;p&gt;If you are interested in checking the PR’s code, they are
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/pull/664&quot;&gt;664&lt;/a&gt;,
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/pull/668&quot;&gt;668&lt;/a&gt;,
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/pull/669&quot;&gt;669&lt;/a&gt;,
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/pull/672&quot;&gt;672&lt;/a&gt;, and
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/pull/676&quot;&gt;676&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;There might be still features not working properly or connectivity issues between pods as that is something I didn’t have time to properly
test so far.
The architectural &lt;a href=&quot;https://drive.google.com/file/d/1l9AHJ_60SNWYFVPWgO4C__U0bwPJvVIT/view?usp=sharing&quot;&gt;diagrams&lt;/a&gt; are available
online for further edits and references.&lt;/p&gt;

&lt;h2 id=&quot;update-log&quot;&gt;Update log:&lt;/h2&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;2022/07/01:&lt;/strong&gt; Initial version and minor edits.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;

&lt;h2 id=&quot;the-end&quot;&gt;The end&lt;/h2&gt;

&lt;p&gt;If you like this post, please try the code, raise issues, and ask for more details, features or
anything that you feel interested in. Also it would be awesome if you become a stargazer to catch up
updates and new features.&lt;/p&gt;

&lt;p&gt;This is the project’s main &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy KubeIniting!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Learning how to deploy OpenShift with KubeInit</title>
    <summary>KubeInit is an Ansible collection to ease the deployment of multiple Kubernetes distributions. This post will show you how to use it to deploy OpenShift in your infrastructure. Note 2021/10/13: DEPRECATED - This tutorial only works with kubeinit 1.0.2 make...</summary>
    <link href="https://www.pubstack.com/blog/2021/03/12/Learning-how-to-deploy-OpenShift-with-KubeInit.html"/>
    <updated>2021-03-12T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2021/03/12/Learning-how-to-deploy-OpenShift-with-KubeInit</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;KubeInit is an Ansible collection to ease
the deployment of multiple Kubernetes distributions.
This post will show you how to use it to deploy
OpenShift in your infrastructure.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Note 2021/10/13:&lt;/em&gt;&lt;/strong&gt; DEPRECATED - This tutorial only works with
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/releases/tag/1.0.2&quot;&gt;kubeinit 1.0.2&lt;/a&gt; make
sure you use this version of the code if you are following this tutorial, or
&lt;a href=&quot;https://docs.kubeinit.org/&quot;&gt;refer to the documentation&lt;/a&gt; to use the latest code.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1 id=&quot;tldr&quot;&gt;TL;DR;&lt;/h1&gt;

&lt;p&gt;This post will show you the command and the parameters
that needs to be configured to deploy OpenShift (4.7).&lt;/p&gt;

&lt;h3 id=&quot;prerequirements&quot;&gt;Prerequirements&lt;/h3&gt;

&lt;p&gt;Adjust your inventory file accordingly to what you will like to deploy.
Please, make sure you read older posts to understand KubeInit’s deployment
workflow, or give the docs a try
at &lt;a href=&quot;https://docs.kubeinit.com/&quot;&gt;https://docs.kubeinit.com/&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;openshift-registry-token&quot;&gt;OpenShift registry token&lt;/h3&gt;

&lt;p&gt;Then the next step is to fetch a valid registry tokens list (pullsecrets) from
&lt;a href=&quot;https://cloud.redhat.com/openshift/install/pull-secret&quot;&gt;https://cloud.redhat.com/openshift/install/pull-secret&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You should get a very long json object as a dictionary with the credential details
we need to adjust our deployment pull secrets to be able to “fetch”
the images accordingly.&lt;/p&gt;

&lt;p&gt;The pullsecret syntax should look like:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;{
  &quot;auths&quot;:{
    &quot;cloud.openshift.com&quot;:{&quot;auth&quot;:&quot;TOKEN1_GOES_HERE&quot;,&quot;email&quot;:&quot;email@example&quot;},
    &quot;quay.io&quot;:{&quot;auth&quot;:&quot;TOKEN2_GOES_HERE&quot;,&quot;email&quot;:&quot;email@example.com&quot;},
    &quot;registry.connect.redhat.com&quot;:{&quot;auth&quot;:&quot;TOKEN3_GOES_HERE&quot;,&quot;email&quot;:&quot;email@example.com&quot;},
    &quot;registry.redhat.io&quot;:{&quot;auth&quot;:&quot;TOKEN4_GOES_HERE&quot;,&quot;email&quot;:&quot;email@example.com&quot;}
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;deploying&quot;&gt;Deploying&lt;/h3&gt;

&lt;p&gt;The deployment procedure is the same
as it is for all the other Kubernetes distributions that can be
deployed with KubeInit.&lt;/p&gt;

&lt;p&gt;Please follow the &lt;a href=&quot;http://docs.kubeinit.com/usage.html&quot;&gt;usage documentation&lt;/a&gt;
to understand the system’s requirements and the required host supported
Linux distributions.&lt;/p&gt;

&lt;p&gt;At the moment we will deploy OpenShift 4.7.0 (the latest release available),
if you need to deploy other releases adjust the value of the
&lt;code&gt;kubeinit_okd_registry_release_tag&lt;/code&gt; variable.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Choose the distro
distro=okd
# Run the deployment command
ansible-playbook \
    -v \
    --user root \
    -i ./hosts/$distro/inventory \
    --become \
    --become-user root \
    -e kubeinit_okd_openshift_deploy=True \
    -e kubeinit_okd_openshift_registry_token_cloud_openshift_com=&quot;TOKEN1_GOES_HERE&quot; \
    -e kubeinit_okd_openshift_registry_token_quay_io=&quot;TOKEN2_GOES_HERE&quot; \
    -e kubeinit_okd_openshift_registry_token_registry_connect_redhat_com=&quot;TOKEN3_GOES_HERE&quot; \
    -e kubeinit_okd_openshift_registry_token_registry_redhat_io=&quot;TOKEN4_GOES_HERE&quot; \
    -e kubeinit_okd_openshift_registry_token_email=&quot;email@example.com&quot; \
    ./playbooks/$distro.yml

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Note: The variables required to override an
OpenShift deployment are
&lt;code&gt;kubeinit_okd_openshift_deploy&lt;/code&gt;,
&lt;code&gt;kubeinit_okd_openshift_registry_token_cloud_openshift_com&lt;/code&gt;,
&lt;code&gt;kubeinit_okd_openshift_registry_token_quay_io&lt;/code&gt;,
&lt;code&gt;kubeinit_okd_openshift_registry_token_registry_connect_redhat_com&lt;/code&gt;,
&lt;code&gt;kubeinit_okd_openshift_registry_token_registry_redhat_io&lt;/code&gt;, and
&lt;code&gt;kubeinit_okd_openshift_registry_token_email&lt;/code&gt;.&lt;/p&gt;

&lt;h3 id=&quot;conclusions&quot;&gt;Conclusions&lt;/h3&gt;

&lt;p&gt;Deploying also OpenShift demostrates how
flexible KubeInit can be.
With a few changes we can deploy also downstream Kubernetes
distributions ready to be used for production grade deployments.&lt;/p&gt;

&lt;p&gt;Once &lt;a href=&quot;https://github.com/Kubeinit/kubeinit/pull/219/files&quot;&gt;#219&lt;/a&gt;
is merged you should be able to run this.&lt;/p&gt;

&lt;h3 id=&quot;the-end&quot;&gt;The end&lt;/h3&gt;

&lt;p&gt;If you like this post, please try the code, raise issues, and ask for more details, features or
anything that you feel interested in. Also it would be awesome if you become a stargazer to catch up
updates and new features.&lt;/p&gt;

&lt;p&gt;This is the main project &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy KubeIniting!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Multihost deployments with Kubeinit</title>
    <summary>Until now there was possible to deploy Kubeinit in a single host configuration, this means to deploy all the guest VMs in the same hypervisor. Now, we can decouple the deployment architecture in multiple hosts. Note 2021/10/13: DEPRECATED - This...</summary>
    <link href="https://www.pubstack.com/blog/2021/02/20/Multihost-deployment-with-kubeinit.html"/>
    <updated>2021-02-20T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2021/02/20/Multihost-deployment-with-kubeinit</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Until now there was possible to deploy Kubeinit in
a single host configuration, this means to deploy
all the guest VMs in the same hypervisor.
Now, we can decouple the deployment architecture in multiple
hosts.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Note 2021/10/13:&lt;/em&gt;&lt;/strong&gt; DEPRECATED - This tutorial only works with
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/releases/tag/1.0.2&quot;&gt;kubeinit 1.0.2&lt;/a&gt; make
sure you use this version of the code if you are following this tutorial, or
&lt;a href=&quot;https://docs.kubeinit.org/&quot;&gt;refer to the documentation&lt;/a&gt; to use the latest code.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1 id=&quot;tldr&quot;&gt;TL;DR;&lt;/h1&gt;

&lt;p&gt;This post will show how to adjust the inventory files to
deploy Kubeinit in multiple hosts.&lt;/p&gt;

&lt;h3 id=&quot;network-architecture&quot;&gt;Network architecture&lt;/h3&gt;

&lt;p&gt;From the official docs,
OVN (Open Virtual Network) is a series of daemons for the Open vSwitch that translate
virtual network configurations into OpenFlow.
OVN is licensed under the open source Apache 2 license.&lt;/p&gt;

&lt;p&gt;OVN provides a higher-layer of abstraction than Open vSwitch,
working with logical routers and logical switches, rather than flows.
OVN is intended to be used by cloud management software (CMS).&lt;/p&gt;

&lt;p&gt;Open vSwitch is a free and open source multi-layer software switch,
which is used to manage the traffic between virtual machines and
physical or logical networks.&lt;/p&gt;

&lt;p&gt;The following is the current network architecture of a Kubeinit deployment.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/net/ovn.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;adjusting-the-inventory-files&quot;&gt;Adjusting the inventory files&lt;/h3&gt;

&lt;p&gt;To deploy Kubeinit in multiple hosts the only
changes that needs to be made are in the inventory&lt;/p&gt;

&lt;p&gt;In this case by default there is only one hypervisor enabled (nyctea).&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;[hypervisor_nodes]
hypervisor-01 ansible_host=nyctea
# hypervisor-02 ansible_host=tyto
# hypervisor-03 ansible_host=strix
# hypervisor-04 ansible_host=otus
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The only action that needs to be taken is uncomment the lines to
enable the extra hosts required.&lt;/p&gt;

&lt;p&gt;The next step is to determine where to deploy each guest.
In this example all guests are deployed to hypervisor-01,
make the adjustments as required.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;[okd_master_nodes]
okd-master-01 ansible_host=10.0.0.1 mac=52:54:00:34:84:26 interfaceid=47f2be09-9cde-49d5-bc7b-76189dfcb8a9 target=hypervisor-01 type=virtual
okd-master-02 ansible_host=10.0.0.2 mac=52:54:00:53:75:61 interfaceid=fb2028cf-dfb9-4d17-827d-3fae36cb3e98 target=hypervisor-01 type=virtual
okd-master-03 ansible_host=10.0.0.3 mac=52:54:00:96:67:20 interfaceid=d43b705e-86ce-4955-bbf4-3888210af82e target=hypervisor-01 type=virtual
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;For example, let’s deploy each master node in a different hypervisor:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;[okd_master_nodes]
okd-master-01 ansible_host=10.0.0.1 mac=52:54:00:34:84:26 interfaceid=47f2be09-9cde-49d5-bc7b-76189dfcb8a9 target=hypervisor-01 type=virtual
okd-master-02 ansible_host=10.0.0.2 mac=52:54:00:53:75:61 interfaceid=fb2028cf-dfb9-4d17-827d-3fae36cb3e98 target=hypervisor-02 type=virtual
okd-master-03 ansible_host=10.0.0.3 mac=52:54:00:96:67:20 interfaceid=d43b705e-86ce-4955-bbf4-3888210af82e target=hypervisor-03 type=virtual
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, okd-master-01 will be deployed to hypervisor-01, okd-master-02 will be deployed to hypervisor-02,
and okd-master-03 will be deployed to hypervisor-03.&lt;/p&gt;

&lt;h3 id=&quot;requirements&quot;&gt;Requirements&lt;/h3&gt;

&lt;p&gt;To deploy Kubeinit in multiple hypervisors, the only requirement is
to have passwordless root access to the hosts from the machine executing &lt;code&gt;ansible-playbook&lt;/code&gt;.&lt;/p&gt;

&lt;h3 id=&quot;deploying&quot;&gt;Deploying&lt;/h3&gt;

&lt;p&gt;The deployment procedure is the same
as it is for all the other Kubernetes distributions that can be
deployed with KubeInit.&lt;/p&gt;

&lt;p&gt;Please follow the &lt;a href=&quot;http://docs.kubeinit.com/usage.html&quot;&gt;usage documentation&lt;/a&gt;
to understand the system’s requirements and the required host supported
Linux distributions.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Choose the distro
distro=okd

# Run the deployment command
git clone https://github.com/kubeinit/kubeinit.git
cd kubeinit
ansible-playbook \
    --user root \
    -v -i ./hosts/$distro/inventory \
    --become \
    --become-user root \
    ./playbooks/$distro.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;conclusions&quot;&gt;Conclusions&lt;/h3&gt;

&lt;p&gt;Been able to decouple the cluster across multiple hosts allows
to scale and deploy production ready environments, for different use cases.
The overlay network deployed with OVN across the hosts provides a simple abstraction
layer to communicate all the guests in the cluster.&lt;/p&gt;

&lt;p&gt;Special thanks to
&lt;a href=&quot;http://dani.foroselectronica.es/&quot;&gt;@dalvarez&lt;/a&gt;
and
&lt;a href=&quot;https://github.com/danielmellado&quot;&gt;@dmellado&lt;/a&gt;
for their help and insights.&lt;/p&gt;

&lt;h3 id=&quot;the-end&quot;&gt;The end&lt;/h3&gt;

&lt;p&gt;If you like this post, please try the code, raise issues, and ask for more details, features or
anything that you feel interested in. Also it would be awesome if you become a stargazer to catch up
updates and new features.&lt;/p&gt;

&lt;p&gt;This is the main project &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy KubeIniting!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>How to deploy Amazon EKS-D on top of a Libvirt host with KubeInit in 15 minutes</title>
    <summary>And there is a new distro in town, today we will speak about Amazon EKS Distro (EKS-D), a Kubernetes distribution based on Amazon Elastic Kubernetes Service (Amazon EKS) and how to deploy it in a Libvirt host with almost or...</summary>
    <link href="https://www.pubstack.com/blog/2020/12/07/How-to-deploy-Amazon-EKS-D-in-a-Libvirt-host.html"/>
    <updated>2020-12-07T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2020/12/07/How-to-deploy-Amazon-EKS-D-in-a-Libvirt-host</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;And there is a new distro in town, today we will speak about
Amazon EKS Distro (EKS-D), a Kubernetes distribution based on
Amazon Elastic Kubernetes Service (Amazon EKS)
and how to deploy it in a Libvirt host with almost or zero
effort in a few minutes.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Note 2021/10/13:&lt;/em&gt;&lt;/strong&gt; DEPRECATED - This tutorial only works with
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/releases/tag/1.0.2&quot;&gt;kubeinit 1.0.2&lt;/a&gt; make
sure you use this version of the code if you are following this tutorial, or
&lt;a href=&quot;https://docs.kubeinit.org/&quot;&gt;refer to the documentation&lt;/a&gt; to use the latest code.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1 id=&quot;tldr&quot;&gt;TL;DR;&lt;/h1&gt;

&lt;p&gt;We will deploy using KubeInit a Kubernetes cluster based in Amazon’s EKS distribution.
&lt;strong&gt;Disclaimer:&lt;/strong&gt; This is not completely implemented as there are still some EKS-D images
to be added to the deployment.&lt;/p&gt;

&lt;h3 id=&quot;components&quot;&gt;Components&lt;/h3&gt;

&lt;p&gt;Here is a list of the components that are currently deployed:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Guests OS: CentOS 8 (8.2.2004)&lt;/li&gt;
  &lt;li&gt;Kubernetes distribution: EKS-D&lt;/li&gt;
  &lt;li&gt;Infrastructure provider: Libvirt&lt;/li&gt;
  &lt;li&gt;A service machine with the following services:
    &lt;ul&gt;
      &lt;li&gt;HAProxy: 1.8.23 2019/11/25&lt;/li&gt;
      &lt;li&gt;Apache: 2.4.37&lt;/li&gt;
      &lt;li&gt;NFS (nfs-utils): 2.3.3&lt;/li&gt;
      &lt;li&gt;DNS (bind9): 9.11.13&lt;/li&gt;
      &lt;li&gt;Disconnected docker registry: v2&lt;/li&gt;
      &lt;li&gt;Skopeo: 0.1.40&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Control plane services:
    &lt;ul&gt;
      &lt;li&gt;Kubelet 1.18.4&lt;/li&gt;
      &lt;li&gt;CRI-O: 1.18.4&lt;/li&gt;
      &lt;li&gt;Podman: 1.6.4&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Controller nodes: 3&lt;/li&gt;
  &lt;li&gt;Worker nodes: 1&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;deploying&quot;&gt;Deploying&lt;/h3&gt;

&lt;p&gt;The deployment procedure is the same
as it is for all the other Kubernetes distributions that can be
deployed with KubeInit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Make sure you can connect to your hypervisor (called nyctea)
with passwordless access.&lt;/p&gt;

&lt;p&gt;Please follow the &lt;a href=&quot;http://docs.kubeinit.com/usage.html&quot;&gt;usage documentation&lt;/a&gt;
to understand the system’s requirements and the required host supported
Linux distributions.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Choose the distro
distro=eks

# Run the deployment command
git clone https://github.com/kubeinit/kubeinit.git
cd kubeinit
ansible-playbook \
    --user root \
    -v -i ./hosts/$distro/inventory \
    --become \
    --become-user root \
    ./playbooks/$distro.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You can also &lt;a href=&quot;https://www.pubstack.com/blog/2020/09/11/Deploying-KubeInit-from-a-container.html&quot;&gt;run it from a container&lt;/a&gt;
to avoid compatibility issues between your set up and the required libraries.&lt;/p&gt;

&lt;p&gt;This will deploy by default a 3 controllers 1 compute cluster.&lt;/p&gt;

&lt;p&gt;The deployment time was fairly quick (around 15 minutes):&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;.
.
.
  &quot;      description: snapshot-validation-webhook container image&quot;,
  &quot;      image:&quot;,
  &quot;        uri: public.ecr.aws/eks-distro/kubernetes-csi/external-snapshotter/snapshot-validation-webhook:v3.0.2-eks-1-18-1&quot;,
  &quot;      name: snapshot-validation-webhook-image&quot;,
  &quot;      os: linux&quot;,
  &quot;      type: Image&quot;,
  &quot;    gitTag: v3.0.2&quot;,
  &quot;    name: external-snapshotter&quot;,
  &quot;  date: \&quot;2020-12-01T00:05:35Z\&quot;&quot;
]
}
META: ran handlers
META: ran handlers

PLAY RECAP *****************************************************************************************************************
hypervisor-01              : ok=188  changed=93   unreachable=0    failed=0    skipped=43   rescued=0    ignored=4   

real	17m12.889s
user	1m24.846s
sys	0m24.366s
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Let’s run some commands in the cluster.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;[root@eks-service-01 ~]# curl --user registryusername:registrypassword https://eks-service-01.clustername0.kubeinit.local:5000/v2/_catalog
{
   &quot;repositories&quot;:[
      &quot;aws-iam-authenticator&quot;,
      &quot;coredns&quot;,
      &quot;csi-snapshotter&quot;,
      &quot;eks-distro/coredns/coredns&quot;,
      &quot;eks-distro/etcd-io/etcd&quot;,
      &quot;eks-distro/kubernetes/go-runner&quot;,
      &quot;eks-distro/kubernetes/kube-apiserver&quot;,
      &quot;eks-distro/kubernetes/kube-controller-manager&quot;,
      &quot;eks-distro/kubernetes/kube-proxy&quot;,
      &quot;eks-distro/kubernetes/kube-proxy-base&quot;,
      &quot;eks-distro/kubernetes/kube-scheduler&quot;,
      &quot;eks-distro/kubernetes/pause&quot;,
      &quot;eks-distro/kubernetes-csi/external-attacher&quot;,
      &quot;eks-distro/kubernetes-csi/external-provisioner&quot;,
      &quot;eks-distro/kubernetes-csi/external-resizer&quot;,
      &quot;eks-distro/kubernetes-csi/external-snapshotter/csi-snapshotter&quot;,
      &quot;eks-distro/kubernetes-csi/external-snapshotter/snapshot-controller&quot;,
      &quot;eks-distro/kubernetes-csi/external-snapshotter/snapshot-validation-webhook&quot;,
      &quot;eks-distro/kubernetes-csi/livenessprobe&quot;,
      &quot;eks-distro/kubernetes-csi/node-driver-registrar&quot;,
      &quot;eks-distro/kubernetes-sigs/aws-iam-authenticator&quot;,
      &quot;eks-distro/kubernetes-sigs/metrics-server&quot;,
      &quot;etcd&quot;,
      &quot;external-attacher&quot;,
      &quot;external-provisioner&quot;,
      &quot;external-resizer&quot;,
      &quot;go-runner&quot;,
      &quot;kube-apiserver&quot;,
      &quot;kube-controller-manager&quot;,
      &quot;kube-proxy&quot;,
      &quot;kube-proxy-base&quot;,
      &quot;kube-scheduler&quot;,
      &quot;livenessprobe&quot;,
      &quot;metrics-server&quot;,
      &quot;node-driver-registrar&quot;,
      &quot;pause&quot;,
      &quot;snapshot-controller&quot;,
      &quot;snapshot-validation-webhook&quot;
   ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And check some of the deployed resources.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;[root@eks-service-01 ~]# kubectl describe pods etcd-eks-master-01.kubeinit.local -n kube-system
Name:                 etcd-eks-master-01.kubeinit.local
Namespace:            kube-system
Priority:             2000000000
Priority Class Name:  system-cluster-critical
Node:                 eks-master-01.kubeinit.local/10.0.0.1
Start Time:           Sun, 06 Dec 2020 19:51:25 +0000
Labels:               component=etcd
                      tier=control-plane
Annotations:          kubeadm.kubernetes.io/etcd.advertise-client-urls: https://10.0.0.1:2379
                      kubernetes.io/config.hash: 3be258678a84985dbdb9ae7cb90c6a97
                      kubernetes.io/config.mirror: 3be258678a84985dbdb9ae7cb90c6a97
                      kubernetes.io/config.seen: 2020-12-06T19:51:18.652592779Z
                      kubernetes.io/config.source: file
Status:               Running
IP:                   10.0.0.1
IPs:
  IP:           10.0.0.1
Controlled By:  Node/eks-master-01.kubeinit.local
Containers:
  etcd:
    Container ID:  cri-o://7a52bd0b80feb8c861c502add4c252e83c7e4a1f904a376108e3f6f787fd342c
    Image:         eks-service-01.clustername0.kubeinit.local:5000/etcd:v3.4.14-eks-1-18-1
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;conclusions&quot;&gt;Conclusions&lt;/h3&gt;

&lt;p&gt;Either if this new distribution can be useful or not for your use cases, there is
for sure value on having in both cloud and on-premise the same architecture and
services consistency.&lt;/p&gt;

&lt;h3 id=&quot;the-end&quot;&gt;The end&lt;/h3&gt;

&lt;p&gt;If you like this post, please try the code, raise issues, and ask for more details, features or
anything that you feel interested in. Also it would be awesome if you become a stargazer to catch up
updates and new features.&lt;/p&gt;

&lt;p&gt;This is the main project &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy KubeIniting!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>KubeInit 4-in-1 - Deploying multiple Kubernetes distributions (K8S, OKD, RKE, and CDK) with the same platform</title>
    <summary>One of the KubeInit’s pillars is to define a common framework to deploy multiple Kubernetes distributions, once you finish the deployment you should be able to use the specific distro tooling to mange the lifecycle of your deployment (or multiple...</summary>
    <link href="https://www.pubstack.com/blog/2020/10/19/KubeInit-4-in-1-Deploying-multiple-Kubernetes-distributions-K8S-OKD-RKE-and-CDK-with-the-same-platform.html"/>
    <updated>2020-10-19T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2020/10/19/KubeInit-4-in-1-Deploying-multiple-Kubernetes-distributions-K8S-OKD-RKE-and-CDK-with-the-same-platform</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;One of the KubeInit’s pillars is to define a common framework to deploy
multiple Kubernetes distributions, once you finish the deployment you should
be able to use the specific distro tooling to mange the lifecycle of your deployment
(or multiple deployments).&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Note 2021/10/13:&lt;/em&gt;&lt;/strong&gt; DEPRECATED - This tutorial only works with
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/releases/tag/1.0.2&quot;&gt;kubeinit 1.0.2&lt;/a&gt; make
sure you use this version of the code if you are following this tutorial, or
&lt;a href=&quot;https://docs.kubeinit.org/&quot;&gt;refer to the documentation&lt;/a&gt; to use the latest code.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Using KubeInit you should be able to reuse a common set of third party services,
and infrastructure deployment assets with any already integrated distro.&lt;/p&gt;

&lt;p&gt;The current distributions of Kubernetes that should be deployable are:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Origin Kubernetes Distribution&lt;/li&gt;
  &lt;li&gt;Kubernetes&lt;/li&gt;
  &lt;li&gt;Rancher Kubernetes Distribution&lt;/li&gt;
  &lt;li&gt;Canonical Distribution of Kubernetes&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;tldr&quot;&gt;TL;DR;&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt; This does not fully work, yet xD…
Multiple scenarios might be broken, the DNS might not work properly
and the HAProxy service might be failing also, this is the reason why is not documented
in the &lt;a href=&quot;https://docs.kubeinit.com&quot;&gt;official docs&lt;/a&gt;. Any contribution is and always be
welcomed. Yet, the deployment should finish successfully.&lt;/p&gt;

&lt;h3 id=&quot;the-roles-and-playbooks-structure&quot;&gt;The roles and playbooks structure&lt;/h3&gt;

&lt;p&gt;Every supported distro has a role folder called like &lt;code&gt;kubeinit_&amp;lt;distro&amp;gt;&lt;/code&gt;, this means,
&lt;code&gt;kubeinit_okd&lt;/code&gt;, &lt;code&gt;kubeinit_k8s&lt;/code&gt;, &lt;code&gt;kubeinit_rke&lt;/code&gt;, and &lt;code&gt;kubeinit_cdk&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Then, there is a specific playbook for each distro named using their distribution
initials like &lt;code&gt;okd&lt;/code&gt;, &lt;code&gt;k8s&lt;/code&gt;, &lt;code&gt;rke&lt;/code&gt;, and &lt;code&gt;cdk&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This means that the workflow to deploy any distro must be the same for every one of them.&lt;/p&gt;

&lt;h3 id=&quot;deploying&quot;&gt;Deploying&lt;/h3&gt;

&lt;p&gt;Choose the Kubernetes distribution you will use:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Origin Kubernetes Distribution: okd&lt;/li&gt;
  &lt;li&gt;Kubernetes: k8s&lt;/li&gt;
  &lt;li&gt;Rancher Kubernetes Distribution: rke&lt;/li&gt;
  &lt;li&gt;Canonical Distribution of Kubernetes : cdk&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Choose the distro
# distro=k8s
# distro=rke
# distro=cdk
distro=okd

# Run the deployment command
git clone https://github.com/kubeinit/kubeinit.git
cd kubeinit
ansible-playbook \
    --user root \
    -v -i ./hosts/$distro/inventory \
    --become \
    --become-user root \
    ./playbooks/$distro.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;conclusions&quot;&gt;Conclusions&lt;/h3&gt;

&lt;p&gt;Being able to deploy multiple Kubernetes distributions in an easy, quick,
reproducible, and using the same interface allow users to test and evaluate
them to see which one (or many) fits better their use cases.&lt;/p&gt;

&lt;h3 id=&quot;the-end&quot;&gt;The end&lt;/h3&gt;

&lt;p&gt;If you like this post, please try the code, raise issues, and ask for more details, features or
anything that you feel interested in. Also it would be awesome if you become a stargazer to catch up
updates and new features.&lt;/p&gt;

&lt;p&gt;This is the main project &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy KubeIniting!&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/yaml.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Deploying multiple KubeInit clusters in the same hypervisor</title>
    <summary>The Ansible inventory file defines the hosts and groups of hosts upon which commands, modules, and tasks in a playbook operate. In this post it will be explained the way to update the inventory files to allow deploying multiple KubeInit...</summary>
    <link href="https://www.pubstack.com/blog/2020/10/04/Multiple-KubeInit-clusters-in-the-same-hypervisor.html"/>
    <updated>2020-10-04T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2020/10/04/Multiple-KubeInit-clusters-in-the-same-hypervisor</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;The Ansible inventory file defines the hosts and groups of hosts upon which commands,
modules, and tasks in a playbook operate.
In this post it will be explained the way to update the inventory files to allow
deploying multiple KubeInit clusters in the same hypervisor.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Note 2021/10/13:&lt;/em&gt;&lt;/strong&gt; DEPRECATED - This tutorial only works with
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/releases/tag/1.0.2&quot;&gt;kubeinit 1.0.2&lt;/a&gt; make
sure you use this version of the code if you are following this tutorial, or
&lt;a href=&quot;https://docs.kubeinit.org/&quot;&gt;refer to the documentation&lt;/a&gt; to use the latest code.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1 id=&quot;tldr&quot;&gt;TL;DR;&lt;/h1&gt;

&lt;p&gt;We will show the required changes to the inventory file to
deploy more than one KubeInit cluster in the same host.&lt;/p&gt;

&lt;h3 id=&quot;basic-information&quot;&gt;Basic information&lt;/h3&gt;

&lt;p&gt;All the change required to achieve the goal of this post will be done in
the same file.&lt;/p&gt;

&lt;p&gt;As an example, in this post we will use the &lt;a href=&quot;https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/okd/inventory&quot;&gt;OKD inventory file&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;steps&quot;&gt;Steps&lt;/h3&gt;

&lt;p&gt;The following steps are required to deploy a second (or as many are required) KubeInit clusters in the same host.&lt;/p&gt;

&lt;h4 id=&quot;1-duplicate-the-main-inventory-file&quot;&gt;1. Duplicate the main inventory file.&lt;/h4&gt;

&lt;pre&gt;&lt;code&gt;echo &quot;NEW_ID MUST BE AN INTEGER&quot;
new_id=2
cp inventory inventory$new_id
&lt;/code&gt;&lt;/pre&gt;

&lt;h4 id=&quot;2-adjust-network-parameters&quot;&gt;2. Adjust network parameters.&lt;/h4&gt;

&lt;p&gt;The default internal network used is 10.0.0.0/24
so we need to change it to a new range.&lt;/p&gt;

&lt;p&gt;We will change from the range 10.0.0 to 10.0.2 (referring to step 1 &lt;em&gt;new_id=2&lt;/em&gt;)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sed -i &quot;s/10\.0\.0/10\.0\.$new_id/g&quot; inventory$new_id
&lt;/code&gt;&lt;/pre&gt;

&lt;h4 id=&quot;3-adjust-the-network-and-bridges-names&quot;&gt;3. Adjust the network and bridges names.&lt;/h4&gt;

&lt;p&gt;We will create new bridges and networks for the new
deployment.&lt;/p&gt;

&lt;p&gt;We will change from i.e. kimgtnet0 to kimgtnet2 (referring to step 1 &lt;em&gt;new_id=2&lt;/em&gt;)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sed -i &quot;s/kimgtnet0/kimgtnet$new_id/g&quot; inventory$new_id
sed -i &quot;s/kimgtbr0/kimgtbr$new_id/g&quot; inventory$new_id
sed -i &quot;s/kiextbr0/kiextbr$new_id/g&quot; inventory$new_id
&lt;/code&gt;&lt;/pre&gt;

&lt;h4 id=&quot;4-replace-the-hosts-mac-addresses-for-new-addresses&quot;&gt;4. Replace the hosts MAC addresses for new addresses.&lt;/h4&gt;

&lt;p&gt;We will randomly replace the MAC addresses for all
guest definitions. The following command will shuffle
the MAC addresses in the file each time is executed.
&lt;em&gt;Note:&lt;/em&gt; awk does not support hexadecimal number operations,
and it is no possible to replace characters by colons.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;awk -v seed=&quot;$RANDOM&quot; &apos;
  BEGIN { srand(seed) }
  { while(sub(/52:54:00:([[:xdigit:]]{1,2}:){2}[[:xdigit:]]{1,2}/,
              &quot;52,,,54,,,00,,,&quot;int(10+rand()*(99-10+1))&quot;,,,&quot;int(10+rand()*(99-10+1))&quot;,,,&quot;int(10+rand()*(99-10+1))));
    print &amp;gt; &quot;tmp&quot;
  }
  END { print &quot;MAC shuffled&quot; }
&apos; &quot;inventory$new_id&quot;
mv tmp inventory$new_id
sed -i &quot;s/,,,/:/g&quot; inventory$new_id
&lt;/code&gt;&lt;/pre&gt;

&lt;h4 id=&quot;5-change-the-guest-names&quot;&gt;5. Change the guest names.&lt;/h4&gt;

&lt;p&gt;VMs are cleaned every time the host is provisioned, if their names are
not updated they will be removed every time.&lt;/p&gt;

&lt;p&gt;We will change from okd- to okd2- (referring to step 1 &lt;em&gt;new_id=2&lt;/em&gt;)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sed -i &quot;s/okd-/okd$new_id-/g&quot; inventory$new_id
sed -i &quot;s/clustername0/clustername$new_id/g&quot; inventory$new_id
&lt;/code&gt;&lt;/pre&gt;

&lt;h4 id=&quot;6-run-the-deployment-command-using-the-new-inventory-file&quot;&gt;6. Run the deployment command using the new inventory file.&lt;/h4&gt;

&lt;p&gt;The deployment command should remain exactly as it was,
just update the reference to the new inventory file.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# Use the following inventory in your deployment command
-i ./hosts/okd/inventory$new_id
&lt;/code&gt;&lt;/pre&gt;

&lt;h4 id=&quot;7-cleaning-up-the-host&quot;&gt;7. Cleaning up the host.&lt;/h4&gt;

&lt;p&gt;Just in case you need to clean things up.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; This will destroy any guest in the
host, run with caution.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;for i in $(virsh -q list | awk &apos;{ print $2 }&apos;); do
  virsh destroy $i;
  virsh undefine $i --remove-all-storage;
done;
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;conclusions&quot;&gt;Conclusions&lt;/h3&gt;

&lt;p&gt;Being able to deploy multiple clusters in the same hypervisor it will allow you
to test multiple architectures and scenarios without the need to re-provision
completely the environment.&lt;/p&gt;

&lt;h3 id=&quot;the-end&quot;&gt;The end&lt;/h3&gt;

&lt;p&gt;If you like this post, please try the code, raise issues, and ask for more details, features or
anything that you feel interested in. Also it would be awesome if you become a stargazer to catch up
updates and new features.&lt;/p&gt;

&lt;p&gt;This is the main project &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy KubeIniting!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Persistent volumes and claims in KubeInit</title>
    <summary>Pods are ephemeral and any information stored in them is not persistent, this means that every time you restart or create pods from the same application any internal data will be lost. Note 2021/10/13: DEPRECATED - This tutorial only works...</summary>
    <link href="https://www.pubstack.com/blog/2020/09/28/Persistent-volumes-and-claims-in-KubeInit.html"/>
    <updated>2020-09-28T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2020/09/28/Persistent-volumes-and-claims-in-KubeInit</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Pods are ephemeral and any information stored in them
is not persistent, this means that every time you restart or
create pods from the same application any internal data will be
lost.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Note 2021/10/13:&lt;/em&gt;&lt;/strong&gt; DEPRECATED - This tutorial only works with
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/releases/tag/1.0.2&quot;&gt;kubeinit 1.0.2&lt;/a&gt; make
sure you use this version of the code if you are following this tutorial, or
&lt;a href=&quot;https://docs.kubeinit.org/&quot;&gt;refer to the documentation&lt;/a&gt; to use the latest code.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The solution for this is to use persistent volumes so pods can persist
their data every time they are restarted, a volume is YAKR (Yet Another Kubernetes Resource).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/pv/stone_pv.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;tldr&quot;&gt;TL;DR;&lt;/h1&gt;

&lt;p&gt;We will create a static PV/PVC to be used with an example application.&lt;/p&gt;

&lt;h3 id=&quot;basic-information&quot;&gt;Basic information&lt;/h3&gt;

&lt;p&gt;From [1], lets define some basic concepts.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/pv/cs_storage_pvc_pv.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Cluster: By default, every cluster is set up with a plug-in to provision file storage.
You can choose to install other add-ons, such as the one for block storage.
To use storage in a cluster, you must create a persistent volume claim, a persistent volume and a physical storage instance.
When you delete the cluster, you have the option to delete related storage instances.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;App: To read from and write to your storage instance, you must mount the persistent volume claim (PVC) to your app.
Different storage types have different read-write rules. For example, you can mount multiple pods to the same PVC for file storage.
Block storage comes with a RWO (ReadWriteOnce) access mode so that you can mount the storage to one pod only.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Persistent volume claim (PVC): A PVC is the request to provision persistent storage with a specific type and configuration.
To specify the persistent storage flavor that you want, you use Kubernetes storage classes.
The cluster admin can define storage classes.
When you create a PVC, the request is sent to the storage provider.
If the requested configuration does not exist, the storage is not created.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Persistent volume (PV): A PV is a virtual storage instance that is added as a volume to the cluster.
The PV points to a physical storage device in your account and abstracts the API that is used to communicate with the storage device.
To mount a PV to an app, you must have a matching PVC. Mounted PVs appear as a folder inside the container’s file system.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Physical storage: A physical storage instance that you can use to persist your data.
Examples of physical storage in Kubernetes clusters include File Storage, Block Storage, Object Storage, and local worker node storage.
However, data that is stored on a physical storage instance is not backed up automatically.
Depending on the type of storage that you use, different methods exist to set up backup and restore solutions.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;static-provisioning&quot;&gt;Static provisioning&lt;/h3&gt;

&lt;p&gt;If you have an existing persistent storage device,
you can use static provisioning to make the storage instance available to your cluster.&lt;/p&gt;

&lt;h4 id=&quot;how-does-it-work&quot;&gt;How does it work?&lt;/h4&gt;

&lt;p&gt;Static provisioning is a feature that is native to Kubernetes and that allows cluster administrators
to make existing storage devices available to a cluster. As a cluster administrator, you must know
the details of the storage device, its supported configurations, and mount options.
To make existing storage available to a cluster user, you must manually create the storage device, a PV, and a PVC.&lt;/p&gt;

&lt;h4 id=&quot;setting-up-a-static-pvpvc-in-a-kubeinits-nfs-share&quot;&gt;Setting up a static PV/PVC in a KubeInit’s NFS share&lt;/h4&gt;

&lt;p&gt;Execute all the following steps from the service machine.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# We create a new folder in the main NFS share
mkdir -p /var/nfsshare/test-nfs
chmod -R 777 /var/nfsshare/test-nfs
chown -R nobody:nobody /var/nfsshare/test-nfs

# We define the resources for the PV, PVC, and an example pod to use them
cat &amp;lt;&amp;lt; EOF &amp;gt; ~/test_nfs_pv.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
  name: test-nfs-pv
spec:
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteMany
  storageClassName: nfs01testnfs
  persistentVolumeReclaimPolicy: Retain
  nfs:
    path: /var/nfsshare/test-nfs
    server: 10.0.0.100
EOF

cat &amp;lt;&amp;lt; EOF &amp;gt; ~/test_nfs_pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: test-nfs-pvc
spec:
  volumeName: test-nfs-pv
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 1Gi
  storageClassName: nfs01testnfs
  volumeMode: Filesystem
EOF

cat &amp;lt;&amp;lt;EOF &amp;gt; ~/pod.yaml
apiVersion: v1
kind: Pod
metadata:
  name: nfs-test
  labels:
    name: frontendhttp
spec:
  containers:
    - name: nginx
      image: nginx:1.7.9
      imagePullPolicy: IfNotPresent
      ports:
        - containerPort: 80
          name: http-server
      volumeMounts:
        - mountPath: /var/nfsshare/testmount
          name: pvol
  volumes:
    - name: pvol
      persistentVolumeClaim:
        claimName: test-nfs-pvc
EOF

# We create those resources
export KUBECONFIG=~/install_dir/auth/kubeconfig
oc create -f ~/test_nfs_pv.yaml
oc create -f ~/test_nfs_pvc.yaml
oc create -f ~/pod.yaml

# We test the PV is bound to the PVC
oc get pv
oc get pvc
kubectl get pods
showmount -e 10.0.0.100

# Now we check that our test application is mounting the volume correctly
# As you can see we have the NFS PV mounted in /var/nfsshare/testmount
# we connect to the container and put something in the PV
kubectl exec --stdin --tty nfs-test -- /bin/bash
echo &quot;hello world&quot; &amp;gt; /var/nfsshare/testmount/asdf
exit
cat /var/nfsshare/test-nfs/asdf
# hello world
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This proves how easy is to create persistent volumes and claims to be used in KubeInit.&lt;/p&gt;

&lt;h3 id=&quot;next-steps&quot;&gt;Next steps&lt;/h3&gt;

&lt;p&gt;Dynamic provisioning is a feature that is native to Kubernetes and that allows a cluster developer
to order storage with a pre-defined type and configuration without knowing all the details about how
to provision the physical storage device. To abstract the details for the specific storage type, the
cluster admin must create storage classes that the developer can use.&lt;/p&gt;

&lt;p&gt;Ideally assigning the persistent volumes should be dynamically assigned. In the future
this should be natively be part of KubeInit.&lt;/p&gt;

&lt;h3 id=&quot;references&quot;&gt;References&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;https://cloud.ibm.com/docs/containers?topic=containers-kube_concepts&quot;&gt;https://cloud.ibm.com/docs/containers?topic=containers-kube_concepts&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;the-end&quot;&gt;The end&lt;/h3&gt;

&lt;p&gt;If you like this post, please try the code, raise issues, and ask for more details, features or
anything that you feel interested in. Also it would be awesome if you become a stargazer to catch up
updates and new features.&lt;/p&gt;

&lt;p&gt;This is the main project &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy KubeIniting!&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/pv/meme.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Deploying KubeInit from a container</title>
    <summary>There are some use cases where users have old libraries versions, old environments, or in general, difficulties to execute the ansible-playbook command to deploy KubeInit, due to unrelated issues. The following steps will help users to deploy KubeInit by launching...</summary>
    <link href="https://www.pubstack.com/blog/2020/09/11/Deploying-KubeInit-from-a-container.html"/>
    <updated>2020-09-11T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2020/09/11/Deploying-KubeInit-from-a-container</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;There are some use cases where users have old libraries versions,
old environments, or in general, difficulties to execute the
ansible-playbook command to deploy KubeInit, due to unrelated
issues. The following steps will help users to deploy KubeInit by
launching the ansible-playbook command from a container.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Note 2021/10/13:&lt;/em&gt;&lt;/strong&gt; DEPRECATED - This tutorial only works with
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/releases/tag/1.0.2&quot;&gt;kubeinit 1.0.2&lt;/a&gt; make
sure you use this version of the code if you are following this tutorial, or
&lt;a href=&quot;https://docs.kubeinit.org/&quot;&gt;refer to the documentation&lt;/a&gt; to use the latest code.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/kubeinit_in_docker.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;tldr&quot;&gt;TL;DR;&lt;/h1&gt;

&lt;p&gt;We will describe how to run KubeInit within a container.&lt;/p&gt;

&lt;h3 id=&quot;requirements&quot;&gt;Requirements&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Having docker or podman installed.&lt;/li&gt;
  &lt;li&gt;If you do not have podman (what is used in the commands bellow),
then replace podman by docker in all the commands bellow.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;deploying-kubeinit-within-a-container&quot;&gt;Deploying KubeInit within a container&lt;/h3&gt;

&lt;h4 id=&quot;building-the-image&quot;&gt;Building the image&lt;/h4&gt;

&lt;p&gt;We will clone the repository as usual, and build the container image.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone https://github.com/Kubeinit/kubeinit.git
cd kubeinit
podman build -t kubeinit/kubeinit .
&lt;/code&gt;&lt;/pre&gt;

&lt;h4 id=&quot;run-the-deployment-command-from-the-recently-created-container&quot;&gt;Run the deployment command from the recently created container&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;NOTE:&lt;/em&gt;&lt;/strong&gt; Beware of the &lt;a href=&quot;https://www.redhat.com/sysadmin/user-namespaces-selinux-rootless-containers&quot;&gt;:z flag if you have SELinux enabled&lt;/a&gt;
you must use it, otherwise you will get a permissions denied as the PK won’t be able to be mounted correctly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;NOTE:&lt;/em&gt;&lt;/strong&gt; Each time a change is included in any code inside
the repository &lt;strong&gt;BUILD THE IMAGE YOU MUST&lt;/strong&gt;…&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;podman run --rm -it \
    -v ~/.ssh/id_rsa:/root/.ssh/id_rsa:z \
    -v /etc/hosts:/etc/hosts \
    kubeinit/kubeinit \
        --user root \
        -v -i ./hosts/okd/inventory \
        --become \
        --become-user root \
        ./playbooks/okd.yml
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As it is clearly visible in the previous command, starting from
the 5th line, the deployment command is exactly as if we were
executing it with &lt;code&gt;ansible-playbook&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;What we are doing is to add &lt;code&gt;ansible-playbook&lt;/code&gt; as this container
ENTRYPOINT, so you can add any variable that will be part
of the &lt;code&gt;ansible-playbook&lt;/code&gt; command.&lt;/p&gt;

&lt;p&gt;Easy as always and in a single deployment command
you should have your cluster in approximately 30 minutes.&lt;/p&gt;

&lt;h3 id=&quot;pros-and-cons-of-executing-ansible-playbook-within-a-container&quot;&gt;Pros and Cons of executing ansible-playbook within a container&lt;/h3&gt;

&lt;p&gt;This is a very opinionated section to show that sometimes running
containers can add some more extra steps that might be useful or not
depending on your environment.&lt;/p&gt;

&lt;h4 id=&quot;pros&quot;&gt;Pros&lt;/h4&gt;

&lt;ul&gt;
  &lt;li&gt;No dependencies from the host.&lt;/li&gt;
  &lt;li&gt;Easy to run if there is no other change to make inside the collection.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;cons&quot;&gt;Cons&lt;/h4&gt;

&lt;ul&gt;
  &lt;li&gt;Debugging will be always harder.&lt;/li&gt;
  &lt;li&gt;Another layer of something that might be hard to understand.&lt;/li&gt;
  &lt;li&gt;More time to build the image and deploying.&lt;/li&gt;
  &lt;li&gt;Each time you need to make a change in any part of the code you will need to build the image again.
This in particular can be really painful, as for each small change in the code it will make
you invest some maybe unneeded extra time to be able to run the code again.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;the-end&quot;&gt;The end&lt;/h4&gt;

&lt;p&gt;If you like this post, please try the code, raise issues, and ask for more details, features or
anything that you feel interested in. Also it would be awesome if you become a stargazer to catch up
updates and new features.&lt;/p&gt;

&lt;p&gt;This is the main project &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy KubeIniting!&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/k8s.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>KubeInit External access for OpenShift/OKD deployments with Libvirt</title>
    <summary>In this post it will be described the basic network architecture when OKD is deployed using KubeInit in a KVM host. Note 2021/10/13: DEPRECATED - This tutorial only works with kubeinit 1.0.2 make sure you use this version of the...</summary>
    <link href="https://www.pubstack.com/blog/2020/08/25/KubeInit-External-access-for-OpenShift-OKD-deployments-with-Libvirt.html"/>
    <updated>2020-08-25T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2020/08/25/KubeInit-External-access-for-OpenShift-OKD-deployments-with-Libvirt</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;In this post it will be described the basic network architecture when OKD is
deployed using &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;KubeInit&lt;/a&gt; in a KVM host.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Note 2021/10/13:&lt;/em&gt;&lt;/strong&gt; DEPRECATED - This tutorial only works with
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/releases/tag/1.0.2&quot;&gt;kubeinit 1.0.2&lt;/a&gt; make
sure you use this version of the code if you are following this tutorial, or
&lt;a href=&quot;https://docs.kubeinit.org/&quot;&gt;refer to the documentation&lt;/a&gt; to use the latest code.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;tldr&quot;&gt;TL;DR;&lt;/h2&gt;

&lt;p&gt;We will describe how to extend the basic network configuration to provide
external access to the cluster services by adding an external IP to the
service machine.&lt;/p&gt;

&lt;h3 id=&quot;what-is-kubeinit&quot;&gt;What is KubeInit?&lt;/h3&gt;

&lt;p&gt;KubeInit provides Ansible playbooks and roles for the deployment and
configuration of multiple Kubernetes distributions.&lt;/p&gt;

&lt;p&gt;The main goal of KubeInit is to have a fully automated way to
deploy in a single command a curated list of prescribed architectures.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;KubeInit&lt;/a&gt; is opensource, and licensed under
the Apache 2.0 license. The project’s source code is hosted
in &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/net/thumb.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;initial-hypervisor-status&quot;&gt;Initial hypervisor status&lt;/h3&gt;

&lt;p&gt;We check both the routing table and the network connections
in the hypervisor host.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;[root@nyctea ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    100    0        0 eno1
10.19.41.0      0.0.0.0         255.255.255.0   U     100    0        0 eno1
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;[root@nyctea ~]# nmcli con show
NAME         UUID                                  TYPE      DEVICE
System eno1  162499bc-a6fa-45db-ba76-1b45f0be46e8  ethernet  eno1   
virbr0       4ba12c69-3a8b-42e8-a9dd-bc020fdc1a90  bridge    virbr0
eno2         e19725f2-84f5-4f71-b300-469ffc99fd99  ethernet  --     
enp6s0f0     7348301f-8cae-4ab1-9061-97d7a344699c  ethernet  --     
enp6s0f1     8a96c226-959a-4218-b9f7-c3ab6ee3d02b  ethernet  --    
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;As it is possible to see there are two physical network interfaces (eno1, and eno2) for which
only one is actually connected.&lt;/p&gt;

&lt;h4 id=&quot;initial-network-architecture&quot;&gt;Initial network architecture&lt;/h4&gt;

&lt;p&gt;The following picture represents the default network layout for a usual deployment.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/net/arch01.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The default deployment will install a multi-master cluster, with one worker node (up to 10).
From the above figure is possible to see:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;All cluster nodes are connected to the 10.0.0.0/24 network. This will be the
cluster management network, and the one will use to access the nodes within the hypervisor.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The 10.0.0.0/24 network is defined as a Virtual Network Switch implementing
both NAT and DCHP for any interface connected to the &lt;code&gt;kimgtnet0&lt;/code&gt; network.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;All bootstrap, master, and worker nodes are installed with Fedora CoreOS as is
the required OS for OKD &amp;gt; 4.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;The services machine has installed CentOS 8 with BIND, HAProxy, and NFS.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Using DHCP, we assign the following IP mapping based on the MAC address of each node (defined
 in the Ansible inventory).&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt; # Master
 okd-master-01 ansible_host=10.0.0.1 mac=52:54:00:aa:6c:b1
 okd-master-02 ansible_host=10.0.0.2 mac=52:54:00:59:0e:e4
 okd-master-03 ansible_host=10.0.0.3 mac=52:54:00:b4:39:45

 # Worker
 okd-worker-01 ansible_host=10.0.0.4 mac=52:54:00:61:22:5a
 okd-worker-02 ansible_host=10.0.0.5 mac=52:54:00:21:fd:fd
 okd-worker-03 ansible_host=10.0.0.6 mac=52:54:00:4c:0a:81
 okd-worker-04 ansible_host=10.0.0.7 mac=52:54:00:54:ff:ac
 okd-worker-05 ansible_host=10.0.0.8 mac=52:54:00:4a:6b:f6
 okd-worker-06 ansible_host=10.0.0.9 mac=52:54:00:40:22:52
 okd-worker-07 ansible_host=10.0.0.10 mac=52:54:00:6c:0a:03
 okd-worker-08 ansible_host=10.0.0.11 mac=52:54:00:0b:14:f8
 okd-worker-09 ansible_host=10.0.0.12 mac=52:54:00:f5:6e:e5
 okd-worker-10 ansible_host=10.0.0.13 mac=52:54:00:5c:26:4f

 # Service
 okd-service-01 ansible_host=10.0.0.100 mac=52:54:00:f2:46:a7

 # Bootstrap
 okd-bootstrap-01 ansible_host=10.0.0.200 mac=52:54:00:6e:4d:a3
&lt;/code&gt;&lt;/pre&gt;

&lt;blockquote&gt;
  &lt;p&gt;The previous deployment can be used for any purpose but it has one limitation,
this limitation is that the endpoints do not have external access.
This means that i.e. https://console-openshift-console.apps.watata.kubeinit.local
can not be accessed from anywhere instead the hypervisor itself.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;extending-the-basic-network-layout&quot;&gt;Extending the basic network layout&lt;/h3&gt;

&lt;p&gt;Now it will be described a simple way to provide external access to the cluster public endpoints
published in the service machine.&lt;/p&gt;

&lt;h4 id=&quot;requirements&quot;&gt;Requirements&lt;/h4&gt;

&lt;ul&gt;
  &lt;li&gt;An additional IP address to be mapped to the services machine from an external location.&lt;/li&gt;
  &lt;li&gt;Creating a network bridge to slave the interface used for the external access.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a user has one extra IP (public or private) it will be enough to configure remote
access to the cluster endpoints.&lt;/p&gt;

&lt;p&gt;As long as we have an extra IP it does not matter how many physical interfaces we
have, as we can have multiple IP addresses configured using a single physical NIC.&lt;/p&gt;

&lt;h4 id=&quot;new-network-layout&quot;&gt;New network layout&lt;/h4&gt;

&lt;p&gt;This is the resulting network architecture to access remotely our freshly installed OKD cluster.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/net/arch02.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;As is visible in the above figure there is an extra connection to the service machine,
connected directly to the virtual bridge slaving a physical interface.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Our development environment has only one network card connected,
in this case after we create the main switch and slave the
network device, it will lose the assigned IP automatically.
Do not try this using a shell as you will get dropped.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h4 id=&quot;how-to-enable-the-external-interface&quot;&gt;How to enable the external interface&lt;/h4&gt;

&lt;p&gt;To deploy this architecture please follow the next steps:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Create a virtual bridge slaving the selected physical interface.&lt;/li&gt;
  &lt;li&gt;Adjust the deployment command.&lt;/li&gt;
  &lt;li&gt;Run &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;KubeInit&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;Adjust your local Domain Name System (DNS) resolver.&lt;/li&gt;
&lt;/ol&gt;

&lt;h5 id=&quot;step-1-creating-the-virtual-bridge&quot;&gt;Step 1 (creating the virtual bridge)&lt;/h5&gt;

&lt;h6 id=&quot;using-centos8-cockpit&quot;&gt;Using CentOS8 cockpit&lt;/h6&gt;
&lt;p&gt;We create an initial bridge using the CentOS cockpit,
after losing the IP it will be recovered/reconfigured automatically
(don’t try this from the CLI as you will lose access).&lt;/p&gt;

&lt;p&gt;In this case,&lt;/p&gt;

&lt;p&gt;Create a bridge called kiextbr0 connected to eno1:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/net/cockpit_00.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Click on: Networking -&amp;gt; Add Bridge&lt;/p&gt;

&lt;p&gt;Then adjust the bridge configuration options (bridge name and the interface to slave).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/net/cockpit_01.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Write: &lt;code&gt;kiextbr0&lt;/code&gt; as the bridge name, and select your network interface &lt;code&gt;eno1&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Go to the dashboard and verify that everything is OK.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/net/cockpit_02.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Check that the bridge is created correctly and has the IP configured correctly.&lt;/p&gt;

&lt;h6 id=&quot;manual-bridge-creation&quot;&gt;Manual bridge creation&lt;/h6&gt;

&lt;p&gt;As an example you can run these steps by the CLI
adjusting your interface and bridge names accordingly.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;nmcli connection add ifname br0 type bridge con-name br0
nmcli connection add type bridge-slave ifname enp0s25 master br0
nmcli connection modify br0 bridge.stp no
nmcli connection delete enp0s25
nmcli connection up br0
&lt;/code&gt;&lt;/pre&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;NOTE:&lt;/em&gt;&lt;/strong&gt; If you have only one interface
the connection will be dropped and you will.
lose connectivity.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h6 id=&quot;checking-the-system-status&quot;&gt;Checking the system status&lt;/h6&gt;

&lt;p&gt;We check again the system status:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;[root@nyctea ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    425    0        0 kiextbr0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 kimgtbr0
10.19.41.0      0.0.0.0         255.255.255.0   U     425    0        0 kiextbr0

NAME         UUID                                  TYPE      DEVICE   
kiextbr0     55d0a549-8123-488a-815b-5771b62644d2  bridge    kiextbr0
kimgtbr0     3e73e0d9-28bd-4db7-8ccf-be11297e3300  bridge    kimgtbr0
System eno1  3251ed0c-706a-463e-aeac-2a57782ce7c1  ethernet  eno1     
vnet0        4515a0b8-1a20-4414-86b2-2ff5545fcffa  tun       vnet0    
vnet1        5f1b253f-9c38-4637-8a02-222aa5c51be3  tun       vnet1    
vnet2        e7d466d5-bc2b-47b0-a6ca-5a3825170501  tun       vnet2    
eno2         190c35fb-1ff0-41ff-b32e-c190f513b2a0  ethernet  --       
eno3         1b644415-0a91-44a9-bfd0-2279ddca0020  ethernet  --       
eno4         c99ba8a7-b62c-4b1f-b191-8798f0eff2ff  ethernet  --       
enp6s0f0     11c63800-8cd9-4411-8854-43ced2a464f3  ethernet  --       
enp6s0f1     be01957b-2933-47df-9793-156fe3b1d767  ethernet  --
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;We can see we have the new bridge created successfully and it has the IP address
also configured correctly.&lt;/p&gt;

&lt;h5 id=&quot;step-2-adjusting-the-deployment-command&quot;&gt;Step 2 (adjusting the deployment command)&lt;/h5&gt;

&lt;p&gt;There are a few variables that need to be adjusted in order to
successfully configure the external interface.&lt;/p&gt;

&lt;p&gt;These variables are defined in the libvirt role (the location of these variables will change)
but not their name.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/net/config_vars.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The meaning of the variables are:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;kubeinit_libvirt_external_service_interface_enabled: true - This will enable
the Ansible configuration of the external interface,
the BIND update, and the additional interface in the
service node.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;kubeinit_libvirt_external_service_interface.attached: kiextbr0 - This is the
virtual bridge where we will plug the &lt;code&gt;eth1&lt;/code&gt; interface of the services machine.
The bridge &lt;code&gt;MUST&lt;/code&gt; be created first and slaving the physical interface we will use.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;kubeinit_libvirt_external_service_interface.dev: eth1 - This is the name of the
external interface we will add to the services machine.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;kubeinit_libvirt_external_service_interface.ip: 10.19.41.157 - The external IP address
of the services machine.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;kubeinit_libvirt_external_service_interface.gateway: 10.19.41.254 - The gateway IP address
of the services machine.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;kubeinit_libvirt_external_service_interface.netmask: 255.255.255.0 - The network mask of the external
interface of the services machine.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After we configure correctly the previous variables we can proceed to run the deployment command.&lt;/p&gt;

&lt;h5 id=&quot;step-3-run-the-deployment-command&quot;&gt;Step 3 (run the deployment command)&lt;/h5&gt;

&lt;p&gt;Now we deploy as usual &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;KubeInit&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Remember that you can execute this deployment command before
creating the bridge with the CentOS cockpit, the bridge creation
has no impact in how we deploy KubeInit.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;ansible-playbook \
    -v \
    --user root \
    -i ./hosts/okd/inventory \
    --become \
    --become-user root \
    -e &quot;{ \
      &apos;kubeinit_libvirt_external_service_interface_enabled&apos;: &apos;true&apos;, \
      &apos;kubeinit_libvirt_external_service_interface&apos;: { \
        &apos;attached&apos;: &apos;kiextbr0&apos;, \
        &apos;dev&apos;: &apos;eth1&apos;, \
        &apos;ip&apos;: &apos;10.19.41.157&apos;, \
        &apos;mac&apos;: &apos;52:54:00:6a:39:ad&apos;, \
        &apos;gateway&apos;: &apos;10.19.41.254&apos;, \
        &apos;netmask&apos;: &apos;255.255.255.0&apos; \
      } \
    }&quot; \
    ./playbooks/okd.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;h5 id=&quot;step-4-adjust-your-resolvconf&quot;&gt;Step 4 (adjust your resolv.conf)&lt;/h5&gt;

&lt;p&gt;You must reach the cluster external endpoints by DNS, this means,
the dashboard and any other application deployed
(you can add entries for any registry pointing to the service machine but this can be cumbersome).&lt;/p&gt;

&lt;p&gt;For example, configure your local DNS resolver to point to &lt;code&gt;10.19.41.157&lt;/code&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt; [ccamacho@localhost]$ cat /etc/resolv.conf
 nameserver 10.19.41.157
 nameserver 8.8.8.8
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;After that you should be able to access the cluster without any issue and use it for any purpose you have
with the following URL
&lt;a href=&quot;https://console-openshift-console.apps.clustername0.kubeinit.local/&quot;&gt;https://console-openshift-console.apps.clustername0.kubeinit.local/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Voilà!&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/net/dashboard.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h4 id=&quot;final-considerations&quot;&gt;Final considerations&lt;/h4&gt;

&lt;p&gt;Some of the very interesting changes in BIND is how we manage both external and internal views.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/net/bind_views.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;In this case we have an &lt;code&gt;internal&lt;/code&gt; and &lt;code&gt;external&lt;/code&gt; view that will behave differently depending
on where the requests are originated from.&lt;/p&gt;

&lt;p&gt;If a DNS request is created trough the cluster’s external interface, the reply will be
created based on the external view, in this case we only reply with the external HAProxy endpoints
related to the services node, thus, we will only reply with &lt;code&gt;10.19.41.157&lt;/code&gt; as it is the only that needs
to be presented externally.&lt;/p&gt;

&lt;h4 id=&quot;the-end&quot;&gt;The end&lt;/h4&gt;

&lt;p&gt;If you like this post, please try the code, raise issues, and ask for more details, features or
anything that you feel interested in. Also it would be awesome if you become a stargazer to catch up
updates and new features.&lt;/p&gt;

&lt;p&gt;This is the main project &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;repository&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy KubeIniting!&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Updated 2020/08/25:&lt;/em&gt;&lt;/strong&gt; First version (draft).&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Updated 2020/08/26:&lt;/em&gt;&lt;/strong&gt; Published.&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Updated 2020/10/06:&lt;/em&gt;&lt;/strong&gt; Update in network details.&lt;/p&gt;
&lt;/blockquote&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>A review of the MachineConfig operator</title>
    <summary>The latest versions of OpenShift rely on operators to completely manage the cluster and OS state, this state includes for instance, configuration changes and OS upgrades. For example, to install additional packages or changing any configuration file to execute whatever...</summary>
    <link href="https://www.pubstack.com/blog/2020/08/16/a-review-of-the-machineconfig-operator.html"/>
    <updated>2020-08-16T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2020/08/16/a-review-of-the-machineconfig-operator</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;The latest versions of OpenShift rely on operators to completely manage the cluster and OS state,
this &lt;strong&gt;state&lt;/strong&gt; includes for instance, configuration changes and OS upgrades.
For example, to install additional packages or changing any configuration file to execute whatever task is
required, the MachineConfig operator should be the one in charge of applying these changes.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/machineconfig/machineconfig.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;These configuration changes are executed by an instance of the
‘openshift-machine-config-operator’ pod, which after this new state is reached
the updated nodes will be automatically restarted.&lt;/p&gt;

&lt;p&gt;There are several mature and production-ready technologies allowing to automate and apply
configuration changes to the underlying infrastructure nodes, like, Ansible,
Helm, Puppet, Chef, and many others, yet, the MachineConfig operator force
users to adopt this new method and pretty much discard any previously developed
automation infrastructure.&lt;/p&gt;

&lt;h3 id=&quot;the-machineconfig-operator-is-more-than-installing-packages-and-updating-configuration-files&quot;&gt;The MachineConfig operator is more than installing packages and updating configuration files&lt;/h3&gt;

&lt;p&gt;I see this MachineConfig operator as a finite state machine where it’s represented
a cluster-wide specific sequential logic to ensure that the cluster’s state is preserved and consistent.
This notion has several and very powerful benefits, like making the cluster resilient to failures
due to unfulfilled conditions in each of the sub-stages part of this finite state machine workflow.&lt;/p&gt;

&lt;p&gt;For instance, let the following example show a practical and objective application
of the benefits of this approach.&lt;/p&gt;

&lt;p&gt;We assume the following architecture reference:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;3 master nodes.&lt;/li&gt;
  &lt;li&gt;1 worker node.&lt;/li&gt;
  &lt;li&gt;The master nodes are not schedulable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is a quite simple multi-master deployment with a single worker node
for development purposes, before the cluster was deployed the
master nodes were set as “mastersSchedulable: False” by running
&lt;code&gt;&quot;sed -i &apos;s/mastersSchedulable: true/mastersSchedulable: False/&apos; install_dir/manifests/cluster-scheduler-02-config.yml&quot;&lt;/code&gt;.
Now, after deploying the cluster and executing a configuration change in the worker node it will
fail, and let investigate why.&lt;/p&gt;

&lt;p&gt;The following yaml file will be applied, which it’s content is correct and it should work out of the box:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cat &amp;lt;&amp;lt; EOF &amp;gt; ~/99_kubeinit_extra_config_worker.yaml
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
  creationTimestamp: null
  labels:
    machineconfiguration.openshift.io/role: worker
  name: 99-kubeinit-extra-config-worker
spec:
  osImageURL: &apos;&apos;
  config:
    ignition:
      config:
        replace:
          verification: {}
      security:
        tls: {}
      timeouts: {}
      version: 2.2.0
    networkd: {}
    passwd: {}
    storage:
      files:
      - contents:
          source: data:text/plain;charset=utf-8;base64,IyEvdXNyL2Jpbi9iYXNoCnNldCAteAptYWluKCkgewpzdWRvIHJwbS1vc3RyZWUgaW5zdGFsbCBwb2xpY3ljb3JldXRpbHMtcHl0aG9uLXV0aWxzCnN1ZG8gc2VkIC1pICdzL2VuZm9yY2luZy9kaXNhYmxlZC9nJyAvZXRjL3NlbGludXgvY29uZmlnIC9ldGMvc2VsaW51eC9jb25maWcKfQptYWluCg==
          verification: {}
        filesystem: root
        mode: 0755
        path: /usr/local/bin/kubeinit_kubevirt_extra_config_script
EOF
oc apply -f ~/99_kubeinit_extra_config_worker.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The defined MachineConfig object will create a file in
&lt;code&gt;/usr/local/bin/kubeinit_kubevirt_extra_config_script&lt;/code&gt; that once executed it will
install a package and disable SElinux in the worker nodes.&lt;/p&gt;

&lt;p&gt;Now, let’s check the state of the worker machine config pool.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc get machineconfigpool/worker
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This is the result:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;NAME    CONFIG               UPDATED  UPDATING  DEGRADED  MACHINECOUNT  READYMACHINECOUNT  UPDATEDMACHINECOUNT  DEGRADEDMACHINECOUNT  AGE
worker  rendered-worker-a9.. False    True      True      1             0                  0                    1                     12h
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now it is possible to depict that the operator state is degraded and there is not much more information about it.
Let’s get the status of the machine-config pods.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;kubectl get pod -o wide --all-namespaces | grep machine-config
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It is possible to see that all pods are running without issues.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;openshift-machine-config-operator                  etcd-quorum-guard-7bb76959df-5bj7g                       1/1     Running     0          11h     10.0.0.2      okd-master-02   &amp;lt;none&amp;gt;           &amp;lt;none&amp;gt;
openshift-machine-config-operator                  etcd-quorum-guard-7bb76959df-jdtbv                       1/1     Running     0          11h     10.0.0.3      okd-master-03   &amp;lt;none&amp;gt;           &amp;lt;none&amp;gt;
openshift-machine-config-operator                  etcd-quorum-guard-7bb76959df-sndb2                       1/1     Running     0          11h     10.0.0.1      okd-master-01   &amp;lt;none&amp;gt;           &amp;lt;none&amp;gt;
openshift-machine-config-operator                  machine-config-controller-7cbb584655-bfjmh               1/1     Running     0          11h     10.100.0.20   okd-master-01   &amp;lt;none&amp;gt;           &amp;lt;none&amp;gt;
openshift-machine-config-operator                  machine-config-daemon-ctczg                              2/2     Running     0          12h     10.0.0.3      okd-master-03   &amp;lt;none&amp;gt;           &amp;lt;none&amp;gt;
openshift-machine-config-operator                  machine-config-daemon-m82gz                              2/2     Running     0          12h     10.0.0.2      okd-master-02   &amp;lt;none&amp;gt;           &amp;lt;none&amp;gt;
openshift-machine-config-operator                  machine-config-daemon-qfc82                              2/2     Running     0          12h     10.0.0.1      okd-master-01   &amp;lt;none&amp;gt;           &amp;lt;none&amp;gt;
openshift-machine-config-operator                  machine-config-daemon-vwh4d                              2/2     Running     0          11h     10.0.0.4      okd-worker-01   &amp;lt;none&amp;gt;           &amp;lt;none&amp;gt;
openshift-machine-config-operator                  machine-config-operator-c98bb964d-5vnww                  1/1     Running     0          11h     10.100.0.21   okd-master-01   &amp;lt;none&amp;gt;           &amp;lt;none&amp;gt;
openshift-machine-config-operator                  machine-config-server-g75x5                              1/1     Running     0          12h     10.0.0.2      okd-master-02   &amp;lt;none&amp;gt;           &amp;lt;none&amp;gt;
openshift-machine-config-operator                  machine-config-server-kpwqb                              1/1     Running     0          12h     10.0.0.3      okd-master-03   &amp;lt;none&amp;gt;           &amp;lt;none&amp;gt;
openshift-machine-config-operator                  machine-config-server-n9q2r                              1/1     Running     0          12h     10.0.0.1      okd-master-01   &amp;lt;none&amp;gt;           &amp;lt;none&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Let’s check the logs of the machine-config-daemon pod in the worker node.
This pod has two containers, machine-config-daemon, and oauth-proxy.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;kubectl logs -f machine-config-daemon-vwh4d -n openshift-machine-config-operator -c machine-config-daemon
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, it is possible to see the actual error in the container execution:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;I0816 06:58:42.985762    3240 update.go:283] Checking Reconcilable for config rendered-worker-a9681850fe39078ea0f42bd017922eb7 to rendered-worker-7131e04f110c489a0ad171e719cedc24
I0816 06:58:43.849830    3240 update.go:1403] Starting update from rendered-worker-a9681850fe39078ea0f42bd017922eb7 to rendered-worker-7131e04f110c489a0ad171e719cedc24: &amp;amp;{osUpdate:false kargs:false fips:false passwd:false files:true units:false kernelType:false}
I0816 06:58:43.852961    3240 update.go:1403] Update prepared; beginning drain
E0816 06:58:43.911711    3240 daemon.go:336] WARNING: ignoring DaemonSet-managed Pods: openshift-cluster-node-tuning-operator/tuned-48g5s, openshift-dns/dns-default-h2lt5, openshift-image-registry/node-ca-9z9zt, openshift-machine-config-operator/machine-config-daemon-vwh4d, openshift-monitoring/node-exporter-m5p2n, openshift-multus/multus-lnsng, openshift-sdn/ovs-5xzqs, openshift-sdn/sdn-vplps
.
.
.
I0816 06:58:43.918261    3240 daemon.go:336] evicting pod openshift-ingress/router-default-796df5847b-9hxzx
E0816 06:58:43.928176    3240 daemon.go:336] error when evicting pod &quot;router-default-796df5847b-9hxzx&quot; (will retry after 5s): Cannot evict pod as it would violate the pod&apos;s disruption budget.
I0816 07:08:44.981198    3240 update.go:172] Draining failed with: error when evicting pod &quot;router-default-796df5847b-9hxzx&quot;: global timeout reached: 1m30s, retrying
E0816 07:08:44.981273    3240 writer.go:135] Marking Degraded due to: failed to drain node (5 tries): timed out waiting for the condition: error when evicting pod &quot;router-default-796df5847b-9hxzx&quot;: global timeout reached: 1m30s
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The log shows that the machine config operator failed to drain the worker node before applying the
configuration and executing the restart, as the router-default pod was not able to be
rescheduled in another node. Not being able to schedule again this pod
&lt;code&gt;violates the pod&apos;s disruption budget&lt;/code&gt;, thus, the operator is now degraded.&lt;/p&gt;

&lt;p&gt;Let’s check the router-default pod status:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;kubectl get pod -o wide --all-namespaces | grep &quot;router-default&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It is possible to see that the pod is pending to be scheduled.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;openshift-ingress  router-default-796df5847b-9hxzx  1/1  Running  0  12h  10.0.0.4  okd-worker-01  &amp;lt;none&amp;gt;  &amp;lt;none&amp;gt;
openshift-ingress  router-default-796df5847b-h8bm4  0/1  Pending  0  12h  &amp;lt;none&amp;gt;    &amp;lt;none&amp;gt;         &amp;lt;none&amp;gt;  &amp;lt;none&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Let’s check it’s status:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc describe pod router-default-796df5847b-h8bm4 -n openshift-ingress
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, it is possible to confirm that the pod is &lt;code&gt;Pending&lt;/code&gt; as there is not any available node to schedule it back again.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Name:                 router-default-796df5847b-h8bm4
Namespace:            openshift-ingress
.
.
.
Events:
  Type     Reason            Age        From               Message
  ----     ------            ----       ----               -------
  Warning  FailedScheduling  &amp;lt;unknown&amp;gt;  default-scheduler  0/4 nodes are available: 1 node(s) were unschedulable, 3 node(s) didn&apos;t match node selector.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;We check the nodes status&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;oc get nodes
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Again, it is possible to see that the MachineConfig operator tried to drain the node but it failed
when rescheduling its pods.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;NAME            STATUS                     ROLES    AGE   VERSION
okd-master-01   Ready                      master   12h   v1.18.3
okd-master-02   Ready                      master   12h   v1.18.3
okd-master-03   Ready                      master   12h   v1.18.3
okd-worker-01   Ready,SchedulingDisabled   worker   12h   v1.18.3
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;why-did-this-happen&quot;&gt;Why did this happen?&lt;/h3&gt;

&lt;p&gt;Master nodes are not schedulable to handle workloads, this was configured when the cluster was deployed.
So pretty much the operator didn’t have enough room to reschedule the pods in other nodes.&lt;/p&gt;

&lt;p&gt;The benefits of this approach (using the MachineConfig operator) are uncountable as the operator is smart enough to
avoid services breaking when it finds that a configuration change is not able to
get the system back to a consistent state.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/machineconfig/rabbithole.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;but-not-everything-is-as-perfect-as-it-sounds&quot;&gt;But, not everything is as perfect as it sounds…&lt;/h3&gt;

&lt;p&gt;Ignition files are used to apply these configuration changes and it’s json representation is not human-readable at all, for this we use Fedora CoreOS Configuration (FCC) files in YAML format, then internally these yaml files are converted into an Ignition (JSON) file by the Fedora CoreOS Config Transpiler, which is a tool that produces a JSON Ignition file from the YAML FCC file.&lt;/p&gt;

&lt;p&gt;There is a huge limitation in the resources that can be defined, it is only supported storage, system.d services, and users, so, for executing anything the user will have to render a script that must be called once by a systemd service after the node restarts. This, after using for many many years technologies like Ansible, Puppet, or Chef, it looks like a hacky and dirty approach for users to apply their custom configurations.&lt;/p&gt;

&lt;p&gt;Another thing, debugging, if there is a problem with your MachineConfig object you might see only this &lt;strong&gt;degraded&lt;/strong&gt; state, forcing you to dig into the containers logs and hopefully find the source of any issue you might have.&lt;/p&gt;

&lt;p&gt;I believe there is a lot of room for improvements in the MachineConfig operator, I would love to see an Ansible interface to be able to plug-in my configuration changes by the openshift-machine-config-operator pod. Also, it was showed that the operator improves the system’s resiliency by impeding that a configuration change breaks what we defined as a &lt;strong&gt;cluster’s consistent state&lt;/strong&gt;.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>The easiest and fastest way to deploy an OKD 4.5 cluster in a Libvirt/KVM host</title>
    <summary>Long story short… We will deploy an OKD 4.5 cluster in ~30 minutes (3 controllers, 1 to 10 workers, 1 service, and 1 bootstrap node) using one single command in around 30 minutes using a tool called KubeInit. Note 2021/10/13:...</summary>
    <link href="https://www.pubstack.com/blog/2020/07/31/the-fastest-and-simplest-way-to-deploy-okd-openshift-4-5.html"/>
    <updated>2020-07-31T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2020/07/31/the-fastest-and-simplest-way-to-deploy-okd-openshift-4-5</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Long story short… &lt;strong&gt;We will deploy an OKD 4.5 cluster in ~30 minutes (3 controllers, 1 to 10 workers, 1 service, and 1 bootstrap node) using one single command in around 30 minutes using a tool called &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;KubeInit&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Note 2021/10/13:&lt;/em&gt;&lt;/strong&gt; DEPRECATED - This tutorial only works with
&lt;a href=&quot;https://github.com/Kubeinit/kubeinit/releases/tag/1.0.2&quot;&gt;kubeinit 1.0.2&lt;/a&gt; make
sure you use this version of the code if you are following this tutorial, or
&lt;a href=&quot;https://docs.kubeinit.org/&quot;&gt;refer to the documentation&lt;/a&gt; to use the latest code.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/okd-libvirt.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;I wrote so much automation in the meantime I worked/learned/practiced in OpenStack/RHOSP/Kubernetes/Openshift/OKD
in the last 2Y, but suddenly I “lost” the machine where I hosted all these valuable code snippets.&lt;/p&gt;

&lt;p&gt;With all this… I had to quickly invest some time to put together all that code. The first part is related to K8s/OKD
and I created a small project called KubeInit “The KUBErnetes INITiator” to share it with the world.&lt;/p&gt;

&lt;p&gt;The first (and only for now) playbook will deploy in a single command a fully operational OKD 4.5 cluster with 3
master nodes, 1 compute nodes (configurable from 1 to 10 nodes), 1 services node, and 1 dummy bootstrap node.
The services node has installed HAproxy, Bind, Apache httpd, and NFS to host some of the external required cluster services.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/fast.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;What is OpenShift?&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Red Hat OpenShift is an open source container application platform based on the Kubernetes container orchestrator for enterprise application development and deployment.&lt;/p&gt;

  &lt;p&gt;– &lt;cite&gt;https://www.openshift.com/&lt;/cite&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;There are multiple ways of deploying the Community Distribution of Kubernetes that powers Red Hat OpenShift (&lt;a href=&quot;https://www.okd.io/&quot;&gt;OKD&lt;/a&gt;) depending on the underlying infrastructure where it will be installed. In this particular blog post, we will deploy it on top of a KVM host using Libvirt. The initial upstream support is described in the &lt;a href=&quot;https://github.com/openshift/installer/tree/fcos/docs/dev/libvirt&quot;&gt;official upstream OpenShift documentation&lt;/a&gt;, but as you can see, it involves a high number of manual steps prone to manual errors, and most important, outdated references when the deployment workflow changes.&lt;/p&gt;

&lt;p&gt;In this case, we will use a project based in Ansible playbooks and roles for deploying and configuring multiple Kubernetes distributions, the project is called &lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;KubeInit&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;requirements&quot;&gt;Requirements&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;A CentOS 8 fresh deployed host for hosting all the guests.&lt;/li&gt;
  &lt;li&gt;RAM, depending on how many compute nodes this can go up to 384GB (the smallest amount required is around 64GB), configure the node’s resources in the &lt;a href=&quot;https://github.com/kubeinit/kubeinit/blob/master/hosts/okd/inventory#L8&quot;&gt;inventory file&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;Be able to log in as &lt;code&gt;root&lt;/code&gt; in the hypervisor node without using passwords (using SSH certificate authentication).&lt;/li&gt;
  &lt;li&gt;Reach the hypervisor node using the hostname &lt;code&gt;nyctea&lt;/code&gt;, &lt;a href=&quot;https://github.com/kubeinit/kubeinit/blob/master/hosts/okd/inventory#L56&quot;&gt;you can change this in the inventory&lt;/a&gt; or add an entry in your &lt;code&gt;/etc/hosts&lt;/code&gt; file.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;deploy&quot;&gt;Deploy&lt;/h2&gt;

&lt;p&gt;That’s it, now, let’s execute the deployment command:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone https://github.com/kubeinit/kubeinit.git
cd kubeinit
ansible-playbook \
    --user root \
    -v -i ./hosts/okd/inventory \
    --become \
    --become-user root \
    ./playbooks/okd.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You should get something like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[ccamacho@wakawaka kubeinit]$ time ansible-playbook \
                                  --user root \
                                  -i ./hosts/okd/inventory \
                                  --become \
                                  --become-user root \
                                  ./playbooks/okd.yml

Using /etc/ansible/ansible.cfg as config file
PLAY [Main deployment playbook for OKD] ********************************************
TASK [Gathering Facts] *************************************************************
ok: [hypervisor-01]
.
.
.
&quot;NAME              STATUS   ROLES    AGE     VERSION&quot;,
&quot;okd-master-01     Ready    master   16m     v1.18.3&quot;,
&quot;okd-master-02     Ready    master   15m     v1.18.3&quot;,
&quot;okd-master-03     Ready    master   12m     v1.18.3&quot;,
&quot;okd-worker-01     Ready    worker   6m12s   v1.18.3&quot;
]}]}}

PLAY RECAP *************************************************************************
hypervisor-01: ok=83 changed=39 unreachable=0 failed=0 skipped=6 rescued=0 ignored=3   

real 33m49.483s
user 2m30.920s
sys  0m19.678s
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;A ready to use OKD 4.5 cluster in ~30 minutes!&lt;/p&gt;

&lt;p&gt;What you just executed should give you an operational OKD 4.5 cluster with 3 master nodes, 1 compute node (configurable from 1 to 10 nodes), 1 services node, and 1 dummy bootstrap node. The services node has installed HAproxy, Bind, Apache httpd, and NFS to host some of the external required cluster services.&lt;/p&gt;

&lt;p&gt;Now, ssh into your hypervisor node and check the cluster status from the services machine.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;ssh root@nyctea
ssh root@10.0.0.100
# This is now the service node (check the Ansible inventory for IPs and other details)
export KUBECONFIG=~/install_dir/auth/kubeconfig
oc get pv
oc get nodes
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The root password of the services machine is &lt;a href=&quot;https://github.com/kubeinit/kubeinit/blob/master/playbooks/okd.yml#L54&quot;&gt;defined as a variable in the playbook&lt;/a&gt;, but the public key of the hypervisor root user is deployed across all the cluster nodes, so, you should be able to connect to any node from the hypervisor machine using SSH certificate authentication.
Connect as the &lt;code&gt;root&lt;/code&gt; user for the services machine (because is CentOS based) or as the &lt;code&gt;core&lt;/code&gt; user to any other node (CoreOS based), using the IP addresses defined in the inventory file.&lt;/p&gt;

&lt;p&gt;There are reasons for having this password-based access to the services node. Sometimes we need to connect to the services machine when we deploy for debugging purposes, in this case, if we don’t set a password for the user we won’t be able to log in using the console. Instead, for all the CoreOS nodes, once they are bootstrapped correctly/automatically there is no need to log in using the console, just wait until they are deployed to connect to them using SSH.&lt;/p&gt;

&lt;h2 id=&quot;final-thoughts&quot;&gt;Final thoughts&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/kubeinit/kubeinit&quot;&gt;KubeInit&lt;/a&gt; is a simple and intuitive way to show to potential users and customers how easy an OpenShift (OKD) cluster can be deployed, managed, and used for any purpose they might require (production or development environments). Once they have the environment deployed then it’s always easier to learn how it works, hack it, and even start contributing to the upstream community, if you are interested in this last part, please read the &lt;a href=&quot;https://www.okd.io/#contribute&quot;&gt;contribution page&lt;/a&gt; from the official OKD website.&lt;/p&gt;

&lt;p&gt;All the Ansible automation is hosted in &lt;a href=&quot;https://github.com/kubeinit/kubeinit/&quot;&gt;https://github.com/kubeinit/kubeinit/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubeinit/happy.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;The code is not perfect by any mean but is a good example of how to use a libvirt host to run your OKD cluster and it’s incredibly
easy to improve and add other roles and scenarios.&lt;/p&gt;

&lt;p&gt;Next steps, I’ll clean all the lint nits around…&lt;/p&gt;

&lt;p&gt;This is the GitHub repository &lt;a href=&quot;https://github.com/kubeinit/kubeinit/&quot;&gt;https://github.com/kubeinit/kubeinit/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Please if you like it, add some comments, test it, use it, hack it, break it, or become a stargazer ;)&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Stay at home!</title>
    <summary>For the people you love, please stay at home! COVID-19 is a respiratory illness (which affects breathing) caused by a new coronavirus. Symptoms can range from mild, such as a sore throat, to severe, such as pneumonia. Most people will...</summary>
    <link href="https://www.pubstack.com/blog/2020/03/24/pod.html"/>
    <updated>2020-03-24T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2020/03/24/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;For the people you love, please stay at home!&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/stayathome.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;COVID-19 is a respiratory illness (which affects breathing)
caused by a new coronavirus.&lt;/p&gt;

&lt;p&gt;Symptoms can range from mild, such as a sore throat, to severe,
such as pneumonia. Most people will not need medical attention for
their symptoms. Together we can slow the spread and protect those at higher
risk of severe illness and our health care workers from getting sick.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #14 (Containerized deployments without paunch)</title>
    <summary>This is the 14th release of the TripleO “Deep Dive” sessions Thanks to Emilien Macchi for this deep dive session about the status of the containerized deployment without Paunch. You can access the presentation. So please, check the full session...</summary>
    <link href="https://www.pubstack.com/blog/2020/02/18/tripleo-deep-dive-session-14.html"/>
    <updated>2020-02-18T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2020/02/18/tripleo-deep-dive-session-14</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the 14th release of the &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt;
“Deep Dive” sessions&lt;/p&gt;

&lt;p&gt;Thanks to &lt;a href=&quot;http://my1.fr/blog&quot;&gt;Emilien Macchi&lt;/a&gt;
for this deep dive session about the status of the containerized deployment without Paunch.&lt;/p&gt;

&lt;p&gt;You can access the &lt;a href=&quot;https://docs.google.com/presentation/d/1dndHde25r8MPSdakLp9y5ztL3d6jXmCy-JfhIc6bJbo/edit&quot;&gt;presentation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=D18RaSBGyQU&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/D18RaSBGyQU&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt;
to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Badgeboard - GitHub actions, where is my CI dashboard!</title>
    <summary>A widely used term in the agile world is the information radiator, which refers to display the project’s critical information as simple as possible. These information radiators improve the team’s communication by amplifying pieces of data to get a better...</summary>
    <link href="https://www.pubstack.com/blog/2019/12/04/github-actions-where-is-my-ci-dashboard.html"/>
    <updated>2019-12-04T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2019/12/04/github-actions-where-is-my-ci-dashboard</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;A widely used term in the agile world is the
information radiator, which refers to display
the project’s critical information as simple
as possible. These information radiators improve
the team’s communication by amplifying pieces of
data to get a better notion of self-awareness.&lt;/p&gt;

&lt;h2 id=&quot;tldr&quot;&gt;TL;DR;&lt;/h2&gt;

&lt;p&gt;If you just want to go straight to the solution
of how to convert SVG badges to a widget-based
CI dashboard, just go to the
&lt;a href=&quot;https://github.com/pystol/badgeboard&quot;&gt;Badgeboard&lt;/a&gt;
repository or open the
&lt;a href=&quot;https://badgeboard.pystol.org&quot;&gt;demo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Otherwise, continue reading.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/badgeboard/01_build_monitor.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;If you are beginning to apply agile methodologies
in your team, a good information radiator can
be for example a CI status dashboard.&lt;/p&gt;

&lt;p&gt;The purpose of this information radiators, as the name
implies, is to radiate information. It is something that
people know about it and can see it easily. Keep in mind
that a good information radiator will adapt to the
needs of the project throughout its life, so try not to
invest too much time in its initial design, and make sure
that it can be easily changed/fixed/used/improved.&lt;/p&gt;

&lt;p&gt;Some features of these information radiators:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;It reflects the now&lt;/strong&gt;: Information radiators always
show what is going on (if things are going north or south).
They help us see what matters now to the team and what
to focus on in most of the cases when we hit i.e. regressions.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Minimum maximum value information&lt;/strong&gt;: Simple
and highly valuable. The more information, the less
focus on important information, and more effort to
maintain the panel.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Must be alive&lt;/strong&gt;: This information artifact should be
updated each time. As soon as reality changes, the
artifact status should also change.&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;

&lt;h1 id=&quot;ci-dashboards&quot;&gt;CI Dashboards&lt;/h1&gt;

&lt;p&gt;CI dashboards are a graphical representation of the
continuous integration test results, usually HTML
based and displaying in colors (red, yellow and green)
the actual tests running results.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/badgeboard/02_intro.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h1 id=&quot;github-badges&quot;&gt;GitHub badges&lt;/h1&gt;

&lt;p&gt;We can see the status badges as a brief summary of
the CI pipeline status. Badges&lt;a href=&quot;https://docs.gitlab.com/ee/user/project/badges.html&quot;&gt;1&lt;/a&gt; are a unified way
to present condensed pieces of information about your
projects.
They are also considered as any visual token
of achievement, affiliation, authorization, or other trust
relationship.&lt;/p&gt;

&lt;p&gt;They consist of a small image and
additionally a URL that the image points to. Examples
for badges can be the pipeline status, test coverage,
or ways to contact the project maintainers.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/badgeboard/03_badges.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h1 id=&quot;what-now&quot;&gt;What now?&lt;/h1&gt;

&lt;p&gt;We introduce a tool to convert SVG badges to
CI dasboards
(&lt;a href=&quot;https://github.com/pystol/badgeboard&quot;&gt;Badgeboard&lt;/a&gt;).&lt;/p&gt;

&lt;h2 id=&quot;github-actions---no-ci-dashboard-by-default-&quot;&gt;GitHub actions -&amp;gt; No CI dashboard by default :(&lt;/h2&gt;

&lt;p&gt;I really liked the big dashboard view printed on a big
screen so everyone can see it in a quick and easy manner.
So, if we start using i.e. GitHub actions we lose the
ability to have this graphical representation towards a
badge based view.&lt;/p&gt;

&lt;h2 id=&quot;yehi-here-we-have-badgeboard&quot;&gt;Yehi!!! Here we have badgeboard!!!&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/pystol/badgeboard&quot;&gt;Badgeboard&lt;/a&gt;
is an awesome information radiator
to show the status of the badges you
have in your project as a widget-based
dashboard, in particular it’s
the main CI dashboard of
&lt;a href=&quot;https://github.com/pystol/pystol&quot;&gt;Pystol&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Is a very simple tool that
converts the information
inside any SVG badge you define from any source
in a widget-based dashboard.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/badgeboard/04_badgeboard.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;demo&quot;&gt;Demo&lt;/h2&gt;

&lt;p&gt;Just &lt;a href=&quot;https://badgeboard.pystol.org/&quot;&gt;open the index.html&lt;/a&gt;
file and see how the dashboard is rendered.&lt;/p&gt;

&lt;h2 id=&quot;requirements&quot;&gt;Requirements&lt;/h2&gt;

&lt;p&gt;None! Just clone the repo and open the index.html file
in your favorite browser.&lt;/p&gt;

&lt;p&gt;Once you have a copy, make the adjustments to the configuration
file located in &lt;strong&gt;assets/data_source/badges_list.js&lt;/strong&gt; to use your
own badges.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Due to CORS restrictions, badgeboard uses a
&lt;a href=&quot;https://cors-anywhere.herokuapp.com/&quot;&gt;proxy&lt;/a&gt;
to add cross-origin headers when building the widgets panel.
Check additional information about the CORS proxy on
&lt;a href=&quot;https://www.npmjs.com/package/cors-anywhere&quot;&gt;NPM&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;how-it-works&quot;&gt;How it works&lt;/h2&gt;

&lt;p&gt;We capture the badges list (SVG files) and
we read the color information from a single pixel,
from there, depending on the color of the pixel the
widget is painted with its corresponding color.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/badgeboard/05_measure.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;This would be the usual view of the project badges.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/badgeboard/06_badges.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;adding-your-badges-and-colors&quot;&gt;Adding your badges and colors&lt;/h2&gt;

&lt;p&gt;Use the &lt;strong&gt;coordinates_testing.html&lt;/strong&gt; file
to determine based on the SVG coordinates
the RGB color to be used in the JS configuration
file.&lt;/p&gt;

&lt;p&gt;To do so, copy the link to your badge, find the
badge example in the file, replace it with yours,
open the file in a browser, get the console logs
and move around the mouse over the badge to see
the coordinates and the RBG color that matches it.&lt;/p&gt;

&lt;h2 id=&quot;adding-custom-color-badges&quot;&gt;Adding custom color badges&lt;/h2&gt;

&lt;p&gt;To add new colors, edit the &lt;strong&gt;assets/css/custom.css&lt;/strong&gt; file and
add new color definitions for the widgets.
Once you define the new color, in the configuration file
called &lt;strong&gt;assets/data_source/badges_list.js&lt;/strong&gt;
use the new color like in the following example.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;colors:[[&apos;&amp;lt;new_color_definition&apos;,&apos;&amp;lt;matching_rgb_from_the _badge&amp;gt;&apos;],[&apos;status-good&apos;,&apos;48,196,82&apos;]],
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;troubleshooting&quot;&gt;Troubleshooting&lt;/h2&gt;

&lt;p&gt;If the board does not render correctly (No widgets at all)
it’s for sure that you refreshed too many times the page.
We use a &lt;strong&gt;CORS&lt;/strong&gt; proxy to add cross-origin headers
when building the widgets panel.&lt;/p&gt;

&lt;p&gt;The requests it can handled are limited in order to avoid
crashing the container, so we can all use it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Please read the requirements&lt;/strong&gt; and use your own
&lt;a href=&quot;https://www.npmjs.com/package/cors-anywhere&quot;&gt;NPM proxy&lt;/a&gt;
so these restrictions go away.&lt;/p&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;p&gt;We use both &lt;a href=&quot;https://github.com/smashing/smashing&quot;&gt;smashing&lt;/a&gt;
and &lt;a href=&quot;https://github.com/ducksboard/gridster.js&quot;&gt;gridster&lt;/a&gt;
to create the dashboard and its widgets.&lt;/p&gt;

&lt;h2 id=&quot;license&quot;&gt;License&lt;/h2&gt;

&lt;p&gt;Badgeboard is part of &lt;a href=&quot;https://github.com/pystol/pystol&quot;&gt;Pystol&lt;/a&gt;
and &lt;a href=&quot;https://github.com/pystol/pystol&quot;&gt;Pystol&lt;/a&gt; is
open source software licensed under the
&lt;a href=&quot;LICENSE&quot;&gt;Apache license&lt;/a&gt;.&lt;/p&gt;

&lt;h1 id=&quot;next-steps&quot;&gt;Next steps&lt;/h1&gt;

&lt;p&gt;It would be awesome to get some feedback around the tool, so,
please feel free to file issues, pull requests or comments
in this post or in the &lt;a href=&quot;https://github.com/pystol/badgeboard&quot;&gt;Badgeboard&lt;/a&gt;
repository.&lt;/p&gt;

&lt;h2 id=&quot;list-of-to-dos&quot;&gt;List of TO-DOs&lt;/h2&gt;

&lt;p&gt;There are still some bits to fix in &lt;a href=&quot;https://github.com/pystol/badgeboard&quot;&gt;Badgeboard&lt;/a&gt;
for example:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;del&gt;Make the link from the widgets to work.&lt;/del&gt;&lt;/li&gt;
  &lt;li&gt;Move common hardcoded bits into variables for an easier update.&lt;/li&gt;
  &lt;li&gt;Improve the documentation.&lt;/li&gt;
&lt;/ul&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2019/12/04:&lt;/strong&gt; Initial version.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Oil painting and Minikube - Installing Minikube in Centos 7</title>
    <summary>Today I got some time to do some oil painting and reading about techy stuff :) This post is a brief summary of the deployment steps for installing Minikube in a Centos 7 baremetal machine, and, to show you my...</summary>
    <link href="https://www.pubstack.com/blog/2019/10/13/oil-painting-and-installing-minikube-in-centos-7.html"/>
    <updated>2019-10-13T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2019/10/13/oil-painting-and-installing-minikube-in-centos-7</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Today I got some time to do some oil painting and reading about techy stuff :)&lt;/p&gt;

&lt;p&gt;This post is a brief summary of the
deployment steps for installing Minikube in a Centos 7
baremetal machine, and, to show you my painting (check the fedora!).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/Terraza-En-Grecia-by-Carlos-Camacho.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The following steps need to run in the Hypervisor machine
in which you will like to have your Minikube deployment.&lt;/p&gt;

&lt;p&gt;You need to execute them one after the other,
the idea of this recipe is to
have something just for copying/pasting.&lt;/p&gt;

&lt;p&gt;The usual steps are:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;01 - Prepare the hypervisor node.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, let’s install some dependencies.
Same Hypervisor node, same &lt;code&gt;root&lt;/code&gt; user.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# In this dev. env. /var is only 50GB, so I will create
# a sym link to another location with more capacity.
sudo mkdir -p /home/libvirt/
sudo ln -sf /home/libvirt/ /var/lib/libvirt

sudo mkdir -p /home/docker/
sudo ln -sf /home/docker/ /var/lib/docker

# Install some packages
sudo yum install dnf -y
sudo dnf update -y
sudo dnf groupinstall &quot;Virtualization Host&quot; -y
sudo dnf install libvirt qemu-kvm virt-install virt-top libguestfs-tools bridge-utils -y
sudo dnf install git lvm2 lvm2-devel -y
sudo dnf install libvirt-python python-lxml libvirt curl-y
sudo dnf install binutils qt gcc make patch libgomp -y
sudo dnf install glibc-headers glibc-devel kernel-headers -y
sudo dnf install kernel-devel dkms bash-completion -y
sudo dnf install nano wget -y
sudo dnf install python3-pip -y 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;02 - Check that the kernel modules are OK.&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Check the kernel modules are OK
sudo lsmod | grep kvm
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;03 - Enable libvirtd, disable SElinux xD and firewalld.&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Enable libvirtd
sudo systemctl start libvirtd
sudo systemctl enable libvirtd

# Disable selinux &amp;amp; stop firewall as needed.
setenforce 0
perl -pi -e &apos;s/SELINUX\=enforcing/SELINUX\=disabled/g&apos; /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;04 - Install Minikube.&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#Install minikube
/usr/bin/curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 &amp;amp;&amp;amp; chmod +x minikube
cp -p minikube /usr/local/bin &amp;amp;&amp;amp; rm -f minikube

# Create the repo for kubernetes
cat &amp;lt;&amp;lt; EOF &amp;gt; /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

# Install kubectl
sudo dnf install kubectl -y
source &amp;lt;(kubectl completion bash)
echo &quot;source &amp;lt;(kubectl completion bash)&quot; &amp;gt;&amp;gt; ~/.bashrc
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;05 - Create the toor user (from the Hypervisor node, as root).&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo useradd toor
echo &quot;toor:toor&quot; | sudo chpasswd
echo &quot;toor ALL=(root) NOPASSWD:ALL&quot; \
  | sudo tee /etc/sudoers.d/toor
sudo chmod 0440 /etc/sudoers.d/toor
sudo su - toor

cd
mkdir .ssh
ssh-keygen -t rsa -N &quot;&quot; -f .ssh/id_rsa
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, follow as the &lt;code&gt;toor&lt;/code&gt; user and prepare the Hypervisor node
for Minikube.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;06 - Install Docker.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We will like to also use docker in the Hypervisor node
for creating images and debugging purposes.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Install docker
sudo dnf install docker -y
sudo usermod --append --groups dockerroot toor
sudo tee /etc/docker/daemon.json &amp;gt;/dev/null &amp;lt;&amp;lt;-EOF
{
    &quot;live-restore&quot;: true,
    &quot;group&quot;: &quot;dockerroot&quot;
}
EOF
sudo systemctl start docker
sudo systemctl enable docker

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;07 - Finish the Minikube configuration.&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Add to bashrc in toor user
source &amp;lt;(kubectl completion bash)
echo &quot;source &amp;lt;(kubectl completion bash)&quot; &amp;gt;&amp;gt; ~/.bashrc

# We add toor to the libvirtd group
sudo usermod --append --groups libvirt toor
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;08 - Start Minikube.&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;minikube start --memory=65536 --cpus=4 --vm-driver kvm2
export no_proxy=$no_proxy,$(minikube ip)
nohup kubectl proxy --address=&apos;0.0.0.0&apos; --port=8001 --disable-filter=true &amp;amp;
sleep 30
minikube addons enable dashboard
nohup minikube dashboard &amp;amp;
minikube addons open dashboard
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The Minikube instance should be reachable from the following URL:&lt;/p&gt;

&lt;p&gt;http://machine_ip:8001/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# To stop/delete
kubectl delete deploy,svc --all
minikube stop
minikube delete
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;09 - Minikube cheat sheet.&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# set &amp;amp; get current context of cluster
 kubectl config use-context minikube
 kubectl config current-context

# fetch all the kubernetes objects for a namespace
 kubectl get all -n kube-system

# display cluster details
 kubectl cluster-info

# set custom memory and cpu 
 minikube config set memory 4096
 minikube config set cpus 2

# fetch cluster ip
 minikube ip

# ssh to the minikube vm
 minikube ssh

# display addons list and status
 minikube addons list

# exposes service to vm &amp;amp; retrieves url 
 minikube service elasticsearch
 minikube service elasticsearch --url
&lt;/code&gt;&lt;/pre&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2019/10/13:&lt;/strong&gt; Initial version.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2019/10/15:&lt;/strong&gt; Install also docker in the hypervisor.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Automated weekly reports</title>
    <summary>Remote work is a trend among Senior or hi-performant roles. In general when working remotely it might be hard to measure or be accountable for all the work we/you usually do. Some of these tasks can be among user escalations,...</summary>
    <link href="https://www.pubstack.com/blog/2019/07/07/remote-automated-report.html"/>
    <updated>2019-07-07T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2019/07/07/remote-automated-report</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Remote work is a trend among
Senior or hi-performant roles.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/its-time-for-weekly-reports.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;In general when working remotely it might be hard to measure or be
accountable for all the work we/you usually do.&lt;/p&gt;

&lt;p&gt;Some of these tasks can be among user escalations,
preparing development environments, reviews, writing code,
checking unit tests, verifying CI systems status,
meetings, have 1and1 with your associates among many others…&lt;/p&gt;

&lt;p&gt;And its really easy to miss the track or a log about these
tasks we want to actually report.&lt;/p&gt;

&lt;p&gt;In this particular case I will explain how to generate automated
reports with the tasks you have logged in a Trello
board using a google docs template, also we will fetch data from
Bugzilla, Launchpad and Storyboard.&lt;/p&gt;

&lt;h3 id=&quot;resources&quot;&gt;Resources&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;The main &lt;a href=&quot;https://docs.google.com/document/d/1qh7vuC8vPTum_BItCm5O0c6DmyXGXK-NABBXaoNuRMM/edit&quot;&gt;google doc&lt;/a&gt;
we will use for this how-to.&lt;/li&gt;
  &lt;li&gt;A code repository in &lt;a href=&quot;https://github.com/ccamacho/gdocsreport&quot;&gt;GitHub&lt;/a&gt;
with the JS/HTML code used inside the google docs
(its all integrated to the google docs, so is not mandatory to use this, just read the &lt;a href=&quot;https://github.com/ccamacho/gdocsreport/blob/master/README.md&quot;&gt;README&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/00_google_docs_menu.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;how-to&quot;&gt;How to&lt;/h3&gt;

&lt;p&gt;If you open the &lt;a href=&quot;https://docs.google.com/document/d/1qh7vuC8vPTum_BItCm5O0c6DmyXGXK-NABBXaoNuRMM/edit&quot;&gt;google document&lt;/a&gt; and click
“Main menu” -&amp;gt; “Scrum” you will see the following options:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Create today’s agenda.&lt;/li&gt;
  &lt;li&gt;Create tomorrow’s agenda.&lt;/li&gt;
  &lt;li&gt;Create today’s agenda with Trello items.&lt;/li&gt;
  &lt;li&gt;Generate activity report.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;create-todays-and-tomorrows-agenda&quot;&gt;Create today’s and tomorrow’s agenda&lt;/h3&gt;

&lt;p&gt;These two options are really simple to explain, we will just
generate an enumerated text section to write anything we need.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/01_empty_agendas.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;You will need to grant permissions to the script, the scripts are
located in
&lt;strong&gt;“Main menu” -&amp;gt; “Tools” -&amp;gt; “Script editor”&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;There you will be able to see the code we can run from this
google document (we will speak about the code later).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/02_tomorrow_empty_agenda.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;create-todays-agenda-with-trello-items&quot;&gt;Create today’s agenda with Trello items.&lt;/h3&gt;

&lt;p&gt;In this case we will fetch the content of three lists in a Trello board.&lt;/p&gt;

&lt;p&gt;In particular I have created an example Trello board for this tutorial&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/03_trello_dashboard.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The board in question is private now (you can set it up as public, but is
private to show how to configure the Key and Token for Trello, otherwise
you will not be able to access it).&lt;/p&gt;

&lt;p&gt;When you click on the option &lt;strong&gt;Create today’s agenda with Trello items.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/04_index_create_agenda_with_trello_items.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;We will generate &lt;strong&gt;In the place you have the cursor&lt;/strong&gt; the agenda pulling the
content of the board lists.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/05_index_create_agenda_with_trello_items.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;As you can see we have in the generated agenda the following information
based on each list.
In this case we have three lists, &lt;strong&gt;To Do&lt;/strong&gt;, &lt;strong&gt;Doing&lt;/strong&gt;, and &lt;strong&gt;Done&lt;/strong&gt;, and in
each list we have:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Assignees&lt;/li&gt;
  &lt;li&gt;Description.&lt;/li&gt;
  &lt;li&gt;Tags.&lt;/li&gt;
  &lt;li&gt;Link to the Trello card.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now, to customize this, please &lt;strong&gt;Create your own copy of the &lt;a href=&quot;https://docs.google.com/document/d/1qh7vuC8vPTum_BItCm5O0c6DmyXGXK-NABBXaoNuRMM/edit&quot;&gt;google document&lt;/a&gt;!!&lt;/strong&gt;
and proceed to edit it’s content by clicking:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Main menu” -&amp;gt; “Tools” -&amp;gt; “Script editor”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/06_google_script_editor.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The section in which we will focus to customize are the following parameters.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/07_google_script_parameters.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You can update and modify the script as you wish&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you open your board appending a &lt;strong&gt;.json&lt;/strong&gt; in the URL you will fetch
the IDs of the lists we need to display.&lt;/p&gt;

&lt;p&gt;For example in this example will be:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;https://trello.com/b/L8t9rCOz/1and1.json
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In this case the variables &lt;strong&gt;TRELLO KEY&lt;/strong&gt;, and &lt;strong&gt;TRELLO_TOKEN&lt;/strong&gt; will be needed if the board is private,
otherwise you won’t need them at all.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var TRELLO_KEY = &apos;8b164347d9cf6a1026b5d20dc8556620&apos;;
var TRELLO_TOKEN = &apos;4a64be415e2f7d128d2543fbbddd2b8ffd33d3ead6921803668ca39fe715f5cd&apos;;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The following parameters are:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;TRELLO_LIST_ID&lt;/strong&gt;: The IDs of the lists we will fetch the content.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;TRELLO_TITLES&lt;/strong&gt;:  The titles we will add to the report (the order should match, first list ID will be displayed under the first title and so on).&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;TRELLO_USER_FILTER&lt;/strong&gt;: Filter the cards based on the assignee name, here if this is a report, it might be a good idea to have your
manager name and your name. Use the name you have in Trello. (see the example)&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;var TRELLO_LIST_ID = [&quot;5d20bd50eb63e24f7a0c8744&quot;, &quot;5d20bd50eb63e24f7a0c8745&quot;,&quot;5d20bd50eb63e24f7a0c8746&quot;]; //To Do, Doing, Done
var TRELLO_TITLES = [&quot;To Do&quot;, &quot;Doing&quot;,&quot;Done&quot;,]; //To Do, Doing, Done
var TRELLO_USER_FILTER = [&quot;Carlos Camacho&quot;, &quot;Pubstack&quot;]; //Only display these people cards
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You will need to generate a &lt;strong&gt;Developer key&lt;/strong&gt; and a &lt;strong&gt;Token&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/08_key.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Use the Key generated.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/09_key_view.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Then you need to generate a token to be able to interact with Trello from the Google docs scripts.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/10_token.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Copy the Token.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/11_token_view.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Replace both &lt;strong&gt;TRELLO KEY&lt;/strong&gt;, and &lt;strong&gt;TRELLO_TOKEN&lt;/strong&gt; with the values you now have.&lt;/p&gt;

&lt;h3 id=&quot;generate-activity-report&quot;&gt;Generate activity report.&lt;/h3&gt;

&lt;p&gt;This section will generate an activity report based on quarters, and this will have
a little bit more of information:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Stackalytics.&lt;/li&gt;
  &lt;li&gt;Launchpad.&lt;/li&gt;
  &lt;li&gt;Storyboard.&lt;/li&gt;
  &lt;li&gt;Bugzilla.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The information retrieved here is not private as is base in upstream metrics, so
you can just use mine as an example.&lt;/p&gt;

&lt;p&gt;Basically based in the following configuration parameters:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/* Stackalytics variables */
var STACKALYTICS_USER= &quot;ccamacho&quot;;
/* Bugzilla variables */
var BZ_HOST = &quot;https://bugzilla.redhat.com&quot;;
var BZ_STATUS = &quot;bug_status=NEW&amp;amp;bug_status=ASSIGNED&amp;amp;bug_status=POST&amp;amp;bug_status=MODIFIED&amp;amp;bug_status=ON_DEV&amp;amp;bug_status=ON_QA&amp;amp;bug_status=VERIFIED&amp;amp;bug_status=RELEASE_PENDING&quot;;
var BZ_EMAIL = &quot;ccamacho%40redhat.com&quot;;
/* Launchpad variables */
var LAUNCHPAD_USER = &quot;ccamacho&quot;;
/* Storyboard variables */
var STORYBOARD_USER = &quot;3328&quot;;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Those parameters basically describe the data we will fetch, i.e. the BZ query, the BZ email and your Launchpad and Storyboard user ID.&lt;/p&gt;

&lt;p&gt;Then when you generate the activity report you will filter by dates, in my particular case I based the reports on each quarter.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/13_generate_quarterly_report_selection.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The code to configure the date filter is also stored in the google doc.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/12_quarterly_report.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;And then you can see the activity report generated correctly.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/14_activity_report.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Again, if you don’t trust to create a copy of the document
and use it directly because of the
google apps permissions requirement,
you can always get the code in &lt;a href=&quot;https://github.com/ccamacho/gdocsreport&quot;&gt;GitHub&lt;/a&gt;
and follow the &lt;a href=&quot;https://github.com/ccamacho/gdocsreport/blob/master/README.md&quot;&gt;README&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is a nice way of keeping up reported your contributions in the team in an easy and automated way.
Having a record of all the tasks you did is a really nice way of i.e. make a
yearly retrospective to share your achievements.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/1and1s/weekly_reports.jfif&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2019/07/07:&lt;/strong&gt; Initial version.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2019/07/08:&lt;/strong&gt; Fixed some nits.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Advanced Deployment with Red Hat OpenShift - Retrospective</title>
    <summary>I had the opportunity to attend last week to a training session in the office about Advanced Deployment with Red Hat OpenShift. The course in general covers installing Red Hat OpenShift Container Platform in an HA environment or without an...</summary>
    <link href="https://www.pubstack.com/blog/2019/07/02/advanced-deployment-with-red-hat-openshift-retro.html"/>
    <updated>2019-07-02T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2019/07/02/advanced-deployment-with-red-hat-openshift-retro</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;I had the opportunity to attend last week to a training session
in the office about Advanced Deployment with Red Hat OpenShift.
The course in general covers installing Red Hat OpenShift Container
Platform in an HA environment or without an internet connection.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/Red-Hat-OpenShift-4.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Other topics include networking and security configuration,
and management skills using Red Hat OpenShift Container Platform.
In theory,  after completing the course, you should be able to:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Describe and install OpenShift in an HA environment.&lt;/li&gt;
  &lt;li&gt;Describe and configure OpenShift Machines.&lt;/li&gt;
  &lt;li&gt;Describe and configure networking including creating network policies to secure applications.&lt;/li&gt;
  &lt;li&gt;Describe and configure the OpenShift Scheduler.&lt;/li&gt;
  &lt;li&gt;Protect the platform using quotas and limits.&lt;/li&gt;
  &lt;li&gt;Describe and install OpenShift without an internet connection (disconnected install).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As usual, there is some previous knowledge about the technology presented
in this course you should have, among others you should have some:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Understanding of networking and concepts such as routing and software-defined networking (SDN)&lt;/li&gt;
  &lt;li&gt;Understanding of containers and virtualization&lt;/li&gt;
  &lt;li&gt;Basic understanding of development life cycle and developer workflow&lt;/li&gt;
  &lt;li&gt;Ability to read and modify code&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The course is comprised of 8 modules covering:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Introduction to Course and Learning Environment.&lt;/li&gt;
  &lt;li&gt;Learn about the Advanced Deployment with Red Hat OpenShift course.&lt;/li&gt;
  &lt;li&gt;Understand the prerequisites, training environment, and system designations used during the lab procedures.&lt;/li&gt;
  &lt;li&gt;Learn tips for successfully completing the labs.&lt;/li&gt;
  &lt;li&gt;Understand course resources.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;disconnected-install&quot;&gt;Disconnected Install&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Learn what a disconnected install is and about the architectures for disconnected environments.&lt;/li&gt;
  &lt;li&gt;Learn about the advanced installed and the reference configuration implemented with Ansible Playbooks.&lt;/li&gt;
  &lt;li&gt;Review the software components required for a disconnected install, including Red Hat OpenShift
Container Platform installation software, Red Hat OpenShift Container Platform images, a source code repository, and a development artifact repository.&lt;/li&gt;
  &lt;li&gt;Learn how to import images from preloaded Docker storage or a local repository.&lt;/li&gt;
  &lt;li&gt;Perform an installation of Red Hat OpenShift Container Platform, including importing other images
such as Nexus and deploying other infrastructure like the source code repository.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;openshift-4-installation&quot;&gt;OpenShift 4 Installation&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Review the many components of the OpenShift architecture.&lt;/li&gt;
  &lt;li&gt;Use OpenShift installer to deploy an HA OpenShift cluster.&lt;/li&gt;
  &lt;li&gt;Understand how application HA is achieved with the replication controller and the scheduler.&lt;/li&gt;
  &lt;li&gt;Learn about container log aggregation and metrics collection.&lt;/li&gt;
  &lt;li&gt;Use diagnostics tools in server and client environments.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;machine-management&quot;&gt;Machine Management&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Review how OpenShift manages underlying infrastructure&lt;/li&gt;
  &lt;li&gt;Change MachineSet and Machine Configuration&lt;/li&gt;
  &lt;li&gt;Add nodes by scaling MachineSets&lt;/li&gt;
  &lt;li&gt;Understand and configure the Cluster Autoscaler&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;networking&quot;&gt;Networking&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Review networking goals and software-defined networking (SDN).&lt;/li&gt;
  &lt;li&gt;Review packet-flow scenarios and learn about traffic inside an OpenShift cluster.&lt;/li&gt;
  &lt;li&gt;Learn about local traffic in a cluster and how OpenShift controls access between different OpenShift namespaces and projects.&lt;/li&gt;
  &lt;li&gt;Learn how pods connect to external hosts and how IPTables controls access to networks outside the SDN cluster.&lt;/li&gt;
  &lt;li&gt;Study how pods communicate across a cluster and about traffic inside a cluster.&lt;/li&gt;
  &lt;li&gt;Learn about pod IP allocation and network isolation.&lt;/li&gt;
  &lt;li&gt;Configure SDN and set up external access.&lt;/li&gt;
  &lt;li&gt;Study project network management and setting secure network policies.&lt;/li&gt;
  &lt;li&gt;Learn about the seven common use cases for NetworkPolicy.&lt;/li&gt;
  &lt;li&gt;Learn about OpenShift internal DNS.&lt;/li&gt;
  &lt;li&gt;Learn about external access, including load balancing in SDN and establishing a tunnel in ramp mode.&lt;/li&gt;
  &lt;li&gt;Understand how OpenShift masters also serve as an internal domain name service (DNS).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;network-policy&quot;&gt;Network Policy&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Learn about NetworkPolicy&lt;/li&gt;
  &lt;li&gt;Configure NetworkPolicy objects in the cluster&lt;/li&gt;
  &lt;li&gt;Protect a complex application using NetworkPolicy&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;managing-compute-resources&quot;&gt;Managing Compute Resources&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Learn what compute resources are and about requesting, allocating, and consuming them.&lt;/li&gt;
  &lt;li&gt;Learn about compute requests, CPU limits, and memory limits.&lt;/li&gt;
  &lt;li&gt;Learn about quality of service (QoS) tiers.&lt;/li&gt;
  &lt;li&gt;Create, edit, and delete project resource limits.&lt;/li&gt;
  &lt;li&gt;Learn how limit ranges enumerate and specify project compute resource constraints for pods, containers, images, and image streams.&lt;/li&gt;
  &lt;li&gt;Learn about container limits and image limits.&lt;/li&gt;
  &lt;li&gt;Learn how to use quotas and limit ranges to limit the number of objects or amount of compute resources that are used in a project.&lt;/li&gt;
  &lt;li&gt;Understand which resources can be managed with quotas.&lt;/li&gt;
  &lt;li&gt;Learn how BestEffort, NotBestEffort, Terminating, and NotTerminating quota scopes restricts pod resources.&lt;/li&gt;
  &lt;li&gt;Understand how quotas are enforced and how to set quotas across multiple projects.&lt;/li&gt;
  &lt;li&gt;Learn about overcommitting CPU and memory and how to configure overcommitting.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;general-comments&quot;&gt;General comments&lt;/h2&gt;

&lt;p&gt;I really liked the course, It wasn’t much advanced in general
but it was a very good approach to “the actual thing” people are
doing when deploying the technology for production ready environment.&lt;/p&gt;

&lt;p&gt;It’s an operators course IMHO and not a developers course,
I missed to have an actual view about where is the code,
how is organized an how can we contribute with the Kubernetes/OpenShift community.&lt;/p&gt;

&lt;p&gt;It has a very nice 8 hours exam xD xD :/ ;( at the very end
as a proof that you understood what you did there,
I think I did it OK but still, I’m waiting for the course test results.&lt;/p&gt;

&lt;p&gt;Even though, I tried to dig into the code and understand better the
integration with the python-kubernetes client and gladly created an issue
report with its corresponding PR to fix it :)&lt;/p&gt;

&lt;p&gt;This will be now a brief history about what I hacked in the cluster when doing the course.&lt;/p&gt;

&lt;h2 id=&quot;hacking-the-environment&quot;&gt;Hacking the environment&lt;/h2&gt;

&lt;p&gt;Let’s start with the research question!&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;How the replication controller manage a massive pods kill?&lt;/li&gt;
  &lt;li&gt;Did it recover fast?&lt;/li&gt;
  &lt;li&gt;Did it recover at all?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s create a simple web application using 500 pods.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/openshift_1.png&quot; alt=&quot;&quot; /&gt;
&lt;img src=&quot;/static/openshift_2.png&quot; alt=&quot;&quot; /&gt;
&lt;img src=&quot;/static/openshift_3.png&quot; alt=&quot;&quot; /&gt;
&lt;img src=&quot;/static/openshift_4.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;I have created a simple script using the Python
Kubernetes client to demonstrate the cluster behavior&lt;/p&gt;

&lt;p&gt;The Python script is a simple application using two threads in order to measure
the number of available and unavailable pods for the application at the same time we
kill some pods based in a Poisson distribution.&lt;/p&gt;

&lt;p&gt;Let’s see how the cluster behaves when killing the pods
number from the test-webapp namespace&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[ccamacho@localhost mocoloco]$ python script.py
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;buum&quot;&gt;Buum!&lt;/h2&gt;

&lt;p&gt;The Python Kubernetes client failed, allowing me to create a GitHub
&lt;a href=&quot;https://github.com/kubernetes-client/python-base/issues/139&quot;&gt;Issue report&lt;/a&gt;
and a
&lt;a href=&quot;https://github.com/kubernetes-client/python-base/pull/140&quot;&gt;Pull request&lt;/a&gt;
with its corresponding fix.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;First error within the Kubernetes python client:
test-webapp-1-zv6jr	Running	10.129.2.168
Traceback (most recent call last):
  File &quot;watch.py&quot;, line 75, in &amp;lt;module&amp;gt;
    for event in stream:
  File &quot;/usr/lib/python2.7/site-packages/kubernetes/watch/watch.py&quot;, line 134, in stream
    for line in iter_resp_lines(resp):
  File &quot;/usr/lib/python2.7/site-packages/kubernetes/watch/watch.py&quot;, line 47, in iter_resp_lines
    for seg in resp.read_chunked(decode_content=False):
AttributeError: &apos;HTTPResponse&apos; object has no attribute &apos;read_chunked&apos;
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;the-execution&quot;&gt;The execution&lt;/h2&gt;

&lt;p&gt;After hacking around a bit with the client’s methods this is the result&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/openshift_5.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;It seems that even if the pods creation is fast enough it takes some time to fully recover.&lt;/p&gt;

&lt;p&gt;Here is the whole script if you are insterested:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;import matplotlib
matplotlib.use(&apos;Agg&apos;)
import random
import time
from scipy.stats import poisson
import matplotlib.pyplot as plt
import matplotlib.dates as md
from kubernetes import client, config
from kubernetes.client.rest import ApiException
import threading
import datetime

global_available=[]
global_unavailable=[]
global_kill=[]

t1_stop = threading.Event()
t2_stop = threading.Event()

def delete_pod(name, namespace):
    core_v1 = client.CoreV1Api()
    delete_options = client.V1DeleteOptions()
    try:
        api_response = core_v1.delete_namespaced_pod(
            name=name,
            namespace=namespace,
            body=delete_options)
    except ApiException as e:
        print(&quot;Exception when calling CoreV1Api-&amp;gt;delete_namespaced_pod: %s\n&quot; % e)

def get_pods(namespace=&apos;&apos;):
    api_instance = client.CoreV1Api()
    try: 
        if namespace == &apos;&apos;:
            api_response = api_instance.list_pod_for_all_namespaces()
        else:
            api_response = api_instance.list_namespaced_pod(namespace, field_selector=&apos;status.phase=Running&apos;)
        return api_response
    except ApiException as e:
        print(&quot;Exception when calling CoreV1Api-&amp;gt;list_pod_for_all_namespaces: %s\n&quot; % e)

def get_event(namespace, stop):

    while not stop.is_set():
        config.load_kube_config()
        configuration = client.Configuration()
        configuration.assert_hostname = False
        api_client = client.api_client.ApiClient(configuration=configuration)
        dat = datetime.datetime.now()
        api_instance = client.AppsV1beta1Api()
        api_response = api_instance.read_namespaced_deployment_status(&apos;example&apos;, namespace)
        global_available.append((dat,api_response.status.available_replicas))
        global_unavailable.append((dat,api_response.status.unavailable_replicas))
        time.sleep(2)
    t2_stop.set()
    print(&quot;Ending live monitor&quot;)

def run_histogram(namespace, stop):
    # random numbers from poisson distribution
    n = 500
    a = 0
    data_poisson = poisson.rvs(mu=10, size=n, loc=a)
    counts, bins, bars = plt.hist(data_poisson)
    plt.close()
    config.load_kube_config()
    configuration = client.Configuration()
    configuration.assert_hostname = False
    api_client = client.api_client.ApiClient(configuration=configuration)
    for experiment in counts:
        pod_list = get_pods(namespace=namespace)
        aux_li = []
        for fil in pod_list.items:
            if fil.status.phase == &quot;Running&quot;:
                aux_li.append(fil)
        pod_list = aux_li

        # From the Running pods I randomly choose those to die
        # based on the histogram length
        to_be_killed = random.sample(pod_list, int(experiment))

        for pod in to_be_killed:
            delete_pod(pod.metadata.name,pod.metadata.namespace)
        print(&quot;To be killed: &quot;+str(experiment))
        global_kill.append((datetime.datetime.now(), int(experiment)))
        print(datetime.datetime.now())
    print(&quot;Ending histogram execution&quot;)
    time.sleep(300)
    t1_stop.set()

def plot_graph():
    plt.style.use(&apos;classic&apos;)

    ax=plt.gca()
    ax.xaxis_date()
    xfmt = md.DateFormatter(&apos;%H:%M:%S&apos;)
    ax.xaxis.set_major_formatter(xfmt)

    x_available = [x[0] for x in global_available]
    y_available = [x[1] for x in global_available]
    plt.plot(x_available,y_available, color=&apos;blue&apos;)
    plt.plot(x_available,y_available, color=&apos;blue&apos;,marker=&apos;o&apos;,label=&apos;Available pods&apos;)

    x_unavailable = [x[0] for x in global_unavailable]
    y_unavailable = [x[1] for x in global_unavailable]
    plt.plot(x_unavailable,y_unavailable, color=&apos;magenta&apos;)
    plt.plot(x_unavailable,y_unavailable, color=&apos;magenta&apos;,marker=&apos;o&apos;,label=&apos;Unavailable pods&apos;)


    x_kill = [x[0] for x in global_kill]
    y_kill = [x[1] for x in global_kill]
    plt.plot(x_kill,y_kill,color=&apos;red&apos;,marker=&apos;o&apos;,label=&apos;Killed pods&apos;)

    plt.legend(loc=&apos;upper left&apos;)

    plt.savefig(&apos;foo.png&apos;, bbox_inches=&apos;tight&apos;)
    plt.close()


if __name__ == &quot;__main__&quot;:
    namespace = &quot;test-webapp&quot;
    try:
        t1 = threading.Thread(target=get_event, args=(namespace, t1_stop))
        t1.start()
        t2 = threading.Thread(target=run_histogram, args=(namespace, t2_stop))
        t2.start()
    except:
        print &quot;Error: unable to start thread&quot;

    while not t2_stop.is_set():
        pass

    print (&quot;Ended all threads&quot;)

    plot_graph()

&lt;/code&gt;&lt;/pre&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Porsche 993</title>
    <summary>The Porsche 993 is the internal designation for the Porsche 911 model manufactured and sold between January 1994 and early 1998 (model years 1995–1998 in the United States), replacing the 964. Its discontinuation marked the end of air-cooled Porsches. The...</summary>
    <link href="https://www.pubstack.com/blog/2019/06/13/porsche-993.html"/>
    <updated>2019-06-13T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2019/06/13/porsche-993</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;The Porsche 993 is the internal designation for the
Porsche 911 model manufactured and sold between January
1994 and early 1998 (model years 1995–1998 in the United States),
replacing the 964. Its discontinuation marked the end of air-cooled Porsches.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/993_side.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The 993 was much improved over, and quite different from its predecessor.
According to Porsche, every part of the car was designed from the ground up,
including the engine and only 20% of its parts were carried over from the
previous generation. Porsche refers to the 993 as “a significant advance,
not just from a technical, but also a visual perspective.” Porsche’s engineers
devised a new light-alloy subframe with coil and wishbone suspension
(an all new multi-link system), putting behind the previous lift-off oversteer
and making significant progress with the engine and handling, creating a more
civilized car overall providing an improved driving experience. The 993 was
also the first 911 to receive a six speed transmission.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/964_side.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The external design of the Porsche 993, penned by English designer Tony Hatter,
retained the basic body shell architecture of the 964 and other earlier 911 models,
but with revised exterior panels, with much more flared wheel arches, a smoother
front and rear bumper design, an enlarged retractable rear wing and teardrop mirrors.
A 993 was promoted globally via its role of the safety car during the 1994 Formula One season.&lt;/p&gt;

&lt;p&gt;Next, you can find several resources related to the 993 internals.&lt;/p&gt;

&lt;p&gt;Please feel free to submit any pull request to add more resources here if you find them useful.
New files added to the folder &lt;a href=&quot;https://github.com/pubstack/pubstack.github.io/tree/master/static/993&quot;&gt;/static/993/&lt;/a&gt;
will be added automatically to this post after
the commits are merged.&lt;/p&gt;

&lt;ul id=&quot;files_list&quot;&gt;&lt;/ul&gt;
&lt;script&gt;
$.getJSON(&apos;https://api.github.com/repos/pubstack/pubstack.github.io/contents/static/993/&apos;, function(data) {
    for (var i = 0; i &lt; data.length; i++) {
        var ul = document.getElementById(&quot;files_list&quot;);
        var li = document.createElement(&quot;li&quot;);
        var a = document.createElement(&apos;a&apos;);
        a.setAttribute(&apos;href&apos;,data[i].download_url);
        a.innerHTML = data[i].name;
        li.appendChild(a);
        ul.appendChild(li);
    }
});
&lt;/script&gt;

&lt;p&gt;Now some more pictures, and of course if you find this article useful feel free to share it!.&lt;/p&gt;

&lt;div class=&quot;col&quot;&gt;
  &lt;h4 class=&quot;block-title&quot;&gt;Gallery&lt;/h4&gt;
	&lt;div class=&quot;block-body&quot;&gt;
		&lt;ul class=&quot;item-list-round&quot; data-magnific=&quot;gallery&quot;&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/964_front.jpg&quot; style=&quot;background-image: url(&apos;/static/964_front.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/964_rear.jpg&quot; style=&quot;background-image: url(&apos;/static/964_rear.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/964_rear2.jpg&quot; style=&quot;background-image: url(&apos;/static/964_rear2.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/993_inside.jpg&quot; style=&quot;background-image: url(&apos;/static/993_inside.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/993_inside2.jpg&quot; style=&quot;background-image: url(&apos;/static/993_inside2.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/964_inside2.jpg&quot; style=&quot;background-image: url(&apos;/static/964_inside2.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a href=&quot;/static/964_inside.jpg&quot; style=&quot;background-image: url(&apos;/static/964_inside.jpg&apos;);&quot;&gt;&lt;/a&gt;&lt;/li&gt;
      
		&lt;/ul&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;hr style=&quot;clear:both; border:0px solid #fff;&quot; /&gt;

</content>
  </entry>
  
  
  
  <entry>
    <title>Kubebox - Tray</title>
    <summary>The components tray is the enclosure part allowing the user to allocate mother boards, GPUS, FPGAs, Disks arrays. Up to 8 trays in the same enclosure. Frontal view of the generic tray. Lorem ipsum dolor sit amet, consectetur adipiscing elit,...</summary>
    <link href="https://www.pubstack.com/blog/2019/05/22/kubebox-01-tray.html"/>
    <updated>2019-05-22T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2019/05/22/kubebox-01-tray</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;The components tray is the enclosure part allowing the user
to allocate mother boards, GPUS, FPGAs, Disks arrays.&lt;/p&gt;

&lt;p&gt;Up to 8 trays in the same enclosure.&lt;/p&gt;

&lt;div id=&quot;kubebox_tray.glb&quot; style=&quot;height: 100%; height:400px; display: flex; align-items: center; justify-content: center;&quot;&gt;&lt;/div&gt;
&lt;script&gt;
    init(&quot;static/kubebox/&quot;, &quot;kubebox_tray.glb&quot;);
&lt;/script&gt;

&lt;p&gt;Frontal view of the generic tray.&lt;/p&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 400px; background: white;&quot;&gt;&lt;img width=&quot;400px&quot; src=&quot;/static/kubebox/kubebox_tray_00.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 100px; background: white;&quot;&gt;&lt;img width=&quot;100px&quot; src=&quot;/static/kubebox/kubebox_tray_01.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 400px; background: white;&quot;&gt;&lt;img width=&quot;400px&quot; src=&quot;/static/kubebox/kubebox_tray_02.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 100px; background: white;&quot;&gt;&lt;img width=&quot;100px&quot; src=&quot;/static/kubebox/kubebox_tray_03.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 400px; background: white;&quot;&gt;&lt;img width=&quot;400px&quot; src=&quot;/static/kubebox/kubebox_tray_04.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 100px; background: white;&quot;&gt;&lt;img width=&quot;100px&quot; src=&quot;/static/kubebox/kubebox_tray_05.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 400px; background: white;&quot;&gt;&lt;img width=&quot;400px&quot; src=&quot;/static/kubebox/kubebox_tray_06.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Comments are welcomed as usual, thank you!!!!&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2 id=&quot;go-to-the-project-index&quot;&gt;Go to the &lt;a href=&quot;https://www.pubstack.com/blog/2019/05/21/kubebox.html&quot;&gt;project index&lt;/a&gt;&lt;/h2&gt;

&lt;h2 id=&quot;update-log&quot;&gt;Update log:&lt;/h2&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;2019/05/22:&lt;/strong&gt; Initial version.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>The Kubernetes in a box project</title>
    <summary>Implementing cloud computing solutions that runs in hybrid environments might be the final solution when comes to finding the best benefits/cost ratio. This post will be the main thread to build and describe the KIAB/Kubebox project (www.kubebox.org and/or www.kiab.org). Spoiler...</summary>
    <link href="https://www.pubstack.com/blog/2019/05/21/kubebox.html"/>
    <updated>2019-05-21T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2019/05/21/kubebox</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Implementing cloud computing solutions that runs in hybrid environments might
be the final solution when comes to finding the best benefits/cost
ratio.&lt;/p&gt;

&lt;p&gt;This post will be the main thread to build and describe the KIAB/Kubebox
project (&lt;a href=&quot;http://www.kubebox.org&quot;&gt;www.kubebox.org&lt;/a&gt; and/or &lt;a href=&quot;http://www.kiab.org&quot;&gt;www.kiab.org&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Spoiler alert!&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/kubebox/kubebox.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;the-name&quot;&gt;The name&lt;/h1&gt;

&lt;p&gt;First thing first, the name.. I have in my mind two names having the same meaning.
The first one is KIAB (Kubernetes In A Box) this name came to my mind as
the &lt;a href=&quot;https://es.wikipedia.org/wiki/Kiai&quot;&gt;Kiai&lt;/a&gt;
sound from karatekas (practitioners of karate).
The second one is more
traditional, “Kubebox”. I have no preference but
it would be awesome if you help me
to decide the official name for this project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Add a comment and contribute to select the project name!&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h1 id=&quot;introduction&quot;&gt;Introduction&lt;/h1&gt;

&lt;p&gt;This project is about to integrate together already market
available devices to run cloud software as an appliance.&lt;/p&gt;

&lt;p&gt;The proof-of-concept delivered in this series of posts will allow people
to put a well-known set of hardware devices into a single chassis for
either create their own cloud appliances, research and development,
continuous integration, testing, home labs, staging or production-ready
environments or simply just for fun.&lt;/p&gt;

&lt;p&gt;Hereby it’s humbly presented to you the design of KubeBox/KIAB
an open chassis specification for building cloud appliances.&lt;/p&gt;

&lt;p&gt;The case enclosure is fully designed, and hopefully in the last phases
for building the first set of enclosures, now, the posts will appear
in the mean time I have some free cycles for writing  the overall description.&lt;/p&gt;

&lt;h1 id=&quot;use-cases&quot;&gt;Use cases&lt;/h1&gt;
&lt;p&gt;Several use cases can be defined to run on a KubeBox chassis.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;AWS outpost.&lt;/li&gt;
  &lt;li&gt;Development environments.&lt;/li&gt;
  &lt;li&gt;EDGE.&lt;/li&gt;
  &lt;li&gt;Production Environments for small sites.&lt;/li&gt;
  &lt;li&gt;GitLab CI integration.&lt;/li&gt;
  &lt;li&gt;Demos for summits and conferences.&lt;/li&gt;
  &lt;li&gt;R&amp;amp;D: FPGA usage, deep learning, AI, TensorFlow, among many others.&lt;/li&gt;
  &lt;li&gt;Marketing WOW effect.&lt;/li&gt;
  &lt;li&gt;Training.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;enclosure-design&quot;&gt;Enclosure design&lt;/h1&gt;

&lt;p&gt;The enclosure is designed as a rackable unit,
using 7U. It tries to minimize the space used to deploy
an up to 8-node cluster with redundancy for both power and networking.&lt;/p&gt;

&lt;h1 id=&quot;cloud-appliance-description&quot;&gt;Cloud appliance description&lt;/h1&gt;

&lt;p&gt;This build will be described across several sub-posts
linked from this main thread.
The posts will be created particularly without any specific order
depending on my availability.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Backstory and initial parts selection.&lt;/li&gt;
  &lt;li&gt;Designing the case part 1: Design software.&lt;/li&gt;
  &lt;li&gt;A brief introduction to CAD software.&lt;/li&gt;
  &lt;li&gt;Designing the case part 2: U’s, brakes, and ghosts.&lt;/li&gt;
  &lt;li&gt;Designing the case part 3: Sheet thickness and bend radius.&lt;/li&gt;
  &lt;li&gt;Designing the case part 4: Parts Allowance (finish, tolerance, and fit).&lt;/li&gt;
  &lt;li&gt;Designing the case part 5: Vent cutouts and frickin’ laser beams!.&lt;/li&gt;
  &lt;li&gt;Designing the case part 6: Self-clinching nuts and standoffs.&lt;/li&gt;
  &lt;li&gt;Designing the case part 7: The standoffs strike back.&lt;/li&gt;
  &lt;li&gt;A brief primer on screws and PEMSERTs.&lt;/li&gt;
  &lt;li&gt;Designing the case part 8: Implementing PEMSERTs and screws.&lt;/li&gt;
  &lt;li&gt;Designing the case part 9: Bend reliefs and flat patterns.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.pubstack.com/blog/2019/05/22/kubebox-01-tray.html&quot;&gt;Designing the case part 10: Tray caddy, to be used with GPU, Mother boards, disks, any other peripherals you want to add to the enclosure.&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Designing the case part 11: Components rig.&lt;/li&gt;
  &lt;li&gt;Designing the case part 12: Power supply.&lt;/li&gt;
  &lt;li&gt;Designing the case part 13: Networking.&lt;/li&gt;
  &lt;li&gt;Designing the case part 14: 3D printed supports.&lt;/li&gt;
  &lt;li&gt;Designing the case part 15: Adding computing power.&lt;/li&gt;
  &lt;li&gt;Designing the case part 16: Adding Storage.&lt;/li&gt;
  &lt;li&gt;Designing the case part 17: Front display and bastion for automation.&lt;/li&gt;
  &lt;li&gt;Manufacturing the case part 1: PEMSERT installation.&lt;/li&gt;
  &lt;li&gt;Manufacturing the case part 2: Bending metal.&lt;/li&gt;
  &lt;li&gt;Manufacturing the case part 3: Bending metal.&lt;/li&gt;
  &lt;li&gt;KubeBox cloud appliance in detail!.&lt;/li&gt;
  &lt;li&gt;Manufacturing the case part 0: Getting quotes.&lt;/li&gt;
  &lt;li&gt;Manufacturing the case part 1: Getting the cases.&lt;/li&gt;
  &lt;li&gt;Software deployments: Reference architecture.&lt;/li&gt;
  &lt;li&gt;Design final source files for the enclosure design.&lt;/li&gt;
  &lt;li&gt;KubeBox is fully functional.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;update-log&quot;&gt;Update log:&lt;/h2&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;2019/05/21:&lt;/strong&gt; Initial version.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Running Relax-and-Recover to save your OpenStack deployment</title>
    <summary>ReaR is a pretty impressive disaster recovery solution for Linux. Relax-and-Recover, creates both a bootable rescue image and a backup of the associated files you choose. When doing disaster recovery of a system, this Rescue Image plays the files back...</summary>
    <link href="https://www.pubstack.com/blog/2019/05/20/relax-and-recover-backups.html"/>
    <updated>2019-05-20T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2019/05/20/relax-and-recover-backups</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;ReaR is a pretty impressive disaster recovery
solution for Linux. Relax-and-Recover, creates both a
bootable rescue image and a backup of the associated files you choose.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/ReAR_and_OpenStack.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;When doing disaster recovery of a system, this Rescue Image plays
the files back from the backup and so in the twinkling of
an eye the latest state.&lt;/p&gt;

&lt;p&gt;Various configuration options are available for the rescue image.
For example, slim ISO files, USB sticks or even images for PXE
servers are generated. As many backup options are possible.
Starting with a simple archive file (eg * .tar.gz),
various backup technologies such as IBM Tivoli Storage Manager (TSM),
EMC NetWorker (Legato), Bacula or even Bareos can be addressed.&lt;/p&gt;

&lt;p&gt;The ReaR written in Bash enables the skilful
distribution of Rescue Image and if necessary archive file via
NFS, CIFS (SMB) or another transport method in the network.
The actual recovery process then takes place via this transport route.&lt;/p&gt;

&lt;p&gt;In this specific case, due to the nature of the OpenStack deployment we will
choose those protocols that are allowed by default in the Iptables rules (SSH, SFTP in particular).&lt;/p&gt;

&lt;p&gt;But enough with the theory, here’s a practical example of one of many possible configurations.
We will apply this specific use of ReaR to recover
a failed control plane after a critical maintenance task (like an upgrade).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;01 - Prepare the Undercloud backup bucket.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We need to prepare the place to store the backups from the Overcloud.
From the Undercloud, check you have enough space to make the backups
and prepare the environment. We will also create a user in the
Undercloud with no shell access to be able to push the backups from the
controllers or the compute nodes.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;groupadd backup
mkdir /data
useradd -m -g backup -d /data/backup backup
echo &quot;backup:backup&quot; | chpasswd
chown -R backup:backup /data
chmod -R 755 /data
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;02 - Run the backup from the Overcloud nodes.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let’s install some required packages and run some previous
configuration steps.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#Install packages
sudo yum install rear genisoimage syslinux lftp wget -y

#Make sure you are able to use sshfs to store the ReaR backup
sudo yum install fuse -y
sudo yum groupinstall &quot;Development tools&quot; -y
wget http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/f/fuse-sshfs-2.10-1.el7.x86_64.rpm
sudo rpm -i fuse-sshfs-2.10-1.el7.x86_64.rpm

sudo mkdir -p /data/backup
sudo sshfs -o allow_other backup@undercloud-0:/data/backup /data/backup
#Use backup password, which is... backup
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, let’s configure ReaR config file.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#Configure ReaR
sudo tee -a &quot;/etc/rear/local.conf&quot; &amp;gt; /dev/null &amp;lt;&amp;lt;&apos;EOF&apos;
OUTPUT=ISO
OUTPUT_URL=sftp://backup:backup@undercloud-0/data/backup/
BACKUP=NETFS
BACKUP_URL=sshfs://backup@undercloud-0/data/backup/
BACKUP_PROG_COMPRESS_OPTIONS=( --gzip )
BACKUP_PROG_COMPRESS_SUFFIX=&quot;.gz&quot;
BACKUP_PROG_EXCLUDE=( &apos;/tmp/*&apos; &apos;/data/*&apos; )
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now run the backup, this should create an ISO image in
the Undercloud node (/data/backup/).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You will be asked for the backup user password&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo rear -d -v mkbackup
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, simulate a failure xD&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# sudo rm -rf /lib
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;After the ISO image is created, we can proceed to
verify we can restore it from the Hypervisor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;03 - Prepare the hypervisor.&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Enable the use of fusefs for the VMs on the hypervisor
setsebool -P virt_use_fusefs 1

# Install some required packages
sudo yum install -y fuse-sshfs

# Mount the Undercloud backup folder to access the images
mkdir -p /data/backup
sudo sshfs -o allow_other root@undercloud-0:/data/backup /data/backup
ls /data/backup/*
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;04 - Stop the damaged controller node.&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;virsh shutdown controller-0
# virsh destroy controller-0

# Wait until is down
watch virsh list --all

# Backup the guest definition
virsh dumpxml controller-0 &amp;gt; controller-0.xml
cp controller-0.xml controller-0.xml.bak
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, we need to change the guest definition to boot from the ISO file.&lt;/p&gt;

&lt;p&gt;Edit controller-0.xml and update it to boot from the ISO file.&lt;/p&gt;

&lt;p&gt;Find the OS section,add the cdrom device and enable the boot menu.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;os&amp;gt;
&amp;lt;boot dev=&apos;cdrom&apos;/&amp;gt;
&amp;lt;boot dev=&apos;hd&apos;/&amp;gt;
&amp;lt;bootmenu enable=&apos;yes&apos;/&amp;gt;
&amp;lt;/os&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Edit the devices section and add the CDROM.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;disk type=&apos;file&apos; device=&apos;cdrom&apos;&amp;gt;
&amp;lt;driver name=&apos;qemu&apos; type=&apos;raw&apos;/&amp;gt;
&amp;lt;source file=&apos;/data/backup/rear-controller-0.iso&apos;/&amp;gt;
&amp;lt;target dev=&apos;hdc&apos; bus=&apos;ide&apos;/&amp;gt;
&amp;lt;readonly/&amp;gt;
&amp;lt;address type=&apos;drive&apos; controller=&apos;0&apos; bus=&apos;1&apos; target=&apos;0&apos; unit=&apos;0&apos;/&amp;gt;
&amp;lt;/disk&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Update the guest definition.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;virsh define controller-0.xml
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Restart and connect to the guest&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;virsh start controller-0
virsh console controller-0
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You should be able to see the boot menu to start the recover process, select Recover controller-0 and follow the instructions.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/ReAR1.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Now, before proceeding to run the controller restore, it’s possible that
the host undercloud-0 can’t be resolved, just:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;echo &quot;192.168.24.1 undercloud-0&quot; &amp;gt;&amp;gt; /etc/hosts
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Having resolved the Undercloud host, just follow the wizard, Relax And Recover :)&lt;/p&gt;

&lt;p&gt;You yould see a message like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Welcome to Relax-and-Recover. Run &quot;rear recover&quot; to restore your system !

RESCUE controller-0:~ # rear recover
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;img src=&quot;/static/ReAR2.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The image restore should progress quickly.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/ReAR3.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Continue to see the restore evolution.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/ReAR4.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Now, each time you reboot the node will have the ISO file
as the first boot option so it’s something we need to fix.
In the mean time let’s check if the restore went fine.&lt;/p&gt;

&lt;p&gt;Reboot the guest booting from the hard disk.
&lt;img src=&quot;/static/ReAR5.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Now we can see that the guest VM started successfully.
&lt;img src=&quot;/static/ReAR6.PNG&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Now we need to restore the guest to it’s original definition,
so from the Hypervisor we need to restore the &lt;code&gt;controller-0.xml.bak&lt;/code&gt; 
file we created.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#From the Hypervisor
virsh shutdown controller-0
watch virsh list --all
virsh define controller-0.xml.bak
virsh start controller-0
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Enjoy.&lt;/p&gt;

&lt;h2 id=&quot;considerations&quot;&gt;Considerations:&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Space.&lt;/li&gt;
  &lt;li&gt;Multiple protocols supported but we might then to update firewall rules, that’s why I prefered SFTP.&lt;/li&gt;
  &lt;li&gt;Network load when moving data.&lt;/li&gt;
  &lt;li&gt;Shutdown/Starting sequence for HA control plane.&lt;/li&gt;
  &lt;li&gt;Do we need to backup the data plane?&lt;/li&gt;
  &lt;li&gt;User workloads should be handled by a third party backup software.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;update-log&quot;&gt;Update log:&lt;/h2&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;2019/05/20:&lt;/strong&gt; Initial version.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;2019/06/18:&lt;/strong&gt; Appeared in &lt;a href=&quot;https://superuser.openstack.org/articles/tutorial-rear-openstack-deployment/&quot;&gt;OpenStack Superuser blog.&lt;/a&gt;&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>A linux or unix sysadmin in his natural habitat</title>
    <summary>A linux sysadmin in his natural habitat.



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2019/02/17/pod.html"/>
    <updated>2019-02-17T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2019/02/17/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;A linux sysadmin in his natural habitat.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2019-02-17-sysadmin.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Bye bye old theme</title>
    <summary>Let’s say bye bye and thanks to the old theme I used for the last 3 years. I created this blog, Pubstack, just after joining Red Hat. This with the purpose of logging part of my upstream work within the...</summary>
    <link href="https://www.pubstack.com/blog/2019/02/16/bye-bye-old-theme.html"/>
    <updated>2019-02-16T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2019/02/16/bye-bye-old-theme</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Let’s say bye bye and thanks to the old theme I used for the last 3 years.&lt;/p&gt;

&lt;p&gt;I created this blog, &lt;a href=&quot;https://www.pubstack.com&quot;&gt;Pubstack&lt;/a&gt;,
just after joining Red Hat. This with the purpose of
logging part of my upstream work within the &lt;a href=&quot;https://www.tripleo.org&quot;&gt;TripleO&lt;/a&gt;
community.&lt;/p&gt;

&lt;p&gt;It evolved in such a way that I’m currently adding other types of posts, like
management, hobbies, software development posts,
other cloud computing technologies, talks, among many other things.&lt;/p&gt;

&lt;p&gt;I had a milestone in which after 70 posts, the current theme
do not scale up correctly anymore.&lt;/p&gt;

&lt;p&gt;That’s why I welcome the new theme and I thank the
old one for holding for the last years.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pubstack-v1.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;There are a few things to polish in the new site, like adding my
CV and about page. Otherwise, shiiiiip it!!!&lt;/p&gt;

&lt;p&gt;Thank you!!!!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO - Deployment configurations</title>
    <summary>This post is a summary of the deployments I usually test for deploying TripleO using quickstart. The following steps need to run in the Hypervisor node in order to deploy both the Undercloud and the Overcloud. You need to execute...</summary>
    <link href="https://www.pubstack.com/blog/2019/02/05/tripleo-quickstart-deployments.html"/>
    <updated>2019-02-05T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2019/02/05/tripleo-quickstart-deployments</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This post is a summary of the deployments I usually test for deploying TripleO
using quickstart.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/dude-just-deploy-it-already.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The following steps need to run in the Hypervisor node
in order to deploy both the Undercloud and the Overcloud.&lt;/p&gt;

&lt;p&gt;You need to execute them one after the other, the idea of this recipe is to
have something just for copying/pasting.&lt;/p&gt;

&lt;p&gt;Once the last step ends you can/should be able to  connect to the
Undercloud VM to start operating your Overcloud deployment.&lt;/p&gt;

&lt;p&gt;The usual steps are:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;01 - Prepare the hypervisor node.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now, let’s install some dependencies.
Same Hypervisor node, same &lt;code&gt;root&lt;/code&gt; user.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# In this dev. env. /var is only 50GB, so I will create
# a sym link to another location with more capacity.
# It will take easily more tan 50GB deploying a 3+1 overcloud
sudo mkdir -p /home/libvirt/
sudo ln -sf /home/libvirt/ /var/lib/libvirt

# Disable IPv6 lookups
# sudo bash -c &quot;cat &amp;gt;&amp;gt; /etc/sysctl.conf&quot; &amp;lt;&amp;lt; EOL
# net.ipv6.conf.all.disable_ipv6 = 1
# net.ipv6.conf.default.disable_ipv6 = 1
# EOL
# sudo sysctl -p

# Enable IPv6 in kernel cmdline
# sed -i s/ipv6.disable=1/ipv6.disable=0/ /etc/default/grub
# grub2-mkconfig -o /boot/grub2/grub.cfg
# reboot

sudo yum groupinstall &quot;Virtualization Host&quot; -y
sudo yum install git lvm2 lvm2-devel -y
sudo yum install libvirt-python python-lxml libvirt -y
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;02 - Create the toor user (from the Hypervisor node, as root).&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo useradd toor
echo &quot;toor:toor&quot; | sudo chpasswd
echo &quot;toor ALL=(root) NOPASSWD:ALL&quot; \
  | sudo tee /etc/sudoers.d/toor
sudo chmod 0440 /etc/sudoers.d/toor
sudo su - toor

cd
mkdir .ssh
ssh-keygen -t rsa -N &quot;&quot; -f .ssh/id_rsa
cat .ssh/id_rsa.pub &amp;gt;&amp;gt; .ssh/authorized_keys
cat .ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys
echo &apos;127.0.0.1 127.0.0.2&apos; | sudo tee -a /etc/hosts

export VIRTHOST=127.0.0.2
ssh root@$VIRTHOST uname -a
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, follow as the &lt;code&gt;toor&lt;/code&gt; user and prepare the Hypervisor node
for the deployment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;03 - Clone repos and install deps.&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone \
  https://github.com/openstack/tripleo-quickstart
chmod u+x ./tripleo-quickstart/quickstart.sh
bash ./tripleo-quickstart/quickstart.sh \
  --install-deps
sudo setenforce 0
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Export some variables used in the deployment command.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;04 - Export common variables.&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;export CONFIG=~/deploy-config.yaml
export VIRTHOST=127.0.0.2
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now we will create the configuration file used for the deployment,
depending on the file you choose you will deploy different environments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;05 - Click on the environment description to expand the recipe.&lt;/strong&gt;&lt;/p&gt;

&lt;details&gt;
&lt;summary&gt;&lt;strong&gt;OpenStack [Containerized &amp;amp; HA] - 1 Controller, 1 Compute&lt;/strong&gt;&lt;/summary&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;
cat &amp;gt; $CONFIG &amp;lt;&amp;lt; EOF
overcloud_nodes:
  - name: control_0
    flavor: control
    virtualbmc_port: 6230
  - name: compute_0
    flavor: compute
    virtualbmc_port: 6231
node_count: 2
containerized_overcloud: true
delete_docker_cache: true
enable_pacemaker: true
run_tempest: false
extra_args: &amp;gt;-
  --libvirt-type qemu
  --ntp-server pool.ntp.org
  -e /usr/share/openstack-tripleo-heat-templates/environments/docker-ha.yaml
EOF
&lt;/code&gt;&lt;/pre&gt;
&lt;/details&gt;

&lt;details&gt;
&lt;summary&gt;&lt;strong&gt;OpenStack [Containerized &amp;amp; HA] - 3 Controllers, 1 Compute&lt;/strong&gt;&lt;/summary&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;
cat &amp;gt; $CONFIG &amp;lt;&amp;lt; EOF
overcloud_nodes:
  - name: control_0
    flavor: control
    virtualbmc_port: 6230
  - name: control_1
    flavor: control
    virtualbmc_port: 6231
  - name: control_2
    flavor: control
    virtualbmc_port: 6232
  - name: compute_1
    flavor: compute
    virtualbmc_port: 6233
node_count: 4
containerized_overcloud: true
delete_docker_cache: true
enable_pacemaker: true
run_tempest: false
extra_args: &amp;gt;-
  --libvirt-type qemu
  --ntp-server pool.ntp.org
  --control-scale 3
  --compute-scale 1
  -e /usr/share/openstack-tripleo-heat-templates/environments/docker-ha.yaml
EOF
&lt;/code&gt;&lt;/pre&gt;
&lt;/details&gt;

&lt;details&gt;
&lt;summary&gt;&lt;strong&gt;OpenShift [Containerized] - 1 Controller, 1 Compute&lt;/strong&gt;&lt;/summary&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;
cat &amp;gt; $CONFIG &amp;lt;&amp;lt; EOF
# Original from https://github.com/openstack/tripleo-quickstart/blob/master/config/general_config/featureset033.yml
composable_scenario: scenario009-multinode.yaml
deployed_server: true

network_isolation: false
enable_pacemaker: false
overcloud_ipv6: false
containerized_undercloud: true
containerized_overcloud: true

# This enables TLS for the undercloud which will also make haproxy bind to the
# configured public-vip and admin-vip.
undercloud_generate_service_certificate: false
undercloud_enable_validations: false

# This enables the deployment of the overcloud with SSL.
ssl_overcloud: false

# Centos Virt-SIG repo for atomic package
add_repos:
  # NOTE(trown) The atomic package from centos-extras does not work for
  # us but its version is higher than the one from the virt-sig. Hence,
  # using priorities to ensure we get the virt-sig package.
  - type: package
    pkg_name: yum-plugin-priorities
  - type: generic
    reponame: quickstart-centos-paas
    filename: quickstart-centos-paas.repo
    baseurl: https://cbs.centos.org/repos/paas7-openshift-origin311-candidate/x86_64/os/
  - type: generic
    reponame: quickstart-centos-virt-container
    filename: quickstart-centos-virt-container.repo
    baseurl: https://cbs.centos.org/repos/virt7-container-common-candidate/x86_64/os/
    includepkgs:
      - atomic
    priority: 1

extra_args: &apos;&apos;

container_args: &amp;gt;-
  # If Pike or Queens
  #-e /usr/share/openstack-tripleo-heat-templates/environments/docker.yaml
  # If Ocata, Pike, Queens or Rocky
  #-e /home/stack/containers-default-parameters.yaml
  # If &amp;gt;= Stein
  -e /home/stack/containers-prepare-parameter.yaml

  -e /usr/share/openstack-tripleo-heat-templates/openshift.yaml
# NOTE(mandre) use container images mirrored on the dockerhub to take advantage
# of the proxy setup by openstack infra
docker_openshift_etcd_namespace: docker.io/
docker_openshift_cluster_monitoring_namespace: docker.io/tripleomaster
docker_openshift_cluster_monitoring_image: coreos-cluster-monitoring-operator
docker_openshift_configmap_reload_namespace: docker.io/tripleomaster
docker_openshift_configmap_reload_image: coreos-configmap-reload
docker_openshift_prometheus_operator_namespace: docker.io/tripleomaster
docker_openshift_prometheus_operator_image: coreos-prometheus-operator
docker_openshift_prometheus_config_reload_namespace: docker.io/tripleomaster
docker_openshift_prometheus_config_reload_image: coreos-prometheus-config-reloader
docker_openshift_kube_rbac_proxy_namespace: docker.io/tripleomaster
docker_openshift_kube_rbac_proxy_image: coreos-kube-rbac-proxy
docker_openshift_kube_state_metrics_namespace: docker.io/tripleomaster
docker_openshift_kube_state_metrics_image: coreos-kube-state-metrics

deploy_steps_ansible_workflow: true
config_download_args: &amp;gt;-
  -e /home/stack/config-download.yaml
  --disable-validations
  --verbose
composable_roles: true

overcloud_roles:
  - name: Controller
    CountDefault: 1
    tags:
      - primary
      - controller
    networks:
      - External
      - InternalApi
      - Storage
      - StorageMgmt
      - Tenant
  - name: Compute
    CountDefault: 0
    tags:
      - compute
    networks:
      - External
      - InternalApi
      - Storage
      - StorageMgmt
      - Tenant

tempest_config: false
test_ping: false
run_tempest: false
EOF
&lt;/code&gt;&lt;/pre&gt;
&lt;/details&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;From the Hypervisor, as the &lt;code&gt;toor&lt;/code&gt; user
run the deployment command to deploy
both your Undercloud and Overcloud.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;06 - Deploy TripleO.&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;bash ./tripleo-quickstart/quickstart.sh \
      --clean          \
      --release master \
      --teardown all   \
      --tags all       \
      -e @$CONFIG      \
      $VIRTHOST
&lt;/code&gt;&lt;/pre&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2019/02/05:&lt;/strong&gt; Initial version.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2019/02/05:&lt;/strong&gt; TODO: Test the OpenShift deployment.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2019/02/06:&lt;/strong&gt; Added some clarifications about where the commands should run.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Remote work management, the never ending story...</title>
    <summary>This will a quick summary of my last 3 years experience working remotely for one of the best and biggest companies investing and developing Open Source software ever. Also, my idea is to keep this post updated with my latest...</summary>
    <link href="https://www.pubstack.com/blog/2019/01/23/remote-work-management.html"/>
    <updated>2019-01-23T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2019/01/23/remote-work-management</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This will a quick summary of my last 3 years experience
working remotely for one of the best and biggest companies
investing and developing Open Source software ever.
Also, my idea is to keep this post
updated with my latest experiences and tips for doing
remote work the best possible experience.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/remote_01_naked.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The first feeling that comes to my mind is a picture
of a well-known tv series “Naked and Afraid”.
Yes, you will end up naked in the jungle
waiting for guidance, and it’s not your fault
if this help never comes.&lt;/p&gt;

&lt;p&gt;Working remotely gives you several nice and not so
nice experiences when executing your functions in your
new remote awesome job.&lt;/p&gt;

&lt;h1 id=&quot;good&quot;&gt;Good:&lt;/h1&gt;

&lt;ul&gt;
  &lt;li&gt;Working hours flexibility.&lt;/li&gt;
  &lt;li&gt;Work life balance.&lt;/li&gt;
  &lt;li&gt;Saving commuting time.&lt;/li&gt;
  &lt;li&gt;Cooking your own healthy food.&lt;/li&gt;
  &lt;li&gt;Geographically distributed teams allow to get the best talents across the globe.&lt;/li&gt;
  &lt;li&gt;And many more …&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There are also several benefits for the company you work,
so it’s not a benefit only for you, in most cases they
(the company you work for) will optimize how many resources
they need to scale their workforce, saving in offices,
electricity, heating, Internet access, food, furniture,
and many others…&lt;/p&gt;

&lt;p&gt;But this is not about good things, this post it’s about identifying
those corner cases in which working remotely might become a daunting task.
And after identifying those cases, we should be able to provide some
countermeasures for avoiding sad, frustrated and burnt employees
(at least for me they worked quite well).&lt;/p&gt;

&lt;h1 id=&quot;not-so-good&quot;&gt;Not so good:&lt;/h1&gt;

&lt;h2 id=&quot;operation-costs-are-translated-to-the-employee&quot;&gt;Operation costs are translated to the employee&lt;/h2&gt;

&lt;p&gt;&lt;img src=&quot;/static/remote_03_time.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Yes, in some cases you will have to pay for all the expenses generated
from working in your home, like, a good chair, Internet access, electricity,
gas, among others. But this is not generally a win-lose deal, it depends
because you will also save in fuel, food and most important &lt;strong&gt;TIME&lt;/strong&gt;.&lt;/p&gt;

&lt;h2 id=&quot;the-slow-start&quot;&gt;The slow start&lt;/h2&gt;

&lt;p&gt;&lt;img src=&quot;/static/remote_03_onboard.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Starting to work remotely is hard, so first thing first,
IMHO you need to do a few things first.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Get the context of your role in the team.&lt;/li&gt;
  &lt;li&gt;Understand your team goals, functions and responsibilities.&lt;/li&gt;
  &lt;li&gt;Get yourself a development environment as soon as possible.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;hard-to-effectively-communicate-with-all-your-colleagues&quot;&gt;Hard to effectively communicate with ALL your colleagues&lt;/h2&gt;

&lt;p&gt;&lt;img src=&quot;/static/remote_04_com.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;This might create inside the team, a sort of a ghetto feeling
where there are people communicating each other and others who don’t,
in which case it’s bad because the people might feel it’s not part
of the team’s mission.&lt;/p&gt;

&lt;p&gt;There are several solutions to this:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Have a common and real-time communication channel, like IRC, Hangouts, Slack or any other technology you want to use.&lt;/li&gt;
  &lt;li&gt;Make all the people in the team speak daily about this “What I’m doing and what is blocking me to achieve my tasks”. No more than 2 minutes per person in a daily stand-up call.&lt;/li&gt;
  &lt;li&gt;Avoid doing solo-tasks, try to get at least 2 people per task even if it can be decomposed in different sub-tasks make your team work together, using tools like t-mate to do peer programming sessions it’s also a good idea.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;senior-roles-usually-feel-they-need-to-pay-back-the-freedom-with-more-hours&quot;&gt;Senior roles usually feel they need to pay back the freedom with more hours&lt;/h2&gt;

&lt;p&gt;&lt;img src=&quot;/static/remote_04_overwork.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The freedom of doing remote work might be wrongly interpreted for some people,
yes, you have the freedom of doing laundry, get your kids to the school,
or to write this post. But, there is no need to excessively do extra hours,
if you are able to measure the value you are generating each day, you won’t
have the need for burning yourself out with extra hours.&lt;/p&gt;

&lt;p&gt;If you don’t have clear tasks or goals you might end up with this
question, &lt;strong&gt;I’m I doing too much, I’m I working less than I should?&lt;/strong&gt;
and there you have the error.
If you measure the value you are generating
you won’t have this question, period.&lt;/p&gt;

&lt;p&gt;Measure all! Measuring as much as you can give you a better overview
of your current and day-to-day performance, i.e. something really simple might be a
google docs script connecting to the apps you usually
use to generate a report and have a better scope about your own and personal performance.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;PRODUCTIVITY IS NOT ABOUT TIME, PRODUCTIVITY IS ABOUT TO GENERATING ADDED VALUE (work smart!).&lt;/p&gt;

&lt;hr /&gt;

&lt;blockquote&gt;
  &lt;p&gt;In the meantime, if you have covered all the tasks committed for the sprint
you should not be feeling bad about your performance,
but, what if you don’t have defined those sprint tasks?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So, the next item will speak about productivity,
innovating at your workplace and doing some planning kung-fu.&lt;/p&gt;

&lt;h2 id=&quot;productivity-and-innovation-vs-planned-work&quot;&gt;Productivity and innovation vs Planned work&lt;/h2&gt;

&lt;p&gt;There are people that have an incredibly good performance doing
their work and they just don’t like to plan the daily basis tasks they need
to achieve, this is motivated mostly because they have all the bits
in their minds. But, this is a team, and we are as good as our
lowest performance component in the chain.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/remote_02_improve.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;There are several solutions to this:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Agree in a way of defining the tasks that need to be achieved in the sprint,
try not to use time as a measure for finishing tasks, instead try with something
more subjective like value or difficulty.&lt;/li&gt;
  &lt;li&gt;Know what to do at any moment of your time, sometimes, not knowing that
will force you to invest much time on this without having the need to.&lt;/li&gt;
  &lt;li&gt;Keep all the knowledge in a single place of truth, yes, this is painful
when you don’t have it. Trello, Taiga, GitHub issues, Google docs, Google spreadsheets,
Launchpad, Bugzilla, Storyboard, and so many others… this is the toolset that I’m usually
using on my day-to-day work. Now it evolved to use Jira with some plugins to keep and maintain a single-place-of-truth.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The catch, sometimes over commitment makes you not able to innovate on your role,
so, keep a little bit of time for improving your product and yourself.&lt;/p&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2019/01/23:&lt;/strong&gt; First version&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Vote for the OpenStack Berlin Summit presentations!</title>
    <summary>I pushed some presentations for this year OpenStack summit in Berlin, the
presentations are related to updates, upgrades, backups, failures and restores.



¡¡¡Please vote!!!


  TripleO presentation for Updates and Upgrades
  TripleO presentation for Backups and Restores


Happy TripleOing!
</summary>
    <link href="https://www.pubstack.com/blog/2018/07/24/openstack-berlin-summit-vote-for-presentations.html"/>
    <updated>2018-07-24T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2018/07/24/openstack-berlin-summit-vote-for-presentations</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;I pushed some presentations for this year OpenStack summit in Berlin, the
presentations are related to updates, upgrades, backups, failures and restores.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/OpenStack-Summit-2018.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;please-vote&quot;&gt;¡¡¡Please vote!!!&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.openstack.org/summit/berlin-2018/vote-for-speakers/#/21961&quot;&gt;TripleO presentation for Updates and Upgrades&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.openstack.org/summit/berlin-2018/vote-for-speakers/#/22101&quot;&gt;TripleO presentation for Backups and Restores&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Happy TripleOing!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #13 (Containerized Undercloud)</title>
    <summary>This is the 13th release of the TripleO “Deep Dive” sessions Thanks to Dan Prince &amp; Emilien Macchi for this deep dive session about the next step of the TripleO’s Undercloud evolution. In this session, they will explain in detail...</summary>
    <link href="https://www.pubstack.com/blog/2018/05/31/tripleo-deep-dive-session-13.html"/>
    <updated>2018-05-31T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2018/05/31/tripleo-deep-dive-session-13</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the 13th release of the &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt;
“Deep Dive” sessions&lt;/p&gt;

&lt;p&gt;Thanks to &lt;a href=&quot;https://dprince.github.io/&quot;&gt;Dan Prince&lt;/a&gt; &amp;amp; &lt;a href=&quot;http://my1.fr/blog&quot;&gt;Emilien Macchi&lt;/a&gt;
for this deep dive session about the next step of the TripleO’s Undercloud evolution.&lt;/p&gt;

&lt;p&gt;In this session, they will explain in detail the movement re-architecting the Undercloud
to move towards containers in order to reuse the containerized Overcloud ecosystem.&lt;/p&gt;

&lt;p&gt;You can access the &lt;a href=&quot;https://docs.google.com/presentation/d/17Sbo0i0o2AhQBSjYH7eUrXKVHJcItklGZUUleFiC0ZU/&quot;&gt;presentation&lt;/a&gt;
or the
&lt;a href=&quot;https://etherpad.openstack.org/p/tripleo-deep-dive-containerized-undercloud&quot;&gt;Etherpad&lt;/a&gt; notes.&lt;/p&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=lv233gPynwk&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/lv233gPynwk&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt;
to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Testing Undercloud backup and restore using Ansible</title>
    <summary>This post will introduce you about how to run backups and restores using Ansible in TripleO. Testing the Undercloud backup and restore It is possible to test how the Undercloud backup and restore should be performed using Ansible. The following...</summary>
    <link href="https://www.pubstack.com/blog/2018/05/18/testing-undercloud-backup-and-restore-using-ansible.html"/>
    <updated>2018-05-18T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2018/05/18/testing-undercloud-backup-and-restore-using-ansible</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This post will introduce you about
how to run backups and restores using Ansible
in TripleO.&lt;/p&gt;

&lt;h1 id=&quot;testing-the-undercloud-backup-and-restore&quot;&gt;Testing the Undercloud backup and restore&lt;/h1&gt;

&lt;p&gt;It is possible to test how the Undercloud
backup and restore should be performed using
Ansible.&lt;/p&gt;

&lt;p&gt;The following Ansible playbooks will show
how can be used Ansible to test the
backups execution in a test environment.&lt;/p&gt;

&lt;h2 id=&quot;creating-the-ansible-playbooks-to-run-the-tasks&quot;&gt;Creating the Ansible playbooks to run the tasks&lt;/h2&gt;

&lt;p&gt;Create a yaml file called uc-backup.yaml
with the following content:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;---
- hosts: localhost
  tasks:
  - name: Remove any previously created UC backups
    shell: |
      source ~/stackrc
      openstack container delete undercloud-backups --recursive
    ignore_errors: True
  - name: Create UC backup
    shell: |
      source ~/stackrc
      openstack undercloud backup --add-path /etc/ --add-path /root/
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Create a yaml file called uc-backup-download.yaml
with the following content:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;---
- hosts: localhost
  tasks:
  - name: Make sure the temp folder used for the restore does not exist
    become: true
    file:
      path: &quot;/var/tmp/test_bk_down&quot;
      state: absent
  - name: Create temp folder to unzip the backup
    become: true
    file:
      path: &quot;/var/tmp/test_bk_down&quot;
      state: directory
      owner: &quot;stack&quot;
      group: &quot;stack&quot;
      mode: &quot;0775&quot;
      recurse: &quot;yes&quot;
  - name: Download the UC backup to a temporary folder (After breaking the UC we won&apos;t be able to get it back)
    shell: |
      source ~/stackrc
      cd /var/tmp/test_bk_down
      openstack container save undercloud-backups
  - name: Unzip the backup
    become: true
    shell: |
      cd /var/tmp/test_bk_down
      tar -xvf UC-backup-*.tar
      gunzip *.gz
      tar -xvf filesystem-*.tar
  - name: Make sure stack user can get the backup files
    become: true
    file:
      path: &quot;/var/tmp/test_bk_down&quot;
      state: directory
      owner: &quot;stack&quot;
      group: &quot;stack&quot;
      mode: &quot;0775&quot;
      recurse: &quot;yes&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Create a yaml file called uc-destroy.yaml
with the following content:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;---
- hosts: localhost
  tasks:
  - name: Remove mariadb
    become: true
    yum: pkg=
         state=absent
    with_items:
      - mariadb
      - mariadb-server
  - name: Remove files
    become: true
    file:
      path: &quot;&quot;
      state: absent
    with_items:
      - /root/.my.cnf
      - /var/lib/mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Create a yaml file called uc-restore.yaml
with the following content:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;---
- hosts: localhost
  tasks:
    - name: Install mariadb
      become: true
      yum: pkg=
           state=present
      with_items:
        - mariadb
        - mariadb-server
    - name: Restart MariaDB
      become: true
      service: name=mariadb state=restarted
    - name: Restore the backup DB
      shell: cat /var/tmp/test_bk_down/all-databases-*.sql | sudo mysql
    - name: Restart MariaDB to perms to refresh
      become: true
      service: name=mariadb state=restarted
    - name: Register root password
      become: true
      shell: cat /var/tmp/test_bk_down/root/.my.cnf | grep -m1 password | cut -d&apos;=&apos; -f2 | tr -d &quot;&apos;&quot;
      register: oldpass
    - name: Clean root password from MariaDB to reinstall the UC
      shell: |
        mysqladmin -u root -p password &apos;&apos;
    - name: Clean users
      become: true
      mysql_user: name=&quot;&quot; host_all=&quot;yes&quot; state=&quot;absent&quot;
      with_items:
        - ceilometer
        - glance
        - heat
        - ironic
        - keystone
        - neutron
        - nova
        - mistral
        - zaqar
    - name: Reinstall the undercloud
      shell: |
        openstack undercloud install
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;running-the-undercloud-backup-and-restore-tasks&quot;&gt;Running the Undercloud backup and restore tasks&lt;/h2&gt;

&lt;p&gt;To test the UC backup and restore procedure, run from the UC
after creating the Ansible playbooks:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  # This playbook will create the UC backup
  ansible-playbook uc-backup.yaml
  # This playbook will download the UC backup to be used in the restore
  ansible-playbook uc-backup-download.yaml
  # This playbook will destroy the UC (remove DB server, remove DB files, remove config files)
  ansible-playbook uc-destroy.yaml
  # This playbook will reinstall the DB server, restore the DB backup, fix permissions and reinstall the UC
  ansible-playbook uc-restore.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;checking-the-undercloud-state&quot;&gt;Checking the Undercloud state&lt;/h2&gt;

&lt;p&gt;After finishing the Undercloud restore playbook the user should be able to execute again
any CLI command like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  source ~/stackrc
  openstack stack list
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Source code available in &lt;a href=&quot;https://github.com/ccamacho/tripleo-ansible/tree/master/undercloud-backup-restore-check&quot;&gt;GitHub&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Install tmate.io and share your terminal session</title>
    <summary>This is an easy solution for sharing terminal sessions over ssh. Tmate.io is great terminal sharing app, you can think of it as Teamviewer for ssh. To avoid compiling issues and dependencies, we will get the static build directly from...</summary>
    <link href="https://www.pubstack.com/blog/2018/03/13/installing-and-using-tmate.html"/>
    <updated>2018-03-13T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2018/03/13/installing-and-using-tmate</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is an easy solution for sharing terminal sessions over ssh.
&lt;a href=&quot;https://tmate.io&quot;&gt;Tmate.io&lt;/a&gt; is great terminal sharing app,
you can think of it as Teamviewer for ssh.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/tmate.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;To avoid compiling issues and dependencies, we will get the
static build directly from GitHub to &lt;code&gt;automagically&lt;/code&gt; use it.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Get files and install
wget https://github.com/tmate-io/tmate/releases/download/2.2.1/tmate-2.2.1-static-linux-amd64.tar.gz
tar -xvzf tmate-2.2.1-static-linux-amd64.tar.gz
sudo mv ./tmate-2.2.1-static-linux-amd64/tmate /usr/bin/
sudo chmod +x /usr/bin/tmate
rm -rf tmate-2.2.1-static-linux-amd64*

# echo &quot;export TERM=xterm&quot; &amp;gt;&amp;gt; .bashrc

#Configure Tmate using ln2 as the default server
sudo tee -a ~/.tmate.conf &amp;gt; /dev/null &amp;lt;&amp;lt;&apos;EOF&apos;
set -g tmate-server-host &quot;ln2.tmate.io&quot;
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And that is it, enjoy.&lt;/p&gt;

&lt;p&gt;Use tmate and share the link…&lt;/p&gt;

&lt;h3 id=&quot;running-tmate-as-a-daemon&quot;&gt;Running tmate as a daemon&lt;/h3&gt;

&lt;p&gt;You can run tmate detached, and retrieve
the SSH connection strings as follow:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;tmate -S /tmp/tmate.sock new-session -d               # Launch tmate in a detached state
tmate -S /tmp/tmate.sock wait tmate-ready             # Blocks until the SSH connection is established
tmate -S /tmp/tmate.sock display -p &apos;#{tmate_ssh}&apos;    # Prints the SSH connection string
tmate -S /tmp/tmate.sock display -p &apos;#{tmate_ssh_ro}&apos; # Prints the read-only SSH connection string
tmate -S /tmp/tmate.sock display -p &apos;#{tmate_web}&apos;    # Prints the web connection string
tmate -S /tmp/tmate.sock display -p &apos;#{tmate_web_ro}&apos; # Prints the read-only web connection string
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Note that it is important to specify a socket
(e.g. /tmp/dev.sock) as tmate uses a random
socket name by default.&lt;/p&gt;

&lt;p&gt;You can think of tmate as a reverse ssh tunnel
accessible from anywhere.&lt;/p&gt;

&lt;p&gt;Read more directly from &lt;a href=&quot;https://tmate.io/&quot;&gt;Tmate.io&lt;/a&gt;.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>My 2nd birthday as a Red Hatter</title>
    <summary>This post will be about to speak about my experience working in TripleO as a Red Hatter for the last 2 years. In my 2nd birthday as a Red Hatter, I have learned about many technologies, really a lot… But...</summary>
    <link href="https://www.pubstack.com/blog/2018/03/01/2nd-birthday-as-a-red-hatter.html"/>
    <updated>2018-03-01T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2018/03/01/2nd-birthday-as-a-red-hatter</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This post will be about to speak about my experience working in TripleO as
a Red Hatter for the last 2 years.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img width=&quot;230px&quot; src=&quot;/static/bday.gif&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;In my 2nd birthday as a Red Hatter, I have learned about many technologies,
really a lot… But the most intriguing thing is that here you never stop
learning. Not just because you just don’t want to learn new things, instead,
is because of the project’s nature, this project… TripleO…&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img width=&quot;230px&quot; src=&quot;/static/tripleo_logo.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;TripleO (Openstack On Openstack) is a software aimed to deploy OpenStack
services using the same OpenStack ecosystem, this means that we will deploy
a minimal OpenStack instance (Undercloud) and from there, deploy our production
environment (Overcloud)…  Yikes! What a mouthful, huh? Put simply, TripleO
is an installer which should make integrators/operators/developers lives
easier, but the reality sometimes is far away from the expectation.&lt;/p&gt;

&lt;p&gt;TripleO is capable of doing wonderful things, with a little of patience,
love, and dedication, your hands can be the right hands to deploy complex environments at easy.&lt;/p&gt;

&lt;p&gt;One of the cool things being one of the programmers who write TripleO, from now
on TripleOers, is that many of us also use the software regularly. We are writing
code not just because we are told to do it, but because we want to improve it for our own purposes.&lt;/p&gt;

&lt;p&gt;Part of the programmers’ motivation momentum have to do with TripleO’s open‐source
nature, so if you code in TripleO you are part of a community.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img width=&quot;230px&quot; src=&quot;/static/community.gif&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Congratulations! As a TripleO user or a TripleOer, you are a part of our community and
it means that you’re joining a diverse group that spans all age ranges, ethnicities,
professional backgrounds, and parts of the globe. We are a passionate bunch of crazy
people, proud of this “little” monster and more than willing to help
others enjoy using it as much as we do.&lt;/p&gt;

&lt;p&gt;Getting to know the interface (the templates, Mistral, Heat, Ansible, Docker,
Puppet, Jinja, …) and how all components are tight together, probably is one of
the most daunting aspects of TripleO for newcomers (and not newcomers).
This for sure will raise the blood pressure of some of you who tried using TripleO
in the past, but failed miserably and gave up in frustration when it did not behave
as expected. Yeah.. sometimes that “$h1t” happens…&lt;/p&gt;

&lt;p&gt;Although learning TripleO isn’t that easy, the architecture updates,
the decoupling of the role services “compostable roles”, the backup and restore
strategies, the integration of Ansible among many others have made great strides
toward alleviating that frustration, and the improvements continue through to today.&lt;/p&gt;

&lt;p&gt;So this is the question…&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/fast_to.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Is TripleO meant to be “fast to use” or “fast to learn”?&lt;/p&gt;

&lt;p&gt;There is a significant way of describing software products, but we need to know what
our software will be used for… TripleO is designed to work at scale, it might be
easier to deploy manually a few controllers and computes, but what about deploying
100 computes, 3 controllers and 50 cinder nodes, all of them configured to be integrated
and work as one single “cloud”? Buum!.
So there we find the TripleO benefits if we want to make it scale we need to make it fast to use…&lt;/p&gt;

&lt;p&gt;This means that we will find several customizations,
hacks, workarounds, to make it work as we need it.&lt;/p&gt;

&lt;p&gt;The upside to this approach is that TripleO evolved to be super-ultra-giga
customizable so operators are enabled to produce great environments blazingly fast..&lt;/p&gt;

&lt;p&gt;The downside, Jaja, yes.. there is a downside “or several”. As with most things that
are customized, TripleO became somewhat difficult for new people to understand.
Also, it’s incredibly hard to test all the possible deployments, and when a user does
non-standard or not supported customizations, the upgrades are not as intuitive as they need…&lt;/p&gt;

&lt;p&gt;This trade‐off is what I mean when I say “fast to use versus fast to learn.”
You can be extremely productive with TripleO after you understand how it thinks “yes, it thinks”.&lt;/p&gt;

&lt;p&gt;However, your first few deployments and patches might be arduous. Of course,
alleviating that potential pain is what our work is about. IMHO the pros are more than the
cons and once you find a niche to improve it will be a really nice experience.&lt;/p&gt;

&lt;p&gt;Also, we have the TripleO YouTube channel a place to push video tutorials and deep dive sessions
driven by the community for the community.&lt;/p&gt;

&lt;p&gt;For the Spanish community we have a 100% translated TripleO UI, go to https://translate.openstack.org
and help us to reach as many languages as possible!!!&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img width=&quot;230px&quot; src=&quot;/static/logo.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;www.pubstack.com was born on July 5th of 2016 (first GitHub commit), yeah is my way of expressing
my gratitude to the community doing some CtrlC + CtrlV recipes to avoid the frustration of working
with TripleO and not having something deployed and easy to be used ASAP.&lt;/p&gt;

&lt;p&gt;Pubstack does not have much traffic but it reached superuser.openstack.org, the TripleO cheatsheets
were on devconf.cz and FOSDEM, so in general, is really nice. When people reference your writings
anywhere. Maybe in the future can evolve to be more related to ANsible and openSTACK ;) as TripleO
is adding more and more support for Ansible.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img width=&quot;230px&quot; src=&quot;/static/red_hat.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;What about Red Hat? Yeahp, I have a long time speaking about the project but haven’t
spoken about the company making it all real.
Red Hat is the world’s leading provider of open source solutions,
using a community-powered approach to provide reliable and high-performing
cloud, virtualization, storage, Linux, and middleware technologies.&lt;/p&gt;

&lt;p&gt;There is a strong feeling of belonging in Red Hat, you are part of a team, a culture and you are able to
find a perfect balance between your work and life. Also, having all people from all over the globe makes
a perfect place for sharing ideas and collaborate. Not all of it is good, i.e. Working mostly remotely
in upstream communities can be really hard to manage if you are not 100%
sure about the tasks that need to be done.&lt;/p&gt;

&lt;p&gt;Keep rocking and become part of the TripleO community!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #12 (config-download)</title>
    <summary>This is the 12th release of the TripleO “Deep Dive” sessions Thanks to James Slagle for this new session, in which he will describe and speak about a feature called config-download. In this session we will have an update for...</summary>
    <link href="https://www.pubstack.com/blog/2018/02/23/tripleo-deep-dive-session-12.html"/>
    <updated>2018-02-23T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2018/02/23/tripleo-deep-dive-session-12</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the 12th release of the &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt; “Deep Dive” sessions&lt;/p&gt;

&lt;p&gt;Thanks to &lt;a href=&quot;http://blog-slagle.rhcloud.com/&quot;&gt;James Slagle&lt;/a&gt; for this new session, in which he
will describe and speak about a feature called &lt;code&gt;config-download&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In this session we will have
an update for the TripleO
ansible integration called
&lt;code&gt;config-download&lt;/code&gt;.
It’s about aplying all the software
configuration with Ansible instead
of doing it with the Heat agents.&lt;/p&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=-6ojHT8P4RE&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/-6ojHT8P4RE&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt;
to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>The Fender Stratocaster coffee table</title>
    <summary>This post will show briefly a project I did a long time ago to build a Stratocaster coffee table. Here you have the pictures: IKEA countertop to make the table Source code for the table design This link have the...</summary>
    <link href="https://www.pubstack.com/blog/2018/01/08/stratocaster-coffee-table.html"/>
    <updated>2018-01-08T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2018/01/08/stratocaster-coffee-table</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This post will show briefly a project I did a
long time ago to build a Stratocaster coffee table.&lt;/p&gt;

&lt;p&gt;Here you have the pictures:&lt;/p&gt;

&lt;h1 id=&quot;ikea-countertop-to-make-the-table&quot;&gt;IKEA countertop to make the table&lt;/h1&gt;

&lt;p&gt;&lt;img src=&quot;/static/strato-coffee-table/01-countertop-raw.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;source-code-for-the-table-design&quot;&gt;Source code for the table design&lt;/h1&gt;

&lt;p&gt;&lt;a href=&quot;/static/strato-coffee-table/02-table-design.svg&quot;&gt;This link&lt;/a&gt;
have the design I used to CNC the countertop. It’s a simple
SVG file that can be translated to .gcode without issues.&lt;/p&gt;

&lt;h1 id=&quot;cnc-machine-view-1&quot;&gt;CNC machine view 1&lt;/h1&gt;

&lt;p&gt;&lt;img src=&quot;/static/strato-coffee-table/03-cncing.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;cnc-machine-view-2&quot;&gt;CNC machine view 2&lt;/h1&gt;
&lt;p&gt;&lt;img src=&quot;/static/strato-coffee-table/04-cncing.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;cnc-video-building-the-table&quot;&gt;CNC video building the table&lt;/h1&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;video width=&quot;480&quot; height=&quot;320&quot; controls=&quot;controls&quot;&gt;
    &lt;source src=&quot;/static/strato-coffee-table/05-cncing.mp4&quot; type=&quot;video/mp4&quot; /&gt;
  &lt;/video&gt;
&lt;/div&gt;

&lt;h1 id=&quot;machined-countertop&quot;&gt;Machined countertop&lt;/h1&gt;

&lt;p&gt;&lt;img src=&quot;/static/strato-coffee-table/06-cnced.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;applying-some-epoxy-resin-to-fill-the-holes&quot;&gt;Applying some epoxy resin to fill the holes&lt;/h1&gt;

&lt;p&gt;&lt;img src=&quot;/static/strato-coffee-table/07-epoxyed.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;table-after-first-round-of-sanding&quot;&gt;Table after first round of sanding&lt;/h1&gt;

&lt;p&gt;&lt;img src=&quot;/static/strato-coffee-table/08-partially-sanded.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;table-sanded&quot;&gt;Table sanded&lt;/h1&gt;

&lt;p&gt;&lt;img src=&quot;/static/strato-coffee-table/09-partially-sanded.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Hope you enjoyed reading this.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>New TripleO quickstart cheatsheet</title>
    <summary>I have created some cheatsheets for people starting to work on TripleO, mostly to help them to bootstrap a development environment as quickly as possible. The previous version of this cheatsheet series was used in several community conferences (FOSDEM, DevConf.cz),...</summary>
    <link href="https://www.pubstack.com/blog/2018/01/05/tripleo-quickstart-cheatsheet.html"/>
    <updated>2018-01-05T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2018/01/05/tripleo-quickstart-cheatsheet</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;I have created some cheatsheets for people starting to work on TripleO,
mostly to help them to bootstrap a development environment as quickly as possible.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/ccamacho/tripleo-graphics/tree/master/cheatsheets/old_style&quot;&gt;The previous version&lt;/a&gt;
of this cheatsheet series was used in
several community conferences (FOSDEM, DevConf.cz),
now, they are deprecated as
the way TripleO should be deployed changed considerably last months.&lt;/p&gt;

&lt;p&gt;Here you have the latest version:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/01-tripleo-cheatsheet-deploying-tripleo_p1.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/01-tripleo-cheatsheet-deploying-tripleo_p2.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The source code of these bookmarks is available as usual on
&lt;a href=&quot;https://github.com/ccamacho/tripleo-graphics/tree/master/cheatsheets/latest_style&quot;&gt;GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And this is the code if you want to execute it directly:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# 01 - Create the toor user.
sudo useradd toor
echo &quot;toor:toor&quot; | chpasswd
echo &quot;toor ALL=(root) NOPASSWD:ALL&quot; \
  | sudo tee /etc/sudoers.d/toor
sudo chmod 0440 /etc/sudoers.d/toor
su - toor

# 02 - Prepare the hypervisor node.
cd
mkdir .ssh
ssh-keygen -t rsa -N &quot;&quot; -f .ssh/id_rsa
cat .ssh/id_rsa.pub &amp;gt;&amp;gt; .ssh/authorized_keys
cat .ssh/id_rsa.pub | sudo tee -a /root/.ssh/authorized_keys
echo &apos;127.0.0.1 127.0.0.2&apos; | sudo tee -a /etc/hosts
export VIRTHOST=127.0.0.2
sudo yum groupinstall &quot;Virtualization Host&quot; -y
sudo yum install git lvm2 lvm2-devel -y
ssh root@$VIRTHOST uname -a

# 03 - Clone repos and install deps.
git clone \
  https://github.com/openstack/tripleo-quickstart
chmod u+x ./tripleo-quickstart/quickstart.sh
bash ./tripleo-quickstart/quickstart.sh \
  --install-deps
sudo setenforce 0

# 04 - Configure the TripleO deployment with Docker and HA.
export CONFIG=~/deploy-config.yaml
cat &amp;gt; $CONFIG &amp;lt;&amp;lt; EOF
overcloud_nodes:
  - name: control_0
    flavor: control
    virtualbmc_port: 6230
  - name: compute_0
    flavor: compute
    virtualbmc_port: 6231
node_count: 2
containerized_overcloud: true
delete_docker_cache: true
enable_pacemaker: true
run_tempest: false
extra_args: &amp;gt;-
  --libvirt-type qemu
  --ntp-server pool.ntp.org
  -e /usr/share/openstack-tripleo-heat-templates/environments/docker.yaml
  -e /usr/share/openstack-tripleo-heat-templates/environments/docker-ha.yaml
EOF

# 05 - Deploy TripleO.
export VIRTHOST=127.0.0.2
bash ./tripleo-quickstart/quickstart.sh \
      --clean          \
      --release master \
      --teardown all   \
      --tags all       \
      -e @$CONFIG      \
      $VIRTHOST
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Happy TripleOing!!!&lt;/p&gt;

&lt;h2 id=&quot;update-log&quot;&gt;Update log:&lt;/h2&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;2018/01/05:&lt;/strong&gt; Initial version.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;2019/01/16:&lt;/strong&gt; Appeared in &lt;a href=&quot;https://superuser.openstack.org/articles/new-tripleo-quick-start-cheatsheet/&quot;&gt;OpenStack Superuser blog.&lt;/a&gt;&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;

</content>
  </entry>
  
  
  
  <entry>
    <title>Automating Undercloud backups and a Mistral introduction for creating workbooks, workflows and actions</title>
    <summary>The goal of this developer documentation is to address the automated process of backing up a TripleO Undercloud and to give developers a complete description about how to integrate Mistral workbooks, workflows and actions into the Python TripleO client. This...</summary>
    <link href="https://www.pubstack.com/blog/2017/12/18/automating-the-undercloud-backup-and-mistral-workflows-intro.html"/>
    <updated>2017-12-18T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/12/18/automating-the-undercloud-backup-and-mistral-workflows-intro</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;The goal of this developer documentation is to address the automated process
of backing up a TripleO Undercloud and to give developers a complete description
about how to integrate Mistral workbooks, workflows and actions into the Python
TripleO client.&lt;/p&gt;

&lt;p&gt;This tutorial will be divided into several sections:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Introduction and prerequisites&lt;/li&gt;
  &lt;li&gt;Undercloud backups&lt;/li&gt;
  &lt;li&gt;Creating a new OpenStack CLI command in python-tripleoclient (openstack
undercloud backup).&lt;/li&gt;
  &lt;li&gt;Creating Mistral workflows for the new python-tripleoclient CLI command.&lt;/li&gt;
  &lt;li&gt;Give support for new Mistral environment variables when installing the
undercloud.&lt;/li&gt;
  &lt;li&gt;Show how to test locally the changes in python-tripleoclient and
tripleo-common.&lt;/li&gt;
  &lt;li&gt;Give elevated privileges to specific Mistral actions that need to run with
elevated privileges.&lt;/li&gt;
  &lt;li&gt;Debugging actions&lt;/li&gt;
  &lt;li&gt;Unit tests&lt;/li&gt;
  &lt;li&gt;Why all previous sections are related to Upgrades?&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;1-introduction-and-prerequisites&quot;&gt;1. Introduction and prerequisites&lt;/h2&gt;

&lt;p&gt;Let’s assume you have a TripleO development environment healthy and working
properly. All the commands and customization we are going to run will run in
the Undercloud, as usual logged in as the stack user and having sourced the
stackrc file.&lt;/p&gt;

&lt;p&gt;Then let’s proceed by cloning the repositories we are going to work with in a
temporary folder:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;mkdir dev-docs
cd dev-docs
git clone https://github.com/openstack/python-tripleoclient
git clone https://github.com/openstack/tripleo-common
git clone https://github.com/openstack/instack-undercloud
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;python-tripleoclient:&lt;/strong&gt; Will define the OpenStack CLI commands.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;tripleo-common:&lt;/strong&gt; Will have the Mistral logic.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;instack-undercloud:&lt;/strong&gt; Allows to update and create mistral
environments to store configuration details needed when executing Mistral workflows.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;2-undercloud-backups&quot;&gt;2. Undercloud backups&lt;/h2&gt;

&lt;p&gt;Most of the Undercloud back procedure is available in the
&lt;a href=&quot;https://docs.openstack.org/tripleo-docs/latest/install/post_deployment/backup_restore_undercloud.html&quot;&gt;TripleO official documentation site&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We will focus on the automation of backing up the resources required to restore
the Undercloud in case of a failed upgrade.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;All MariaDB databases on the undercloud node&lt;/li&gt;
  &lt;li&gt;MariaDB configuration file on undercloud (so we can restore databases
accurately)&lt;/li&gt;
  &lt;li&gt;All glance image data in /var/lib/glance/images&lt;/li&gt;
  &lt;li&gt;All swift data in /srv/node&lt;/li&gt;
  &lt;li&gt;All data in stack users home directory&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For doing this we need to be able to:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Connect to the database server as root.&lt;/li&gt;
  &lt;li&gt;Dump all databases to file.&lt;/li&gt;
  &lt;li&gt;Create a filesystem backup of several folders (and be able to access folders
with restricted access).&lt;/li&gt;
  &lt;li&gt;Upload this backup to a swift container to be able to get it from the TripleO
web UI.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;3-creating-a-new-openstack-cli-command-in-python-tripleoclient-openstack-undercloud-backup&quot;&gt;3. Creating a new OpenStack CLI command in python-tripleoclient (openstack undercloud backup).&lt;/h2&gt;

&lt;p&gt;The first action needed is to be able to create a new CLI command for the
OpenStack client.  In this case, we are going to implement the &lt;strong&gt;openstack
undercloud backup&lt;/strong&gt; command.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cd dev-docs
cd python-tripleoclient
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Let’s list the files inside this folder:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[stack@undercloud python-tripleoclient]$ ls
AUTHORS           doc                            setup.py
babel.cfg         LICENSE                        test-requirements.txt
bindep.txt        zuul.d                         tools
build             README.rst                     tox.ini
ChangeLog         releasenotes                   tripleoclient
config-generator  requirements.txt               
CONTRIBUTING.rst  setup.cfg
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Once inside the &lt;strong&gt;python-tripleoclient&lt;/strong&gt; folder we need to check the following
file:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;setup.cfg:&lt;/strong&gt; This file defines all the CLI commands for the Python TripleO
client. Specifically, we will need at the end of this file our new command
definition:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;undercloud_backup = tripleoclient.v1.undercloud_backup:BackupUndercloud
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This means that we have a new command defined as &lt;strong&gt;undercloud backup&lt;/strong&gt; that
will instantiate the &lt;strong&gt;BackupUndercloud&lt;/strong&gt; class defined in the file
&lt;strong&gt;tripleoclient/v1/undercloud_backup.py&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For further details related to this class definition please go to the
&lt;a href=&quot;https://review.openstack.org/#/c/466213&quot;&gt;gerrit review&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Now, having our class defined we can call other methods to invoke Mistral in
this way:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;clients = self.app.client_manager

files_to_backup = &apos;,&apos;.join(list(set(parsed_args.add_files_to_backup)))

workflow_input = {
    &quot;sources_path&quot;: files_to_backup
}
output = undercloud_backup.prepare(clients, workflow_input)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So forth, we will call the &lt;strong&gt;undercloud_backup.prepare&lt;/strong&gt; method defined
in the file &lt;strong&gt;tripleoclient/workflows/undercloud_backup.py&lt;/strong&gt; wich will
call the Mistral workflow:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;def prepare(clients, workflow_input):
    workflow_client = clients.workflow_engine
    tripleoclients = clients.tripleoclient
    with tripleoclients.messaging_websocket() as ws:
        execution = base.start_workflow(
            workflow_client,
            &apos;tripleo.undercloud_backup.v1.prepare_environment&apos;,
            workflow_input=workflow_input
        )
        for payload in base.wait_for_messages(workflow_client, ws, execution):
            if &apos;message&apos; in payload:
                return payload[&apos;message&apos;]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In this case, we will create a loop within the tripleoclient and wait until we receive
a message from the Mistral workflow &lt;strong&gt;tripleo.undercloud_backup.v1.prepare_environment&lt;/strong&gt;
that indicates if the invoked workflow ended correctly.&lt;/p&gt;

&lt;h2 id=&quot;4-creating-mistral-workflows-for-the-new-python-tripleoclient-cli-command&quot;&gt;4. Creating Mistral workflows for the new python-tripleoclient CLI command.&lt;/h2&gt;

&lt;p&gt;The next step is to define the
&lt;strong&gt;tripleo.undercloud_backup.v1.prepare_environment&lt;/strong&gt; Mistral workflow, all the
Mistral workbooks, workflows and actions will be defined in the
&lt;strong&gt;tripleo-common&lt;/strong&gt; repository.&lt;/p&gt;

&lt;p&gt;Let’s go inside &lt;strong&gt;tripleo-common&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cd dev-docs
cd tripleo-common
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And see it’s conent:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[stack@undercloud tripleo-common]$ ls
AUTHORS           doc                README.rst        test-requirements.txt
babel.cfg         HACKING.rst        releasenotes      tools
build             healthcheck        requirements.txt  tox.ini
ChangeLog         heat_docker_agent  scripts           tripleo_common
container-images  image-yaml         setup.cfg         undercloud_heat_plugins
contrib           LICENSE            setup.py          workbooks
CONTRIBUTING.rst  playbooks          sudoers           zuul.d
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Again we need to check the following file:&lt;/p&gt;

&lt;p&gt;setup.cfg: This file defines all the Mistral actions we can call.
Specifically, we will need at the end of this file our new actions:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;tripleo.undercloud.get_free_space = tripleo_common.actions.undercloud:GetFreeSpace
tripleo.undercloud.create_backup_dir = tripleo_common.actions.undercloud:CreateBackupDir
tripleo.undercloud.create_database_backup = tripleo_common.actions.undercloud:CreateDatabaseBackup
tripleo.undercloud.create_file_system_backup = tripleo_common.actions.undercloud:CreateFileSystemBackup
tripleo.undercloud.upload_backup_to_swift = tripleo_common.actions.undercloud:UploadUndercloudBackupToSwift
&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id=&quot;41-action-definition&quot;&gt;4.1. Action definition&lt;/h3&gt;

&lt;p&gt;Let’s take the first action to describe it’s definition,
&lt;strong&gt;tripleo.undercloud.get_free_space = tripleo_common.actions.undercloud:GetFreeSpace&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We have defined the action named as &lt;strong&gt;tripleo.undercloud.get_free_space&lt;/strong&gt; which
will instantiate the class &lt;strong&gt;GetFreeSpace&lt;/strong&gt; defined in the file
&lt;strong&gt;tripleo_common/actions/undercloud.py&lt;/strong&gt; file.&lt;/p&gt;

&lt;p&gt;If we open &lt;strong&gt;tripleo_common/actions/undercloud.py&lt;/strong&gt; we can see the class definition as:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;class GetFreeSpace(base.Action):
    &quot;&quot;&quot;Get the Undercloud free space for the backup.

       The default path to check will be /tmp and the default minimum size will
       be 10240 MB (10GB).
    &quot;&quot;&quot;

    def __init__(self, min_space=10240):
        self.min_space = min_space

    def run(self, context):
        temp_path = tempfile.gettempdir()
        min_space = self.min_space
        while not os.path.isdir(temp_path):
            head, tail = os.path.split(temp_path)
            temp_path = head
        available_space = (
            (os.statvfs(temp_path).f_frsize * os.statvfs(temp_path).f_bavail) /
            (1024 * 1024))
        if (available_space &amp;lt; min_space):
            msg = &quot;There is no enough space, avail. - %s MB&quot; \
                  % str(available_space)
            return actions.Result(error={&apos;msg&apos;: msg})
        else:
            msg = &quot;There is enough space, avail. - %s MB&quot; \
                  % str(available_space)
            return actions.Result(data={&apos;msg&apos;: msg})
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In this specific case this class will check if there is enough space to perform
the backup.  Later we will be able to inkove action as&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;mistral run-action tripleo.undercloud.get_free_space
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;or use it workbooks.&lt;/p&gt;

&lt;h3 id=&quot;42-workflow-definition&quot;&gt;4.2. Workflow definition.&lt;/h3&gt;

&lt;p&gt;Once we have defined all our new actions, we need to orchestrate them in order
to have a fully working Mistral workflow.&lt;/p&gt;

&lt;p&gt;All &lt;strong&gt;tripleo-comon&lt;/strong&gt; workbooks are defined in the workbooks folder.&lt;/p&gt;

&lt;p&gt;In the next example we have a workbook definition
with all actions inside it, in this case we put in the example
the first workflow with all the tasks involved.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;---
version: &apos;2.0&apos;
name: tripleo.undercloud_backup.v1
description: TripleO Undercloud backup workflows

workflows:

  prepare_environment:
    description: &amp;gt;
      This workflow will prepare the Undercloud to run the database backup
    tags:
      - tripleo-common-managed
    input:
      - queue_name: tripleo
    tasks:
      # Action to know if there is enough available space
      # to run the Undercloud backup
      get_free_space:
        action: tripleo.undercloud.get_free_space
        publish:
            status: &amp;lt;% task().result %&amp;gt;
            free_space: &amp;lt;% task().result %&amp;gt;
        on-success: send_message
        on-error: send_message
        publish-on-error:
          status: FAILED
          message: &amp;lt;% task().result %&amp;gt;


      # Sending a message that the folder to create the backup was
      # created succesfully
      send_message:
        action: zaqar.queue_post
        retry: count=5 delay=1
        input:
          queue_name: &amp;lt;% $.queue_name %&amp;gt;
          messages:
            body:
              type: tripleo.undercloud_backup.v1.launch
              payload:
                status: &amp;lt;% $.status %&amp;gt;
                execution: &amp;lt;% execution() %&amp;gt;
                message: &amp;lt;% $.get(&apos;message&apos;, &apos;&apos;) %&amp;gt;
        on-success:
          - fail: &amp;lt;% $.get(&apos;status&apos;) = &quot;FAILED&quot; %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The workflow its self explanatory, the only not so clear part might be the last
one as the workflow uses an action to send a message stating that the workflow
ended correctly.  Passing as the message the output of the previous task, in
this case the result of the &lt;strong&gt;create_backup_dir&lt;/strong&gt;.&lt;/p&gt;

&lt;h2 id=&quot;5-give-support-for-new-mistral-environment-variables-when-installing-the-undercloud&quot;&gt;5. Give support for new Mistral environment variables when installing the undercloud.&lt;/h2&gt;

&lt;p&gt;Sometimes is needed to use additional values inside a Mistral task. For example,
if we need to create a dump of a database we might need another that the
Mistral user credentials for authentication purposes.&lt;/p&gt;

&lt;p&gt;Initially when the Undercloud is installed it’s
created a Mistral environment called
&lt;strong&gt;tripleo.undercloud-config&lt;/strong&gt;.
This environment variable will have all required configuration details that we
can get from Mistral. This is defined in the &lt;strong&gt;instack-undercloud&lt;/strong&gt; repository.&lt;/p&gt;

&lt;p&gt;Let’s get into the repository and check the content of the file
&lt;strong&gt;instack_undercloud/undercloud.py&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This file defines a set of methods to interact with the Undercloud,
specifically the method called &lt;strong&gt;_create_mistral_config_environment&lt;/strong&gt; allows to
configure additional environment variables when installing the Undercloud.&lt;/p&gt;

&lt;p&gt;For additional testing, you can use the
&lt;a href=&quot;https://gist.github.com/ccamacho/354f798102710d165c1f6167eb533caf#file-mistral_client_snippet-py&quot;&gt;Python snippet&lt;/a&gt;
to call Mistral client from the Undercloud node
available in gist.github.com.&lt;/p&gt;

&lt;h2 id=&quot;6-show-how-to-test-locally-the-changes-in-python-tripleoclient-and-tripleo-common&quot;&gt;6. Show how to test locally the changes in python-tripleoclient and tripleo-common.&lt;/h2&gt;

&lt;p&gt;If it’s needed a local test of a change in python-tripleoclient or
tripleo-common, the following procedures allow to test it locally.&lt;/p&gt;

&lt;p&gt;For a change in &lt;strong&gt;python-tripleoclient&lt;/strong&gt;, assuming you already have downloaded
the change you want to test, execute:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cd python-tripleoclient
sudo rm -Rf /usr/lib/python2.7/site-packages/tripleoclient*
sudo rm -Rf /usr/lib/python2.7/site-packages/python_tripleoclient*
sudo python setup.py clean --all install
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;For a change in &lt;strong&gt;tripleo-common&lt;/strong&gt;, assuming you already have downloaded the
change you want to test, execute:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cd tripleo-common
sudo rm -Rf /usr/lib/python2.7/site-packages/tripleo_common*
sudo python setup.py clean --all install
sudo cp /usr/share/tripleo-common/sudoers /etc/sudoers.d/tripleo-common
# this loads the actions via entrypoints
sudo mistral-db-manage --config-file /etc/mistral/mistral.conf populate
# make sure the new actions got loaded
mistral action-list | grep tripleo
for workbook in workbooks/*.yaml; do
    mistral workbook-create $workbook
done

for workbook in workbooks/*.yaml; do
    mistral workbook-update $workbook
done
sudo systemctl restart openstack-mistral-executor
sudo systemctl restart openstack-mistral-engine
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If we want to execute a Mistral action or a Mistral workflow you can execute:&lt;/p&gt;

&lt;p&gt;Examples about how to test Mistral actions independently:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;mistral run-action tripleo.undercloud.get_free_space #Without parameters
mistral run-action tripleo.undercloud.get_free_space &apos;{&quot;path&quot;: &quot;/etc/&quot;}&apos; # With parameters
mistral run-action tripleo.undercloud.create_file_system_backup &apos;{&quot;sources_path&quot;: &quot;/tmp/asdf.txt,/tmp/asdf&quot;, &quot;destination_path&quot;: &quot;/tmp/&quot;}&apos;

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Examples about how to test a Mistral workflow independently:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;mistral execution-create tripleo.undercloud_backup.v1.prepare_environment # No parameters
mistral execution-create tripleo.undercloud_backup.v1.filesystem_backup &apos;{&quot;sources_path&quot;: &quot;/tmp/asdf.txt,/tmp/asdf&quot;, &quot;destination_path&quot;: &quot;/tmp/&quot;}&apos; # With parameters
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;7-give-elevated-privileges-to-specific-mistral-actions-that-need-to-run-with-elevated-privileges&quot;&gt;7. Give elevated privileges to specific Mistral actions that need to run with elevated privileges.&lt;/h2&gt;

&lt;p&gt;Sometimes its is not possible to execute some restricted actions from the
Mistral user, for example, when creating the Undercloud backup we won’t be able
to access the &lt;strong&gt;/home/stack/&lt;/strong&gt; folder to create a tarball of it.  For this
cases it’s possible to execute elevates actions from the Mistral user:&lt;/p&gt;

&lt;p&gt;This is the content of the &lt;strong&gt;sudoers&lt;/strong&gt; in the root of the &lt;strong&gt;tripleo-common&lt;/strong&gt;
repository at the time of the creatino of this guide.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Defaults!/usr/bin/run-validation !requiretty
Defaults:validations !requiretty
Defaults:mistral !requiretty
mistral ALL = (validations) NOPASSWD:SETENV: /usr/bin/run-validation
mistral ALL = NOPASSWD: /usr/bin/chown -h validations\: /tmp/validations_identity_[A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_], \
        /usr/bin/chown validations\: /tmp/validations_identity_[A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_], \
        !/usr/bin/chown /tmp/validations_identity_* *, !/usr/bin/chown /tmp/validations_identity_*..*
mistral ALL = NOPASSWD: /usr/bin/rm -f /tmp/validations_identity_[A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_], \
        !/usr/bin/rm /tmp/validations_identity_* *, !/usr/bin/rm /tmp/validations_identity_*..*
mistral ALL = NOPASSWD: /bin/nova-manage cell_v2 discover_hosts *
mistral ALL = NOPASSWD: /usr/bin/tar --ignore-failed-read -C / -cf /tmp/undercloud-backup-*.tar *
mistral ALL = NOPASSWD: /usr/bin/chown mistral. /tmp/undercloud-backup-*/filesystem-*.tar
validations ALL = NOPASSWD: ALL
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Here you can grant permissions for specific tasks in when executing Mistral
workflows from &lt;strong&gt;tripleo-common&lt;/strong&gt;&lt;/p&gt;

&lt;h2 id=&quot;7-debugging-actions&quot;&gt;7. Debugging actions.&lt;/h2&gt;

&lt;p&gt;Let’s assume the action is written, added to setup.cfg but not appeared.
Firstly, check if action was added by &lt;code&gt;sudo mistral-db-manage populate&lt;/code&gt;. Run&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;mistral action-list -f value -c Name | grep -e &apos;^tripleo.undercloud&apos;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If you don’t see your actions check output of &lt;code&gt;sudo mistral-db-manage populate&lt;/code&gt; as&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo mistral-db-manage populate 2&amp;gt;&amp;amp;1| grep ERROR | less
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The following output may indicate issues in code. Simply fix code.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;2018-01-01:00:59.730 7218 ERROR stevedore.extension [-] Could not load &apos;tripleo.undercloud.get_free_space&apos;: unexpected indent (undercloud.py, line 40):   File &quot;/usr/lib/python2.7/site-packages/tripleo_common/actions/undercloud.py&quot;, line 40
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Execute single action, execute workflow from workbook to make sure it works as
designed.&lt;/p&gt;

&lt;h2 id=&quot;8-unit-tests&quot;&gt;8. Unit tests&lt;/h2&gt;
&lt;p&gt;Writing Unit test is essential instrument of Software Developer. Unit tests are
much faster that running Workflow itself. So, let’s write unit tests for written
action. Let’s add &lt;strong&gt;tripleo_common/tests/actions/test_undercloud.py&lt;/strong&gt; file
with the following content in &lt;strong&gt;tripleo-comon&lt;/strong&gt; repositiry.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;import mock

from tripleo_common.actions import undercloud
from tripleo_common.tests import base


class GetFreeSpaceTest(base.TestCase):
    def setUp(self):
        super(GetFreeSpaceTest, self).setUp()
        self.temp_dir = &quot;/tmp&quot;

    @mock.patch(&apos;tempfile.gettempdir&apos;)
    @mock.patch(&quot;os.path.isdir&quot;)
    @mock.patch(&quot;os.statvfs&quot;)
    def test_run_false(self, mock_statvfs, mock_isdir, mock_gettempdir):
        mock_gettempdir.return_value = self.temp_dir
        mock_isdir.return_value = True
        mock_statvfs.return_value = mock.MagicMock(
            spec_set=[&apos;f_frsize&apos;, &apos;f_bavail&apos;],
            f_frsize=4096, f_bavail=1024)
        action = undercloud.GetFreeSpace()
        action_result = action.run(context={})
        mock_gettempdir.assert_called()
        mock_isdir.assert_called()
        mock_statvfs.assert_called()
        self.assertEqual(&quot;There is no enough space, avail. - 4 MB&quot;,
                         action_result.error[&apos;msg&apos;])

    @mock.patch(&apos;tempfile.gettempdir&apos;)
    @mock.patch(&quot;os.path.isdir&quot;)
    @mock.patch(&quot;os.statvfs&quot;)
    def test_run_true(self, mock_statvfs, mock_isdir, mock_gettempdir):
        mock_gettempdir.return_value = self.temp_dir
        mock_isdir.return_value = True
        mock_statvfs.return_value = mock.MagicMock(
            spec_set=[&apos;f_frsize&apos;, &apos;f_bavail&apos;],
            f_frsize=4096, f_bavail=10240000)
        action = undercloud.GetFreeSpace()
        action_result = action.run(context={})
        mock_gettempdir.assert_called()
        mock_isdir.assert_called()
        mock_statvfs.assert_called()
        self.assertEqual(&quot;There is enough space, avail. - 40000 MB&quot;,
                         action_result.data[&apos;msg&apos;])
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Run&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;tox -epy27
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to see any unit tests errors.&lt;/p&gt;

&lt;h2 id=&quot;8-why-all-previous-sections-are-related-to-upgrades&quot;&gt;8. Why all previous sections are related to Upgrades?&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Undercloud backups are an important step before runing an Upgrade.&lt;/li&gt;
  &lt;li&gt;Writing developer docs will help people to create and develope new features.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;9-references&quot;&gt;9. References&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;http://www.dougalmatthews.com/2016/Sep/21/debugging-mistral-in-tripleo/&lt;/li&gt;
  &lt;li&gt;http://blog.johnlikesopenstack.com/2017/06/accessing-mistral-environment-in-cli.html&lt;/li&gt;
  &lt;li&gt;http://hardysteven.blogspot.com.es/2017/03/developing-mistral-workflows-for-tripleo.html&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Restarting your TripleO hypervisor will break cinder volume service thus the overcloud pingtest</title>
    <summary>I don’t usualy restart my hypervisor, today I had to install LVM2 and virsh stopped to work so a restart was required, once the VMs were up and running the overcloud pingtest failed as cinder was not able to start....</summary>
    <link href="https://www.pubstack.com/blog/2017/10/30/restarting-your-tripleo-hypervisor-will-break-cinder.html"/>
    <updated>2017-10-30T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/10/30/restarting-your-tripleo-hypervisor-will-break-cinder</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;I don’t usualy restart my hypervisor, today I had to install LVM2 and
virsh stopped to work so a restart was required, once the VMs were
up and running the overcloud pingtest failed as cinder was not able to start.&lt;/p&gt;

&lt;p&gt;From your Overcloud controller run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo losetup -f /var/lib/cinder/cinder-volumes
sudo vgdisplay
sudo service openstack-cinder-volume restart
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This will make your Overcloud pingtest work again.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Create a TripleO snapshot before breaking it...</title>
    <summary>The idea of this post is to show how developers can save some time creating snapshots of their development environments for not deploying it each time it breaks. So, don’t waste time re-deploying your environment when testing submissions. I’ll show...</summary>
    <link href="https://www.pubstack.com/blog/2017/07/14/snapshots-for-your-tripleo-vms.html"/>
    <updated>2017-07-14T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/07/14/snapshots-for-your-tripleo-vms</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;The idea of this post is to show how developers can save some time
creating snapshots of their development environments for not
deploying it each time it breaks.&lt;/p&gt;

&lt;p&gt;So, don’t waste time re-deploying your environment when testing submissions.&lt;/p&gt;

&lt;p&gt;I’ll show here how to be a little more agile when
deploying your Undercloud/Overcloud for testing purposes.&lt;/p&gt;

&lt;p&gt;Deploying a fully working development environment takes
around 3 hours with human supervision…
And breaking it just after deployed is not cool at all…&lt;/p&gt;

&lt;h1 id=&quot;step-1&quot;&gt;Step 1&lt;/h1&gt;

&lt;p&gt;Deploy your environment as usual.&lt;/p&gt;

&lt;h1 id=&quot;step-2&quot;&gt;Step 2&lt;/h1&gt;

&lt;p&gt;Create your Undercloud/Overcloud snapshots.
&lt;strong&gt;Do this as the stack user, otherwise
virsh won’t see the VMs&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# The VMs deployed are:
# $vms will have something like ne next line...
# vms=( &quot;undercloud&quot; &quot;control_0&quot; &quot;compute_0&quot; )
vms=( $(virsh list --all | grep running | awk &apos;{print $2}&apos;) )

# List all VMs
virsh list --all

# List current snapshots
for i in &quot;${vms[@]}&quot;; \
do \
virsh snapshot-list --domain &quot;$i&quot;; \
done

# Dump VMs XLM and check for qemu
for i in &quot;${vms[@]}&quot;; \
do \
virsh dumpxml &quot;$i&quot; | grep -i qemu; \
done

# Create an initial snapshot for each VM
for i in &quot;${vms[@]}&quot;; \
do \
echo &quot;virsh snapshot-create-as --domain $i --name $i-fresh-install --description $i-fresh-install --atomic&quot;; \
virsh snapshot-create-as --domain &quot;$i&quot; --name &quot;$i&quot;-fresh-install --description &quot;$i&quot;-fresh-install --atomic; \
done

# List current snapshots (After they should be already created)
for i in &quot;${vms[@]}&quot;; \
do \
virsh snapshot-list --domain &quot;$i&quot;; \
done

#########################################################################################################
# Current libvirt version does not support live snapshots.
# error: Operation not supported: live disk snapshot not supported with this QEMU binary
# --disk-only and --live not yet available.

# Create the folder for the images
# cd
# mkdir ~/backup_images

# for i in &quot;${vms[@]}&quot;; \
# do \
# echo &quot;&amp;lt;domainsnapshot&amp;gt;&quot; &amp;gt; $i.xml; \
# echo &quot;  &amp;lt;memory snapshot=&apos;external&apos; file=&apos;/home/stack/backup_images/$i.mem.snap2&apos;/&amp;gt;&quot; &amp;gt;&amp;gt; $i.xml; \
# echo &quot;  &amp;lt;disks&amp;gt;&quot; &amp;gt;&amp;gt; $i.xml; \
# echo &quot;    &amp;lt;disk name=&apos;vda&apos;&amp;gt;&quot; &amp;gt;&amp;gt; $i.xml; \
# echo &quot;      &amp;lt;source file=&apos;/home/stack/backup_images/$i.disk.snap2&apos;/&amp;gt;&quot; &amp;gt;&amp;gt; $i.xml; \
# echo &quot;    &amp;lt;/disk&amp;gt;&quot; &amp;gt;&amp;gt; $i.xml; \
# echo &quot;  &amp;lt;/disks&amp;gt;&quot; &amp;gt;&amp;gt; $i.xml; \
# echo &quot;&amp;lt;/domainsnapshot&amp;gt;&quot; &amp;gt;&amp;gt; $i.xml; \
# done

# for i in &quot;${vms[@]}&quot;; \
# do \
# echo &quot;virsh snapshot-create $i --xmlfile ~/$i.xml --atomic&quot;; \
# virsh snapshot-create $i --xmlfile ~/$i.xml --atomic; \
# done
&lt;/code&gt;&lt;/pre&gt;

&lt;h1 id=&quot;step-3&quot;&gt;Step 3&lt;/h1&gt;

&lt;p&gt;Break your environment xD&lt;/p&gt;

&lt;h1 id=&quot;step-4&quot;&gt;Step 4&lt;/h1&gt;

&lt;p&gt;Restore your snapshots&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# Commented for safety reasons...
# i=compute_0
i=blehblehbleh
virsh list --all
virsh shutdown $i
sleep 120
virsh list --all
virsh snapshot-revert --domain $i --snapshotname $i-fresh-install --running
virsh list --all
&lt;/code&gt;&lt;/pre&gt;

&lt;h1 id=&quot;or-restore-them-all-at-once&quot;&gt;Or restore them all at once&lt;/h1&gt;
&lt;p&gt;vms=( $(virsh list –all | grep running | awk ‘{print $2}’) )&lt;/p&gt;

&lt;p&gt;for i in “${vms[@]}”; &lt;br /&gt;
do &lt;br /&gt;
virsh shutdown $i; &lt;br /&gt;
virsh snapshot-revert –domain $i –snapshotname $i-fresh-install –running; &lt;br /&gt;
virsh list –all; &lt;br /&gt;
done&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #11 (i18n)</title>
    <summary>This is the 11th release of the TripleO “Deep Dive” sessions In this session we will have an update for the TripleO internationalization project for the TripleO UI, gladly presented by Julie Pichon. So please, check the full session content...</summary>
    <link href="https://www.pubstack.com/blog/2017/07/07/tripleo-deep-dive-session-11.html"/>
    <updated>2017-07-07T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/07/07/tripleo-deep-dive-session-11</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the 11th release of the &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt; “Deep Dive” sessions&lt;/p&gt;

&lt;p&gt;In this session we will have
an update for the TripleO
internationalization project
for the TripleO UI,
gladly presented by Julie Pichon.&lt;/p&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=dmAw7b2yUEo&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/dmAw7b2yUEo&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt; to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>OpenStack versions - Upstream/Downstream</title>
    <summary>I’m adding this note as I’m prune to forget how upstream and downstream versions are matching. RHOS Version 0 = Diablo RHOS Version 1 = Essex RHOS Version 2 = Folsom RHOS Version 3 = Grizzly RHOS Version 4 =...</summary>
    <link href="https://www.pubstack.com/blog/2017/06/27/openstack-versions-upstream-downstream.html"/>
    <updated>2017-06-27T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/06/27/openstack-versions-upstream-downstream</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;I’m adding this note as I’m prune
to forget how upstream and downstream
versions are matching.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;RHOS Version 0 = Diablo&lt;/li&gt;
  &lt;li&gt;RHOS Version 1 = Essex&lt;/li&gt;
  &lt;li&gt;RHOS Version 2 = Folsom&lt;/li&gt;
  &lt;li&gt;RHOS Version 3 = Grizzly&lt;/li&gt;
  &lt;li&gt;RHOS Version 4 = Havana&lt;/li&gt;
  &lt;li&gt;RHOS Version 5 = Icehouse&lt;/li&gt;
  &lt;li&gt;RHOS Version 6 = Juno&lt;/li&gt;
  &lt;li&gt;RHOS Version 7 = Kilo&lt;/li&gt;
  &lt;li&gt;RHOS Version 8 = Liberty&lt;/li&gt;
  &lt;li&gt;RHOS Version 9 = Mitaka&lt;/li&gt;
  &lt;li&gt;RHOS Version 10 = Newton&lt;/li&gt;
  &lt;li&gt;RHOS Version 11 = Ocata&lt;/li&gt;
  &lt;li&gt;RHOS Version 12 = Pike&lt;/li&gt;
  &lt;li&gt;RHOS Version 13 = Queens&lt;/li&gt;
  &lt;li&gt;RHOS Version 14 = R&lt;/li&gt;
  &lt;li&gt;RHOS Version 15 = S&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Ph.inally D.one! - Español</title>
    <summary>Este artículo resume mi experiencia a lo largo de los últimos 5 años durante el desarrollo de mi tesis doctoral. Principalmente, son algunos consejos y tips de lo que disfruté y sufrí. Estoy de acuerdo en que mis condiciones no...</summary>
    <link href="https://www.pubstack.com/blog/2017/06/20/Ph-inally-D-one-esp.html"/>
    <updated>2017-06-20T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/06/20/Ph-inally-D-one-esp</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Este artículo resume mi experiencia a lo largo de los últimos 5 años
durante el desarrollo de mi tesis doctoral.
Principalmente, son algunos consejos y tips de lo que disfruté y sufrí.
Estoy de acuerdo en que mis condiciones no son iguales a las de todos los
estudiantes de doctorado, por lo que este artículo se basa exclusivamente en
mi opinión y experiencia personal.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/blocks.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Divide y vencerás.&lt;/strong&gt;
Separa tu trabajo de investigación en bloques
en los que puedas trabajar uno a la vez, es importante definir
estos bloques al comienzo del proyecto de investigación aunque sea
de manera tentativa. Esto te permitirá descomponer tu trabajo de
forma que puedas escribir, por ejemplo, un artículo por cada uno
de estos bloques.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/papers-to-me.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Escribe artículos como si no existiera un mañana.&lt;/strong&gt;
Verídico,
para terminar tu tesis doctoral
debes contar con un mínimo de artículos de investigación para que
el tribunal considere ‘apto’ tu trabajo.
Usualmente, debes tener 1 en el primer cuartil como requisito para
presentarla en modo monografía y 3 para presentarla por artículos.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/allow.gif&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Entonces, ¿Por qué no basas todo tu trabajo en escribir estos papers?
Desde el primer minuto comienza con tu plantilla de latex y
utilízala para escribir todo lo relacionado a esa sección de tu trabajo
de investigación.
Es sumamente importante tener en cuenta
las revistas donde envias
tus artículos, sólo envía a revistas
que estén en los cuartiles 1 y 2.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/free-time.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;No olvides tu tiempo libre.&lt;/strong&gt;
Es de las cosas que debes tener en cuenta
para que sea lo  mas agradable
el transcurso de tu doctorado.
No tener tiempo libre te frustra y te quita las
ganas de seguir avanzando. Intenta mantener
tu vida social sin importar que. En mi caso particular, siempre intenté dedicar 2 horas al día
después del trabajo a actividades de investigación, y cada 2 fines de semana uno para hacer
actividades duras como programar, escribir, etc…&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/fuck-this-shit.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Libre de frustraciones.&lt;/strong&gt;
Seguro que les pasará por la mente esto de ‘Abandonar’…
¡Nunca! ¿Creen que merece la pena
abandonar el doctorado habiendo invertido
tu vida (el tiempo nadie te lo va a devolver),
sudor y lágrimas?
¡Así que ánimo!
Lo peor que podría suceder es que te tome
más tiempo del que habías planificado.
En mi caso particular el
Programa de Doctorado de Ingeniería Informática
regulado por el RD 1393/2007 al cual pertenezco,
se extinguirá a finales del curso actual (2017).
Así que, ni abandonamos ni nos
retrasamos.
¡Hay que trabajar que ya queda poco!&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/persistence.png&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Persiste.&lt;/strong&gt;
Terminar tu Ph.D. es trabajo de
resistencia, eventualmente, si sigues investigando podrás
leer tu tesis.
No renuncies y seguramente conseguirás
tu objetivo.
Ten en cuenta que
terminar el doctorado se basa en acumular
una cantidad considerable
de trabajo de investigación a medida
que pasa el tiempo, nadie podrá refutar
los artículos que ya publicaste con lo que solo debes ‘aguantar’
y por supuesto disfrutar de lo que haces.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/im-fine.gif&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Esto es un trabajo.&lt;/strong&gt;
Las personas suelen confundir
el trabajo que haces en tu Ph.D. con ‘estudiar’.
Suelen preguntar que tal lo llevas como si estudiaras
para sacarte el carnet de conducir ¡Esto es serio!
Es trabajo que lleva esfuerzo y dedicación como
cualquier otro y en muchos casos, mucho más,
ya que incluye
tardes, noches y fines de semana.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/great.gif&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Que no te vean llorar.&lt;/strong&gt;
Llora, llora todo lo que quieras, pero
que no te vean.
En mi caso, al preguntarme mis amigos y familia
sobre ‘la uni’
solía recordar lo poco que había hecho
en los últimos días y sólo me quedaba llorar en
silencio. Jajaj, recuerdo esta pregunta
¿Cómo llevas el doctorado?
Como si me echaran agua fría…&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/show-me-the-money.gif&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;El doctorando necesita comer.&lt;/strong&gt;
España valora inmensamente a sus doctorandos, les
paga un sueldo justo por su ‘colaboración’ al
desarrollo de la humanidad y más aun, los
motiva para que sigan en el camino que llevan. Quizá
he exagerado un poco, la situación real
sería mas cercana a que están…
mal pagados, luchando por becas,
sufriendo recortes,
disfrutando de la
muy común falta de presupuesto,
paro, incremento de tasas académicas..
Todos necesitamos comer y es la razón por la que
decidí tener un trabajo donde valoren
de manera justa mi esfuerzo, esto
a parte de mi ‘trabajo’ como investigador,
trabajo por el que nadie me paga y
por el contrario, tengo que pagar yo.
Lamentablemente, el mercado laboral de los ‘Doctores’
es bastante limitado en España pero el
esfuerzo siempre se verá recompensado, al menos
podrás poner que eres doctor al comprar billetes
de Ryanair…&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/done-dissertation.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Se realista y objetivo.&lt;/strong&gt;
Reflexiona sobre el esfuerzo que ha tomado tu trabajo
de investigación y no dejes que nadie lo
menosprecie, al final del día, tu serás doctor.
Siempre podrás corregir erratas, hacer mas casos de uso,
implementaciones esotéricas. Buah… Se te puede ir la vida
entera generando conocimiento, pero, una vez hayas cumplido
con esos ‘bloques’ de los que
hablamos antes… ¡A defender la tesis!&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/plan.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Ten en cuenta que por muy bien que hayas hecho tu ‘planning’
tendrás infinitos imprevistos. Así que un plan ‘B’ siempre
ayuda a pasar obstáculos. Ten en cuenta los plazos de tu programa
de doctorado para que no te lleves ‘sorpresas’ desagradables.
Es mejor saber antes los problemas que tendrás a que no puedas
cumplir con los plazos que tienes previstos.
Mi consejo, cada vez que tengas un artículo
publicado trabaja en montarlo en la memoria
de tu tesis, es bastante trabajo y es mejor ir
sacandolo poco a poco.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/please.gif&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;¿En Español o Inglés, por artículos o monografía?&lt;/strong&gt;
Es una pregunta difícil, es importante tener un plan
‘B’ en caso que tengas un deadline para entregar tu
memoria. Los artículos que tengas en WIP (work in progress)
siempre podrás terminarlos en tu post-doc o en tu tiempo
libre. En mi caso particular, teniendo el Español como
lengua nativa, he preferido escribir la memoria entera
en Español por dos razones. La primera razón
es que podré escribir
mucho más rápido y la segunda porque
publicar un artículo suele tardar de media unos 6 meses,
en mi caso tengo el tercer artículo todavía en
revisión por parte de la revista.
Este plan ‘B’ me ha salvado de
poder leer la tesis en los plazos correspondientes.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/notes.gif&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Toma notas para la defensa.&lt;/strong&gt;
Parece sencillo, pero algo que probablemente suceda es que
no recuerdes por un segundo algo que te han preguntado.
Por eso, es importante preparar material para la ronda
de preguntas, para cuando te pidan que vayas a una página
específica y aclares algo que no se ha entendido bien.&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/notas.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;En mi caso imprimí la memoria página por hoja y apunté
en cada hoja por la cara en blanco, notas que creía relevantes.
Truco sencillo
y fiable para no bloquearnos en esos momentos donde un
‘No recuerdo’ no está permitido.&lt;/p&gt;

&lt;div style=&quot;float: left; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/phinally_done.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Al fín.&lt;/strong&gt; Tal día como hoy 20 de Junio de 2017, si la
fuerza me acompaña seré doctor… ¡Yeah motherfuckers!
Al parecer todo ha llegado a buen término y hoy a las 11hrs CET
leeré mi tesis doctoral en la Facultad de Informática de la UCM.
Solo puedo concluir que volvería a hacerlo
sin duda alguna
si estuviera en la posición que estuve hace 5 años.
Pero, no repetiría (hacer otro Ph.D), sinceramente…&lt;/p&gt;

&lt;div style=&quot;float: right; width: 230px; background: white;&quot;&gt;&lt;img src=&quot;/static/phd/quack-motherfucker.jpg&quot; alt=&quot;&quot; style=&quot;border:15px solid #FFF&quot; /&gt;&lt;/div&gt;

&lt;p&gt;Hacer el doctorado no sólo te permite crecer
en el ámbito profesional, también, te permite conocer
personas fantásticas que seguramente te acompañarán
por el resto de tu vida y se convertirán en buenos amigos,
parejas, etc…&lt;/p&gt;

&lt;p&gt;Por si hay alguien interesado en dar un vistazo a mi trabajo de investigación,
está disponible públicamente en
&lt;a href=&quot;http://ccamacho.github.io/phd&quot;&gt;ccamacho.github.io/phd&lt;/a&gt;.
Y mi perfil profesional como de costumbre en &lt;a href=&quot;https://www.linkedin.com/in/ccamacho-/?locale=en_US&quot;&gt;LinkedIn&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Dr. Carlos Camacho ☚ (&amp;lt;‿&amp;lt;)☚&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/phd/cover.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;P.S. Sólo por si os parece curioso, aclaro el
origen de las &lt;a href=&quot;https://es.wikipedia.org/wiki/Matrioshka&quot;&gt;Matrioshkas&lt;/a&gt; de la portada.
Estas, representan uno de los principales
logros del trabajo de investigación
y en la portada, una metáfora…
Mi tesis plantea un conjunto de relaciones de
&lt;em&gt;equivalencia&lt;/em&gt; para simplificar los términos del álgebra y reducirlos a sus
&lt;em&gt;formas normales&lt;/em&gt;. Estas formas normales permiten entre otras cosas,
eliminar aquellos operadores combinatorios que hacen que la implementación de
la semántica operacional y denotacional sea ‘improcesable’.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session index</title>
    <summary>This is a brief index with all TripleO deep dive sessions, you can see all videos on the TripleO YouTube channel. Sessions index:     * TripleO deep dive #1 (Quickstart deployment)     * TripleO deep dive #2 (TripleO Heat Templates)...</summary>
    <link href="https://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html"/>
    <updated>2017-06-15T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is a brief index with all TripleO deep dive sessions,
you can see all videos on the
&lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Sessions index:&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2016/07/11/tripleo-deep-dive-session-1.html&quot;&gt;TripleO deep dive #1 (Quickstart deployment)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2016/07/18/tripleo-deep-dive-session-2.html&quot;&gt;TripleO deep dive #2 (TripleO Heat Templates)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2016/07/22/tripleo-deep-dive-session-3.html&quot;&gt;TripleO deep dive #3 (Overcloud deployment debugging)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2016/08/01/tripleo-deep-dive-session-4.html&quot;&gt;TripleO deep dive #4 (Puppet modules)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2016/08/05/tripleo-deep-dive-session-5.html&quot;&gt;TripleO deep dive #5 (Undercloud - Under the hood)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2016/08/15/tripleo-deep-dive-session-6.html&quot;&gt;TripleO deep dive #6 (Overcloud - Physical network)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2017/01/16/tripleo-deep-dive-session-7.html&quot;&gt;TripleO deep dive #7 (Undercloud - TripleO UI)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2017/05/04/tripleo-deep-dive-session-8.html&quot;&gt;TripleO deep dive #8 (TripleO - Deployed server)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2017/05/05/tripleo-deep-dive-session-9.html&quot;&gt;TripleO deep dive #9 (TripleO - Quickstart)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-10.html&quot;&gt;TripleO deep dive #10 (TripleO - Containers)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2017/07/07/tripleo-deep-dive-session-11.html&quot;&gt;TripleO deep dive #11 (TripleO - i18n)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2018/02/23/tripleo-deep-dive-session-12.html&quot;&gt;TripleO deep dive #12 (TripleO - config-download)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2018/05/31/tripleo-deep-dive-session-13.html&quot;&gt;TripleO deep dive #13 (TripleO - Containerized Undercloud)&lt;/a&gt;&lt;/p&gt;

  &lt;p&gt;    * &lt;a href=&quot;http://www.pubstack.com/blog/2020/02/18/tripleo-deep-dive-session-14.html&quot;&gt;TripleO deep dive #14 (TripleO - Containerized deployments without Paunch)&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #10 (Containers)</title>
    <summary>This is the 10th release of the TripleO “Deep Dive” sessions In this session we will have an update for the TripleO containers effort, thanks to Jiri Stransky. So please, check the full session content on the TripleO YouTube channel....</summary>
    <link href="https://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-10.html"/>
    <updated>2017-06-15T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-10</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the 10th release of the &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt; “Deep Dive” sessions&lt;/p&gt;

&lt;p&gt;In this session we will have
an update for the TripleO
containers effort, thanks
to Jiri Stransky.&lt;/p&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=xhTwHfi65p8&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/xhTwHfi65p8&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt; to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Git merge!!!</title>
    <summary>Git merge!!!



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2017/06/13/pod.html"/>
    <updated>2017-06-13T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/06/13/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Git merge!!!&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2017-06-13-git_merge.gif&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Map, filter and reduce explained</title>
    <summary>Map, filter and reduce explained



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2017/06/12/pod.html"/>
    <updated>2017-06-12T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/06/12/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Map, filter and reduce explained&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2017-06-12-map_filter_reduce.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Software Engineer taxonomy</title>
    <summary>Software Engineer taxonomy



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2017/06/01/pod.html"/>
    <updated>2017-06-01T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/06/01/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Software Engineer taxonomy&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2017-06-01-software-engineer.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Converting AAX audiobooks to MP3</title>
    <summary>This is a quick guide to convert AAX files (DRMed audiobooks) to it’s MP3 equivalent. I just got ‘The Phoenix Project’ book from amazon.es, it was on sale together with it’s audible audiobook version.. The thing is that I don’t...</summary>
    <link href="https://www.pubstack.com/blog/2017/05/31/convert-aax-to-mp3.html"/>
    <updated>2017-05-31T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/05/31/convert-aax-to-mp3</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is a quick guide to convert AAX files (DRMed audiobooks) to it’s MP3 equivalent.&lt;/p&gt;

&lt;p&gt;I just got ‘The Phoenix Project’ book from &lt;a href=&quot;https://www.amazon.es/Phoenix-Project-DevOps-Helping-Business/dp/0988262509&quot;&gt;amazon.es&lt;/a&gt;,
it was on sale together with it’s audible audiobook version..&lt;/p&gt;

&lt;p&gt;The thing is that I don’t want to install any additional
software and I just want to listen the MP3 version in my phone,
and no it isn’t a smartphone.. And to keep a sort of backup
in something different than this mumbo-jumbo AAX stuff.&lt;/p&gt;

&lt;p&gt;So this is a small copy/edit/paste recipe to convert the AAX files
to MP3… Working fine and really easy to achieve…&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  git clone https://github.com/inAudible-NG/tables.git
  git clone https://github.com/KrumpetPirate/AAXtoMP3.git
  wget http://project-rainbowcrack.com/rainbowcrack-1.7-linux64.zip
  unzip rainbowcrack-1.7-linux64.zip
  mv AAXtoMP3/* tables/
  mv rainbowcrack-1.7-linux64/* tables/
  mv &amp;lt;your_aax_file_name&amp;gt;.aax tables/
  cd tables
  make
  ffprobe &amp;lt;your_aax_file_name&amp;gt;.aax
  # Get the &quot;[aax] file checksum&quot;
  ./rcrack . -h &amp;lt;your_checksum&amp;gt;
  # Get the activation bytes hex
  bash AAXtoMP3 &amp;lt;your_activation_bytes&amp;gt; &amp;lt;your_aax_file_name&amp;gt;.aax

  # It will be generated an audiobook with the MP3 files in it.
  # *-*-Enjoy-*-*

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This is basically all you need to convert your AAX file to MP3.&lt;/p&gt;

&lt;p&gt;And no, I won’t share with you my copy of the
‘The Phoenix Project’ DeDRMed audiobook…&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Disclaimer:&lt;/p&gt;

  &lt;p&gt;The purpose of this recipe is to be able
to create backups of your audio books and be able to
play them on other non DRM capable players. Please do
not share or upload your DeDRMed files with anyone else.&lt;/p&gt;
&lt;/blockquote&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #9 (TripleO - Quickstart)</title>
    <summary>This is the ninth release of the TripleO “Deep Dive” sessions In this session we will have an overall description for TripleO Quickstart, thanks to Gabriele Cerami. So please, check the full session content on the TripleO YouTube channel. Please...</summary>
    <link href="https://www.pubstack.com/blog/2017/05/05/tripleo-deep-dive-session-9.html"/>
    <updated>2017-05-05T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/05/05/tripleo-deep-dive-session-9</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the ninth release of the &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt; “Deep Dive” sessions&lt;/p&gt;

&lt;p&gt;In this session we will have an overall
description for TripleO Quickstart, thanks
to Gabriele Cerami.&lt;/p&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=PwHEgHJ9ePU&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/PwHEgHJ9ePU&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt; to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #8 (TripleO - Deployed server)</title>
    <summary>This is the eight release of the TripleO “Deep Dive” sessions In this session we will have a full description about the deployed server feature in TripleO thanks to James Slagle. So please, check the full session content on the...</summary>
    <link href="https://www.pubstack.com/blog/2017/05/04/tripleo-deep-dive-session-8.html"/>
    <updated>2017-05-04T21:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/05/04/tripleo-deep-dive-session-8</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the eight release of the &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt; “Deep Dive” sessions&lt;/p&gt;

&lt;p&gt;In this session we will have a full description
about the deployed server feature in TripleO thanks
to James Slagle.&lt;/p&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=s8Hm4n9IjYg&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/s8Hm4n9IjYg&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt; to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>The Seven Circles of Developer Hell</title>
    <summary>The Seven Circles of Developer Hell



Explanation: From Toggl.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2017/03/07/pod.html"/>
    <updated>2017-03-07T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/03/07/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;The Seven Circles of Developer Hell&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2017-03-07-7-circles-of-developer-hell.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: From &lt;a href=&quot;https://blog.toggl.com/2017/02/seven-circles-of-developer-hell/&quot;&gt;Toggl&lt;/a&gt;.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Installing TripleO Quickstart</title>
    <summary>This is a brief recipe about how to manually install TripleO Quickstart in a remote 32GB RAM box and not dying trying it. Now instack-virt-setup is deprecated :( :( :( so the manual process needs to evolve and use OOOQ...</summary>
    <link href="https://www.pubstack.com/blog/2017/02/24/install-tripleo-quickstart.html"/>
    <updated>2017-02-24T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/02/24/install-tripleo-quickstart</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is a brief recipe about how to
manually install TripleO Quickstart in a remote
32GB RAM box and not dying trying it.&lt;/p&gt;

&lt;p&gt;Now &lt;code&gt;instack-virt-setup&lt;/code&gt; is deprecated :( :( :(
so the manual process needs to evolve and use OOOQ (TripleO Quickstart).&lt;/p&gt;

&lt;p&gt;This post is a brief recipe about how to provision the Hypervisor node
and deploy an end-to-end development environment
based on TripleO-Quickstart.&lt;/p&gt;

&lt;p&gt;From the hypervisor run:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# In this dev. env. /var is only 50GB, so I will create
# a sym link to another location with more capacity.
# It will take easily more tan 50GB deploying a 3+1 overcloud
sudo mkdir -p /home/libvirt/
sudo ln -sf /home/libvirt/ /var/lib/libvirt
# Add default toor user
sudo useradd toor
echo &quot;toor:toor&quot; | chpasswd
echo &quot;toor ALL=(root) NOPASSWD:ALL&quot; | sudo tee -a /etc/sudoers.d/toor
sudo chmod 0440 /etc/sudoers.d/toor
sudo yum install -y lvm2 lvm2-devel
su - toor
whoami

sudo yum groupinstall &quot;Virtualization Host&quot; -y
sudo yum install git -y

# Disable requiretty otherwise the deployment will fail...
sudo sed -i -e &apos;s/Defaults[ \t]*requiretty/#Defaults requiretty/g&apos; /etc/sudoers

cd
mkdir .ssh
ssh-keygen -t rsa -N &quot;&quot; -f .ssh/id_rsa
cat .ssh/id_rsa.pub &amp;gt;&amp;gt; .ssh/authorized_keys
sudo bash -c &quot;cat .ssh/id_rsa.pub &amp;gt;&amp;gt; /root/.ssh/authorized_keys&quot;
sudo bash -c &quot;echo &apos;127.0.0.1 127.0.0.2&apos; &amp;gt;&amp;gt; /etc/hosts&quot;
export VIRTHOST=127.0.0.2

ssh root@$VIRTHOST uname -a
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, we can start deploying TripleO Quickstart by following:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# Source: http://rdo-ci-doc.usersys.redhat.com/docs/tripleo-environments/en/latest/oooq-downstream.html
# Downstream bits for OSP8 ...
# cd
# sudo yum -y install /usr/bin/c_rehash ca-certificates
# sudo update-ca-trust check
# sudo update-ca-trust force-enable
# sudo update-ca-trust enable
# wget cert.pem
# sudo cp cert.pem /etc/pki/tls/certs/
# sudo cp cert.pem /etc/pki/ca-trust/source/anchors/
# sudo c_rehash
# sudo update-ca-trust extract
# git clone https://github.com/openstack/tripleo-quickstart
# cd tripleo-quickstart
# wget http://rhos-release.virt.bos.redhat.com/ci-images/internal-requirements-new.txt
# cd
# chmod u+x ./tripleo-quickstart/quickstart.sh
# bash ./tripleo-quickstart/quickstart.sh --install-deps
# bash ./tripleo-quickstart/quickstart.sh -v --release rhos-8-baseos-undercloud --clean --teardown all --requirements &quot;/home/toor/tripleo-quickstart/internal-requirements-new.txt&quot; $VIRTHOST

&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone https://github.com/openstack/tripleo-quickstart
chmod u+x ./tripleo-quickstart/quickstart.sh
printf &quot;\n\nSee:\n./tripleo-quickstart/quickstart.sh --help for a full list of options\n\n&quot;
bash ./tripleo-quickstart/quickstart.sh --install-deps

export VIRTHOST=127.0.0.2
export CONFIG=~/deploy-config.yaml

cat &amp;gt; $CONFIG &amp;lt;&amp;lt; EOF

# undercloud_undercloud_hostname: undercloud.ratata-domain

# control_memory: 8192
# compute_memory: 6120

# undercloud_memory: 10240
# undercloud_vcpu: 4
# undercloud_workers: 3

# default_vcpu: 1

custom_nameserver: &apos;10.16.36.29&apos;
undercloud_undercloud_nameservers: &apos;10.16.36.29&apos;              
overcloud_dns_servers: &apos;10.16.36.29&apos;

# node_count: 4

# overcloud_nodes:
#   - name: control_0
#     flavor: control
#     virtualbmc_port: 6230
#   - name: control_1
#     flavor: control
#     virtualbmc_port: 6231
#   - name: control_2
#     flavor: control
#     virtualbmc_port: 6232
#   - name: compute_0
#     flavor: compute
#     virtualbmc_port: 6233

# topology: &amp;gt;-
#   --control-scale 3
#   --compute-scale 1

extra_args: &amp;gt;-
  --libvirt-type qemu
  --ntp-server pool.ntp.org
#   -e /usr/share/openstack-tripleo-heat-templates/environments/puppet-pacemaker.yaml

run_tempest: false
EOF

# We disable SELINUX as it breaks the deployment
# You will get some permission denied when running
# the Ansible playbooks
sudo setenforce 0

bash ./tripleo-quickstart/quickstart.sh \
                --clean \
                --release master \
                --teardown all \
                --tags all \
                -e @$CONFIG \
                $VIRTHOST
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In the hypervisor run the following command to log-in in
the Undercloud:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;ssh -F /home/toor/.quickstart/ssh.config.ansible undercloud

# Add the TRIPLEO_ROOT var to stackrc
# to use with tripleo-ci
echo &quot;export TRIPLEO_ROOT=~&quot; &amp;gt;&amp;gt; stackrc

source stackrc
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;At this point you should have your development environment deployed correctly.&lt;/p&gt;

&lt;p&gt;Clone the tripleo-ci repo:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone https://github.com/openstack-infra/tripleo-ci
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And, run the Overcloud pingtest:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;~/tripleo-ci/scripts/tripleo.sh --overcloud-pingtest
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Enjoy TripleOing (~˘▾˘)~&lt;/p&gt;

&lt;p&gt;Note: I had to execute the deployment command 3/4 times to have
an OK deployment, sometimes it just fails (i.e. timeout getting the images).&lt;/p&gt;

&lt;p&gt;Note: From the host, &lt;code&gt;virsh list --all&lt;/code&gt; will work only as the stack user.&lt;/p&gt;

&lt;p&gt;Note: Each time you run the quickstart.sh command from the hypervisor
the UC and OC will be nuked (&lt;code&gt;--teardown all&lt;/code&gt;), you will see tasks like ‘PLAY [Tear down undercloud and overcloud vms] **’.&lt;/p&gt;

&lt;p&gt;Note: If you delete the Overcloud i.e. using &lt;code&gt;heat stack-delete overcloud&lt;/code&gt; you can re-deploy what you
had by running the dynamically generated overcloud-deploy.sh script in the stack home folder from the UC.&lt;/p&gt;

&lt;p&gt;Note: There are several options for TripleO Quickstart besides the basic
virthost deployment, check them here: &lt;code&gt;https://docs.openstack.org/developer/tripleo-quickstart/working-with-extras.html&lt;/code&gt;&lt;/p&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2017/03/17:&lt;/strong&gt; Bleh, had to execute several times the deployment command to have it working.. :/ I miss you instack-virt-setup&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2017/03/16:&lt;/strong&gt; The --config option seems to be broken, using instead -e @~/deploy-config.yaml.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2017/03/14:&lt;/strong&gt; New workflow added.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2017/02/27:&lt;/strong&gt; Working fine.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2017/02/23:&lt;/strong&gt; Seems to work.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2017/02/23:&lt;/strong&gt; instack-virt-setup is deprecatred :( moving to tripleo-quickstart.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>I am not a robot</title>
    <summary>I am not a robot



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2017/01/27/pod.html"/>
    <updated>2017-01-27T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/01/27/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;I am not a robot&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2017-01-27-not-a-robot.gif&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>OpenStack and services for BigData applications</title>
    <summary>Yesterday I had the opportunity of presenting together with Daniel Mellado a brief talk about OpenStack and it’s integration with services to support Big Data tools (OpenStack Sahara). It was a combined talk for two Meetups MAD-for-OpenStack and Data-Science-Madrid. The...</summary>
    <link href="https://www.pubstack.com/blog/2017/01/26/mad-for-openstack-meetup.html"/>
    <updated>2017-01-26T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/01/26/mad-for-openstack-meetup</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Yesterday I had the opportunity of presenting together with Daniel Mellado
a brief talk about OpenStack and it’s integration with services to support
Big Data tools (OpenStack Sahara).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/meetup_openstack.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;It was a combined talk for two Meetups
&lt;a href=&quot;https://www.meetup.com/es-ES/MAD-for-OpenStack/events/237131857/&quot;&gt;MAD-for-OpenStack&lt;/a&gt;
and
&lt;a href=&quot;https://www.meetup.com/es-ES/Data-Science-Madrid/events/236991190/&quot;&gt;Data-Science-Madrid&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The presentation is stored in
&lt;a href=&quot;https://github.com/ccamacho/openstack-presentations/tree/master/2017-01-25-meetup-openstack101-bigdata&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Regrets:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;We prepared a 1 hour presentation that had to be presented in 20min.&lt;/li&gt;
  &lt;li&gt;Wasn’t able to have access to our demo server.&lt;/li&gt;
&lt;/ul&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #7 (Undercloud - TripleO UI)</title>
    <summary>This is the seven release of the TripleO “Deep Dive” sessions In this session Liz Blanchard and Ana Krivokapic will give us some bits about how to contribute to the TripleO UI project. Once checking this session we will have...</summary>
    <link href="https://www.pubstack.com/blog/2017/01/16/tripleo-deep-dive-session-7.html"/>
    <updated>2017-01-16T16:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/01/16/tripleo-deep-dive-session-7</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the seven release of the &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt; “Deep Dive” sessions&lt;/p&gt;

&lt;p&gt;In this session Liz Blanchard and Ana Krivokapic will give us some
bits about how to contribute to the &lt;a href=&quot;https://github.com/openstack/tripleo-ui&quot;&gt;TripleO UI&lt;/a&gt; project.
Once checking this session we will have a general overview about the project’s
history, properties, architecture and contributing steps.&lt;/p&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=9TseONVfLR8&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/9TseONVfLR8&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;Here you will be able to see a quick overview about how to install the UI as a development environment.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/1puSvUqTKzw&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;The summarized steps are also available in &lt;a href=&quot;http://www.pubstack.com/blog/2017/01/13/installing-tripleo-ui.html&quot;&gt;this&lt;/a&gt; blog post.&lt;/p&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt; to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Programmer reality</title>
    <summary>Programmer reality



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2017/01/13/pod.html"/>
    <updated>2017-01-13T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/01/13/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Programmer reality&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2017-01-13-programmer-reality.gif&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Installing the TripleO UI</title>
    <summary>This is a brief recipe to use or install TripleO UI in the Undercloud. First, once installed the Undercloud, the TripleO UI is already available in the 3000 port. Let’s assume you have both root password for your development environment...</summary>
    <link href="https://www.pubstack.com/blog/2017/01/13/installing-tripleo-ui.html"/>
    <updated>2017-01-13T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2017/01/13/installing-tripleo-ui</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is a brief recipe to use or install TripleO UI
in the Undercloud.&lt;/p&gt;

&lt;p&gt;First, once installed the Undercloud, the TripleO UI
is already available in the 3000 port.&lt;/p&gt;

&lt;p&gt;Let’s assume you have both root password for your
development environment and the Undercloud node.&lt;/p&gt;

&lt;p&gt;TripleO-UI queries directly the endpoints (i.e. keystone)
from your browser, so we need the traffic for the net
192.168.24.0/24 forwarded from your workstation to the
Undercloud node in order to reach all required ports
(6385, 5000, 8004, 8080, 9000, 8989, 3000, 13385, 13000, 13004, 13808, 9000, 13989 and 443).&lt;/p&gt;

&lt;p&gt;Let’s install sshuttle in your workstation.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo yum install -y sshuttle
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, let’s get the Undercloud IP and configure SSH with a ProxyCommand.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;undercloudIp=`ssh root@labserver &quot;arp -e&quot; | grep brext | grep -v incomplete | awk &apos;{print $1}&apos; | sed &apos;s/\/.*$//&apos;`

cat &amp;lt;&amp;lt; EOF &amp;gt;&amp;gt; ~/.ssh/config
Host lab
  Hostname labserver
  User root
Host uc
  Hostname $undercloudIp
  User root
  ProxyCommand ssh -vvvv -W %h:%p root@lab
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;sshuttle will ask you for your hypervisor and Undercloud root
password.&lt;/p&gt;

&lt;p&gt;To start forwarding the traffic execute:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sshuttle -e &quot;ssh -vvv&quot; -r root@uc -vvvv 192.168.24.0/24
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Once you have done this, open from your browser http://192.168.24.1:3000/
and the TripleO UI should be shown correctly.&lt;/p&gt;

&lt;hr /&gt;
&lt;p&gt;It’s probable that you receive an error like: &lt;strong&gt;Connection to Keystone is not available&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This is because you are trying to access the Keystone endpoint from your
workstation and it fails as the certificate is self-signed.
In order to fix this, open the developer view in your browser
and check the endpoint you are using to access keystone.
For example, https://192.168.24.2/keystone/v2.0/tokens
now open this URL in your browser and acept the certificate. If you
do this the Keystone error should go away.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;If you need a TripleO UI development environment follow:&lt;/p&gt;

&lt;p&gt;The first step will be to install the TripleO UI and
all the dependencies.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  cd
  sudo yum install -y nodejs npm tmux
  git clone https://github.com/openstack/tripleo-ui.git
  cd tripleo-ui
  npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, we need to update all the TripleO UI config files&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  cd
  cp ~/tripleo-ui/config/tripleo_ui_config.js.sample ~/tripleo-ui/config/tripleo_ui_config.js
  echo &quot;Changing the default IP&quot;
  export ENDPOINT_ADDR=$(cat stackrc | grep OS_AUTH_URL= | awk -F&apos;:&apos; &apos;{print $2}&apos;| tr -d /)
  sed -i &quot;s/[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}/$ENDPOINT_ADDR/g&quot; ~/tripleo-ui/config/tripleo_ui_config.js

  echo &quot;Removing comments for the keystone URI&quot;
  sed -i &apos;/^  \/\/ &apos;\&apos;&apos;keystone&apos;\&apos;&apos;\:/s/^  \/\///&apos; ~/tripleo-ui/config/tripleo_ui_config.js

  echo &quot;Removing comments for the zaqar_default_queue&quot;
  sed -i &apos;/^  \/\/ &apos;\&apos;&apos;zaqar_default_queue&apos;\&apos;&apos;\:/s/^  \/\///&apos; ~/tripleo-ui/config/tripleo_ui_config.js

  # Uncomment all the parameters
  # sed -i &apos;/^  \/\/ &apos;\&apos;&apos;.*&apos;\&apos;&apos;\:/s/^  \/\///&apos; ~/tripleo-ui/config/tripleo_ui_config.js

  echo &quot;Changing listening port for the dev server, 3000 already used&quot;
  sed -i &apos;/port: 3000/s/3000/33000/&apos; ~/tripleo-ui/webpack.dev.js
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In the following step we will use tmux to persist the service running
for debugging purposes.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  cd
  tmux new -s tripleo-ui
  cd ~/tripleo-ui/
  npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;At this stage you should have up and running your node server (33000 port).&lt;/p&gt;

&lt;p&gt;If you followed the first step to see the default TripleO UI installation
go to log in the TripleO UI:  http://192.168.24.1:33000/&lt;/p&gt;

&lt;p&gt;Happy TripleOing!&lt;/p&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2017/01/13:&lt;/strong&gt; First version.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2017/01/14:&lt;/strong&gt; Add default TripleO UI info. Still getting &apos;Connection to Keystone is not available&apos;
    the config params are correct, checking it...&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2017/01/17:&lt;/strong&gt; Forwarded all the required ports using sshuttle.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Printed TripleO cheatsheets for FOSDEM/DevConf (feedback needed)</title>
    <summary>We are working preparing some cheatsheets for people jumping into TripleO. So there is an early WIP version for a few cheatsheets that we want to share: TripleO manual installation (Just a copy/paste step-wise process to install TripleO). Deployments -...</summary>
    <link href="https://www.pubstack.com/blog/2016/12/16/printing-tripleo-cheat-sheet.html"/>
    <updated>2016-12-16T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/12/16/printing-tripleo-cheat-sheet</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;We are working preparing some cheatsheets for people jumping into TripleO.&lt;/p&gt;

&lt;p&gt;So there is an early WIP version for a few cheatsheets that we want to share:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;TripleO manual installation (Just a copy/paste step-wise process to install TripleO).&lt;/p&gt;

  &lt;p&gt;Deployments - Debugging tips (Relevant commands to know what’s happening with the deployment).&lt;/p&gt;

  &lt;p&gt;Deployments - CI (URL’s and resources to check our CI status).&lt;/p&gt;

  &lt;p&gt;OOOQ installation (Also a step-wise recipe to install OOOQ, does not exist yet).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We already have some drafts available in &lt;a href=&quot;https://github.com/ccamacho/tripleo-cheatsheet&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;So, we will like to have some feedback from the community and make a
stable version for the cheatsheets in the next week.&lt;/p&gt;

&lt;p&gt;Feedback for adding/removing content and general reviews about all of
them is welcomed.&lt;/p&gt;

&lt;p&gt;Thanks!!!!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Testing composable upgrades</title>
    <summary>This is a brief recipe about how I’m testing composable upgrades O-&gt;P. Based on the original shardy’s notes from this link. The following steps are followed to upgrade your Overcloud from Ocata to latest master (Pike). Deploy latest master TripleO...</summary>
    <link href="https://www.pubstack.com/blog/2016/11/28/testing-composable-upgrades.html"/>
    <updated>2016-11-28T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/11/28/testing-composable-upgrades</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is a brief recipe about how I’m testing
composable upgrades O-&amp;gt;P.&lt;/p&gt;

&lt;p&gt;Based on the original shardy’s notes
from &lt;a href=&quot;http://paste.openstack.org/show/590436/&quot;&gt;this&lt;/a&gt; link.&lt;/p&gt;

&lt;p&gt;The following steps are followed to upgrade your Overcloud from Ocata to latest master (Pike).&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Deploy latest master TripleO following &lt;a href=&quot;http://www.pubstack.com/blog/2016/07/04/manually-installing-tripleo-recipe.html&quot;&gt;this&lt;/a&gt; post.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Remove the current Overcloud deployment.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;  source stackrc
  heat stack-delete overcloud
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Remove the Overcloud images and create new ones (for the  Overcloud).&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;  cd
  openstack image list
  openstack image delete &amp;lt;image_ID&amp;gt; #Delete all the Overcloud images overcloud-full*
  rm -rf /home/stack/overcloud-full.*

  export STABLE_RELEASE=ocata
  export USE_DELOREAN_TRUNK=1
  export DELOREAN_TRUNK_REPO=&quot;https://trunk.rdoproject.org/centos7-ocata/current/&quot;
  export DELOREAN_REPO_FILE=&quot;delorean.repo&quot;
  /home/stack/tripleo-ci/scripts/tripleo.sh --overcloud-images

  # Or reuse images
  # wget https://images.rdoproject.org/ocata/delorean/current-tripleo/stable/overcloud-full.tar
  # tar -xvf overcloud-full.tar
  # openstack overcloud image upload --update-existing
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Download Ocata tripleo-heat-templates.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;  cd
  git clone -b stable/ocata https://github.com/openstack/tripleo-heat-templates tht-ocata
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Configure the DNS (needed when upgrading the Overcloud).&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;  neutron subnet-update `neutron subnet-list | grep ctlplane-subnet | awk &apos;{print $2}&apos;` --dns-nameserver 192.168.122.1
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Deploy an Ocata Overcloud.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;  openstack overcloud deploy \
  --libvirt-type qemu \
  --ntp-server pool.ntp.org \
  --templates /home/stack/tht-ocata/ \
  -e /home/stack/tht-ocata/overcloud-resource-registry-puppet.yaml \
  -e /home/stack/tht-ocata/environments/puppet-pacemaker.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Install prerequisites in nodes (if no DNS configured this will fail, so make sure they have Intenet access), check that your nodes can connect to Internet.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;cat &amp;gt; upgrade_repos.yaml &amp;lt;&amp;lt; EOF
parameter_defaults:
  UpgradeInitCommand: |
    set -e

    #Master repositories
    sudo curl -o /etc/yum.repos.d/delorean.repo https://trunk.rdoproject.org/centos7-master/current-passed-ci/delorean.repo
    sudo curl -o /etc/yum.repos.d/delorean-deps.repo https://trunk.rdoproject.org/centos7/delorean-deps.repo


    export HOME=/root
    cd /root/
    if [ ! -d tripleo-ci ]; then
      git clone https://github.com/openstack-infra/tripleo-ci.git
    else
      pushd tripleo-ci
      git checkout master
      git pull
      popd
    fi

    if [ ! -d tripleo-heat-templates ]; then
      git clone https://github.com/openstack/tripleo-heat-templates.git
    else
      pushd tripleo-heat-templates
      git checkout master
      git pull
      popd
    fi

    ./tripleo-ci/scripts/tripleo.sh --repo-setup
    sed -i &quot;s/includepkgs=/includepkgs=python-heat-agent*,/&quot; /etc/yum.repos.d/delorean-current.repo
    #yum -y install python-heat-agent-ansible
    yum install -y python-heat-agent-*

    rm -f /usr/libexec/os-apply-config/templates/etc/puppet/hiera.yaml
    rm -f /usr/libexec/os-refresh-config/configure.d/40-hiera-datafiles
    rm -f /etc/puppet/hieradata/*.yaml
    yum remove -y python-UcsSdk openstack-neutron-bigswitch-agent python-networking-bigswitch openstack-neutron-bigswitch-lldp python-networking-odl
    crudini --set /etc/ansible/ansible.cfg DEFAULT library /usr/share/ansible-modules/
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Download master tripleo-heat-templates.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;  cd
  git clone https://github.com/openstack/tripleo-heat-templates tht-master
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Upgrade Overcloud to master&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;  cd
  openstack overcloud deploy \
  --libvirt-type qemu \
  --ntp-server pool.ntp.org \
  --templates /home/stack/tht-master/ \
  -e /home/stack/tht-master/overcloud-resource-registry-puppet.yaml \
  -e /home/stack/tht-master/environments/puppet-pacemaker.yaml \
  -e /home/stack/tht-master/environments/major-upgrade-composable-steps.yaml \
  -e upgrade_repos.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Note: if upgrading to a containerized Overcloud (Pike and beyond) do:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;cat &amp;gt; docker_registry.yaml &amp;lt;&amp;lt; EOF
parameter_defaults:
  DockerNamespace: 192.168.24.1:8787/tripleoupstream
  DockerNamespaceIsRegistry: true
EOF

# This will take some time...
openstack overcloud container image upload --config-file /usr/share/openstack-tripleo-common/container-images/overcloud_containers.yaml

openstack overcloud container image prepare \
--namespace tripleoupstream \
--tag latest \
--env-file docker-centos-tripleoupstream.yaml

cd
source ~/stackrc
export THT=/home/stack/tht-master

openstack overcloud deploy --templates $THT \
--libvirt-type qemu \
--ntp-server pool.ntp.org \
-e $THT/overcloud-resource-registry-puppet.yaml \
-e $THT/environments/puppet-pacemaker.yaml \
-e $THT/environments/major-upgrade-composable-steps.yaml \
-e upgrade_repos.yaml \
-e $THT/environments/docker.yaml \
-e $THT/environments/docker-ha.yaml \
-e $THT/environments/major-upgrade-composable-steps-docker.yaml \
-e docker-centos-tripleoupstream.yaml \
-e docker_registry.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Run the converge step ** Not tested on the containerized upgrade **&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;  cd
  openstack overcloud deploy \
  --libvirt-type qemu \
  --ntp-server pool.ntp.org \
  --templates /home/stack/tht-master/ \
  -e /home/stack/tht-master/overcloud-resource-registry-puppet.yaml \
  -e /home/stack/tht-master/environments/puppet-pacemaker.yaml \
  -e /home/stack/tht-master/environments/major-upgrade-converge.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If the last steps manage to finish successfully, you just have upgraded your Overcloud from Ocata to Pike (latest master).&lt;/p&gt;

&lt;p&gt;For more resources related to TripleO deployments, check out the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2017/01/28:&lt;/strong&gt; Working fine.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Oh yeah, NES classic mini!</title>
    <summary>I had the chance to find a treasure last week, the NES classic mini in game.es for it’s official price (Shame on you speculators!!!!). So.. I just loved this tiny console since I just opened the package. Lot of people...</summary>
    <link href="https://www.pubstack.com/blog/2016/11/27/nes-classic-mini.html"/>
    <updated>2016-11-27T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/11/27/nes-classic-mini</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;I had the chance to find a treasure last week, the NES classic mini in
&lt;a href=&quot;https://www.game.es/nintendo-classic-mini-nes-electronica-129248&quot;&gt;game.es&lt;/a&gt;
for it’s official price (Shame on you speculators!!!!).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/nes-mini-classic-2016-nintendo.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;So.. I just loved this tiny console since I just opened the package.
Lot of people complain about the controller cord being to short
(You have workarounds for this) so for me it’s not a problem.&lt;/p&gt;

&lt;p&gt;It boots up in less than 5 seconds, shows a nice interface with
all the pre-loaded 30 games ready-to-play in a long list alphabetically
sorted and you will have 4 memory slots for each game.&lt;/p&gt;

&lt;p&gt;Playing with this console will be like going back 20 years ago
but so much better, perfect pixels and a really good sound emulation.&lt;/p&gt;

&lt;p&gt;Last statement from Nintendo:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;The Nintendo Entertainment System:
NES Classic Edition system is a hot item,
and we are working hard to keep up with consumer demand.
There will be a steady flow of additional systems through the holiday
shopping season and into the new year. Please contact your local
retailers to check product availability. A selection of participating
retailers can be found at www.Nintendo.com/nes-classic.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You just need to ping retailers pages until you find stock again.&lt;/p&gt;

&lt;p&gt;If you can get one, go for it (But don’t buy it from speculators)!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO cheatsheet</title>
    <summary>This is a cheatsheet some of my regularly used commands to test, develop or debug TripleO deployments. Deployments swift download overcloud Download the overcloud swift container files in the current folder (With the rendered j2 templates). heat resource-list --nested-depth 5...</summary>
    <link href="https://www.pubstack.com/blog/2016/11/26/tripleo-cheatsheet.html"/>
    <updated>2016-11-26T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/11/26/tripleo-cheatsheet</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is a cheatsheet some of my regularly used
commands to test, develop or debug
TripleO deployments.&lt;/p&gt;

&lt;p&gt;Deployments&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;code class=&quot;highlighter-rouge&quot;&gt;
      swift download overcloud
    &lt;/code&gt;&lt;br /&gt;
    &lt;p class=&quot;tdesc&quot;&gt;
        Download the &lt;code class=&quot;highlighter-rouge&quot;&gt;overcloud&lt;/code&gt; swift container files in the current folder (With the rendered j2 templates).
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code class=&quot;highlighter-rouge&quot;&gt;
      heat resource-list --nested-depth 5 overcloud | grep FAILED
    &lt;/code&gt;&lt;br /&gt;
    &lt;p class=&quot;tdesc&quot;&gt;
      Show resources, filtering to get those who have failed.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code class=&quot;highlighter-rouge&quot;&gt;
      heat deployment-show &amp;lt;deployment_ID&amp;gt;
    &lt;/code&gt;&lt;br /&gt;
    &lt;p class=&quot;tdesc&quot;&gt;
      Get the deployment details for &amp;lt;deployment_ID&amp;gt;.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code class=&quot;highlighter-rouge&quot;&gt;
      openstack image list
    &lt;/code&gt;&lt;br /&gt;
    &lt;p class=&quot;tdesc&quot;&gt;
      List images.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code class=&quot;highlighter-rouge&quot;&gt;
         openstack image delete &amp;lt;image_ID&amp;gt;
    &lt;/code&gt;&lt;br /&gt;
    &lt;p class=&quot;tdesc&quot;&gt;
      Delete &amp;lt;image_ID&amp;gt;.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code class=&quot;highlighter-rouge&quot;&gt;
     wget http://buildlogs.centos.org/centos/7/cloud/x86_64/tripleo_images/&amp;lt;release&amp;gt;/delorean/overcloud-full.tar
    &lt;/code&gt;&lt;br /&gt;
    &lt;p class=&quot;tdesc&quot;&gt;
      Download &amp;lt;release&amp;gt; overcloud images tar file [liberty|mitaka|newton|...]
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code class=&quot;highlighter-rouge&quot;&gt;
      openstack overcloud image upload --update-existing
    &lt;/code&gt;&lt;br /&gt;
    &lt;p class=&quot;tdesc&quot;&gt;
      Once downloaded the images, this command will upload them to glance.
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Debugging CI&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;code class=&quot;highlighter-rouge&quot;&gt;
      http://status.openstack.org/zuul/
    &lt;/code&gt;&lt;br /&gt;
    &lt;p class=&quot;tdesc&quot;&gt;
      Check submissions CI status.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code class=&quot;highlighter-rouge&quot;&gt;
      wget -e robots=off -r --no-parent &amp;lt;patch_ID&amp;gt;
    &lt;/code&gt;&lt;br /&gt;
    &lt;p class=&quot;tdesc&quot;&gt;
      Download all logs from &amp;lt;patch_ID&amp;gt;.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code class=&quot;highlighter-rouge&quot;&gt;
      console.html
    &lt;/code&gt;
    &amp;amp;
    &lt;code class=&quot;highlighter-rouge&quot;&gt;
      logs/postci.txt.gz
    &lt;/code&gt;&lt;br /&gt;
    &lt;p class=&quot;tdesc&quot;&gt;
      Relevant log files when debuging a TripleO Gerrit job.
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
  &lt;p&gt;If you think there are more
useful commands to add to the list
just add a &lt;a href=&quot;https://github.com/pubstack/pubstack.github.io/issues/22&quot;&gt;comment&lt;/a&gt;!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Happy TripleOing!&lt;/strong&gt;&lt;/p&gt;

</content>
  </entry>
  
  
  
  <entry>
    <title>IT detox</title>
    <summary>IT detox



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/11/25/pod.html"/>
    <updated>2016-11-25T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/11/25/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;IT detox&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-11-25-it-sicherheit-comic.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>The Venezuelan mug</title>
    <summary>The Venezuelan mug



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/11/24/pod.html"/>
    <updated>2016-11-24T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/11/24/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;The Venezuelan mug&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-11-24-taza.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>I just don't like the new drafted TripleO logo</title>
    <summary>I just don’t like the new drafted TripleO logo



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/11/23/pod.html"/>
    <updated>2016-11-23T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/11/23/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;I just don’t like the new drafted TripleO logo&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-11-23-owl-angry.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>How to recover a commit from GitHub's Reflog</title>
    <summary>Writing this blog post, suddenly and without knowing I ended up by squashing/removing the commit holding those changes. The first thing that came to my mind was to locally check the Reflog to restore the commit, but sadly I was...</summary>
    <link href="https://www.pubstack.com/blog/2016/11/23/how-to-recover-a-commit-from-github-reflog.html"/>
    <updated>2016-11-23T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/11/23/how-to-recover-a-commit-from-github-reflog</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Writing
&lt;a href=&quot;http://www.pubstack.com/blog/2016/11/21/openstack-summit-2016-bcn.html&quot;&gt;this&lt;/a&gt; blog post,
suddenly and without knowing I ended up by squashing/removing the commit
holding those changes.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/crashed-those-commits.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The first thing that came to my mind was to locally check the Reflog to
restore the commit, but sadly I was removed the repo from my laptop and the
Reflog didn’t exist anymore. Then I went into panic as I didn’t wanted to
lose those hours that took me to write the post.
Then, I said… Does GitHub have Reflog? The sweet answer, yes..&lt;/p&gt;

&lt;p&gt;So lets learn how to recover a commit from GitHub Reflog.&lt;/p&gt;

&lt;p&gt;Relevant strings to fill:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&amp;lt;user&amp;gt;: The user holding the git repo.&lt;/li&gt;
  &lt;li&gt;&amp;lt;repo&amp;gt;: The repository name.&lt;/li&gt;
  &lt;li&gt;&amp;lt;recover-branch-name&amp;gt;: The remote branch that you will create.&lt;/li&gt;
  &lt;li&gt;&amp;lt;sha-goes-here&amp;gt;: The commit sha to be restored.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s curl GitHub to get all commits in the Reflog:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ curl https://api.github.com/repos/&amp;lt;user&amp;gt;/&amp;lt;repo&amp;gt;/events
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now let’s create a remote branch with your commit.&lt;/p&gt;

&lt;p&gt;Choose your commit sha and run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ curl -i -H &quot;Accept: application/json&quot; -H &quot;Content-Type: application/json&quot; -X POST -d &apos;{&quot;ref&quot;:&quot;refs/heads/&amp;lt;recover-branch-name&amp;gt;&quot;, &quot;sha&quot;:&quot;&amp;lt;sha-goes-here&amp;gt;&quot;}&apos; https://api.github.com/repos/&amp;lt;user&amp;gt;/&amp;lt;repo&amp;gt;/git/refs
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You should have created a branch called &lt;recover-branch-name&gt;
in your GitHub repo. Now you can safely cherry-pick it to your
master branch or fetch locally those changes and do
whatever you want with them.&lt;/recover-branch-name&gt;&lt;/p&gt;

&lt;p&gt;So yeah, I have to admit that I &lt;s&gt;squashed&lt;/s&gt;crashed those commits in some how…&lt;/p&gt;

&lt;p&gt;I hope that last tips are useful if you are in a trouble like me
trying to recover some lost commits from GitHub.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Humanity...</title>
    <summary>Humanity…



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/11/22/pod.html"/>
    <updated>2016-11-22T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/11/22/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Humanity…&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-11-22-humanity-patch.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Enabling nested KVM support for a instack-virt-setup deployment.</title>
    <summary>The following bash snippet will enable nested KVM support in the host when deploying TripleO using instack-virt-setup. This will work in AMD or Intel architectures. #!/bin/bash echo "Checking if nested KVM is enabled in the host." ARCH=$(lscpu | grep Architecture...</summary>
    <link href="https://www.pubstack.com/blog/2016/11/21/enabling-nested-kvm-on-tripleo-host.html"/>
    <updated>2016-11-21T12:30:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/11/21/enabling-nested-kvm-on-tripleo-host</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;The following bash snippet will enable
nested KVM support in the host when deploying TripleO
using instack-virt-setup.&lt;/p&gt;

&lt;p&gt;This will work in AMD or Intel architectures.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#!/bin/bash
echo &quot;Checking if nested KVM is enabled in the host.&quot;
ARCH=$(lscpu | grep Architecture | head -1 | awk &apos;{print $2}&apos;)
if [[ $ARCH == &apos;x86_64&apos; ]]; then
    ARCH_BRAND=intel
    KVM_STATUS_FILE=/sys/module/kvm_intel/parameters/nested
    ENABLE_NESTED_KVM=Y
else
    ARCH_BRAND=amd
    KVM_STATUS_FILE=/sys/module/kvm_amd/parameters/nested
    ENABLE_NESTED_KVM=1
fi
if [[ -f $KVM_STATUS_FILE ]]; then
    KVM_CURRENT_STATUS=$(head -n 1 $KVM_STATUS_FILE)
    if [[ &quot;${KVM_CURRENT_STATUS^^}&quot; -ne &quot;${ENABLE_NESTED_KVM^^}&quot; ]]; then
        echo &quot;This host does not have nested KVM enabled, enabling.&quot;
        sudo rmmod kvm-$ARCH_BRAND
        sudo sh -c &quot;echo &apos;options kvm-$ARCH_BRAND nested=$ENABLE_NESTED_KVM&apos; &amp;gt;&amp;gt; /etc/modprobe.d/dist.conf&quot;
        sudo modprobe kvm-$ARCH_BRAND
    else
        echo &quot;Nested KVM support is already enabled.&quot;
    fi
else
    echo &quot;$KVM_STATUS_FILE does not exist.&quot;
fi
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;By default nested virtualization with KVM is disabled in the
host, so in order to run the overcloud-pingtest correctly we have two
options. Either run the previous snippet on the host,
or, when deploying the Compute node in a virtual machine
add &lt;code&gt;--libvirt-type qemu&lt;/code&gt; to the deployment command.
Otherwise launching instances on the deployed overcloud will fail.&lt;/p&gt;

&lt;p&gt;Here you have an example of the deployment command, fixing
libvirt to qemu.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cd
openstack overcloud deploy \
--libvirt-type qemu \
--ntp-server pool.ntp.org \
--templates /home/stack/tripleo-heat-templates \
-e /home/stack/tripleo-heat-templates/overcloud-resource-registry-puppet.yaml \
-e /home/stack/tripleo-heat-templates/environments/puppet-pacemaker.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Have a happy TripleO deployment!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Ocata OpenStack summit 2016 - Barcelona</title>
    <summary>A few weeks ago I had the opportunity to attend to the Barcelona OpenStack summit ‘Ocata design session’ and this post is related to collect some overall information about it. In order to achieve this, I’m crawling into my paper...</summary>
    <link href="https://www.pubstack.com/blog/2016/11/21/openstack-summit-2016-bcn.html"/>
    <updated>2016-11-21T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/11/21/openstack-summit-2016-bcn</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;A few weeks ago I had the opportunity to attend to the Barcelona
OpenStack summit ‘Ocata design session’ and this post is related
to collect some overall information about it. In order to achieve this,
I’m crawling into my paper notes to highlight the aspects IMHO are relevant.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/openstack-summit-2016-bcn.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;blockquote&gt;
  &lt;p&gt;Sessions list by date.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;tuesday---oct-25th&quot;&gt;Tuesday - Oct. 25th&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;RDO Booth: Carlos Camacho TripleO composable roles demo (12:15pm-12:55pm)&lt;/li&gt;
  &lt;li&gt;What the Heck is OoO: Owls All the Way Down (5:55pm – 6:35)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;wednesday---oct-26th&quot;&gt;Wednesday - Oct. 26th&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Anomaly Detection in Contrail Networking (1:15pm-1:29pm)&lt;/li&gt;
  &lt;li&gt;Freezer: Plugin Architecture and Deduplication (3:05pm-3:45pm)&lt;/li&gt;
  &lt;li&gt;TripleO: Containers - Current Status and Roadmap (3:55pm-4:35pm)&lt;/li&gt;
  &lt;li&gt;TripleO: Work Session - Growing the team (5:05pm-5:45pm)&lt;/li&gt;
  &lt;li&gt;TripleO: Work Session - CI - current status and roadmap (5:55pm-6:35pm)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;thursday---oct-27th&quot;&gt;Thursday - Oct. 27th&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Zuul v3: OpenStack and Ansible Native CI/CD (11:00am-11:40am)&lt;/li&gt;
  &lt;li&gt;The Latest in the Container World and the Role of Container in OpenStack (11:50am-12:30pm)&lt;/li&gt;
  &lt;li&gt;TripleO: Upgrades - current status and roadmap (1:50pm-2:30pm)&lt;/li&gt;
  &lt;li&gt;Mistral: Mistral and StackStorm (3:30pm-4:10pm)&lt;/li&gt;
  &lt;li&gt;Nokia: TOSCA &amp;amp; Mistral: Orchestrating End-to-End Telco Grade NFV (5:30pm-6:10pm)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;friday---oct-28th&quot;&gt;Friday - Oct. 28th&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;TripleO: Work Session - Composable Undercloud deployment with Heat (9:00am-9:20am)&lt;/li&gt;
  &lt;li&gt;TripleO: Work Session - GUI, CLI, Validations current status, roadmap, requirements (9:20am-9:40am)&lt;/li&gt;
  &lt;li&gt;TripleO: Work Session - Multiple topics - Blueprints, specs, tools and Ocata summary. (9:50am-10:30am)&lt;/li&gt;
&lt;/ul&gt;

&lt;hr /&gt;

&lt;p&gt;Beyond the analysis of “What I did there in a week” I want
to state a few relevenat facts for me.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Why is important to attend to a design session (My case: Upstream TripleO developer)?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I think when working remotely in OpenStack projects, for example,
in such a complex project as TripleO is really hard to know what other
people are doing. So forth, design sessions force engineers to realize
about your peers work on different OpenStack projects or even in the same project ;)&lt;/p&gt;

&lt;p&gt;This will give you some ideas for future features, new services to integrate,
issues that you might have in the future among many others. Also for TripleO
specific case if you are interested in working in a specific service, you can
get into those services sessions to know more about them.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Where is the value for companies when sending engineers to design sessions?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;There might be several answers for this question, but I believe the overall
answer will be that sending engineers to the design sessions allow engineers
to be aligned based on companies goals, mostly for cases when several companies are
related to the same project. Also allow team members to know each others,
maybe this can be a soft benefit, for me as important as being aligned for
future features or architectural agreements.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Is it really mandatory to send people to design sessions?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I think this is not mandatory at all, but at the a relevant factor
might be that all knowledge/value generate in those sessions can
be delivered and processed by the rest of the team members.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Do attendees gain value when attending to these design sessions?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Off course they will gain lot of value:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;You might have a wrong impression about people on IRC, meeting them in person can change this dramatically ‘or not’.&lt;/li&gt;
  &lt;li&gt;Know better and engage with your team members and other peers.&lt;/li&gt;
  &lt;li&gt;Better alignment with your project goals.&lt;/li&gt;
  &lt;li&gt;Discuss blueprints and have a better understanding about the features life-cycle and roadmap.&lt;/li&gt;
  &lt;li&gt;Know what other people are doing.&lt;/li&gt;
  &lt;li&gt;Improve you overall knowledge about other projects (This time is for doing that “Not in your free time if you like it like me”).&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
  &lt;p&gt;If we are in a design session, are we in  “working mode” or just in “learning mode”?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Hardest question by far, I had the remorse of feeling that I was not working enough.
There were a lot of distractions if you wanted to actually make some time for coding or
reviewing submissions. But that’s the thing, I believe is good time to align and after
the summit you will always have time for coding :)&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;What about some business alignment?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I believe this is also an important factor to know about how OpenStack
evolves with the time, release announcements and how summits are actually evolving.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Querying haproxy data using socat from CLI</title>
    <summary>Currently (most users) I don’t have any way to check the haproxy status in a TripleO virtual deployment (via web-browser) if not previously created some tunnels enabled for that purpose. So let’s check some haproxy data from our controller. Check...</summary>
    <link href="https://www.pubstack.com/blog/2016/11/04/querying-haproxy-data-using-socat-from-cli.html"/>
    <updated>2016-11-04T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/11/04/querying-haproxy-data-using-socat-from-cli</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Currently (most users) I don’t have any way to check the haproxy status in a TripleO virtual deployment (via web-browser) if not previously created some tunnels enabled for that purpose.&lt;/p&gt;

&lt;p&gt;So let’s check some haproxy data from our controller.&lt;/p&gt;

&lt;p&gt;Check the controller IP:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;nova-list
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Connect to the controller:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ssh heat-admin@192.0.2.22
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, we need to have installed socat:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo yum install -y socat
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;By default haproxy it’s already configured to dump stats data to &lt;code&gt;/var/run/haproxy.sock&lt;/code&gt;,
now let’s query haproxy get some data from it:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Show details like haproxy version, PID, current connections, session rates, tasks, among others.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;echo &quot;show info&quot; | socat unix-connect:/var/run/haproxy.sock stdio
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Echo the stats about all frontents and backends as a csv.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;echo &quot;show stat&quot; | socat unix-connect:/var/run/haproxy.sock stdio
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Display information about errors if there are any.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;echo &quot;show errors&quot; | socat unix-connect:/var/run/haproxy.sock stdio
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Display open sessions.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code&gt;echo &quot;show sess&quot; | socat unix-connect:/var/run/haproxy.sock stdio
&lt;/code&gt;&lt;/pre&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>How to un-brick a Sony Xperia S and install Oneofakind Android 6.0.1_r10</title>
    <summary>Ok, after playing converting partitions to f2fs I made a huge mistake and corrupted the partitions table of my mobile.. Yeahp, I messed it up. The following notes are meant to be a reminder about how to follow this process...</summary>
    <link href="https://www.pubstack.com/blog/2016/10/08/un-brick-sony-xperia-s.html"/>
    <updated>2016-10-08T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/10/08/un-brick-sony-xperia-s</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Ok, after playing converting partitions to f2fs I made a huge mistake
and corrupted the partitions table of my mobile.. Yeahp, I messed it up.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/fist.gif&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The following notes are meant to be a reminder about how to follow this
process as it’s a cumbersome and time consuming task
to get the correct version of the firmware and tools needed.&lt;/p&gt;

&lt;p&gt;A hard brick is the state of android device that occurs when your device
won’t boot at all i.e. no boot loop, no recovery and also not charging.&lt;/p&gt;

&lt;p&gt;The steps in order to fix the phone will try to flash a new ROM and
upgrade it to Android 6.0.1.&lt;/p&gt;

&lt;h1 id=&quot;prerequisites&quot;&gt;Prerequisites&lt;/h1&gt;

&lt;ul&gt;
  &lt;li&gt;Download all the required files from &lt;a href=&quot;http://goo.gl/aBYq5w&quot;&gt;here&lt;/a&gt;
(TWRP, flashtool, flashtool drivers, OEM firmware, root exploit and
Oneofakind ROM).&lt;/li&gt;
  &lt;li&gt;Have a PC near to you.&lt;/li&gt;
  &lt;li&gt;A USB cable.&lt;/li&gt;
  &lt;li&gt;1 beer (Save it for the end of the tutorial).&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;part-1&quot;&gt;Part 1&lt;/h1&gt;

&lt;p&gt;The first part of the tutorial will get you a working
installation of Android 4.1 Jelly Bean in our bricked phone.&lt;/p&gt;

&lt;h2 id=&quot;install-flashtool&quot;&gt;Install Flashtool&lt;/h2&gt;

&lt;p&gt;Download and install Flashtool, this tool is in the package that
you should have downloaded from the prerequisites.&lt;/p&gt;

&lt;h2 id=&quot;install-flashtool-drivers-for-your-phone&quot;&gt;Install flashtool drivers for your phone&lt;/h2&gt;

&lt;p&gt;In order to install the flashtool drivers you need to run some
previous steps as Windows won’t let you install them as they are
not signed (Also inside the prerequisites package).&lt;/p&gt;

&lt;p&gt;Run the following steps from your PC&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Press the Windows key + R together and in the ‘Run’ box type
&lt;code&gt;shutdown.exe /r /o /f /t 00&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;Now make the following selections to boot into
the Start Up Setting Screen:
Troubleshoot &amp;gt; Advanced options &amp;gt; Start Up Settings &amp;gt; Restart&lt;/li&gt;
  &lt;li&gt;Then, when the machine restarts, select number 7 i.e.
‘Disable driver signature enforcement’. Your machine will start
with Driver signing enforcement disabled until the next reboot.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now you can install the Flashtool drivers.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Select from the options to install, flashmode drivers and fastboot driver.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Windows will warn that the driver is not signed
and will require you to confirm the installation.
Once the installation is complete, reboot the machine.&lt;/p&gt;

&lt;h2 id=&quot;start-the-xperia-s-in-flashmode&quot;&gt;Start the Xperia S in flashmode&lt;/h2&gt;

&lt;p&gt;Switch off your Xperia S first, then
press and hold the &lt;code&gt;Volume Down&lt;/code&gt; button.
Connect to your PC using a USB Cable
while holding down the &lt;code&gt;Volume Down&lt;/code&gt;
button on your Xperia S. Your phone
should be in Flash Mode now and the
device’s LED light should turn into Green.&lt;/p&gt;

&lt;h2 id=&quot;flash-the-image-using-flashtool&quot;&gt;Flash the image using flashtool&lt;/h2&gt;

&lt;p&gt;With your phone in flashmode, open Flashtool
and then click on the lightning bolt.
Select the folder where you have the
firmware image &lt;code&gt;LT26i_6.2.B.1.96_World.ftf&lt;/code&gt;
(downloaded from the prerequisites package).
Check all the items from wipe list and
uncheck all items from exlude list.
Click flash and wait until finish.&lt;/p&gt;

&lt;p&gt;Reboot the phone and you should have
Android 4.1 Jelly Bean installed and ready to use,
but we still want to install Android 6.1,
so the first part of the tutorial is finished.&lt;/p&gt;

&lt;hr /&gt;

&lt;h1 id=&quot;part-2&quot;&gt;Part 2&lt;/h1&gt;

&lt;p&gt;After having a working installation of Android
in our already un-bricked phone,
the next steps allow to upgrade the stantard
ROM to Oneofakind Android 6.0.1_r10.&lt;/p&gt;

&lt;h2 id=&quot;unlock-the-phone-boot-loader&quot;&gt;Unlock the phone boot loader&lt;/h2&gt;

&lt;p&gt;Follow the instructions from the official
&lt;a href=&quot;http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/&quot;&gt;Sony website&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;gain-root-access-to-the-phone&quot;&gt;Gain root access to the phone.&lt;/h2&gt;

&lt;p&gt;First in your mobile phone.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Activate USB Debugging, Setting -&amp;gt; Developer Options&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Activate Unknown Sources, Setting -&amp;gt; Security&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now open the application &lt;code&gt;RunMe.bat&lt;/code&gt; within
Root_with_Restore_by_Bin4ry_v36
and select option 2. Your phone should be rooted and rebooted.&lt;/p&gt;

&lt;h2 id=&quot;installing-twrp&quot;&gt;Installing TWRP&lt;/h2&gt;

&lt;p&gt;Switch off your Xperia S first.
Press and hold the &lt;code&gt;Volume Up&lt;/code&gt; button.
Connect to your PC using a USB Cable while
holding down the &lt;code&gt;Volume Up&lt;/code&gt; button on your Xperia S.
Your Xperia S should be in Fast Mode now and the
device’s LED light should turn into Blue. Then run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;fastboot flash boot twrp-3.0.2-0-nozomi.img
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;At this point you should have the recovery installed.&lt;/p&gt;

&lt;h2 id=&quot;re-partitioning&quot;&gt;Re-partitioning&lt;/h2&gt;

&lt;p&gt;Let’s start TWRP. Turn on the phone and the the Sony
screen appears press the &lt;code&gt;Volume Up&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;Go to Mount on TWRP gui (uncheck system, data, cache)
Open the terminal and run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;fdisk -l /dev/block/mmcblk0
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Copy the output of the command to a file with your backup.&lt;/p&gt;

&lt;p&gt;Interesting parts are the following lines:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/dev/block/mmcblk0p14 42945 261695 7000024 83 Linux
/dev/block/mmcblk0p15 261696 954240 22161424 83 Linux
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It can be not exactly the same values for you depending
the size of your /data (p14) and /sdcard (p15), run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;fdisk /dev/block/mmcblk0
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The following steps will merge p14 and 15 into one big partition for data,
do this or otherwise you won’t be able to use the internal SD.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Command (m for help): p

Command (m for help): d
Partition number (1-15): 15

Command (m for help): d
Partition number (1-14): 14

Command (m for help): n
First cylinder (769-954240, default 769): 42945
Last cylinder or +size or +sizeM or +sizeK (42945-954240, default 954240): (just press enter if the default value is the good one)
Using default value 954240

Command (m for help): t
Partition number (1-14): 14
Hex code (type L to list codes): 83

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Once re-partitioning done, do NOT do anything
else and just reboot the device (to be sure
that the partition table is take into account by the kernel)&lt;/p&gt;

&lt;p&gt;Now we will convert /data and /cache to F2FS.
Ext4 is not supported anymore on nAOSProm. You don’t
need to take care about the 16384 byte to reserve
for encryption. TWRP will do it for you.&lt;/p&gt;

&lt;h2 id=&quot;install-and-run-twrp-again&quot;&gt;Install and run TWRP again&lt;/h2&gt;

&lt;p&gt;Switch off your Xperia S first.
Press and hold the &lt;code&gt;Volume Up&lt;/code&gt; button
Connect to your PC using a USB Cable while holding down the &lt;code&gt;Volume Up&lt;/code&gt; button on your Xperia S
Your phone should be in Fast Mode now and the device’s LED light should turn into Blue, then run&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;fastboot flash boot twrp-3.0.2-0-nozomi.img
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Let’s start TWRP. Turn on the phone and the the Sony
screen appears press the &lt;code&gt;Volume Up&lt;/code&gt; button.&lt;/p&gt;

&lt;p&gt;Mount all the partitions.&lt;/p&gt;

&lt;p&gt;From the menu click:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Wipe -&amp;gt; Advanced Wipe -&amp;gt; select Data -&amp;gt; Repair or Change File system -&amp;gt; Change File System -&amp;gt; F2FS -&amp;gt; Swipe to Change&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Wipe -&amp;gt; Advanced Wipe -&amp;gt; select Cache -&amp;gt; Repair or Change File system -&amp;gt; Change File System -&amp;gt; F2FS -&amp;gt; Swipe to Change&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Once done, again, do NOT do anything else and just reboot the device (required by TWRP).&lt;/p&gt;

&lt;p&gt;Congratulation, if everything is fine you should be able to mount /cache and /data and to see a big /data volume around 28 GiB.&lt;/p&gt;

&lt;p&gt;Boot the phone again in recovery mode (TWRP).&lt;/p&gt;

&lt;p&gt;Start TWRP, mount all partitions and from your PC run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;adb push open_gapps-arm-6.0-pico-20161006.zip /sdcard/
adb push oneofakind_nozomi-27-Jan-2016.zip /sdcard/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will load those files into your smartphone allowing
the installation of Oneofakind.&lt;/p&gt;

&lt;h2 id=&quot;final-installation-of-oneofakind&quot;&gt;Final installation of Oneofakind….&lt;/h2&gt;

&lt;p&gt;From TWRP menu click install and select the two images that
we just have uploaded (oneofakind_nozomi-27-Jan-2016.zip and open_gapps-arm-6.0-pico-20161006.zip).&lt;/p&gt;

&lt;p&gt;Click flash and wait until the installation is complete, in the mean while
open the beer (Last prerequisite) and drink it.&lt;/p&gt;

&lt;p&gt;Cheers!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Deployment tips for puppet-tripleo changes</title>
    <summary>This post will describe different ways of debugging puppet-tripleo changes. Deploying puppet-tripleo using gerrit patches or source code repositories In some cases, dependencies should be merged first in order to test newer patches when adding new features to THT. With...</summary>
    <link href="https://www.pubstack.com/blog/2016/09/29/tripleo-debugging-tips.html"/>
    <updated>2016-09-29T09:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/09/29/tripleo-debugging-tips</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This post will describe different ways of debugging puppet-tripleo changes.&lt;/p&gt;

&lt;h2 id=&quot;deploying-puppet-tripleo-using-gerrit-patches-or-source-code-repositories&quot;&gt;Deploying puppet-tripleo using gerrit patches or source code repositories&lt;/h2&gt;

&lt;p&gt;In some cases, dependencies should be merged first in order to test newer
patches when adding new features to THT. With the following procedure, the user
will be able to create the overcloud images using WorkInProgress patches from
gerrit code review without having them merged (for CI testing purposes).&lt;/p&gt;

&lt;p&gt;If using third party repos included in the overcloud image, like i.e. the
puppet-tripleo repository, your changes will not be available by default in the
overcloud until you write them in the overcloud image (by default is:
overcloud-full.qcow2)&lt;/p&gt;

&lt;p&gt;In order to make &lt;del&gt;quick&lt;/del&gt; changes to the overcloud image for testing purposes, you
can:&lt;/p&gt;

&lt;p&gt;Export the paths to your submission by following an
&lt;a href=&quot;http://tripleo.org/developer/in_progress_review.html&quot;&gt;In-Progress review&lt;/a&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  export DIB_INSTALLTYPE_puppet_tripleo=source
  export DIB_REPOLOCATION_puppet_tripleo=https://review.openstack.org/openstack/puppet-tripleo
  export DIB_REPOREF_puppet_tripleo=refs/changes/25/310725/14
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In order to avoid noise on IRC, it is possible to clone puppet-tripleo and
apply the changes from your github account. In some cases this is particularly
useful as there is no need to update the patchset number.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  export DIB_INSTALLTYPE_puppet_tripleo=source
  export DIB_REPOLOCATION_puppet_tripleo=https://github.com/&amp;lt;usergoeshere&amp;gt;/puppet-tripleo
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Remove previously created images from glance and from the user home folder by:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  rm -rf /home/stack/overcloud-full.*
  glance image-delete overcloud-full
  glance image-delete overcloud-full-initrd
  glance image-delete overcloud-full-vmlinuz
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;After this step the images can be recreated by executing:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  ./tripleo-ci/scripts/tripleo.sh --overcloud-images
&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id=&quot;debugging-puppet-tripleo-from-overcloud-images&quot;&gt;Debugging puppet-tripleo from overcloud images&lt;/h2&gt;

&lt;p&gt;For debugging purposes, it is possible to mount the overcloud .qcow2 file:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  #Install the libguest tool:
  sudo yum install -y libguestfs-tools

  #Create a temp folder to mount the overcloud-full image:
  mkdir /tmp/overcloud-full

  #Mount the image:
  guestmount -a overcloud-full.qcow2 -i --rw /tmp/overcloud-full

  #Check and validate all the changes to your overcloud image, go to /tmp/overcloud-full:
  #  For example, in this step you can go to /opt/puppet-modules/tripleo,

  #Umount the image
  sudo umount /tmp/overcloud-full
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;From the mounted image file it is also possible to run, for testing purposes,
the puppet manifests by using &lt;code&gt;puppet apply&lt;/code&gt; and including your manifests:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  sudo puppet apply -v --debug --modulepath=/tmp/overcloud-full/opt/stack/puppet-modules -e &quot;include ::tripleo::services::time::ntp&quot;
&lt;/code&gt;&lt;/pre&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Crazy murdering robots</title>
    <summary>Crazy murdering robots



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/09/22/pod.html"/>
    <updated>2016-09-22T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/09/22/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Crazy murdering robots&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-09-22-killing_robot.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>6 or 9</title>
    <summary>6 or 9



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/09/21/pod.html"/>
    <updated>2016-09-21T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/09/21/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;6 or 9&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-09-21-6-or-9.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>So You Think You Are Ready For The RHCSA Exam?</title>
    <summary>I just want to share this amazing blog post from Finnbarr P. Murphy, originally from the Musing of an OS plumber blog. Again, this is awesome! – So you have studied hard, maybe even attended a week or two of...</summary>
    <link href="https://www.pubstack.com/blog/2016/09/18/So-You-Think-You-Are-Ready-For-The-RHCSA-Exam.html"/>
    <updated>2016-09-18T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/09/18/So-You-Think-You-Are-Ready-For-The-RHCSA-Exam</id>
    <author>
      <name>Finnbarr P. Murphy</name>
    </author>
    <content type="html">&lt;p&gt;I just want to share this amazing blog post from Finnbarr P. Murphy,
originally from the &lt;a href=&quot;http://blog.fpmurphy.com/2016/09/so-you-think-you-are-ready-for-the-rhcsa-exam.html&quot;&gt;Musing of an OS plumber&lt;/a&gt;
blog.&lt;/p&gt;

&lt;p&gt;Again, this is awesome!&lt;/p&gt;

&lt;p&gt;–&lt;/p&gt;

&lt;p&gt;So you have studied hard, maybe even attended a week or two of formal training,
for the Red Hat Certified System Administrator exam and now you think you are
ready to take the actual examination.&lt;/p&gt;

&lt;p&gt;Before you spend your money (currently $400) on the actual examination,
why not download this custom &lt;a href=&quot;http://fpmurphy.com/public/RHCSA_SampleTest_1.ova&quot;&gt;CentOS 7.2 VM&lt;/a&gt;
and attempt a real world test of your RHCSA skills.&lt;/p&gt;

&lt;p&gt;This VM, which is in the form of an OVA (Open Virtualization Archive),
will work with VMware Workstation 10 or later. Sorry, but if you want
to use the VM in other environments, you are going to have to figure
out how to do so, no support will be forthcoming from me. You will also
need network access from your host system to the default public CentOS repos.&lt;/p&gt;

&lt;p&gt;There are twelve (12) tasks that you need to complete in 90 minutes from VM
power up. Most, if not all, of these tasks will probably appear in the real
exam. But first you must fix a problem booting the operating system and get
past the lost root password before you can read the file /TASKS which contains
the twelve tasks that you most complete. Oh, and by the way, networking and
package management are broken. You will have to get networking and package
management working in order to install some necessary packages.&lt;/p&gt;

&lt;p&gt;Just like in the real examination, no answers are or will be provided.&lt;/p&gt;

&lt;p&gt;If you cannot correctly complete all the tasks in 120 minutes or less.
You are absolutely NOT ready for the actual RHCSA exam.&lt;/p&gt;

&lt;p&gt;Good luck!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Debugging submissions errors in TripleO CI</title>
    <summary>Landing upstream submissions might be hard if you are not passing all the CI jobs that try to check that your code actually works. Let’s assume that CI is working properly without any kind of infra issue or without any...</summary>
    <link href="https://www.pubstack.com/blog/2016/08/25/debugging-submissions-errors-in-tripleo-ci.html"/>
    <updated>2016-08-25T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/08/25/debugging-submissions-errors-in-tripleo-ci</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Landing upstream submissions might be hard if you are
not passing all the CI jobs that try to check that your
code actually works.&lt;/p&gt;

&lt;p&gt;Let’s assume that CI is working properly without any kind of
infra issue or without any error introduced by mistake from
other submissions. In which case, we might ending having something
like:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/gerrit_failed_jobs.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The first thing that we should do it’s to double check the
status from all the other jobs that are actually in the TripleO
CI status page. This can be checked in the following site:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://tripleo.org/cistatus.html&quot;&gt;http://tripleo.org/cistatus.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also, we can get the jobs status by checking the Zuul dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://status.openstack.org/zuul/]&quot;&gt;http://status.openstack.org/zuul/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Or checking the TripleO test cloud nodepool.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://grafana.openstack.org/dashboard/db/nodepool-tripleo-test-cloud&quot;&gt;http://grafana.openstack.org/dashboard/db/nodepool-tripleo-test-cloud&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After checking that there are jobs passing CI let’s check why our job
it’s not passing correctly.&lt;/p&gt;

&lt;p&gt;For each job the folder structure should be similar to:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[TXT]  console.html
[DIR]  logs/
  [DIR]  overcloud-cephstorage-0/
  [DIR]  overcloud-controller-0/
  [DIR]  overcloud-novacompute-0/
  [   ]  postci.txt.gz
  [DIR]  undercloud/
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It’s possible to check the deployment status in the &lt;code&gt;console.html&lt;/code&gt; file
there you will see the result of all the deployment steps executed in
order to pass the CI job.&lt;/p&gt;

&lt;p&gt;In case of having i.e. a failed deployment you can check &lt;code&gt;postci.txt.gz&lt;/code&gt;
to get the actual standard error from the deployment.&lt;/p&gt;

&lt;p&gt;Also from folders &lt;code&gt;overcloud-cephstorage-0&lt;/code&gt;, &lt;code&gt;overcloud-controller-0&lt;/code&gt; and
&lt;code&gt;overcloud-novacompute-0&lt;/code&gt; you will have the content of &lt;code&gt;/var&lt;/code&gt; that
will point out all the services logs.&lt;/p&gt;

&lt;p&gt;Other useful tip might be to get all the job logs folder with wget and
crawl for a string containing the &lt;code&gt;Error&lt;/code&gt; word.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#Get the CI job folder i.e. using the following URL.
wget -e robots=off -r --no-parent http://logs.openstack.org/00/000000/0/check-tripleo/gate-tripleo-ci-centos-7-ovb-ha/xxxxxx/
#Parse:
grep -iR &quot;Error: &quot; *
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You will probably see there something pointing out an error, and hopefully
will give you clues about the next steps to fix them and land your submissions
as soon as possible.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>BAND-AID for OOM issues with TripleO manual deployments</title>
    <summary>This post will explain how to fix OOM issues whe using TripleO. If running free -m from your Undercloud or Overcloud nodes and getting some output like: [asdf@fdsa]$ free -m total used free shared buff/cache available Mem: 7668 5555 219...</summary>
    <link href="https://www.pubstack.com/blog/2016/08/23/oom-swap-fix-in-tripleo.html"/>
    <updated>2016-08-23T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/08/23/oom-swap-fix-in-tripleo</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This post will explain how to fix OOM issues whe using TripleO.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/bandaid.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;If running &lt;code&gt;free -m&lt;/code&gt; from your Undercloud or Overcloud nodes and
getting some output like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[asdf@fdsa]$ free -m
              total        used        free      shared  buff/cache   available
Mem:           7668        5555         219        1065        1893         663
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And as in the example there is no reference pointing
to the swap memory size and/or usage, you might not be using swap
in your TripleO deployments, to enable it, just have
to follow two steps.&lt;/p&gt;

&lt;p&gt;First in the Undercloud, when deploying stacks you might find
that heat-engine (4 workers) takes lot of RAM, in this
case for specific usage peaks can be useful to have a
swap file. In order to have this swap file enabled and used by the OS
execute the following instructions in the Undercloud:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#Add a 4GB swap file to the Undercloud
sudo dd if=/dev/zero of=/swapfile bs=1024 count=4194304
sudo mkswap /swapfile
#Turn ON the swap file
sudo chmod 600 /swapfile
sudo swapon /swapfile
#Enable it on start
echo &quot;/swapfile swap swap defaults 0 0&quot; | sudo tee -a /etc/fstab
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Also when deploying the Overcloud nodes the controller might face
some RAM usage peaks, in which case, create a swap file in each
Overcloud node by using an already existing “extraconfig swap”
template.&lt;/p&gt;

&lt;p&gt;To achieve this second part, we just need to use the environmental
file that loads the swap template in the resource
&lt;a href=&quot;https://review.openstack.org/#/c/418273/&quot;&gt;registry&lt;/a&gt;
when deploying the overcloud.&lt;/p&gt;

&lt;p&gt;Now, deploy your Overcloud as usual i.e.:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cd
openstack overcloud deploy \
--libvirt-type qemu \
--ntp-server pool.ntp.org \
--templates /home/stack/tripleo-heat-templates \
-e /home/stack/tripleo-heat-templates/overcloud-resource-registry-puppet.yaml \
-e /home/stack/tripleo-heat-templates/environments/enable-swap.yaml \
-e /home/stack/tripleo-heat-templates/environments/puppet-pacemaker.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Bye bye OOM’s!!!!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #6 (Overcloud - Physical network)</title>
    <summary>This is the sixth video from a series of “Deep Dive” sessions related to TripleO deployments. In this session Dan Prince will dig into the physical overcloud networks. So please, check the full session content on the TripleO YouTube channel....</summary>
    <link href="https://www.pubstack.com/blog/2016/08/15/tripleo-deep-dive-session-6.html"/>
    <updated>2016-08-15T12:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/08/15/tripleo-deep-dive-session-6</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the sixth video from a series of “Deep Dive” sessions
related to &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt; deployments.&lt;/p&gt;

&lt;p&gt;In this session Dan Prince will dig into the physical overcloud networks.&lt;/p&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=zYNq2uT9pfM&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/zYNq2uT9pfM&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt; to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #5 (Undercloud - Under the hood)</title>
    <summary>This is the fifth video from a series of “Deep Dive” sessions related to TripleO deployments. In this session James Slagle and Steven Hardy will dig into some underlying aspects related to the TripleO Undercloud. This video session aims to...</summary>
    <link href="https://www.pubstack.com/blog/2016/08/05/tripleo-deep-dive-session-5.html"/>
    <updated>2016-08-05T20:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/08/05/tripleo-deep-dive-session-5</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the fifth video from a series of “Deep Dive” sessions
related to &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt; deployments.&lt;/p&gt;

&lt;p&gt;In this session James Slagle and Steven Hardy will dig into
some underlying aspects related to the TripleO Undercloud.&lt;/p&gt;

&lt;p&gt;This video session aims to cover the following sections:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;What is under the hood of a TripleO underloud deployment.&lt;/li&gt;
  &lt;li&gt;Description of the undercloud components.&lt;/li&gt;
  &lt;li&gt;Show the undercloud components interaction.&lt;/li&gt;
  &lt;li&gt;Undercloud installing process.&lt;/li&gt;
  &lt;li&gt;Undercloud customization.&lt;/li&gt;
  &lt;li&gt;How to apply and test submissions in instack-undercloud.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=h32z6Nq8Byg&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/h32z6Nq8Byg&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt; to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #4 (Puppet modules)</title>
    <summary>This is the fourth video from a series of “Deep Dive” sessions related to TripleO deployments. This session will cover a series of basic Puppet topics related to TripleO deployments. This video session aims to cover the following sections: Introduction...</summary>
    <link href="https://www.pubstack.com/blog/2016/08/01/tripleo-deep-dive-session-4.html"/>
    <updated>2016-08-01T10:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/08/01/tripleo-deep-dive-session-4</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the fourth video from a series of “Deep Dive” sessions
related to &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt; deployments.&lt;/p&gt;

&lt;p&gt;This session will cover a series of basic Puppet topics related to
TripleO deployments.&lt;/p&gt;

&lt;p&gt;This video session aims to cover the following sections:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Introduction about Puppet OpenStack modules.&lt;/li&gt;
  &lt;li&gt;Services deployment using Puppet profiles.&lt;/li&gt;
  &lt;li&gt;Deployment composability with Heat.&lt;/li&gt;
  &lt;li&gt;Bring your own service to TripleO.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=-b4cdfzvFDY&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/-b4cdfzvFDY)&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt; to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Responsiveness (Graphical description)</title>
    <summary>Responsiveness (Graphical description)



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/08/01/pod.html"/>
    <updated>2016-08-01T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/08/01/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Responsiveness (Graphical description)&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-08-01-responsive.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Testing instack-undercloud submissions locally</title>
    <summary>This post is to describe how to run/test gerrit submissions related to instack-undercloud locally. For this example I’m going to use this submission: https://review.openstack.org/#/c/347389/ The follwing steps allow to test the submissions related to instack-undercloud in a working environment. ./tripleo-ci/scripts/tripleo.sh...</summary>
    <link href="https://www.pubstack.com/blog/2016/07/26/testing-tripleo-undercloud-gerrit-submission.html"/>
    <updated>2016-07-26T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/26/testing-tripleo-undercloud-gerrit-submission</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This post is to describe how to run/test gerrit submissions related to instack-undercloud locally.&lt;/p&gt;

&lt;p&gt;For this example I’m going to use this submission: https://review.openstack.org/#/c/347389/&lt;/p&gt;

&lt;p&gt;The follwing steps allow to test the submissions related to instack-undercloud
in a working environment.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  ./tripleo-ci/scripts/tripleo.sh --delorean-setup
  ./tripleo-ci/scripts/tripleo.sh --delorean-build openstack/instack-undercloud
  cd tripleo/instack-undercloud/
  #The submission to be tested
  git review -d 347389
  cd
  ./tripleo-ci/scripts/tripleo.sh --delorean-build openstack/instack-undercloud
  rpm -qa | grep instack-undercloud
  sudo rpm -e --nodeps &amp;lt;old_installed_instack-undercloud&amp;gt;
  find tripleo/ -name &quot;*rpm&quot;
  sudo rpm -iv --replacepkgs --force &amp;lt;located package&amp;gt;
  #Here we need to check that the changes were actually applied.
  #What I&apos;m used to do it&apos;s to search the updated files using locate
  #and manually checking that the changes are OK.
  sudo rm -rf /root/.cache/image-create/source-repositories/*
  sudo rm -rf /opt/stack/puppet-modules
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, in case that a puppet-tripleo change is needed, you can add the env. vars before
re-installing the undercloud.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  export DIB_INSTALLTYPE_puppet_tripleo=source
  export DIB_REPOLOCATION_puppet_tripleo=https://review.openstack.org/openstack/puppet-tripleo
  export DIB_REPOREF_puppet_tripleo=refs/changes/XX/XXXXX/X
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, we just need to run the installer.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  ./tripleo-ci/scripts/tripleo.sh --undercloud
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Once this process completes, the output should be something similar to:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;
#################
tripleo.sh -- Undercloud install - DONE.
#################

&lt;/code&gt;&lt;/pre&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Monday's coffee ensure => 'present'</title>
    <summary>Monday’s coffee ensure =&gt; ‘present’



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/07/25/pod.html"/>
    <updated>2016-07-25T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/25/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Monday’s coffee ensure =&amp;gt; ‘present’&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-07-25-no-coffee-no-brain.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #3 (Overcloud deployment debugging)</title>
    <summary>This is the third video from a series of “Deep Dive” sessions related to TripleO deployments. This session is related to how to troubleshoot a failed THT deployment. This video session aims to cover the following topics: Debug a TripleO...</summary>
    <link href="https://www.pubstack.com/blog/2016/07/22/tripleo-deep-dive-session-3.html"/>
    <updated>2016-07-22T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/22/tripleo-deep-dive-session-3</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the third video from a series of “Deep Dive” sessions
related to &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt; deployments.&lt;/p&gt;

&lt;p&gt;This session is related to how to troubleshoot a
failed THT deployment.&lt;/p&gt;

&lt;p&gt;This video session aims to cover the following topics:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Debug a TripleO failed overcloud deployment.&lt;/li&gt;
  &lt;li&gt;Debugging in real time the deployed resources.&lt;/li&gt;
  &lt;li&gt;Basic Openstack commands to see the deployment status.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=fspnjD-1DNI&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/fspnjD-1DNI&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt; to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Climbing day in patones</title>
    <summary>Climbing day in patones



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/07/22/pod.html"/>
    <updated>2016-07-22T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/22/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Climbing day in patones&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-07-22-climbing-patones.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>When the shower has more commits than you</title>
    <summary>When the shower has more commits than you”



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/07/21/pod.html"/>
    <updated>2016-07-21T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/21/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;When the shower has more commits than you”&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-07-21-shower-more-commits-than-you.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Timeouts day..</title>
    <summary>Timeouts day..



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/07/20/pod.html"/>
    <updated>2016-07-20T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/20/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Timeouts day..&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-07-20-owl-wet-face.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Happy Tuesday!</title>
    <summary>Happy Tuesday!



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/07/19/pod.html"/>
    <updated>2016-07-19T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/19/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Happy Tuesday!&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-07-19-owl-happy.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #2 (TripleO Heat Templates)</title>
    <summary>This is the second video from a series of “Deep Dive” sessions related to TripleO deployments. This session is related to a THT overview for all users who want to dig into the project. This video session aims to cover...</summary>
    <link href="https://www.pubstack.com/blog/2016/07/18/tripleo-deep-dive-session-2.html"/>
    <updated>2016-07-18T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/18/tripleo-deep-dive-session-2</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the second video from a series of “Deep Dive” sessions
related to &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt; deployments.&lt;/p&gt;

&lt;p&gt;This session is related to a THT overview
for all users who want to dig into the
project.&lt;/p&gt;

&lt;p&gt;This video session aims to cover the following topics:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;A THT basic introduction overview.&lt;/li&gt;
  &lt;li&gt;A Template model used.&lt;/li&gt;
  &lt;li&gt;A description of the new composable services approach.&lt;/li&gt;
  &lt;li&gt;A code overview over the related code repositories.&lt;/li&gt;
  &lt;li&gt;A cloud deployment demo session.&lt;/li&gt;
  &lt;li&gt;A demo session with a deployment in live referring to debugging hints.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=gX5AKSqRCiU&quot;&gt;session&lt;/a&gt;
content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/gX5AKSqRCiU&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt; to have access to all available content.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>The chapter 1</title>
    <summary>The chapter 1



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/07/18/pod.html"/>
    <updated>2016-07-18T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/18/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;The chapter 1&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-07-18-sleep.gif&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Pointers</title>
    <summary>Pointers



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/07/15/pod.html"/>
    <updated>2016-07-15T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/15/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Pointers&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-07-15-pointers.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Compiling</title>
    <summary>Compiling



Explanation: No comments.
Disclaimer.
</summary>
    <link href="https://www.pubstack.com/blog/2016/07/14/pod.html"/>
    <updated>2016-07-14T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/14/pod</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Compiling&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/pod/2016-07-14-compiling.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Explanation: No comments.
&lt;br /&gt;&lt;a href=&quot;https://www.pubstack.com/disclaimer&quot;&gt;Disclaimer.&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO deep dive session #1 (Quickstart deployment)</title>
    <summary>This is the first video from a series of “Deep Dive” sessions related to TripleO deployments. The first session is related to the TripleO deployment using Quickstart. Quickstart comes from RDO, to reduce the complexity of having a TripleO environment...</summary>
    <link href="https://www.pubstack.com/blog/2016/07/11/tripleo-deep-dive-session-1.html"/>
    <updated>2016-07-11T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/11/tripleo-deep-dive-session-1</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is the first video from a series of “Deep Dive” sessions
related to &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt; deployments.&lt;/p&gt;

&lt;p&gt;The first session is related to the TripleO deployment using
Quickstart.&lt;/p&gt;

&lt;p&gt;Quickstart comes from &lt;a href=&quot;http://www.rdoproject.org/&quot;&gt;RDO&lt;/a&gt;, to reduce the complexity of having
a TripleO environment quickly, mostly for users without a strong
and deep knowledge of TripleO configuration and it uses Ansible roles
to automate all the different configuration tasks.&lt;/p&gt;

&lt;p&gt;So please, check the full &lt;a href=&quot;https://www.youtube.com/watch?v=E1d_RmysnA8&quot;&gt;session&lt;/a&gt; content on the &lt;a href=&quot;https://www.youtube.com/channel/UCNGDxZGwUELpgaBoLvABsTA/&quot;&gt;TripleO YouTube channel&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/E1d_RmysnA8&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;Last but not least, James Slagle (slagle) have posted some comments about
how to apply new changes in the puppet modules when deploying the overcloud
as the current task of re-create them is a time consuming and cumbersome process.&lt;/p&gt;

&lt;p&gt;Using the upload-puppet-modules script we will be able to update the puppet
modules when executing the overcloud deployment.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;# From the undercloud
mkdir puppet-modules
cd puppet-modules
git clone https://git.openstack.org/openstack/puppet-tripleo tripleo
# Edit as needed under the tripleo folder
cd
git clone https://git.openstack.org/openstack/tripleo-common
export PATH=&quot;$PATH:tripleo-common/scripts&quot;
upload-puppet-modules --directory puppet-modules/

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Please check the &lt;a href=&quot;http://www.pubstack.com/blog/2017/06/15/tripleo-deep-dive-session-index.html&quot;&gt;sessions index&lt;/a&gt; to have access to all available content.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;---------------------------------------------------------------------------------------
|                                     ,   .   ,                                       |
|                                     )-_&apos;&apos;&apos;_-(                                       |
|                                    ./ o\ /o \.                                      |
|                                   . \__/ \__/ .                                     |
|                                   ...   V   ...                                     |
|                                   ... - - - ...                                     |
|                                    .   - -   .                                      |
|                                     `-.....-´                                       |
|                          _______   _       _       ____                             |
|                         |__   __| (_)     | |     / __ \                            |
|                            | |_ __ _ _ __ | | ___| |  | |                           |
|                            | | &apos;__| | &apos;_ \| |/ _ \ |  | |                           |
|                            | | |  | | |_) | |  __/ |__| |                           |
|                     _____  |_|_|  |_| .__/|_|\___|\____/                            |
|                    |  __ \          | |     |  __ \(_)                              |
|                    | |  | | ___  ___|_|__   | |  | |___   _____                     |
|                    | |  | |/ _ \/ _ \ &apos;_ \  | |  | | \ \ / / _ \                    |
|                    | |__| |  __/  __/ |_) | | |__| | |\ V /  __/                    |
|                    |_____/ \___|\___| .__/_ |_____/|_| \_/ \___|                    |
|                                     | |  (_)                                        |
|                         ___  ___  __|_|__ _  ___  _ __  ___                         |
|                        / __|/ _ \/ __/ __| |/ _ \| &apos;_ \/ __|                        |
|                        \__ \  __/\__ \__ \ | (_) | | | \__ \                        |
|                        |___/\___||___/___/_|\___/|_| |_|___/                        |
|                                                                                     |
---------------------------------------------------------------------------------------
&lt;/code&gt;&lt;/pre&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>The Venezuelan Cuatro</title>
    <summary>Let me present you a Venezuelan Cuatro. This magical device is a string (nylon) musical instrument tuned (ad’f#’b) typical from Venezuela, similar to the Ukelele in it’s shape, but their character and playing technique are vastly different. If you want...</summary>
    <link href="https://www.pubstack.com/blog/2016/07/07/venezuelan-cuatro.html"/>
    <updated>2016-07-07T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/07/venezuelan-cuatro</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Let me present you a Venezuelan Cuatro.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/static/cuatro/cuatro.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;This magical device is a string (nylon) musical instrument
tuned (ad’f#’b) typical from Venezuela, similar
to the Ukelele in it’s shape, but their character
and playing technique are vastly different.&lt;/p&gt;

&lt;p&gt;If you want to learn more about this instrument,
you can download a complete &lt;a href=&quot;/static/cuatro/cuatro-chords.pdf&quot;&gt;chords sheet&lt;/a&gt;
from The Ukulele Orchestra of Great Britain or
this &lt;a href=&quot;/static/cuatro/cuatro-method.pdf&quot;&gt;Cuatro method&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Also you can listen these excellent videos from Youtube.&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/NZ123ysut9s&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;div class=&quot;center&quot;&gt;
  &lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/3JqMTEr1HIg&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;&quot;&gt;&lt;/iframe&gt;
&lt;/div&gt;

</content>
  </entry>
  
  
  
  <entry>
    <title>Openstack &amp; TripleO deployment using Inlunch - DEPRECATED</title>
    <summary>Today I’m going to speak about the first Openstack installer I used to deploy TripleO. Inlunch, as its name aims it should make you “Get an Instack environment prepared for you while you head out for lunch.” The steps that...</summary>
    <link href="https://www.pubstack.com/blog/2016/07/07/tripleo-deployment-with-inluch.html"/>
    <updated>2016-07-07T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/07/tripleo-deployment-with-inluch</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Today I’m going to speak about the first
Openstack installer I used to deploy &lt;a href=&quot;http://www.tripleo.org&quot;&gt;TripleO&lt;/a&gt;.
&lt;a href=&quot;https://github.com/jistr/inlunch&quot;&gt;Inlunch&lt;/a&gt;,
as its name aims it should make you
“Get an Instack environment prepared for you while
you head out for lunch.”&lt;/p&gt;

&lt;p&gt;The steps that I’m used to run are:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Connect to your remote server  (Your physical server) as
root and generate the id_rsa.pub file and append it to
the authorized_keys file.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;ssh-keygen -t rsa
cd .ssh
cat id_rsa.pub &amp;gt;&amp;gt; authorized_keys
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Install some dependencies and clone &lt;a href=&quot;https://github.com/jistr/inlunch&quot;&gt;Inlunch&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm
sudo yum -y install git ansible nano
git clone https://github.com/jistr/inlunch
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Go to the inlunch folder and edit the answer
file to fits your needs. In the answers files
by default it creates 6 nodes with 5GB RAM each,
I usually change this to 3 nodes with 8GB RAM.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cd inlunch
vi answers.yml.example
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;The last but not least &lt;a href=&quot;https://github.com/jistr/inlunch&quot;&gt;Inlunch&lt;/a&gt;
step it is to deploy
our undercloud!!! As simple as it sounds. As you can
see &lt;a href=&quot;https://github.com/jistr/inlunch&quot;&gt;Inlunch&lt;/a&gt; uses
&lt;a href=&quot;http://www.ansible.com/&quot;&gt;Ansible&lt;/a&gt; for all the steps automation
using SSH.
In this case we added the root public key to the same server
and the installation is pointed to localhost.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;INLUNCH_ANSWERS=answers.yml.example INLUNCH_FQDN=localhost ./instack-virt.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Once you have finished this last step you can
login in the undercloud node by sshing to the physical
server using the 2200 port.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;ssh -p 2200 root@&amp;lt;your_server_fqdn_goes_here&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This is it :) your undercloud it is up and running.&lt;/p&gt;

&lt;p&gt;Now, I will show the following steps to deploy
the master branch of tripleo-heat-templates to
finish the overcloud deployment.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Login as the stack user and source the stackrc file&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;su - stack
source stackrc
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Let’s clone all needed repositories.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone https://github.com/openstack/puppet-tripleo
git clone https://github.com/openstack/tripleo-docs
git clone https://github.com/openstack/tripleo-heat-templates
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;And to finish let’s deploy the &lt;a href=&quot;http://www.tripleo.org&quot;&gt;TripleO&lt;/a&gt; pacemaker environment.&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  openstack overcloud deploy \
  --libvirt-type qemu \
  --ntp-server clock.redhat.com \
  --templates /home/stack/tripleo-heat-templates \
  -e /home/stack/tripleo-heat-templates/overcloud-resource-registry-puppet.yaml \
  -e /home/stack/tripleo-heat-templates/environments/puppet-pacemaker.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now you should have deployed successfully your undercloud/overcloud environment using &lt;a href=&quot;https://github.com/jistr/inlunch&quot;&gt;Inlunch&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Thanks &lt;a href=&quot;https://github.com/jistr/&quot;&gt;Jiri&lt;/a&gt; for this amazing installer!!&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Connecting the ADXL345 accelerometer to the Raspberry Pi 3</title>
    <summary>Since a few months I’m kind of interested in research topics related to displacement calculation based on time series acceleration. This basically shows that when something starts moving it displacement depends on the velocity and the time that it has...</summary>
    <link href="https://www.pubstack.com/blog/2016/07/05/accelerometer-intro.html"/>
    <updated>2016-07-05T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/05/accelerometer-intro</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;Since a few months I’m kind of interested
in research topics related to displacement
calculation based on time series acceleration.
This basically shows that when something starts
moving it displacement depends  on the velocity
and the time that it has been moving, but due
to the fact that the velocity changes continuously
we take this variation as the object acceleration
(meters per second per second).
In this case we will use the accelerometer to estimate
the relative position to a point p, which is derived
using the double integration of the acceleration metrics.&lt;/p&gt;

&lt;p&gt;Until now we have no speed, time or acceleration metrics so
we are going to start from the very beginning.&lt;/p&gt;

&lt;p&gt;The items needed for this project are;
&lt;a href=&quot;https://www.amazon.es/gp/product/B005I4QCB4&quot;&gt;Solder&lt;/a&gt;,
&lt;a href=&quot;https://www.amazon.es/gp/product/B001BMSBD4&quot;&gt;Solder support&lt;/a&gt;,
&lt;a href=&quot;https://www.amazon.es/gp/product/B000LFTN1G&quot;&gt;Solder wire&lt;/a&gt;,
&lt;a href=&quot;https://www.amazon.es/gp/product/B00CIOVF8W&quot;&gt;Flux&lt;/a&gt;,
&lt;a href=&quot;https://www.amazon.es/gp/product/B0144HG2RE&quot;&gt;Jumpers kit&lt;/a&gt;,
&lt;a href=&quot;https://www.amazon.es/gp/product/B01CD5VC92&quot;&gt;Raspberry Pi 3&lt;/a&gt;,
&lt;a href=&quot;https://www.amazon.es/gp/product/B00W7S1BFG&quot;&gt;Raspberry Pi 3 case&lt;/a&gt;,
&lt;a href=&quot;https://www.amazon.es/gp/product/B0144HFO0A&quot;&gt;GPIO board&lt;/a&gt; and the
&lt;a href=&quot;https://www.amazon.es/gp/product/B0151FIBZO&quot;&gt;ADXL345 sensor&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Total budged for this project: 105.73 Eur.&lt;/p&gt;

&lt;p&gt;First let’s connect our ADXL345 accelerometer to the Raspberry by connecting
the jumpers as follow:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Raspberry GPIO pin&lt;/th&gt;
      &lt;th&gt;ADXL345 pin&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;GND&lt;/td&gt;
      &lt;td&gt;GND&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;3V&lt;/td&gt;
      &lt;td&gt;3V&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;SDA&lt;/td&gt;
      &lt;td&gt;SDA&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;SCL&lt;/td&gt;
      &lt;td&gt;SCL&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;This will lead to something like:
&lt;img src=&quot;/static/accel/accelerometer-01-build.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Or a wider view:
&lt;img src=&quot;/static/accel/accelerometer-00-build.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Once having the Raspberry wired, let’s configure it by the following steps.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;From our Raspberry Pi, install:&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo apt-get install python-smbus i2c-tools
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Enable the I2C kernel module in the Raspberry Pi:&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo raspi-config
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, enable I2C kernel module in:
Advanced Options -&amp;gt; I2C -&amp;gt; Would you like the ARM module.. -&amp;gt; Would you like it enabled by default..&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Edit the modules file (sudo vim /etc/modules) and make sure it contains the following lines:&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;i2c-bcm2708
i2c-dev
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Remove I2C from the blacklist file (/etc/modprobe.d/raspi-blacklist.conf)
commenting the following line if it appears:&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#blacklist i2c-bcm2708
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;After all these previous steps, reboot the Raspberry Pi&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo reboot
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Test the connection to the I2C module:&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;sudo i2cdetect -y 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The command should print the following output:
&lt;img src=&quot;/static/accel/accelerometer-02-port-test.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Now, when having the module working properly, we need to get and use
the python ADXL345 library to have access to the time based data.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Clone the library repository and execute the example code:&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;git clone https://github.com/pimoroni/adxl345-python
cd adxl345-python
sudo python example.py
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The command’s output should be:
&lt;img src=&quot;/static/accel/accelerometer-03-g-test.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Showing the G forces in each axis.&lt;/p&gt;

&lt;p&gt;This is it for the first part of the tutorial.
Next posts will dig into the real-time data processing.&lt;/p&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>TripleO manual deployment - DEPRECATED</title>
    <summary>This is a brief recipe about how to manually install TripleO in a remote 32GB RAM box. From the hypervisor run: #In this dev. env. /var is only 50GB, so I will create #a sym link to another location with...</summary>
    <link href="https://www.pubstack.com/blog/2016/07/04/manually-installing-tripleo-recipe.html"/>
    <updated>2016-07-04T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/04/manually-installing-tripleo-recipe</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This is a brief recipe about how to
manually install TripleO in a remote
32GB RAM box.&lt;/p&gt;

&lt;p&gt;From the hypervisor run:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  #In this dev. env. /var is only 50GB, so I will create
  #a sym link to another location with more capacity.
  #It will take easily more tan 50GB deploying a 3+1 overcloud
  sudo mkdir -p /home/libvirt/
  sudo ln -sf /home/libvirt/ /var/lib/libvirt
  #Add default stack user
  sudo useradd stack
  echo &quot;stack:stack&quot; | chpasswd
  echo &quot;stack ALL=(root) NOPASSWD:ALL&quot; | sudo tee -a /etc/sudoers.d/stack
  sudo chmod 0440 /etc/sudoers.d/stack
  su - stack

  sudo yum -y install epel-release
  sudo yum -y install yum-plugin-priorities

  export TRIPLEO_ROOT=/home/stack
  export TRIPLEO_RELEASE=rdo-trunk-master-tripleo
  #export TRIPLEO_RELEASE=rdo-trunk-newton-tested
  export TRIPLEO_RELEASE_DEPS=centos7
  #export TRIPLEO_RELEASE_DEPS=centos7-newton

  #Repository configured pointing to above release!
  sudo curl -o /etc/yum.repos.d/delorean.repo https://buildlogs.centos.org/centos/7/cloud/x86_64/$TRIPLEO_RELEASE/delorean.repo
  sudo curl -o /etc/yum.repos.d/delorean-deps.repo https://trunk.rdoproject.org/$TRIPLEO_RELEASE_DEPS/delorean-deps.repo

  #Configure the undercloud deployment
  export NODE_DIST=centos7
  export NODE_CPU=4
  export NODE_MEM=9000
  export NODE_COUNT=6
  export UNDERCLOUD_NODE_CPU=4
  export UNDERCLOUD_NODE_MEM=9000
  export FS_TYPE=ext4

  sudo yum install -y instack-undercloud
  instack-virt-setup
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In the hypervisor run the following command to log-in in
the undercloud:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  ssh root@`sudo virsh domifaddr instack | grep $(tripleo get-vm-mac instack) | awk &apos;{print $4}&apos; | sed &apos;s/\/.*$//&apos;`
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;From the undercloud we will install all the
packages:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;  #Add a 4GB swap file to the Undercloud
  sudo dd if=/dev/zero of=/swapfile bs=1024 count=4194304
  sudo mkswap /swapfile
  #Turn ON the swap file
  sudo chmod 600 /swapfile
  sudo swapon /swapfile
  #Enable it on start
  sudo echo &quot;/swapfile          swap            swap    defaults        0 0&quot; &amp;gt;&amp;gt; /etc/fstab

  #Login as the stack user
  su - stack

  export TRIPLEO_ROOT=/home/stack
  sudo yum -y install yum-plugin-priorities

  export TRIPLEO_RELEASE=rdo-trunk-master-tripleo
  #export TRIPLEO_RELEASE=rdo-trunk-newton-tested
  export TRIPLEO_RELEASE_BRANCH=master
  #export TRIPLEO_RELEASE_BRANCH=stable/newton

  export USE_DELOREAN_TRUNK=1
  export DELOREAN_TRUNK_REPO=&quot;https://buildlogs.centos.org/centos/7/cloud/x86_64/$TRIPLEO_RELEASE/&quot;
  export DELOREAN_REPO_FILE=&quot;delorean.repo&quot;
  export FS_TYPE=ext4

  git clone -b $TRIPLEO_RELEASE_BRANCH https://github.com/openstack/tripleo-heat-templates
  git clone https://github.com/openstack-infra/tripleo-ci.git

  ./tripleo-ci/scripts/tripleo.sh --all

  # The last command will execute:
  #  repo_setup        --repo-setup
  #  undercloud        --undercloud
  #  overcloud_images  --overcloud-images
  #  register_nodes    --register-nodes
  #  introspect_nodes  --introspect-nodes
  #  overcloud_deploy  --overcloud-deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Once the undercloud it is fully installed, deploy an overcloud
(The last command should have created an overcloud, this is
needed if you need to deploy another one).&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cd
openstack overcloud deploy \
--libvirt-type qemu \
--ntp-server pool.ntp.org \
--templates /home/stack/tripleo-heat-templates \
-e /home/stack/tripleo-heat-templates/overcloud-resource-registry-puppet.yaml \
-e /home/stack/tripleo-heat-templates/environments/puppet-pacemaker.yaml
#Also can be added:
#--control-scale 3 \
#--compute-scale 3 \
#--ceph-storage-scale 1 -e /home/stack/tripleo-heat-templates/environments/storage-environment.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This will hopefully deploy the TripleO overcloud, if not,
refer to the &lt;a href=&quot;http://tripleo.org/troubleshooting/troubleshooting.html&quot;&gt;troubleshooting&lt;/a&gt; section in the official
site.&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#Configure a DNS for the OC subnet, do this before deploying the Overcloud
neutron subnet-update `neutron subnet-list -f value | awk &apos;{print $1}&apos;` --dns-nameserver 192.168.122.1
&lt;/code&gt;&lt;/pre&gt;

&lt;div style=&quot;font-size:10px&quot;&gt;
  &lt;blockquote&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2017/02/23:&lt;/strong&gt; instack-virt-setup is deprecatred :( moving to tripleo-quickstart.&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Updated 2016/11/25:&lt;/strong&gt; instack-virt-setup env. vars. are defaulted to sane defaults, so they are optional now.&lt;/p&gt;
  &lt;/blockquote&gt;
&lt;/div&gt;
</content>
  </entry>
  
  
  
  <entry>
    <title>Connecting from your local machine to the TripleO overcloud horizon dashboard</title>
    <summary>This will be my first blog post about TripleO deployments. The goal of this post is to show how to chain multiple ssh tunnels to browse into the horizon dashboard, deployed in a TripleO environment. In this case, we have...</summary>
    <link href="https://www.pubstack.com/blog/2016/07/02/ssh-multi-hop-tripleo.html"/>
    <updated>2016-07-02T00:00:00+00:00</updated>
    <id>https://www.pubstack.com/blog/2016/07/02/ssh-multi-hop-tripleo</id>
    <author>
      <name>Carlos Camacho</name>
    </author>
    <content type="html">&lt;p&gt;This will be my first blog post about TripleO deployments.&lt;/p&gt;

&lt;p&gt;The goal of this post is to show how to chain multiple ssh
tunnels to browse into the horizon dashboard, deployed
in a TripleO environment.&lt;/p&gt;

&lt;p&gt;In this case, we have deployed &lt;a href=&quot;http://www.tripleo.org/&quot;&gt;TripleO&lt;/a&gt;
in a remote server “labserver” in which was launched an undercloud
and overcloud deployment.&lt;/p&gt;

&lt;p&gt;The horizon dashboard listens on the 80 port of the overcloud controller.
From the user terminal we want to have access to the horizon dashboard, currently
unreachable because we don’t have access to the deployed private IPs from the
user’s terminal.&lt;/p&gt;

&lt;p&gt;Below is a graphical representation about the described scenario.
&lt;img src=&quot;/static/multi-hop.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;steps&quot;&gt;STEPS&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Connect the local terminal to labserver (create the first tunnel)&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#Forward incoming 38080 traffic to local 38080 in the hypervisor
#labserver must be a reachable host
ssh -L 38080:localhost:38080 root@labserver
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Connect to the undercloud from the labserver (create the second tunnel)&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#Log-in as the stack user and get the undercloud IP
su - stack
undercloudIp=`sudo virsh domifaddr instack | grep $(tripleo get-vm-mac instack) | awk &apos;{print $4}&apos; | sed &apos;s/\/.*$//&apos;`
#Forward incoming 38080 traffic to local 38080 in the undercloud
ssh -L 38080:localhost:38080 root@$undercloudIp
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Get the admin password for the Horizon dashboard&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;su - stack
source stackrc
cat overcloudrc |grep OS_PASSWORD | awk -F  &apos;=&apos; &apos;{print $2}&apos;
&lt;/code&gt;&lt;/pre&gt;

&lt;ul&gt;
  &lt;li&gt;Connect to the overcloud controller from the undercloud (create the third and last tunnel)&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#Get the controller IP
controllerIp=`nova list | grep controller | awk -F  &apos;|&apos; &apos;{print $7}&apos; | awk -F  &apos;=&apos; &apos;{print $2}&apos;`
#Forward incoming 38080 traffic to controller IP in 80 port
ssh -L 38080:&quot;$controllerIp&quot;:80 heat-admin@&quot;$controllerIp&quot;
echo &quot;From your browser open: http://localhost:38080/&quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now, if everything went as expected you should be able to see
the horizon dashboard by using your favorite browser and typing http://localhost:38080/dashboard,&lt;br /&gt;
then use the admin user and the password printed before.&lt;/p&gt;

&lt;p&gt;Note that in this case, by default the ssh hops should be done using different users.&lt;/p&gt;
</content>
  </entry>
  
  
</feed>
