Closed Joselu21 closed 1 year ago
Hi,
thanks for reporting this!
The --file
flag is meant to be used instead of all other flags.
So your command should look like this:
.\cntb.exe reinstall instance <<myId>> --file "reinstall_config.yml"
That means, you have to define the ImageId inside the reinstall_config.yml
.
As example:
imageId: "db1409d2-ed92-4f2f-978e-7b2fa4a1ec90"
userData: |
package_update: true
We will adjust the message for the "--flag" and react properly to the error on the next version!
I'm encountering an issue while trying to use
cloud-init
to automate the installation of my VPS. This is crucial for me as I aim to create a small cluster of 4 VPS instances with installed and configured public services.Unfortunately, the Contabo client panel does not seem to support this functionality. Therefore, I have resorted to using the CLI tool.
During my exploration, I discovered a flag called
--file
which allows me to perform a reinstall using mycloud-init.yml
configuration.To reinstall the instance, I executed the following command:
However, the output I received was as follows:
Expected Behavior
The instance should be reinstalled successfully using the specified
cloud-init.yml
configuration file. Or if there is another error with my way of passing the file as an argument the error message should be descriptive and not point to an error with the imageIdActual Behavior
Reinstallation fails with the error message: "Error while reinstalling instance: 400 - [imageId must be a UUID]."
Additional Information