Project

General

Profile

Actions

Support #25636

closed

Connect Foreman 1.20 to GCE

Added by Lukas TheForeman over 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Category:
Compute resources - GCE
Target version:
-
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hey ho,

after some time i needed to upgrade Foreman 1.19 to 1.20 on our Debian Stretch I finally managed to do so.
Including that, I'm in charge of trying to connect our Google Cloud Engine to Foreman.

I don't know what happened prior 1.19, but I do know that the connection did not work as documented in 1.19 and 1.20 running on Debian Stretch.

I freshly installed 1.20 from scratch, updated a fresh 1.19 installation to 1.20 and did both steps including the old database, too.

All attempts failed, as I was not able to connect Google in any way. Connections to AWS, ESXI and Bare Metals are working as expected.

Without any adjustments, trying to connect Google in my compute resources results in Foreman saying "Not Found" once i click the "Load zones" button.
The p12 certificate is in place, the account exists, so does the project ID.

Some research later it occurred to be the "'fog-google', '<= 0.1.0'" gem and the old google-api-client gem.

I tried to upgrade those since 2 days now, playing around with all kinds of versions but don't make that much progress at all.

I'm now at the point where it tells me "Deprecated argument no longer works: google_key_location" at my Foreman 1.20 instance.
That occurs when using gem "'fog-google', '>= 1.8.1'" in combination with "gem 'google-api-client', '~> 0.23', :require => 'google/api_client'".

I know that the error is mentioned in https://github.com/fog/fog-google/blob/master/lib/fog/google/shared.rb.
It occurs that Google API changed and that you are not longer be able to use p12 files as Foreman suggests.
I also tried a .pem file but did not manage to connect either.

I am at the end of my knowledge about ruby, so I would kindly ask you guys to help me outta there.


Files

Selection_065.png View Selection_065.png 20.2 KB Foreman 1.19/1.20 fresh install Lukas TheForeman, 12/06/2018 11:36 AM
Selection_066.png View Selection_066.png 20.1 KB Foreman 1.20 after "fixes" Lukas TheForeman, 12/06/2018 11:37 AM

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #26473: [Google Compute Resource] fix broken changes with latest API changes and fog-google gem updateClosedKavita GaikwadActions
Actions #1

Updated by Lukas TheForeman over 5 years ago

  • Description updated (diff)
Actions #2

Updated by Kavita Gaikwad about 5 years ago

  • Assignee set to Kavita Gaikwad
Actions #3

Updated by Kavita Gaikwad about 5 years ago

  • Related to Bug #26473: [Google Compute Resource] fix broken changes with latest API changes and fog-google gem update added
Actions #4

Updated by Kavita Gaikwad almost 5 years ago

  • Status changed from New to Resolved

This issue is resolved in #26473 so marking this.

Actions

Also available in: Atom PDF