apache / apache/cloudstack

Optional templateid param fails for KVM VM import

Đang mở Phù hợp với người mới
#13,067 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Java
Star
3.1k
Fork
1.4k
Merge trung bình
6 ngày 19 giờ
Pull request đã merge (30 ngày)
32

Mô tả

### problem

When importing a KVM VM via API and if a template is not specified, import fails with error,
**Template is needed and unable to use default template for hypervisor KVM**
Even though templateid parameter is specified as optional in the API documentation:
https://cloudstack.apache.org/api/apidocs-4.22/apis/importUnmanagedInstance.html

In UI, template is a required field though.

Image

Documentation doesn't talk about this restriction on KVM
https://docs.cloudstack.apache.org/en/4.22.0.0/adminguide/virtual_machines/importing_unmanaging_vms.html

This is more of a documentation issue if the following block can not be updated:
https://github.com/apache/cloudstack/blob/4.22.0.0/server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java#L1605-L1607

### versions

4.22; Maybe other versions as well
Import VM

### The steps to reproduce the bug

_No response_

### What to do about it?

Either update the documentation or remove the restriction to use default dummy template.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với API importUnmanagedInstance đã được tài liệu hóa và docs/en/4.22.0.0/adminguide/virtual_machines/importing_unmanaging_vms.html, sau đó kiểm tra UnmanagedVMsManagerImpl.java quanh các dòng 1605-1607 để xác nhận giới hạn KVM. Trao đổi với các maintainer để xác định kết quả dự kiến là chỉ thay đổi tài liệu hay thay đổi mã; công việc được xem là hoàn tất khi tài liệu API và tài liệu dành cho quản trị viên mô tả chính xác hành vi của templateid.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
documentation
Loại issue
Tài liệu
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
68/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.