Skip to content

Direct download template size is incorrect #13916

Description

@kiranchavala

problem

Direct download template size is incorrect

versions

ACS 4.22.1

The steps to reproduce the bug

  1. Create a metalink file

Example

<?xml version="1.0" encoding="UTF-8"?>
<metalink version="3.0" xmlns="http://www.metalinker.org/">
  <files>
    <file name="ubuntu24-cloud-image-root-password-with-tools.qcow2">
      <size>10485760</size>
      <resources>
        <url type="nfs" preference="100">nfs://10.0.35.201/export/templates/ubuntu24-cloud-image-root-password-with-tools.qcow2</url>
      </resources>
    </file>
  </files>
</metalink>

  1. Expose it via http server

python3 -m http.server 8081 --bind 0.0.0.0

  1. Register it a direct download template in cloudstack

  2. Check the size

Image

...

What to do about it?

The correct size of the direct download template should be displayed

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions