theforeman / foreman_fog_proxmox

Foreman plugin to add Proxmox compute resource based on fog-proxmox gem
GNU General Public License v3.0
106 stars 33 forks source link

Using foreman_fog_proxmox 0.8.0 #85

Closed LaurentDumont closed 5 years ago

LaurentDumont commented 5 years ago

Hi,

I am trying to install the 0.8.0 gems on a Debian 9.9 system. Proxmox 5.4-6 is running Foreman is 1.21.3

Right now, it looks like the "bundle install" command is pulling 0.6.0 which means it's not compatible with the versions of Foreman/Proxmox that are currently running.

To Reproduce Steps to reproduce the behavior:

- su - foreman
- echo "gem 'foreman_fog_proxmox'" | tee /usr/share/foreman/bundler.d/Gemfile.local.rb
- /usr/bin/foreman-ruby /usr/bin/bundle install

foreman@foreman:~$ grep -i proxmox Gemfile.lock
    fog-proxmox (0.6.0)
    foreman_fog_proxmox (0.6.0)
      fog-proxmox (~> 0.6)
  foreman_fog_proxmox

I tried deleting the lockfile, running a bundle update and a bundle install but I'm still seeing 0.6.0 being installed.

Expected behavior With 0.8.0 published, I should be seeing that version being pulled. I see 0.6.0 being installed and is the version present in the Gem lockfile.

Additional context Add any other context about the problem here.

LaurentDumont commented 5 years ago

I've been digging into this a bit more and it looks like Foreman itself is limited to fog-core 1.45

foreman@foreman:~/bundler.d$ /usr/bin/foreman-ruby /usr/bin/bundle update
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies.....
Bundler could not find compatible versions for gem "fog-core":
  In Gemfile:
    fog-core (= 1.45.0)

    fog (= 1.42.1) was resolved to 1.42.1, which depends on
      fog-core (~> 1.45)

    fog-aws (< 2, >= 0.1) was resolved to 1.4.1, which depends on
      fog-core (~> 1.38)

    fog-aws (< 2, >= 0.1) was resolved to 1.4.1, which depends on
      fog-core (~> 1.38)

    fog (= 1.42.1) was resolved to 1.42.1, which depends on
      fog-brightbox (~> 0.4) was resolved to 0.16.1, which depends on
        fog-core

    fog (= 1.42.1) was resolved to 1.42.1, which depends on
      fog-brightbox (~> 0.4) was resolved to 0.16.1, which depends on
        fog-core

    foreman_fog_proxmox (~> 0.8.0) was resolved to 0.8.0, which depends on
      fog-proxmox (~> 0.8) was resolved to 0.8.0, which depends on
        fog-core (~> 2.1)
tristanrobert commented 5 years ago

0.8.0 is suitable with foreman 1.22 which is suitable with fog-core 2.1

LaurentDumont commented 5 years ago

Perfect, figured it was something on my end.

I'll close this, thank you for your help!