Physical and remote-environment acceptance guide
This document is an operator runbook for acceptance testing on disposable hardware and independently operated remote-storage services. It does not describe new software features and does not make physical testing a prerequisite for continuing software development. All SSH, NFS, SMB and S3 infrastructure is external to Feclora: the operator or service owner provisions and administers it. Feclora tests only its client connection, authentication, authorization, transfer/mount behavior, integrity checks and failure handling. No test step asks Feclora to install or configure a remote server, export, share or bucket. Record the Feclora commit, host models, firmware mode, network topology, repository provider/version, test date and outcome for every run.
Safety rules for every test
- Use only disks and machines explicitly reserved for destructive testing. Disconnect or positively identify every production/system disk.
- Keep a separate, verified backup of anything that must survive.
- Record each disk’s model, serial, capacity, logical sector size and /dev/disk/by-id path before starting. Do not rely on /dev/sdX ordering.
- Confirm the source/target roles with two people for destructive multi-host tests. Use Feclora’s exact local target confirmation and Server ARM phrase.
- Never interpret a disconnect or failed test as rollback. Once a target writer has started, the destination may be partially or fully overwritten. Mark it untrusted until a later complete operation and verification.
- Do not interrupt power to a production host or disconnect a production storage service. Fault injection belongs on disposable test equipment.
- Preserve Server and Client operation logs and deployment journals with the test record. Redact credentials, private keys and secret configuration.
1. Two-machine disk clone
Purpose: verify one-to-one Server-to-Client cloning with real block devices.
Prerequisites: two disposable machines, one read-only source disk, one target disk at least as large as the source, enrolled Server/Client identities, and a wired network path between the hosts.
- Boot both machines and verify their hostnames, network interfaces and enrolled identities.
- On the source host, identify the intended source by model, serial and /dev/disk/by-id. Verify it is a whole disk and reports read-only (RO=1).
- On the receiver, identify the disposable target independently. Verify its capacity and logical sector size are compatible with the source.
- In GTK, create a unicast clone deployment, select the source disk and authorize exactly the enrolled receiver.
- On the receiver, inspect the authenticated job, select the local target and enter the exact destructive confirmation displayed by Feclora.
- On the Server, verify the READY receiver identity and enter the exact job-specific ARM phrase. Do not substitute a generic confirmation.
- Wait for transfer, receiver read-back and terminal verification to finish.
- Confirm both endpoints report the same completed job/session, byte count and SHA-256 result. Confirm the receiver’s operation journal records completion.
- Power down the receiver and inspect the cloned partition table and filesystems from a separate maintenance environment. Do not mount a filesystem read-write if the source disk will also be attached.
- Save logs and record the result. If any step fails after writing starts, mark the target untrusted; do not assume it is unchanged.
Repeat with a larger target to verify supported GPT backup-header relocation. Repeat with an undersized target and a mismatched logical sector size to confirm that Feclora rejects the target before writing.
1a. Two-machine partition-to-partition clone
Purpose: verify the partition-specific protocol-v2 path independently of whole-disk GPT handling.
Prerequisites: the same two-host TLS/READY/ARM setup as the disk-clone test, a disposable read-only source partition and a distinct disposable destination partition at least as large as the source, with matching logical sector size.
- On the Server, verify the selected source is a partition (lsblk TYPE=part), reports RO=1, is not mounted/in use, and is not ambiguous in the block inventory. Record its PARTUUID, parent disk identity, exact byte size and logical sector size.
- On the Client, independently identify a destination partition on a disposable disk. Verify its PARTUUID, parent disk identity, capacity and sector size. Never select the source partition’s parent/system disk as a destination.
- Create a unicast clone job and explicitly select Partition as the clone device type. Confirm the Server source selector contains only read-only partitions. The Client must select a local partition, not a whole disk.
- Complete READY and the separate Server ARM step. Confirm protocol-v2
session metadata identifies
device_type=partitionat both endpoints. - Wait for the bounded stream, SHA-256 terminal result and independent receiver read-back to complete. Both endpoints must report the same byte count and digest.
- Repeat with a destination partition larger than the source. Verify only the source partition byte range was overwritten and the destination’s trailing bytes were not changed. No GPT relocation or partition-table repair is expected for a partition clone.
- Repeat with a smaller destination, a disk selected as source, a partition selected as destination for a disk job, a mounted/in-use source and a mismatched logical sector size. Each case must fail before destination writes.
- Inject a disconnect after the receiver begins writing. Confirm the job fails, the destination is treated as untrusted, both journals retain the failure and no automatic destructive resume is attempted.
Do not infer two-host acceptance from the unit tests or a successful whole-disk clone.
2. Multi-client restore: unicast and multicast
Purpose: verify the persistent Server/Client restore workflow with more than one physical receiver.
Prerequisites: a verified image with its manifest authenticated through the configured trust mechanism in the selected repository, at least two disposable Client machines, enrolled identities, and a dedicated test network. Multicast additionally requires a network whose IGMP snooping and querier behavior has been independently configured and checked.
- Verify the image manifest and every referenced artifact in GTK before creating the deployment. The manifest and all artifacts must match their recorded SHA-256 digests. An independently trusted key; an encrypted artifact must decrypt/authenticate with the configured age identity. Do not treat SHA-256 alone as publisher authentication.
- Record each Client’s target disk identity, capacity, sector size and existing partition layout. Confirm all targets are disposable.
- For unicast, create a restore job for one selected Client and complete the READY, ARM, restore and read-back verification sequence. Repeat separately for the next Client.
- For multicast, create one restore job authorizing at least two Clients. Confirm each Client has selected and locally authorized its own target.
- Check the Server reports every intended Client READY before ARM. A missing or unexpected Client must prevent the operation from starting.
- Enter the multicast-specific confirmation only after the test network’s IGMP behavior has been verified. Do not infer multicast readiness merely from successful unicast traffic.
- Monitor per-Client progress and terminal state. Confirm every Client reports successful verification; one successful receiver does not prove the others completed.
- Reboot each receiver and inspect the resulting disk layout and bootability appropriate to the test image.
- Save the Server journal and each Client’s operation log.
3. Remote repository provider acceptance
The hardware-independent repository-manager test suite also covers concurrent registry mutation: simultaneous additions for different IDs must preserve both entries, a symlink substituted for the registry lock must be rejected, and a simulated registry-write failure during removal must leave the definition and its empty mountpoint intact. These tests protect Feclora’s local registry only; they are not tests of remote image publication. Remote image distribution follows a single-publisher / multi-reader contract: one Client publishes an image and multiple Clients may read/restore it concurrently.
Run this procedure independently for each configured SSHFS, NFS and SMB/CIFS endpoint. Use a dedicated test account, export or share and a disposable image. Do not reuse production credentials. S3 has a separate object-API acceptance procedure below; it is not a filesystem mount.
- Prepare the provider endpoint and provision credentials using the provider’s root-protected mechanism. Verify SSH host keys for SSHFS, NFS export ownership/mapping or SMB share permissions as appropriate.
- Add the repository in GTK with the correct provider, endpoint/share, remote path and access mode. Credential contents must never be pasted into GTK fields or stored in ordinary project configuration.
- Mount it through Feclora. Confirm GTK distinguishes
unmounted,mounted_unverified,identity_verifiedandunknown. The identity check reads mount metadata viafindmntwith a five-second subprocess timeout; timeout or malformed output must reportunknown, neverunmountedor verified.health_statemust remainunknowneven when source, filesystem type and access mode match. Inspection must not run stat/statvfs, path lookups, directory listings or any other remote filesystem I/O. A network outage may leave a mount identity record present; this is not evidence of remote availability. - Exercise the remote path with a real inventory/read operation after identity verification. Confirm that it completes (not merely that the mount is listed as verified), then open the repository image inventory. Confirm it lists only images from the selected verified repository, not files from the local directory beneath an unmounted mountpoint. While a controlled inventory scan holds its shared usage lease, attempt an unmount or definition update and confirm the exclusive lifecycle operation is refused. After the scan exits (including an injected scan error), confirm the lease is released and the lifecycle operation can be retried.
- For a read/write provider, have one Client capture and publish a small disposable test disk to that repository. Verify its manifest and artifact digests, artifact byte counts and cryptographic digests, then restore it to a disposable target and verify read-back.
- Using the committed image from step 5, have at least two other Clients read the same repository image and restore it concurrently to separate disposable targets. Verify each Client independently reports successful integrity and read-back checks, and confirm the remote image set remains unchanged. This exercises the single-publisher / multi-reader contract; do not test concurrent publishers.
- For a read-only mount, confirm inventory, inspection and verification work, and confirm capture/extraction controls are unavailable.
- For NFS, explicitly test the configured root-squash/ownership policy.
Root-owned manifest validation must remain enforced; a manifest mapped to
an anonymous UID is expected to be rejected.
8a. With the remote endpoint disconnected while its mount remains present, inspect the repository state. Confirm inspection remains bounded, reports only the locally observable mount identity and leaves health unknown. Confirm no automatic unmount, forced detach or lazy detach occurs. If
findmntis made to time out or return malformed output in a controlled test, the state must beunknownand the mount must remain untouched. - Unmount through Feclora, confirm the mount is gone, and verify the repository definition remains available for a later mount.
- Record provider version, mount options, identity/access-mode verification, actual I/O outcomes, throughput observations, and all failures. Do not record a passing identity check as a passing health check. Never include secrets in the report.
4. S3-compatible object repository acceptance
S3 is an HTTPS object API, not a mounted filesystem. Run this procedure against a disposable bucket or dedicated prefix on Garage, R2, AWS S3 or another supported S3-compatible service. Provision access keys through Feclora’s protected credential store; never put key material in the registry, test output or ordinary configuration.
- Add an S3 repository in GTK with the HTTPS endpoint (or provider default), region, bucket, prefix and protected credential reference.
- Run the repository connection check. Confirm bucket access is verified without creating, deleting or overwriting objects.
- Capture a small disposable disk image and publish it. Confirm every payload object is uploaded before its manifest, and that the manifest is the final commit marker.
- List the repository inventory. Confirm malformed, noncanonical or incomplete manifests are not presented as valid images.
- Download the image to a clean local staging directory. Verify artifact byte counts and SHA-256 digests against the manifest, then restore to a disposable target and verify read-back.
- Attempt to publish the same image ID again and confirm immutable existing objects are not overwritten. Repeat with a read-only repository and confirm upload is rejected.
- Exercise a multipart upload failure on a disposable large artifact. Confirm the incomplete multipart upload is aborted and no manifest is published. Also exercise a conditional-completion conflict to verify an existing object is preserved.
- If distributed capture/restore is in scope, run it through the normal Server/Client workflow and confirm payload staging, transfer integrity and repository usage leases. This does not turn the PXE server into an artifact relay; PXE clients continue to access their configured repositories directly.
- Record provider/API version, endpoint, bucket policy, object count, byte counts, digests, multipart behavior and all failures. Redact access keys and secret configuration.
Unit/API tests do not replace this live-provider acceptance. Record each provider as pass, fail or not run independently.
5. Interrupted operation, disconnect and restart recovery
This is destructive fault injection. Use a disposable source/target pair and an image whose loss is acceptable.
- Complete a normal baseline clone or restore and preserve its logs.
- Start a second operation using a different disposable target.
- After the receiver has demonstrably begun writing, interrupt the test network or stop the disposable peer. Do not interrupt a production system.
- Confirm the receiver reports failure/interruption rather than success and that the partial target is not presented as verified.
- Restore network connectivity. Confirm Feclora does not silently resume the old destructive operation.
- Restart the disposable Server service or host while the job is active in a separate run. Inspect the durable journal after restart.
- Confirm recovery reconstructs the last durable job/client state, marks an active job interrupted, and requires explicit operator reconciliation. Reconciliation must not recreate sessions or restart disk I/O.
- Reinitialize or replace the disposable target, then create a new job with fresh authorization and verify it end to end.
- Preserve both endpoints’ journals and record exactly when the failure was injected and how much data may have been written.
There is no rollback guarantee after the writer starts. The expected safe outcome is a failed/interrupted job, a destination treated as untrusted, and no automatic replay.
6. Repository lease and unmount protection
This test verifies that an active persistent restore owns its remote repository for the full service lifetime.
- Configure and verify a disposable read-only or read/write remote repository containing an image with valid manifest SHA-256 digests suitable for restoration.
- Create and start a remote-repository restore job with a disposable Client.
- Once the persistent Server service has acquired the repository usage lease, attempt to unmount the repository through GTK or the supported manager action.
- Confirm unmount is refused while the lease is held and the active restore continues to resolve the same verified repository.
- If safe for the test, simulate the mount disappearing outside Feclora. Attempt to remove the repository definition. Confirm removal is refused while the service still owns the lease.
- Allow the restore to reach a terminal state, then stop the persistent deployment service.
- Retry unmount and, if desired, definition removal. Confirm they now succeed.
- Record the job ID, repository ID, lease lifetime and each attempted action.
The expected protection is fail-closed: an active restore must not lose its repository definition or be unmounted through Feclora while its service holds the shared lease.
LUKS2 header inspection
Run against disposable LUKS2 containers on a test machine. This checks discovery only; it must not unlock, activate, repair or modify the container.
- Record the test device path and independently obtain its UUID and header metadata with the installed cryptsetup tools.
- Run Feclora storage inventory and confirm the
crypto_LUKSdevice is listed with LUKS2 version and UUID. Compare cipher, sector size where available, and keyslot/token/segment counts with the independent inspection. - Confirm token payloads, key material, passphrases and recovery secrets are never included in inventory output, GTK, logs or profiles.
- Repeat without cryptsetup and without sufficient read permissions; the inventory must report unavailable/permission-required rather than guessing.
- Confirm no
luksOpen, activation, repair, format or write operation occurs. - Confirm LUKS1 headers are not advertised as supported.
Mark not run until exercised against a real LUKS2 container on the target Fedora Live runtime. This inspection does not establish support for decrypted image capture, LVM-on-LUKS layouts or encrypted restore planning.
Results record
For each run, record:
- Feclora commit SHA and workflow status.
- Test date, operator and test case number.
- Host model, firmware mode, disk model/serial/capacity/sector size.
- Network topology, link speed and multicast/IGMP configuration where used.
- Repository provider, server version, filesystem/API version and mount mode.
- Job/session ID, image ID, byte counts, verification result and elapsed time.
- Failure injection point, observed terminal state and recovery action.
- Links or protected locations for redacted logs and journal exports.
- Outcome: pass, fail, or not run. Never mark a test passed from unit-test results alone.
7. Filesystem-aware partition capture and restore
Run each case on a disposable VM disk/partition formatted with the named
filesystem. Use the exact Partclone and filesystem-checker packages included
in the target Feclora Live image. Record package versions and tool paths.
Fedora 45 currently publishes Partclone 0.3.50-1.fc45; this is a repository
baseline observation, not a Feclora version pin. Before testing, record
rpm -q partclone e2fsprogs xfsprogs ntfs-3g dosfstools exfatprogs f2fs-tools
and confirm the expected executables with command -v. The Live image must
include exfatprogs and f2fs-tools for its declared exFAT and F2FS read-only
post-restore checks.
| Filesystem | Expected capture/restore utility | Post-restore check |
|---|---|---|
| ext2 / ext3 | partclone.extfs | e2fsck -f -n |
| ext4 | partclone.ext4 | e2fsck -f -n |
| XFS | partclone.xfs | xfs_repair -n |
| NTFS (including ntfs3 kernel FSTYPE) | partclone.ntfs | ntfsfix –no-action |
| FAT12 / FAT16 / FAT32 / vfat | partclone.fat | fsck.fat -n |
| exFAT | partclone.exfat | fsck.exfat -n |
| F2FS | partclone.f2fs | fsck.f2fs -n |
| Btrfs partition image | partclone.btrfs | btrfs check –readonly |
Btrfs uses the same filesystem-aware partition capture/restore path as other
filesystems: partclone.btrfs. The resulting image represents the Btrfs
filesystem on that partition, including its on-disk subvolume/snapshot metadata;
Feclora does not create separate images for each subvolume or implement a
parallel snapshot-cloning engine. The source must be quiescent and unmounted
for a consistent Partclone capture. Mounted-subvolume inventory is diagnostic
metadata, not a separate capture requirement.
For each row:
- Create a disposable filesystem with representative files, directories, permissions/metadata supported by that filesystem, and known checksums.
- Ensure the source is in a safe, quiescent state. Record how Feclora prevents or detects mounted/in-use writes and filesystem inconsistency.
- Capture a partition image and confirm the selected engine is the expected Partclone executable. Record artifact format, filesystem identifier, size and SHA-256.
- Restore to an equal-or-larger disposable partition with compatible logical sector geometry. Confirm Feclora runs the declared read-only checker.
- Mount the restored filesystem read-only where supported and compare file contents, directory structure and metadata that the filesystem preserves.
- Repeat with the matching Partclone executable deliberately unavailable. Confirm capture selects raw dd explicitly, and raw restore verifies the destination by read-back rather than claiming filesystem-aware capture.
- Repeat with an unknown FSTYPE and confirm the raw fallback is selected. A missing checker must reject a Partclone restore before target writes.
- Record pass/fail/not-run separately for each filesystem and tool version. Unit tests and command-map coverage alone do not constitute acceptance.
- Confirm GTK capability inventory reports the installed Partclone
executables and filesystem checkers independently. Missing
fsck.exfatorfsck.f2fsmust be visible as a missing checker; a Partclone restore for that filesystem must fail before starting its target writer.
Do not mark a filesystem supported for a release until its real capture/restore round trip and integrity checks have passed on the target runtime.
8. Btrfs subvolume and snapshot discovery acceptance
Run this check in a disposable VM with a Btrfs filesystem already mounted and containing at least one ordinary subvolume and one snapshot. Feclora discovery must not mount, unmount, create, delete or otherwise modify Btrfs objects.
- Record the filesystem UUID, mounted target, subvolume UUIDs and parent UUIDs using the native Btrfs tools as the independent reference.
- Run Feclora storage inventory and confirm it reports each already-mounted Btrfs target, subvolume ID, UUID, path and parent UUID.
- Confirm ordinary subvolumes with no parent UUID are classified as subvolumes, and snapshot descendants with a parent UUID are classified as snapshots. Received UUID provenance is recorded separately and must not, by itself, classify a received subvolume as a snapshot. Names alone must not determine snapshot status.
- Repeat with a nested Btrfs mount and confirm it is inventoried separately.
- Repeat without btrfs-progs or findmnt available and confirm the subvolume scan reports unavailable rather than guessing.
- Confirm the operation is read-only and bounded; no mount or filesystem mutation command is issued. Record tool versions and the inventory output.
Mark not run until exercised against a real mounted Btrfs filesystem. This inventory does not establish that snapshot capture or restore is supported.
9. Capture publication failure and rollback
Run against a disposable local repository directory. This verifies the final artifact name is not left visible when capture reports a failure after its atomic hard-link publication step.
- Capture a small disposable partition image and confirm the artifact is published only after the producer exits successfully.
- Inject a failure into the repository-directory
fsyncimmediately after the final hard link is created. Confirm capture reports failure and removes the final name only if it still identifies the exact inode created by that capture. - Repeat while replacing the final name with a different inode before rollback. Confirm cleanup does not unlink the replacement.
- Confirm the attempt’s private staging directory is cleaned up where possible, no manifest can expose the failed artifact, and no unrelated published artifact is removed.
- Record the injected failure and directory contents. This software test does not replace remote-provider interruption acceptance.
10. Artifact-writer rollback ownership
Run the low-level artifact-writer failure-injection test on a disposable local repository directory.
- Inject a failure while removing the writer’s private temporary name after the final hard link has been created.
- Before rollback runs, replace the final name with a different inode.
- Confirm rollback preserves the replacement and removes only the temporary name still owned by the failed writer.
- Confirm the operation reports failure and does not claim that the replacement contains the attempted artifact.
- Do not generalize this local filesystem test to remote provider guarantees;
repeat provider-specific interruption checks separately.
11. Interrupted capture staging residue
A process or host crash can bypass Python cleanup and leave a private
.feclora-capture-* directory or a low-level .feclora-*.tmp file in the
repository. These names identify staging data, not a committed image. Feclora
does not automatically delete, resume, promote or publish such residue: age,
filename and PID alone cannot prove that a shared-repository writer is inactive
or owns a particular file.
For a controlled recovery on a disposable repository:
- Stop new captures targeting the repository and establish, using the operator’s process/service controls, that no capture writer is still active. Do not rely only on the age of a staging entry or a recorded PID.
- Inspect the repository and staging entries without following symlinks. Treat every file inside an interrupted staging directory as incomplete or untrusted, even if it appears to have the expected size.
- Do not rename staging data into the published image namespace, create a manifest for it, or resume a partial stream. Start a fresh capture instead.
- Remove confirmed abandoned staging entries only as an explicit operator action after independently establishing that no writer can still use them. If ownership or inactivity is uncertain, preserve the entries and escalate for manual review.
- Verify that the normal image inventory contains no image for the failed attempt and that unrelated committed images remain intact.
This procedure is intentionally conservative. Automated stale-entry cleanup, cross-client writer coordination and crash-resume are not implemented. Record the repository, host, Feclora commit, residue names and operator decision; never include credentials or secret configuration.