Bug 982202

Summary: registration servelet URI returns http error 404
Product: Red Hat Enterprise Virtualization Manager Reporter: Artyom <alukiano>
Component: ovirt-engine-setupAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, alonbl, alukiano, bazulay, bdagan, danken, dougsland, iheim, jboggs, jkt, lpeer, mburns, Rhev-m-bugs, ycui, yeylon, yzaslavs
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 22:18:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 922512    
Attachments:
Description Flags
vdsm-reg.log
none
Engine log
none
Logs engine vdsm-reg vdsm none

Description Artyom 2013-07-08 11:41:38 UTC
Created attachment 770452 [details]
vdsm-reg.log

Description of problem:
Adding host via TUI of rhevh not working

Version-Release number of selected component (if applicable):
rhevm - is4
host - vdsm-4.10.2-23.0.el6ev

How reproducible:
Add data center 3.2, add cluster 3.2.
Enter via ssh under admin to your rhevh
Go to RHEV-M tab and enter to Management Server address of your rhevm
Click Apply and after this approve
Wait until you receive message RHEV-M Configuration Successfully Updated
Go to rhevm GUI and see that no new host appeared 


Steps to Reproduce:
1. See above
2.
3.

Actual results:
No new host for approving.

Expected results:
New host for approving

Additional info:
See vdsm-reg.log

Comment 1 Artyom 2013-07-08 11:43:04 UTC
Adding the same host via GUI working fine

Comment 2 Artyom 2013-07-09 06:34:02 UTC
under rhevm sf18 adding host via TUI work fine

Comment 3 Dan Kenigsberg 2013-08-04 20:51:54 UTC
MainThread::DEBUG::2013-07-08 11:21:35,244::vdsm-reg-setup::124::root::registerVDS URI= /RHEVManagerWeb/VdsAutoRegistration.aspx?vds_ip=10.35.109.16&__VIEWSTATE=&vds_unique_id=44454C4C-5400-104C-8050-C8C04F4A334A&vds_name=cyan-vdsg.qa.lab.tlv.redhat.com&ticket=&port=54321

MainThread::DEBUG::2013-07-08 11:21:35,260::vdsm-reg-setup::155::root::registerVDS status: 404 reason: Not Found

Could you verify that the above URI on your Engine is accessible? Are there errors on the Engine side?

Comment 4 Barak 2013-08-06 09:08:36 UTC
Douglas please try the same scenario,
and fill in the blanks

Comment 5 Artyom 2013-08-06 11:38:37 UTC
I can connect from rhevm to host if you mean this, also in engine.log no any errors messages

Comment 6 Barak 2013-08-06 12:45:42 UTC
(In reply to Artyom from comment #5)
> I can connect from rhevm to host if you mean this, also in engine.log no any
> errors messages

can it be still reproduced on is8?

Comment 7 Dan Kenigsberg 2013-08-06 19:50:40 UTC
(In reply to Artyom from comment #5)
> I can connect from rhevm to host if you mean this, also in engine.log no any
> errors messages

No, I meant: is the URL http://<your-engine>/RHEVManagerWeb/VdsAutoRegistration.aspx?vds_ip=10.35.109.16&__VIEWSTATE=&vds_unique_id=44454C4C-5400-104C-8050-C8C04F4A334A&vds_name=cyan-vdsg.qa.lab.tlv.redhat.com&ticket=&port=54321 accessible from the host being added?

I also asked "Are there errors on the Engine side?" Would you provide engine logs?

Comment 8 Artyom 2013-08-07 07:25:20 UTC
Created attachment 783701 [details]
Engine log

Link not working return the same as write in vdsm-reg.log error 404

Comment 9 Dan Kenigsberg 2013-08-07 09:45:44 UTC
> Link not working return the same as write in vdsm-reg.log error 404

Thus, it is no vdsm-reg bug.

Comment 10 Douglas Schilling Landgraf 2013-08-08 01:45:50 UTC
(In reply to Dan Kenigsberg from comment #9)
> > Link not working return the same as write in vdsm-reg.log error 404
> 
> Thus, it is no vdsm-reg bug.

Also got the 404 error. /OvirtEngineWeb/register works. 

The below patch is merged on Engine.

commit b2bc6665f28f915f823dbd3fae5c91587c6f8028
Author: Roy Golan <rgolan>
Date:   Thu Jan 19 08:49:01 2012 +0200

    virt-engine: Support RHEVManager url
    
    Added rewrite rule from RHEVManager to OvirtEngine to
    support old rhev-h on ovirt
    
    This patch depends on Change-Id: I4f36a302adbafdc5f9d0bb219896c794cbad31dd
    
    Change-Id: I3c3ce188155bda87f5cc106e2a6c2408fb0da790
    Signed-off-by: Roy Golan <rgolan>

Comment 11 Douglas Schilling Landgraf 2013-08-08 15:24:07 UTC
Replacing line 44 at /etc/httpd/conf.d/z-ovirt-engine-proxy.conf and restarting httpd make it work. Otherwise Apache never sends request to the application server.

<LocationMatch ^/(UserPortal($|/)|RHEVManagerWeb($|/)|OvirtEngineWeb($|/)|webadmin($|/)|docs($|/)|ovirt-engine-novnc/|ovirt-engine-novnc-main.html$|ovirt-engine-theme/|ovirt-engine-spicehtml5/|ovirt-engine-spicehtml5-main.html$|spice/|ca.crt$|engine.ssh.key.txt$|rhevm.ssh.key.txt$|ovirt-engine-attachment/)>

Comment 12 Artyom 2013-08-25 09:04:28 UTC
Created attachment 790051 [details]
Logs engine vdsm-reg vdsm

Still no host appear for approval under host section in rhevm
See logs for more details

Comment 13 Artyom 2013-08-25 09:15:07 UTC
My mistake, was checking old rhevm, verified on is 11, host appear for approval under host section.
host RHEV Hypervisor - 6.4 - 20130813.0.el6_4

Comment 14 Alon Bar-Lev 2013-09-12 06:40:42 UTC
*** Bug 1007193 has been marked as a duplicate of this bug. ***

Comment 15 Itamar Heim 2014-01-21 22:18:33 UTC
Closing - RHEV 3.3 Released

Comment 16 Itamar Heim 2014-01-21 22:24:54 UTC
Closing - RHEV 3.3 Released