Reputation: 15
Like vagrant-aws, I am looking for plugin to work with Oracle cloud Infrastructure.
I found vagrant-oci, but not sure if it works. Didn't get proper example for it. Followed steps and tried with this plugin but no luck.
failed with following error
/root/.vagrant.d/gems/2.4.6/gems/oci-2.9.0/lib/oci/api_client.rb:477:in `handle_non_success_response': The required information to complete authentication was not provided or was incorrect. (OCI::Errors::ServiceError)
If anyone has used it already or if have alternatives, please suggest.
Upvotes: 0
Views: 552
Reputation: 90
I agree with @jodoglevy that it looks like a possible authentication problem. It would be helpful to see your Vagrantfile (suitably redacted is ok) but a quick test is to take the profile name and the config file path you specified in your Vagrantfile and run this:
oci iam availability-domain list --profile <profilename> --config-file <configfilepath>
If that does work then Vagrant must be having trouble reading your config file or OCI API key for some reason. It looks as though you're running Vagrant as root. Could your OCI config be under a different user account?
Incidentally one regression in the driver is that it doesn't support the newer non-PEM style ssh keys that MacOS's ssh-keygen now outputs by default. If you have one of those (with "-----BEGIN OPENSSH PRIVATE KEY-----" in the preamble) then for now you'll need to generate another key with ssh-keygen -m PEM -f <filename>
to force the requisite PEM format.
FYI: The full list of configuration options, if you need them, are available here: https://github.com/stephenpearson/vagrant-oci/blob/master/lib/vagrant-oci/config.rb
Upvotes: 1