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

Unable to create reserved-guest #1395

Closed
allmightyspiff opened this issue Dec 6, 2020 · 1 comment · Fixed by #1454
Closed

Unable to create reserved-guest #1395

allmightyspiff opened this issue Dec 6, 2020 · 1 comment · Fixed by #1454
Assignees
Labels
Projects

Comments

@allmightyspiff
Copy link
Member

allmi@SPF-WIN10 MINGW64 ~/Source/githubio_source (20201204)
$ slcli --format=json  vs capacity create-guest --capacity-id 80068 -H cgallo-reserved-test1 -D cgallo.com -o UBUNTU_LATEST
SoftLayerAPIError(SoftLayer_Exception_Order_Item_Invalid): The price 4 GB (216541) is not valid for package (1035).
(py38)
allmi@SPF-WIN10 MINGW64 ~/Source/githubio_source (20201204)
$ slcli --format=json  vs capacity create-guest --capacity-id 6701 -H cgallo-reserved-test1 -D cgallo.com -o UBUNTU_LATEST
SoftLayerAPIError(SoftLayer_Exception_Order_Item_Invalid): The price 8 GB (216553) is not valid for package (1035).

Looks like price look ups might be broken or something on creating reserved capacity guest. Looks to be getting the RAM/CORE price instead of using a preset?

@allmightyspiff allmightyspiff added this to To do in Q4 2020 via automation Dec 6, 2020
@caberos caberos self-assigned this Dec 10, 2020
@allmightyspiff allmightyspiff linked a pull request Dec 18, 2020 that will close this issue
@allmightyspiff allmightyspiff removed this from To do in Q4 2020 Jan 5, 2021
@allmightyspiff
Copy link
Member Author

Looking at this a bit more, I think the problem is with the behavior of https://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest/generateOrderTemplate/ as it uses the package SUSPEND_CLOUD_SERVER, but reserved capacity requires package PUBLIC_CLOUD_SERVER.

I don't see a way to force SoftLayer_Virtual_Guest/generateOrderTemplate to use the PUBLIC_CLOUD_SERVER package ( unless its a monthly order, but we want to support hourly since the portal does as well). I suspect this will require refactoring SoftLayer.vs_capacity.create_guest() to use the ordering manager directly, instead of the vs_manager.verify_create_instance() method.

@allmightyspiff allmightyspiff added this to In progress in Q1 2021 Jan 18, 2021
allmightyspiff added a commit to allmightyspiff/softlayer-python that referenced this issue Mar 31, 2021
@allmightyspiff allmightyspiff moved this from In progress to Done in Q1 2021 Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Q1 2021
  
Done
2 participants