Bug 1476265

Summary: The engine VM could not be registered to foreman/satellite from the engine
Product: [oVirt] ovirt-engine Reporter: Simone Tiraboschi <stirabos>
Component: BLL.HostedEngineAssignee: Andrej Krejcir <akrejcir>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: high Docs Contact:
Priority: high    
Version: 4.1.3.5CC: akrejcir, alukiano, bugs, lveyde, mavital, mgoldboi, stirabos
Target Milestone: ovirt-4.1.6Keywords: Triaged
Target Release: 4.1.6.2Flags: rule-engine: ovirt-4.1+
rule-engine: ovirt-4.2+
mgoldboi: planning_ack+
msivak: devel_ack+
mavital: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.1.6.2 Doc Type: Bug Fix
Doc Text:
Cause: It was not allowed to set an external provider for the hosted engine VM. Consequence: The hosted engine VM could not be managed by foreman/satellite. Fix: Allow setting the external provider for the hosted engine VM. Result: Hosted engine VM can now be managed by foreman/satellite.
Story Points: ---
Clone Of:
: 1484582 (view as bug list) Environment:
Last Closed: 2017-09-19 10:01:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1484582    

Description Simone Tiraboschi 2017-07-28 12:55:56 UTC
Description of problem:
Trying to edit the engine VM from the engine in order to choose an external provider in the foreman/satellite sub-tab will lead to an error:
  There was an attempt to change Hosted Engine VM values that are locked.

The user can instead directly register the engine VM to foreman/satellite from shell.

Version-Release number of selected component (if applicable):
engine 4.1.3

How reproducible:
100%

Steps to Reproduce:
1. deploy hosted-engine and wait for the engine to import the engine VM
2. add your foreman/satellite as an external provider
3. try to edit the engine VM to attach it to foreman/satellite

Actual results:
  There was an attempt to change Hosted Engine VM values that are locked.

Expected results:
It attaches the engine VM to foreman/satellite

Additional info:

Comment 1 Doron Fediuck 2017-07-30 08:40:16 UTC
Care to attach the engine log?

Comment 3 Doron Fediuck 2017-08-09 12:51:46 UTC
Artyom can you reproduce this issue?

Comment 4 Artyom 2017-08-09 15:02:29 UTC
I just do not have an instance of foreman that configured as ovirt external provider, I will check among QE guys, maybe someone has one. But anyway it will take me sometime.

Comment 5 Artyom 2017-08-10 08:05:45 UTC
I found the satellite environment.

Steps:
1. Add satellite as external provider
2. Under Edit VM -> Foreman/Satellite -> Under provider choose you provider by name -> Ok

"""
Error while executing action: 

HostedEngine:
There was an attempt to change Hosted Engine VM values that are locked.
"""

Versions:
rhevm-4.1.4.2-0.1.el7.noarch
satellite-6.2.8-4.0.el7sat.noarch

Comment 6 rhev-integ 2017-08-31 16:51:35 UTC
INFO: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Tag 'ovirt-engine-4.1.6.1' doesn't contain patch 'https://gerrit.ovirt.org/81214']
gitweb: https://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=shortlog;h=refs/tags/ovirt-engine-4.1.6.1

For more info please contact: infra

Comment 7 Artyom 2017-09-07 12:41:21 UTC
Verified on rhevm-4.1.6.2-0.1.el7.noarch