You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ALICLOUD_REGION or ALICLOUD_REGION_ID can be typically be used to specify the ALICLOUD region, when required, but this can also be configured in the footmark config file
The issue:
The specified LoadBalancerId does not exist.
The output:
raise exception\naliyunsdkcore.acs_exception.exceptions.ServerException: HTTP Status: 404 Error:InvalidLoadBalancerId.NotFound The specified LoadBalancerId does not exist. RequestID: FF49FF87-09FA-41EE-8444-154C53E6E619\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1
# handling region parameter which is required by common utils file to login but not required by this module
module.params['alicloud_region'] = 'cn-hangzhou
The HK region is hardcoded.
Suggestion:
The region should be specified by the user and the HK should be used by default.
Description:
We are trying to add the new ECS instance to the existing SLB with Ansible.
https://www.diewufeiyang.com/ansible/en/modules/ali_slb_server_module.html
The issue:
The specified LoadBalancerId does not exist.
The output:
The code:
playbooks/slb_update.yml
Similar issue:
#143
The solution:
I found the issue in the Python script:
https://github.com/alibaba/alibaba.alicloud/blob/aa6b0eaab7150abe294bca4e29e9239f0c843831/lib/ansible/modules/cloud/alicloud/ali_slb_server.py
The HK region is hardcoded.
Suggestion:
The region should be specified by the user and the HK should be used by default.
alicloud_region should be possible to define in ali_slb_server section in Ansible playbook
or
the region environment should be respected.
Temporary solution:
Please go to the Ansible modules directory.
cd /usr/local/lib/python3.6/site-packages/ansible/modules/cloud/alicloud
find the ali_slb_server.py file and go to the 386 line to change the region variable.
Regions IDs:
https://www.alibabacloud.com/help/doc-detail/40654.ht
The text was updated successfully, but these errors were encountered: