Changing power state gives: NameError: uninitialized constant Fog::Compute::Ovirt not fixed in 1.16.1

Problem:

Cannot change power state

NameError: uninitialized constant Fog::Compute::Ovirt

Expected outcome:

Power state changed.

Foreman and Proxy versions:

1.16.1

Foreman and Proxy plugin versions:

1.16.1

Other relevant data:

Is the fix for Bug #23212: Changing power state gives: NameError: uninitialized constant Fog::Compute::Ovirt - Foreman actually in 1.16.1 as stated in that ticket?

dpkg-query -l foreman
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                              Version               Architecture          Description
+++-=================================-=====================-=====================-=======================================================================
ii  foreman                           1.16.1-1              amd64                 Systems management web interface

app/services/power_manager/virt.rb:

 35       if action_status.is_a?(Fog::Compute::Ovirt::Server)

I also downloaded the tarball just now and the fix isn’t in there either.

Indeed, that should have been 1.16.2, somebody[tm] should create that relase on Redmine.

I added the release in Redmine and updated this issue to 1.16.2.
A workaround for this until 1.16.2 is released would be either to manually apply the patch in the issue and restart foreman, or install the foreman-ovirt package.

1 Like

How did you apply the patch? You should basically apply the changes to /usr/share/foreman/app/services/power_manager/virt.rb then restart httpd:

https://github.com/theforeman/foreman/pull/5442/files#diff-afaf160cd4ffc47b50f55ce77b71794bR35

1.16.2 will include this as you may see in GitHub - theforeman/foreman at 1.16-stable