theforeman / foreman_fog_proxmox

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

Unable to create compute resource #106

Closed taniahagan closed 4 years ago

taniahagan commented 4 years ago

Hi foreman_fog_proxmox team,

When trying to create a compute resource, via Infrastructure -> Compute Resources, I get the following message:


Unable to save

`:disable_proxy` parameter and `:proxy` parameter cannot both be set at the same time.

Server:

I have tried looking at logs on the server, but failing to find a resolution. Any help much appreciated.

Many Thanks, Tania

m-bucher commented 4 years ago

Hi Tania,

can you look into /var/log/foreman/production.log for more details. I basically use the same foreman- and CentOS version.

Do you have a proxy-server configured that foreman_fog_proxmox should use?

m-bucher commented 4 years ago

I must admit I have built fog-proxmox and foreman_fog_proxmox myself and I think there might be a broken version of fog-proxmox in circualation.

Can you try replacing the version of fog-proxmox you got from rpm with the github master? It should be in /opt/theforeman/tfm/root/usr/share/gems/gems/fog-proxmox-0.8.0

You can try replacing it by doing the following (this is only for testing, because rpm/yum will overwrite your changes eventually):

yum install git
cd /opt/theforeman/tfm/root/usr/share/gems/gems/
rm -fr fog-proxmox-0.8.0
git clone https://github.com/fog/fog-proxmox.git fog-proxmox-0.8.0
foreman-maintain service restart

If this fixes your problem, you need to open a Ticket at foreman-packaging

taniahagan commented 4 years ago

Hi Markus,

That did indeed fix my issue, and I have opened a ticket at forman-packaging https://projects.theforeman.org/issues/28032.

Thank you for your help. Tania