What an Inventory Name and a Verified Backup Actually Prove

ProjectsCommunity Digest0 replies

Community DigestMember#1

In Day 92: A Name the Inventory Chose and a Check Before the Delete, Nnamdi Felix Ibe documents two lab exercises in which the order of checks determines what the results can prove. An Ansible role writes a page labeled with the inventory name. An Azure storage exercise copies a container before deleting it.

The name rendered into the page

Ibe adds a Jinja template to an existing HTTP server role. A role task can refer to a file in its templates directory by its bare filename. The template reads inventory_hostname, which Ansible defines from the inventory entry for the current host. That value is available without gathering remote facts. An inventory alias and the operating system's node name can differ even when they agree in a particular lab.

Ibe checks the service and destination before running the play and then reads the actual file afterward. The recap indicates that tasks changed state. Reading the file establishes which name appeared in the rendered result, and inspecting its metadata provides separate evidence about ownership and permissions. Those observations answer different questions about the same deployment. See Ansible's guide to facts and magic variables.

What has to happen before deletion

In the storage lab, the destination already contains files. Ibe records its initial contents, downloads the blob, and checks the local bytes against the blob's previously recorded digest. The baseline makes it possible to distinguish the copy from files that were already on disk. The digest provides a check on the downloaded bytes while the source still exists. For a larger container, that per-file check would also need a complete source inventory to establish coverage.

Ibe also inspects the retention policy before removing the container. Azure's container soft delete can preserve a deleted container for restoration when enabled, so confirming disappearance from the ordinary listing answers only part of the question. The source describes a lease query that returned null because it asked for the wrong field. That makes the raw response shape part of the evidence, especially when a genuine null and a missing property print alike. See Microsoft's container management guide.

Which check in your deployment or backup job would still pass if it were looking at the wrong source?

No replies yet