Support #25636

Connect Foreman 1.20 to GCE

Added by Lukas TheForeman over 2 years ago. Updated over 1 year ago.

Compute resources - GCE
Target version:
Fixed in Releases:
Found in Releases:


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
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.

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
Selection 065 Selection 066

Related issues

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


#1 Updated by Lukas TheForeman over 2 years ago

  • Description updated (diff)

#2 Updated by Kavita Gaikwad about 2 years ago

  • Assignee set to Kavita Gaikwad

#3 Updated by Kavita Gaikwad about 2 years ago

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

#4 Updated by Kavita Gaikwad over 1 year ago

  • Status changed from New to Resolved

This issue is resolved in #26473 so marking this.

Also available in: Atom PDF