-
Notifications
You must be signed in to change notification settings - Fork 95
JCLOUDS-1328 Update ProfitBricks to the latest API version #408
Conversation
@nacx Friendly reminder |
Apologies for the late reply; I've been on vacation :) Changes LGTM. Could you share the output of the live tests? |
What do you think about the User Management AP, is it something that will be handy for the Compute API? |
I don't think so. It makes more sense to work on the current feature set to have it stable enough so we can promote it. Having live tests passing consistently is more important than adding other features not directly covered by the compute abstraction. |
These are the two affected live tests results, let me know if you need other test results. Thanks
|
All tests are relevant, since the endpoint has changed, and the API version has changed too. Could you share the results of running the entire live tests tuite? |
Compute live tests now fail even for the upstream version, i think profitbricks stopped supporting Ubuntu 12 version. I get the error below, is there anyway to set a default image template to something higher than ubuntu 12?
|
Yes, you can configure the default template in the provider metadata. Take azurecompute-arm as an example. The syntax of that template string is defined by this class. |
I ran into a problem when compute live test wants to ssh into servers, ProfitBricks changed something in their API, now the public linux images can't use a password to log in anymore. Only SSH keys for remote acess. I assume the solution to this would be creating servers with sshKey instead of passwords if the os family is linux. WDYT? |
To let the tests use by default SSH based authentication, you could add the following method to the ProfitBricksComputeServiceLiveTest class: @Override
protected TemplateBuilder templateBuilder() {
TemplateOptions authOptions = TemplateOptions.Builder
.authorizePublicKey(keyPair.get("public"))
.overrideLoginPrivateKey(keyPair.get("private"));
return super.templateBuilder().options(authOptions);
} The |
Thanks @nacx all tests passes now. |
That's great, thanks @alibazlamit! Mind squashing the commits so we can cleanly merge the PR? |
f8db62f
to
bd0def6
Compare
Done |
@alibazlamit have you executed them with any custom parameter? I've run them just providing the credentials and I get authentication failures. |
@nacx nothing other than the credentials, are your credentials working fine? |
I meant, auth failures when tests try to access the nodes. Credentials are working fine. Aren't you using a custom image? |
No, i have just changed the default template to start from Ubuntu 14.04. |
@nacx ProfitBricks is back with a few updates and new features, this PR adds two of the important new features.
There is also the User Management API but i wanted to check with you first if that is something we need to have, in my opinion that is a feature to skip LMKWYT.