Skip to content

Bulk bug fixes (0.9.12) - #200

Merged
metharda merged 33 commits into
mainfrom
fix-0.9.12
Nov 25, 2026
Merged

metharda merged 33 commits into
mainfrom
fix-0.9.12

Conversation

@metharda

Copy link
Copy Markdown
Owner

Bulk bug fixes from the 0.9.11 audit: 63 issues (#110-#156, #180-#195) plus the 26 low-severity findings in #199. Every fix was live-tested on a Debian 13 host; the full suite passes as root and in CI's non-root container.

Not changed (by design or not reproducible, explained on each issue): #154, #183 (documented), #184, the ISO-size half of #143, #199 findings 1 and 17.

Decisions: backups count toward a user's disk_gb quota (#132); image checksums are taken only from the official server (#136).

Fixes #110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
199

Admins now take the per-VM lock of every VM their command changes (all
names of create a,b), and a restore stages its disk under a per-process
name. stage_iso handles short writes and checks the copied size; a staged
ISO counts against the user's disk quota. restore-as-new leaves the size
check to the module. A late SIGALRM no longer raises outside the write,
and a reservation is not removed while its module still runs. The client
reads the server's answer when the request could not be sent, and
create-iso accepts -o for group users.

Fixes #119 #120 #135 #143 #186 #187 #188 #189
doctor --fix never rewrites a disk that isn't shut off (prepare_vm_disk
checks too), leaves autostart off on a restored static-IP copy, reports a
move, df or NFS repair that failed, and keeps leftovers that are in use or
were just copied. fix-lock refuses non-dcvm domains, never declares a raw
disk qcow2, stops when libvirt can't stop the VM and never SIGKILLs QEMU.
The storage check can no longer hang on one guest.

Fixes #113 #114 #118 #141 #142 #151 #195
ports setup keeps skipped VMs' rows and reserves their ports; ports apply
checks the VM exists and that no other VM holds the address; cleanup only
takes DNAT rules on dcvm's ranges or saved mappings; leases_table survives
an inactive network; guest hostnames are shown without control characters;
domain_macs fails when one domain's interfaces can't be read; dhcp renew
releases only the leases of VMs whose link it cuts.

Fixes #122, #123, #129, #138, #139, #140, #156
…sums, build lock, installer base ownership, uninstall survivors (#125 #126 #127 #136 #137 #145 #154 #155 #191 #192 #193 #194)

# Conflicts:
#	CHANGELOG.md
… static IP by MAC, decimal numbers (#115 #130 #131 #134 #190)

# Conflicts:
#	CHANGELOG.md
…ckups in the disk quota, ssh-setup trust, import static IP, delete ids (#111 #112 #116 #117 #121 #124 #132 #133 #182 #185)

# Conflicts:
#	CHANGELOG.md
#	docs/backups.md
delete validates the name before it becomes a path, checks protected
first, refuses foreign domains, and clears a gone VM's record, folder,
static IP and port forwards only when libvirt answers. delete --all
stops when libvirt stops answering. The reaper sends gone VMs through
delete. start/stop/restart refuse an empty name. owner needs a dcvm
user; user remove and a reused UID at user add hand old VMs to root.
info reports only host-side addresses. vnc enable/disable leave SPICE
alone and get the user's terminal.

Fixes #110 #128 #144 #146 #147 #148 #149 #152 #153 #180 #181
… network check, reaper deletes fully, delete --all with libvirt down, owners follow accounts, SPICE kept (#110 #128 #144 #146 #147 #148 #149 #152 #153 #180 #181)

# Conflicts:
#	CHANGELOG.md
…st (#134)

systemd stopped the background job with the request's service, so a user's
running VM kept reading the seed with secrets until it was powered off.
self-update refreshes the installed bash completion; pre-revert fails when
a unit stays active and revert then restores the services; quota refuses
when usage can't be read; per-user limits win over global lines; export
refuses the caller's own output file; fix-lock reads the install config
and removes only the disk's own lock; ports setup reports a mapping file
it could not write; create undoes a half-made VM by the UUID it gave it
and refuses a leftover disk; root's create and create-iso take the
server's per-VM lock; tests reject exit 126/127 as expected failures and
--quick runs the help and mirror tests.
…reads, export target, fix-lock config, update completion and units)
Fedora docker is moby-engine, the Arch keyring is retried, -k mariadb is
set up, template checks report only real corruption, an interrupted dhcp
renew relinks the VMs, fix-lock takes flags first, completion lists only
dcvm's VMs and every command, status refuses a VM name, import checks
mktemp and honours --yes, the storage check archives to a root-only host
folder instead of the NFS share, uninstall removes limits, logs and state,
and tables and step lines print guest text without escape sequences.

Refs #199
…odes, renew trap, completion, storage archive on host, uninstall leftovers, escaped table cells)

# Conflicts:
#	CHANGELOG.md
#	lib/utils/fix-lock.sh
This was referenced Nov 25, 2026
@metharda
metharda deleted the fix-0.9.12 branch November 25, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[HIGH] dcvm delete --all wipes every VM folder+disk on a transient libvirt failure (even protected VMs)

1 participant