Closed opnmind closed 7 months ago
@opnmind In which region are you experiencing this issue?
I will close it temporarily, If you have found a problem that seems similar to this, please open a new issue and show more infos, so we can capture all the details necessary to investigate further.
Hello,
during some tests on newer regions, we realized the command for requesting the nic's for the created server failed everytime.
For newer regions the docs finger pointing to a different request (https://support.huaweicloud.com/intl/zh-cn/api-ecs/ecs_06_0009.html)
From:
GET /v1/{project_id}/cloudservers/{server_id}/os-interface
with:
GET /v2.1/{project_id}/servers/{server_id}/os-interface
and then the plugin works fine.
https://github.com/huaweicloud/packer-plugin-huaweicloud/blob/8fbf73bc12096db9415c77b5277039af3be6f5eb/builder/ecs/step_run_source_server.go#L163C32-L163C32
Please update to the latest huaweicloud-sdk-go-v3 and switch there https://github.com/huaweicloud/huaweicloud-sdk-go-v3/blob/1cde6ad8843a5a17009446497fbf82cfdad75172/services/ecs/v2/ecs_meta.go#L638 the above described API path.