Skip to content

Register new templates are not download on new deployment #11341

Closed

Description

@slavkap

problem

If the system VMs are not created immediately, the registered templates, when you enable the Zon,e are not downloaded (left in Active state)

Image Image Image

The NFS service wasn't running on my agent host, and the system VMs were not created immediately. After fixing the problem, the templates are left in an Active state.

versions

main branch

The steps to reproduce the bug

On a new deployment, after the zone configuration is complete, a new window appears allowing you to select which templates to register.
Before enabling the zone, stop the NFS service on the agent host.
Then, enable the zone — CloudStack will attempt to create the system VMs.
After a few retries to create the SSVM, start the NFS service on the agent host.
Once the system virtual machines are successfully created and running, the request that should download the templates is not being triggered.

What to do about it?

No response

Activity

  1. sureshanaparti commented on Jul 30, 2025

    @sureshanaparti
    Contributor

    @slavkap can you check this in 4.20 ?

  2. slavkap commented on Jul 30, 2025

    @slavkap
    ContributorAuthor

    @sureshanaparti, I'll try, but I don't have much time today

  3. kiranchavala commented on Jul 30, 2025

    @kiranchavala
    Member

    @slavkap The cloud-imagae template only gets downloaded when the ssvm is in running state

  4. slavkap commented on Jul 30, 2025

    @slavkap
    ContributorAuthor

    @kiranchavala, yes, I know, but this leaves only garbage in cases like this

  5. shwstppr commented on Jul 31, 2025

    @shwstppr
    Contributor

    Not sure but will restarting the SSVM will start the download of such templates? @kiranchavala @slavkap

  6. yadvr commented on Jul 31, 2025

    @yadvr
    Member

    Sounds like a bug, templates should not be in Ready state when ssvm isn’t available and should trigger to be downloaded once an ep is available.

  7. slavkap commented on Jul 31, 2025

    @slavkap
    ContributorAuthor

    @shwstppr, in my case, the templates never started downloading while the SSVM was running. The issue turned out to be with the NFS service on the host. CloudStack attempted to recreate the SSVM around 10 times before I resolved the problem. Once the system VMs were running properly, the templates remained in the "Active" state — and they still are, as I'm continuing to work in the same environment.

  8. DaanHoogland commented on Aug 6, 2025

    @DaanHoogland
    Contributor

    I am not sure where we discussed that, but did you build the stack with simulator enabled @slavkap ?

  9. nvazquez commented on Aug 8, 2025

    @nvazquez
    Contributor

    Hi @slavkap @DaanHoogland @rohityadavcloud - as per my testing on 4.21 RC1, after Basic zone addition I can still see the issue. In my tests the only templates that got into Ready state were the default CentOS and System VM template. The other selected templates failed with No route to host and remain in Not Ready state:

    Image Image

    4.21 RC2 contains a fix for Advanced zone creations, will verify but I suspect the same issue may still be present

  10. slavkap commented on Aug 8, 2025

    @slavkap
    ContributorAuthor

    @DaanHoogland, sorry for the late reply. No I use only to skip the test flag when packaging.
    Thank you for testing this @nvazquez! I forgot to metion here that I'm using in this case basic zone.

  11. nvazquez commented on Aug 8, 2025

    @nvazquez
    Contributor

    After adding Advanced zone on 4.21 RC2 I'm not hitting the issue, perhaps I've done something wrong while adding the Basic zone, will double check

    Image
  12. added this to the unplanned milestone on Aug 19, 2025
  13. added theissue type on Aug 19, 2025
  14. DaanHoogland commented on Aug 19, 2025

    @DaanHoogland
    Contributor

    @slavkap could you check this in 4.20 and on latest main to pinpoint it?

  15. slavkap commented on Aug 22, 2025

    @slavkap
    ContributorAuthor

    Hi all, with RC5, the templates were downloaded. I'll try to find time to check this on 4.20 and will open another issue if there is a problem. Closing this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions