Marvin `deployDataCenter.py` Troubleshooting Summary

1) Marvin deployDataCenter.py — Issues & Fixes 1.1 Running marvin from the root Fix: Run from repo root: cd ~/lab/cloudstack python3 tools/marvin/marvin/deployDataCenter.py -i setup/dev/advanced.cfg 1.2 DNS: sim Not Resolvable Symptom UnknownHostException: sim: Name or service not known Fix Options Add to /etc/hosts: echo "127.0.0.1 sim" | sudo tee -a /etc/hosts Or change host URLs in advanced.cfg to: http://127.0.0.1/c0/h0 1.3 Host Authentication Error (KVM path only) Symptom errorText: [Authentication error with host password] Fix...

October 22, 2025 · 2 min · Daman Arora

Using the `async_job` Table in Apache CloudStack

Apache CloudStack performs many operations asynchronously — such as VM deployments, volume operations, and network changes. The async_job table in the CloudStack database is the primary source of truth for tracking, debugging, and correlating logs related to background jobs. Why Async Jobs Matter Whenever a CloudStack user (via API or UI) triggers an operation that takes time to complete, the Management Server creates an entry in the async_job table. This allows the system to:...

October 22, 2025 · 3 min · Daman Arora

Why `sudo echo "..." > file` Doesn’t Work — and How to Fix It

Tried this command: echo "/export *(rw,async,no_root_squash,no_subtree_check)" > /etc/exports But the file didn’t get updated. Core Issue: Redirection (>) Happens Before sudo When executing sudo echo "line" > /etc/file Only the echo runs with sudo. So this fails silently (or leaves the file empty). Correct Approach: Use sudo tee echo "/export *(rw,async,no_root_squash,no_subtree_check)" | sudo tee /etc/exports > /dev/null This works because: echo runs normally Output is piped (|) to sudo tee tee runs with root privileges and writes the file IMPORTANT: Append Instead of Overwrite?...

October 22, 2025 · 1 min · Daman Arora

Journey of a React App From Javscript to Typescript

Handling Props in Child and Parent Component Whenever we define a parent and a child component in React using Typescript, we must always define an Interface in the child component which defines what props child expects to recieve. By adding an interface to the child component, we are adding two big checks: In Parent Component: Are we providing the correct props to Child when we add it ti Parent? In Child Component: Are we using the correctly named + typed props in Child?...

March 18, 2023 · 3 min · Daman Arora

Javascript Array every: Determine if All Array Elements Pass a Test

The Javascript Array.every() method tests whether all the elements of an array satisfy the given condition (a callback passed in by the user). In essence, the every() method executes the callback function for each element of the array and returns true if all elements return true or false if only one element returns false. const isBelowThreshold = (currentValue) => currentValue < 40; const array1 = [1, 30, 39, 29, 10, 13]; console....

February 10, 2023 · 1 min · Daman Arora