Commit 45ce015
committed
Merge upstream/4.22 + address Copilot feedback on #12898
Conflict in LibvirtTakeBackupCommandWrapper.java was in the
NAS-backup command invocation block — upstream switched to a
String[] literal and dropped cmdArgs; resolved by keeping our
cmdArgs list (needed for conditional compression / encryption /
bandwidth flags) and folding in upstream's timeout var.
Copilot review fixes:
- Detail keys (compression / encryption / encryption_passphrase /
bandwidth_limit / integrity_check) now declared as constants
in the wrapper instead of being scattered as string literals.
- encrypt_backup() in nasbackup.sh now preserves -c when COMPRESS
is true; previously the encrypt-step re-convert produced an
uncompressed-but-encrypted qcow2 and silently discarded the
earlier compression work.
- verify_backup() now passes the LUKS secret via --object +
--image-opts when ENCRYPT_PASSFILE is set, so qemu-img check
can actually open encrypted backups (previously --verify
always failed when encryption was enabled).
TakeBackupCommand.setDetails() is already null-safe (this.details
= details != null ? details : new HashMap<>()) — no change needed.
Note (Copilot): one further suggestion was to promote the detail
keys to a class shared between MS and agent. Held off for now to
keep the diff focused; can do as a follow-up if maintainers want.279 files changed
Lines changed: 10176 additions & 4073 deletions
File tree
- agent
- conf
- src/main/java/com/cloud/agent/properties
- api/src
- main/java
- com/cloud
- agent/api/to
- ha
- host
- projects
- storage
- user
- org/apache/cloudstack
- api
- command
- admin
- ha
- vm
- user
- account
- backup
- bucket
- job
- vm
- volume
- response
- backup
- extension
- resourcelimit
- storage
- object
- volume
- test/java/org/apache/cloudstack/api/command/test
- core/src
- main/java
- com/cloud
- agent/api
- routing
- storage
- network
- storage/template
- org/apache/cloudstack
- backup
- direct/download
- storage/command
- test/java/com/cloud
- agent/resource/virtualnetwork
- network
- engine
- api/src/main/java/org/apache/cloudstack/engine/orchestration/service
- components-api/src/main/java/com/cloud
- ha
- resource
- orchestration/src/main/java
- com/cloud
- agent/manager
- vm
- org/apache/cloudstack/engine/orchestration
- schema/src
- main
- java
- com/cloud
- dc/dao
- host/dao
- network/dao
- storage/dao
- upgrade
- dao
- vm/dao
- org/apache/cloudstack
- backup/dao
- storage/datastore/db
- resources/META-INF/db
- views
- test/java/com/cloud/upgrade
- storage
- snapshot/src
- main/java/org/apache/cloudstack/storage
- snapshot
- vmsnapshot
- test/java/org/apache/cloudstack/storage
- snapshot
- vmsnapshot
- src/main/java/org/apache/cloudstack/storage
- allocator
- image
- volume/src/main/java/org/apache/cloudstack/storage/volume
- framework
- extensions/src
- main/java/org/apache/cloudstack/framework/extensions
- api
- manager
- test/java/org/apache/cloudstack/framework/extensions
- api
- manager
- jobs/src/main/java/org/apache/cloudstack/framework/jobs/dao
- packaging
- el8
- suse15
- plugins
- backup/nas/src/main/java/org/apache/cloudstack/backup
- hypervisors
- baremetal
- src/main/java/com/cloud/baremetal/manager
- hyperv/src/main/java/com/cloud/ha
- kvm/src
- main/java
- com/cloud
- ha
- hypervisor/kvm
- resource
- wrapper
- storage
- org/apache/cloudstack/kvm/ha
- test/java/com/cloud/hypervisor/kvm/resource
- wrapper
- simulator/src/main/java/com/cloud/ha
- vmware/src/main/java/com/cloud/ha
- integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/actionworkers
- network-elements
- elastic-loadbalancer/src/main/java/com/cloud/network/lb
- internal-loadbalancer/src/main/java/org/apache/cloudstack/network/lb
- nsx/src
- main/java/org/apache/cloudstack
- agent/api
- resource
- service
- test/java/org/apache/cloudstack
- resource
- service
- storage
- object/minio/src
- main/java/org/apache/cloudstack/storage/datastore/driver
- test/java/org/apache/cloudstack/storage/datastore/driver
- volume
- default/src/main/java/org/apache/cloudstack/storage/datastore/driver
- linstor/src/main/java/com/cloud/hypervisor/kvm/storage
- primera/src/main/java/org/apache/cloudstack/storage/datastore/adapter/primera
- scaleio/src/main/java/org/apache/cloudstack/storage/datastore/client
- storpool/src/main/java/com/cloud/hypervisor/kvm/storage
- scripts/vm/hypervisor/kvm
- server/src
- main/java
- com/cloud
- api
- query
- dao
- vo
- configuration
- consoleproxy
- ha
- network
- router
- vpc
- projects
- resourcelimit
- resource
- server
- storage
- download
- snapshot
- template
- user
- vm
- snapshot
- org/apache/cloudstack
- backup
- ha
- task
- storage
- object
- volume
- vm
- test/java
- com/cloud
- api/query
- dao
- ha
- hypervisor
- network/vpc
- resourcelimit
- resource
- storage
- snapshot
- template
- user
- vm
- snapshot
- vpc
- org/apache/cloudstack
- backup
- storage
- object
- volume
- vm
- services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage
- resource
- template
- systemvm/debian
- opt/cloud/bin/cs
- root/health_checks
- test/integration
- component/maint
- smoke
- ui
- public/locales
- src
- components/view
- config/section
- views
- compute
- wizard
- extension
- infra
- network
- storage
- tools
- utils/src
- main/java
- com/cloud/utils
- net
- storage
- org/apache/cloudstack/utils/redfish
- test/java/com/cloud/utils/net
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
811 | 835 | | |
812 | 836 | | |
813 | 837 | | |
| |||
885 | 909 | | |
886 | 910 | | |
887 | 911 | | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
888 | 917 | | |
889 | 918 | | |
890 | 919 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
50 | 57 | | |
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
58 | 68 | | |
59 | 69 | | |
60 | 70 | | |
| |||
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
85 | 103 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 42 | | |
40 | | - | |
41 | 43 | | |
42 | 44 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| 195 | + | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| |||
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
254 | | - | |
255 | | - | |
| 256 | + | |
| 257 | + | |
256 | 258 | | |
257 | | - | |
| 259 | + | |
258 | 260 | | |
259 | | - | |
| 261 | + | |
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
| |||
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
276 | | - | |
| 278 | + | |
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
281 | | - | |
| 283 | + | |
282 | 284 | | |
283 | 285 | | |
284 | | - | |
| 286 | + | |
285 | 287 | | |
286 | | - | |
287 | 288 | | |
288 | 289 | | |
289 | | - | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | 293 | | |
295 | 294 | | |
296 | 295 | | |
| 296 | + | |
297 | 297 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
0 commit comments