[Engine-devel] [ATN] ovirt-engine URIs rework

Alon Bar-Lev alonbl at redhat.com
Thu Oct 31 22:56:29 UTC 2013


Hello,

Please be aware that the following[1] was merged.

Many thanks to Alexander Wels and Vojtech Szocs.

---

MISSION

Advanced farther into well behaved web application, install as much as
we can into /ovirt-engine URI name space, removing / abuse.

Synchronize between jboss and apache URI layouts so that development
setup will be as similar as possible to production.

NEW LAYOUT

  -+- / (root.war)                 Redirect: ovirt-engine
   |
   +--- api/ (api.war)
   |
   +-+- ovirt-engine/ (welcome.war) [NEW]
   | |
   | +--- docs/ (docs.war)          [NEW]
   | |
   | +-+- services(services.war)    [NEW]
   | | |
   | | +-+- attachment/
   | | |
   | | +-+- files/
   | | |
   | | +--- get-session-user
   | | |
   | | +--- health
   | | |
   | | +--- host-register
   | | |
   | | +--- pki-resource
   | | |
   | | +--- reports-redirect
   | |
   | +--- userportal/ (userportal.war)
   | |
   | +--- webadmin/ (webadmin.war)
   |
   +-+- OvirtEngineWeb/
   | |
   | +--- HealthStatus.aspx        Forward:  ovirt-engine/services/health
   | |
   | +--- HealthStatus/*           Forward:  ovirt-engine/services/health
   | |
   | +--- VdsAutoRegistration.aspx Forward:  ovirt-engine/services/host-register
   | |
   | +--- register                 Forward:  ovirt-engine/services/host-register
   |
   +-+- RHEVManagerWeb/
   | |
   | +--- VdsAutoRegistration.aspx Forward:  ovirt-engine/services/host-register
   |
   +--- ca.crt                     Forward:  ovirt-engine/serivces/pki-resource
   |
   +--- engine.ssh.key.txt         Forward:  ovirt-engine/serivces/pki-resource
   |
   +--- rhevm.ssh.key.txt          Forward:  ovirt-engine/serivces/pki-resource

LAYOUT NOTES

HealthStatus servlet is used by python using urllib2 which supports
redirect, it does not accept extra path, so redirect into servlet
at services is safe, but forward was installed for now.

Registration uses python httplib which does not support redirect, so
these uris are forwarded into servlets at services.

/ValidateSession is gone as reports can be modified to support the new
servlet name at /services/get-session-user.

GWT applications have human usable URIs, no duplication no object names.

[1] http://gerrit.ovirt.org/#/c/20473/



More information about the Engine-devel mailing list