Marcus,
(1) cloud-install-sys-tmplt update the template with max(id)
select max(id) from cloud.vm_template where type = \"SYSTEM\" and
hypervisor_type = \"KVM\" and removed is null"`
(2) upgrade process update the template with specified name. in
Upgrade410to420.java
pstmt = conn.prepareStatement("select id from `cloud`.`vm_template` where
name like 'systemvm-xenserver-4.2' and removed is null order by id desc
limit 1");
We are discussing in another thread "git commit: updated refs/heads/master
to 9fe7846". Please join us.
-Wei
2013/6/7 Marcus Sorensen <[email protected]>
> How does cloudstack know which template is the latest system vm? Does
> it match on name or something? From what I have gathered in the
> upgrade docs, you simply register a new template, like any other, and
> run a convenience script that restarts your system vms. But I don't
> gather from this how cloudstack knows it's a system template (and
> further THE system template).
>