Skip to content

All templates from different zones and hypervisors are availible for reinstall VM #7560

Closed

Description

@top-secrett
ISSUE TYPE
  • Bug Report
CLOUDSTACK VERSION
4.18.0.0
CONFIGURATION

Two anvanced zones:

  • xcp-ng
  • VMware
SUMMARY

We have two zones with different hypervisors, but templates from all zones are available for each other when reinstall VM
image
image
image
image

Activity

  1. kiranchavala commented on May 29, 2023

    @kiranchavala
    Member

    @DaanHoogland this looks like a bug as the listTemplates api call is not passing the zone id when a user tries to restore a vm (https://cloudstack.apache.org/api/apidocs-4.18/apis/restoreVirtualMachine.html)

    I think we should list only templates that are active in the zone and also based on the vm zone id

    I have tried this with a normal user account and it lists all the templates

    https://cloudstack.apache.org/api/apidocs-4.18/apis/listTemplates.html

    http://<>:8080/client/api/?listall=true&templatefilter=executable&showicon=true&command=listTemplates&response=json

  2. self-assigned this
    on May 29, 2023
  3. self-assigned this
    on May 30, 2023
  4. added this to the 4.18.1.0 milestone on May 30, 2023
  5. moved this to Triaged in ACS Backlogon Jun 8, 2023
  6. linked a pull request that will close this issueFilter templates in vue #7739on Jul 11, 2023
  7. DaanHoogland commented on Jul 11, 2023

    @DaanHoogland
    Contributor

    @top-secrett if you can please test #7739?

  8. top-secrett commented on Jul 28, 2023

    @top-secrett
    Author

    @DaanHoogland sorry, but I don't know how to test it

  9. DaanHoogland commented on Jul 28, 2023

    @DaanHoogland
    Contributor

    @DaanHoogland sorry, but I don't know how to test it

    ok, we'll have to wait till someone else does then

  10. zap51 commented on Jul 29, 2023

    @zap51
    Contributor

    @DaanHoogland I tested, LGTM. Templates present in different zones are no longer shown during reinstall.

  11. DaanHoogland commented on Jul 31, 2023

    @DaanHoogland
    Contributor

    fixed in #7739

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions