You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
systemvm-template: support on-demand download during setup and registration (#11656)
Bundling all hypervisor SystemVM templates in release packages simplifies installs but inflates build time and artifact size. This change enables downloading templates on demand when they’re not found after package installation. The download path is wired into both cloud-setup-management and the existing SystemVM template registration flow.
For connected or mirrored environments, a repository URL prefix can be provided to support air-gapped setups: pass --systemvm-templates-repository <URL-prefix> to cloud-setup-management, or set system.vm.templates.download.repository=<URL-prefix> in server.properties for post-setup registration.
If templates are already present (bundled or preseeded), behavior is unchanged and no download is attempted.
---------
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
print(f"ERROR: URL or filename not found for {template} System VM template in metadata.")
134
+
sys.exit(1)
135
+
else:
136
+
print(f"ERROR: No metadata found for {template} System VM template.")
137
+
sys.exit(1)
138
+
returntemplate_metadata_list
39
139
40
140
if__name__=='__main__':
41
141
initLoging("@MSLOGDIR@/setupManagement.log")
@@ -45,6 +145,16 @@ if __name__ == '__main__':
45
145
parser.add_option("--https", action="store_true", dest="https", help="Enable HTTPs connection of management server")
46
146
parser.add_option("--tomcat7", action="store_true", dest="tomcat7", help="Depreciated option, don't use it")
47
147
parser.add_option("--no-start", action="store_true", dest="nostart", help="Do not start management server after successful configuration")
148
+
parser.add_option(
149
+
"--systemvm-templates",
150
+
dest="systemvm_templates",
151
+
help="Specify System VM templates to download: all, kvm-aarch64, kvm-x86_64, xenserver, vmware or comma-separated list of hypervisor combinations (e.g., kvm-x86_64,xenserver). Default is kvm-x86_64.",
152
+
)
153
+
parser.add_option(
154
+
"--systemvm-templates-repository",
155
+
dest="systemvm_templates_repository",
156
+
help="Specify the URL to download System VM templates from."
0 commit comments