Bug 1393553

Summary: Receive OvirtException when updating a Content View on any Content Host from RHEV 3.6 or 4 version
Product: Red Hat Satellite Reporter: Fotios Tsiadimos <ftsiadim>
Component: Compute Resources - RHEVAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.2.2CC: amasolov, bbuckingham, bkearney, dojones, fgarciad, ftsiadim, inecas, jcallaha, mmccune, orabin
Target Milestone: UnspecifiedKeywords: Reopened, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
URL: http://projects.theforeman.org/issues/18903
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 18:00:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Fotios Tsiadimos 2016-11-09 20:42:03 UTC
Description of problem:
When attempting to change a Content View on any Content Host, we are receiving an OvirtException that "Network interface is already in use".



Version-Release number of selected component (if applicable)

Satellite 6.2.*
RHEV 3.6
RHEV 4

How reproducible:

You need Satellite with RHEV as compute node then on the WebUI try to change the content view for the RHEV clients. It will fail with the below error:

==> /var/log/foreman/production.log <==
2016-11-09 15:38:33 [app] [I] Started PUT "/api/v2/hosts/21" for 192.168.20.148 at 2016-11-09 15:38:33 -0500
2016-11-09 15:38:33 [app] [I] Processing by Api::V2::HostsController#update as JSON
2016-11-09 15:38:33 [app] [I]   Parameters: {"id"=>"21", "host"=>{"content_facet_attributes"=>{"id"=>18, "content_view_id"=>1, "lifecycle_environment_id"=>1}}, "apiv"=>"v2"}
2016-11-09 15:38:34 [app] [W] Failed to update a compute RHEV (RHEV) instance demo.local.redhat.com: Network interface is already in use.
 | OVIRT::OvirtException: Network interface is already in use.
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/rbovirt.rb:210:in `handle_fault'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/rbovirt.rb:130:in `rescue in http_post'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/rbovirt.rb:127:in `http_post'
.
.
.
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/engine.rb:514:in `call'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/application.rb:144:in `call'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in `public_send'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in `method_missing'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
 | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
 | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
 | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
 | /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
2016-11-09 15:38:34 [app] [E] Unprocessable entity Host::Managed (id: 21):
 |   Failed to update a compute RHEV (RHEV) instance demo.local.redhat.com: Network interface is already in use.
 | 
2016-11-09 15:38:34 [app] [I]   Rendered api/v2/errors/unprocessable_entity.json.rabl within api/v2/layouts/error_layout (1.2ms)
2016-11-09 15:38:34 [app] [I] Completed 422 Unprocessable Entity in 715ms (Views: 3.6ms | ActiveRecord: 14.5ms)

Comment 3 Brad Buckingham 2017-01-11 13:30:30 UTC
Moving this bugzilla to the Hosts component.  Although the field being updated is the content view, the error message is more generic to the host:

2016-11-09 15:38:34 [app] [W] Failed to update a compute RHEV (RHEV) instance demo.local.redhat.com: Network interface is already in use.
 | OVIRT::OvirtException: Network interface is already in use.
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/rbovirt.rb:210:in `handle_fault'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/rbovirt.rb:130:in `rescue in http_post'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rbovirt-0.0.37/lib/rbovirt.rb:127:in `http_post'

Comment 4 Daniel Lobato Garcia 2017-03-15 09:11:35 UTC
Created redmine issue http://projects.theforeman.org/issues/18903 from this bug

Comment 5 Tomer Brisker 2017-04-02 12:44:02 UTC
Seems to be a failure in the rbovirt gem, moving to rhev component.

Comment 6 orabin 2017-07-27 11:12:39 UTC
Is this still reproducible on 6.2.10?

I was not able to reproduce.
If it is still reproducible is it possible to get the production log when changing the content view from the UI and from hammer?

Comment 7 Bryan Kearney 2017-12-11 16:41:35 UTC
We have not been able to reproduce this, and are therefore closign this out. If you are still seeing the issue please feel free to add in the additional information requested.

Comment 10 Bryan Kearney 2018-09-04 18:00:49 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.