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

Documentation incorrect for new cloud-init images #46

Open
elindydotcom opened this issue Oct 7, 2022 · 0 comments
Open

Documentation incorrect for new cloud-init images #46

elindydotcom opened this issue Oct 7, 2022 · 0 comments
Labels

Comments

@elindydotcom
Copy link

If you try to create an Ubuntu 22.04 server with this PHP api it will likely fail. This is because the Ubuntu 22.04 images are not 'native' but classified as 'cloud-init' images.

(The image template types for each os can be viewed here: https://api.upcloud.com/1.3/storage/public)

For these cloud-init templates it seems that the metadata service must be turned on with the api request otherwise the server provision request will fail.

The documentation has the metadata element as optional, defaulting to 'no'. https://github.com/UpCloudLtd/upcloud-php-api/blob/master/docs/Model/Server.md

Additionally, the createServer example should be changed since it can't just use the defaults (https://github.com/UpCloudLtd/upcloud-php-api/blob/master/docs/Api/ServerApi.md#createServer).

Alternatively, maybe the api should automatically enable the metadata service for the cloud-init templates and just ignore the metadata element in the request since setting it to 'no' will cause the request to fail anyway?

@kangasta kangasta added the bug label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants