gds-operations / vcloud-net_launcher

vCloud Net Launcher is a CLI tool and Ruby library that supports automated provisioning of VMware vCloud Director vDC networks
http://gds-operations.github.io/vcloud-tools/
MIT License
4 stars 4 forks source link

totally newbie error #69

Closed MartinEtcheverry closed 4 years ago

MartinEtcheverry commented 8 years ago

Hi , i am completely new to ruby , but reading about the tool, i love their capabilities. The problem i dont´t know anything of ruby (i already started to learn). when i do the first steps in the instalation i have problems checking the authentication.

infra@ubuntu:~$ eval $(FOG_CREDENTIAL=test_credentials vcloud-login) /var/lib/gems/2.3.0/gems/psych-2.1.1/lib/psych.rb:379:in parse': (/home/infra/.fog): mapping values are not allowed in this context at line 1 column 44 (Psych::SyntaxError) from /var/lib/gems/2.3.0/gems/psych-2.1.1/lib/psych.rb:379:inparse_stream' from /var/lib/gems/2.3.0/gems/psych-2.1.1/lib/psych.rb:327:in parse' from /var/lib/gems/2.3.0/gems/psych-2.1.1/lib/psych.rb:254:inload' from /var/lib/gems/2.3.0/gems/psych-2.1.1/lib/psych.rb:475:in block in load_file' from /var/lib/gems/2.3.0/gems/psych-2.1.1/lib/psych.rb:474:inopen' from /var/lib/gems/2.3.0/gems/psych-2.1.1/lib/psych.rb:474:in load_file' from /var/lib/gems/2.3.0/gems/fog-core-1.43.0/lib/fog/core/credentials.rb:70:incredentials' from /var/lib/gems/2.3.0/gems/vcloud-core-2.0.0/lib/vcloud/core/fog.rb:42:in fog_credentials_pass' from /var/lib/gems/2.3.0/gems/vcloud-core-2.0.0/lib/vcloud/core/fog.rb:59:incheck_plaintext_pass' from /var/lib/gems/2.3.0/gems/vcloud-core-2.0.0/lib/vcloud/core/fog.rb:33:in check_credentials' from /var/lib/gems/2.3.0/gems/vcloud-core-2.0.0/lib/vcloud/core/fog.rb:69:in<top (required)>' from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /var/lib/gems/2.3.0/gems/vcloud-core-2.0.0/lib/vcloud/core.rb:3:in <top (required)>' from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from /var/lib/gems/2.3.0/gems/vcloud-core-2.0.0/bin/vcloud-login:3:in<top (required)>' from /usr/local/bin/vcloud-login:23:in load' from /usr/local/bin/vcloud-login:23:in

'

the .fog file is exactly cut & paste. any idea?

surminus commented 8 years ago

Hi @MartinEtcheverry,

Would it be possible to show a (redacted) copy of your credentials .fog file as it currently exists?

MartinEtcheverry commented 8 years ago

Hi Laura, this is fog file to connet against my testing vcloud director: yaml test_credentials: Vcloud_director_host: '192.168.1.32' vcloud_director_username: 'testuser' vcloud_director_password: 'password'

2016-11-07 9:00 GMT-03:00 Laura Martin notifications@github.com:

Hi @MartinEtcheverry https://github.com/MartinEtcheverry,

Would it be possible to show a (redacted) copy of your credentials .fog file as it currently exists?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gds-operations/vcloud-net_launcher/issues/69#issuecomment-258817931, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDXZGetU5RyXIC-ujFfCAfmwCGfrucnks5q7xLQgaJpZM4KjjqH .

              ::: (\(\
              *: (=' :') :*
              ... (,('')('')....
      martin@etcheverri.com
      Consultoria de sistemas
surminus commented 8 years ago

I note that you have a capital V in Vcloud_director_host - I recommend setting this to lowercase.

I also think our documentation on here may be formatted incorrectly.

As an example, your .fog file should look like this:

~ cat ~/.fog
---
test_credentials:
  vcloud_director_host: 'my_host.com'
  vcloud_director_username: 'laura'
  vcloud_director_password: ''

It should be yaml, but our docs look incorrect. I'll look into updating that.

Thanks, Laura

MartinEtcheverry commented 8 years ago

hi , thanks for your help , but now i have a new problem :

Something went wrong: error finding LoginUrl: API Error: 406: The request has invalid accept header.Supported API versions are: [1.5, 5.1, 5.5]

my config is:

Configure the VMware vCloud Director Provider

provider "vcd" { user = "user" password = "password" org = "my_org" url = "https://192.168.1.32/api/sessions" vdc = "my_vdc" allow_unverified_ssl = "true" }

i think that the problem is that i didn´t say what api version use.

thanks in advance Martín

2016-11-08 15:57 GMT-03:00 Laura Martin notifications@github.com:

I note that you have a capital V in Vcloud_director_host - I recommend setting this to lowercase.

I also think our documentation on here http://gds-operations.github.io/vcloud-tools/usage/ may be formatted incorrectly.

As an example, your .fog file should look like this:

~ cat ~/.fog

test_credentials: vcloud_director_host: 'my_host.com' vcloud_director_username: 'laura' vcloud_director_password: ''

It should be yaml, but our docs look incorrect. I'll look into updating that.

Thanks, Laura

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gds-operations/vcloud-net_launcher/issues/69#issuecomment-259226161, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDXZPF8qAz8NGv_bsJDSZrwYwYiNJOSks5q8MYQgaJpZM4KjjqH .

              ::: (\(\
              *: (=' :') :*
              ... (,('')('')....
      martin@etcheverri.com
      Consultoria de sistemas
surminus commented 7 years ago

Hi Martin,

Sorry for the delay in getting back to you. Did you ever resolve this error?

Thanks, Laura

MartinEtcheverry commented 7 years ago

Hi Laura, all the project was put "on hold", i will restart the project in a couple of weeks.

By the way , are plans of the "gds suite" interact with nsx?

Thanks Best regards Martin

2017-06-16 13:29 GMT-03:00 Laura Martin notifications@github.com:

Hi Martin,

Sorry for the delay in getting back to you. Did you ever resolve this error?

Thanks, Laura

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gds-operations/vcloud-net_launcher/issues/69#issuecomment-309072157, or mute the thread https://github.com/notifications/unsubscribe-auth/AWDXZGcg6sZ_u-uPCEpZ7NcOIlWUJoBYks5sEq1ZgaJpZM4KjjqH .

--

              ::: (\(\
              *: (=' :') :*
              ... (,('')('')....
      martin@etcheverri.com
      Consultoria de sistemas
surminus commented 7 years ago

Hi Martin,

We have recently declared the project feature complete, so won't be adding any new features to it I'm afraid. We will try to address any bugs with it, however.

It appears someone has done some work adding NSX as a provider to Terraform so would recommend investigating this option alongside Terraform for your deployments. The Terraform project will likely have more traction in the future than vCloud Tools.

Thanks, Laura

deanwilson commented 4 years ago

This tool is no longer in active use and the repository will be archived so we're closing this pull request. Thank you for your interest and involvement in this project.