Hi,

The command replaces the template on secondary storage.
However, if the template has been used before, the old template has been
copied to primary storage. When deploy a new router on the same primary
storage, cloudstack will NOT copy the template from secondary storage to
primary storage, therefore the new router still uses the old template.

As a workaround, Please remove the corresponding in template_spool_ref
table.

-Wei

On Tue, 5 Dec 2023 at 17:11, Frederic Larcher
<[email protected]> wrote:

> Hi Wei,
>
> Thanks for your reply.
>
> I haven't, but I can't see which one to update. There is only the
> router.template.KVM that seems to change the name, but the template has the
> same name as the previous template. I have added it with this command:
> /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
> -m /mnt/secondary -u 10.10.10.10/files/systemvm-updated.qcow2.bz2 -h kvm
> -F
>
> That is what I found on the global settings:
> router.template.kvm -- Name of the default router template on KVM. --
> Advanced -- SystemVM Template (KVM)
>
> I have replaced the old template, but I don't understand how the changes
> made to this template do not exist in the new SystemVMs and routers
> created. It looks like it is still using the old one even though everything
> has been updated (DB, Secondary storage, template) with the new template ID.
>
>
> Kind regards,
>
> Frederic Larcher
> Technical Consultant
> 0161 537 4980
> [email protected]
> http://www.quadris.com/
> Innovation House, 12-13 Bredbury Business Park
> Bredbury Park Way, Bredbury, Stockport, SK6 2SN
> Frederic Larcher​​​​
> Technical Consultant
> 0161 537 4980 <0161%20537%204980>
> [email protected]
> www.quadris.com
> Innovation House, 12‑13 Bredbury Business Park
> Bredbury Park Way, Bredbury, Stockport, SK6 2SN
> -----Original Message-----
> From: Wei ZHOU <[email protected]>
> Sent: Monday, December 4, 2023 9:22 AM
> To: [email protected]
> Subject: Re: VR webserver.service apache2
>
> Hi,
>
> Have you updated the global configuration "router.template.*" ?
>
> -Wei
>
> On Mon, 4 Dec 2023 at 10:18, Frederic Larcher
> <[email protected]> wrote:
>
> > Hi,
> >
> > I have made the requested changes from the Github pull 7982 on a
> > SystemVM template (that should fix our issue with the web service
> > failing) on ACS 4.15.2, added it to our Secondary storage server, and
> > created a new SystemVM from it. However, this new VM doesn’t have the
> changes.
> >
> > This is what I have on the SystemVM template:
> > [image: A computer screen with white text Description automatically
> > generated]
> >
> >
> >
> > It is identical as the Git pull:
> >
> > [image: image]
> >
> > Problem is that on a new SystemVM I have just recreated, it is still
> > using the old config:
> >
> > [image: image]
> >
> >
> >
> > I’m a bit lost. I have used the right command to upload this SystemVM,
> > so I don’t understand why the config files are different between the
> > VM and the template. Guess I am missing something?
> >
> > Any help would be appreciated, thanks.
> >
> >
> > Frederic Larcher​​​​
> > Technical Consultant
> > 0161 537 4980 <0161%20537%204980>
> > [email protected]
> > http://www.q/
> > uadris.com%2F&data=05%7C01%7CFrederic.Larcher%40quadris.com%7C84f50d49
> > 8e334d0c34b808dbf4aa9797%7Cf1d6abf3d3b44894ae16db0fb93a96a2%7C0%7C0%7C
> > 638372785756365994%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjo
> > iV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aXGcUUXn
> > sXb0f0wfxlR2m7HH9j%2BcMthdzvMVZZnZ5uo%3D&reserved=0
> > Innovation House, 12‑13 Bredbury Business Park Bredbury Park Way,
> > Bredbury, Stockport, SK6 2SN
> >
>

Reply via email to