Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Softlayer sl_vm.py uses a hard coded list of data centers #32387

Closed
TroyDodsworth opened this issue Oct 31, 2017 · 2 comments
Closed

Softlayer sl_vm.py uses a hard coded list of data centers #32387

TroyDodsworth opened this issue Oct 31, 2017 · 2 comments
Labels
affects_2.3 This issue/PR affects Ansible v2.3 bot_closed bug This issue/PR relates to a bug. cloud collection:community.general collection Related to Ansible Collections work has_pr This issue has an associated PR. module This issue/PR relates to a module. needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md support:community This issue/PR relates to code supported by the Ansible community.

Comments

@TroyDodsworth
Copy link

ISSUE TYPE
  • Bug Report
COMPONENT NAME

cloud/softlayer/sl_vm.py

ANSIBLE VERSION

2.3.2

CONFIGURATION
SUMMARY

Trying to use this module to provision node on the wdc06 Softlayer data center produces the following error:
value of datacenter must be one of: ams01,ams03,che01,dal01,dal05,dal06,dal09,dal10,fra02,hkg02,hou02,lon02,mel01,mex01,mil01,mon01,osl01,par01,sjc01,sjc03,sao01,sea01,sng01,syd01,tok02,tor01,wdc01,wdc04, got: wdc06"}

I have reviewed the source code and the data center list is currently hard coded, can you please extend this to include wdc06

STEPS TO REPRODUCE

Attempt to provision a new VM using the wdc06 data center.
sl_vm:
hostname: ""
domain: ""
datacenter: "wdc06"
tags: ""
image_id: ""
hourly: "False"
private: True
dedicated: "False"
local_disk: false
cpus: "1"
memory: "1024"
disks: []
wait: True
wait_time: 5400
private_vlan: ""
nic_speed: 100
state: "present"

EXPECTED RESULTS

node is provisioned as requested.

ACTUAL RESULTS

Error produced
error:
value of datacenter must be one of: ams01,ams03,che01,dal01,dal05,dal06,dal09,dal10,fra02,hkg02,hou02,lon02,mel01,mex01,mil01,mon01,osl01,par01,sjc01,sjc03,sao01,sea01,sng01,syd01,tok02,tor01,wdc01,wdc04, got: wdc06"}

@ansibot
Copy link
Contributor

ansibot commented Oct 31, 2017

cc @mcltn
click here for bot help

@ansibot ansibot added affects_2.3 This issue/PR affects Ansible v2.3 bug_report cloud module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. labels Oct 31, 2017
@jborean93 jborean93 removed the needs_triage Needs a first human triage before being processed. label Nov 1, 2017
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 1, 2018
@ansibot ansibot added support:core This issue/PR relates to code supported by the Ansible Engineering Team. and removed support:community This issue/PR relates to code supported by the Ansible community. labels Sep 17, 2018
@ansibot ansibot added needs_maintainer Ansibot is unable to identify maintainers for this PR. (Check `author` in docs or BOTMETA.yml) support:community This issue/PR relates to code supported by the Ansible community. and removed support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Oct 4, 2018
@ansibot ansibot removed the needs_maintainer Ansibot is unable to identify maintainers for this PR. (Check `author` in docs or BOTMETA.yml) label Nov 10, 2018
@ansibot ansibot added the has_pr This issue has an associated PR. label Jul 27, 2019
@ansibot ansibot added collection Related to Ansible Collections work collection:community.general needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md labels Apr 29, 2020
@ansibot
Copy link
Contributor

ansibot commented Aug 16, 2020

Thank you very much for your interest in Ansible. Ansible has migrated much of the content into separate repositories to allow for more rapid, independent development. We are closing this issue/PR because this content has been moved to one or more collection repositories.

For further information, please see:
https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md

@ansibot ansibot closed this as completed Aug 16, 2020
@ansible ansible locked and limited conversation to collaborators Sep 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.3 This issue/PR affects Ansible v2.3 bot_closed bug This issue/PR relates to a bug. cloud collection:community.general collection Related to Ansible Collections work has_pr This issue has an associated PR. module This issue/PR relates to a module. needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants