Bug 1135921

Summary: OVIRT36 - [RFE] ovirt-node-registration - a generic node registration
Product: [oVirt] ovirt-node Reporter: Alon Bar-Lev <alonbl>
Component: RFEsAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED CURRENTRELEASE QA Contact: cshao <cshao>
Severity: high Docs Contact:
Priority: high    
Version: ---CC: bugs, cshao, cwu, dfediuck, dougsland, fdeutsch, gklein, hadong, huiwa, iheim, leiwang, mgoldboi, nbarcet, ovirt-bugs, rbalakri, yaniwang, ycui, yeylon, ykaul
Target Milestone: ovirt-3.6.1Keywords: FutureFeature, Improvement, ZStream
Target Release: 3.6Flags: rule-engine: ovirt-3.6.z+
ylavi: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
URL: http://www.ovirt.org/Features/VDSM/GenericRegistration
Whiteboard:
Fixed In Version: ovirt-node-3.6.0-0.22.20151126git72acbb2.el7 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 10:54:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 515681, 629392, 753315, 994451, 1097685, 1113622    

Description Alon Bar-Lev 2014-09-01 07:50:32 UTC
Refresh from bug#875088.

MISSION

Implement registration process within ovirt-node that is manager agnostic. No manager specific code to be written within node to enable registration.

SCOPE

1. ovirt-node to define a protocol for registration into manager serving as http server.

a. establish pki trust for ssl
b. establish ssh trust
c. register within manager

an example can be found at engine host deploy protocol[1]

2. implement python library to implement that protocol at node side.

an example of simple design that is targeted to vdsm can be found at bug#994451, it outlines the process.

3. integrate (2) into tui.

4. integrate (2) into boot process to get args from kernel command-lines.

OUT OF SCOPE

1. implement engine side, manager implementation, of the protocol.

[1] http://www.ovirt.org/Features/HostDeployProtocol

Comment 1 Alon Bar-Lev 2014-09-01 07:51:14 UTC
*** Bug 875088 has been marked as a duplicate of this bug. ***

Comment 2 Douglas Schilling Landgraf 2015-06-24 18:41:01 UTC
Closing this bug as duplicate of bz#1231379 which has all flags for 3.6 release and it's related to the new tool which will deprecate vdsm-reg. For the record, the tool uses the new registration service as requested in bz#994451 and bz#1135921 and it's integrated to ovirt-node and can be used in a ordinary distro.

*** This bug has been marked as a duplicate of bug 1231379 ***

Comment 3 Fabian Deutsch 2015-07-15 16:04:30 UTC
Reopening this bug to get propper test coverage.

Comment 4 Fabian Deutsch 2015-07-22 07:29:55 UTC
The source code of the new generic-registration tool is available here: https://github.com/oVirt/ovirt-register/

Comment 6 Red Hat Bugzilla Rules Engine 2015-10-18 08:33:56 UTC
Bug tickets that are moved to testing must have target release set to make sure tester knows what to test. Please set the correct target release before moving to ON_QA.

Comment 7 Red Hat Bugzilla Rules Engine 2015-11-02 12:26:49 UTC
Bug tickets that are moved to testing must have target release set to make sure tester knows what to test. Please set the correct target release before moving to ON_QA.

Comment 13 Red Hat Bugzilla Rules Engine 2015-11-27 06:01:52 UTC
This bug is not marked for z-stream, yet the milestone is for a z-stream version, therefore the milestone has been reset.
Please set the correct milestone or add the z-stream flag.

Comment 14 Red Hat Bugzilla Rules Engine 2015-11-27 06:01:52 UTC
Fixed bug tickets must have target milestone set prior to fixing them. Please set the correct milestone and move the bugs back to the previous status after this is corrected.

Comment 15 Red Hat Bugzilla Rules Engine 2015-11-27 10:10:51 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 16 Red Hat Bugzilla Rules Engine 2015-11-27 10:11:06 UTC
Bug tickets that are moved to testing must have target release set to make sure tester knows what to test. Please set the correct target release before moving to ON_QA.

Comment 20 cshao 2016-01-20 03:26:46 UTC
Test version:
rhev-hypervisor7-7.2-20160113.0
ovirt-node-3.6.1-3.0.el7ev.noarch


> SCOPE
> 
> 1. ovirt-node to define a protocol for registration into manager serving as
> http server.
PASS

# cat /var/log/vdsm/register.log  | grep https
01/19/2016 08:15:15 AM Engine URL: https://10.66.73.120:443
01/19/2016 08:15:15 AM Engine https port: 443
01/19/2016 08:15:15 AM Get version via: https://10.66.73.120/ovirt-engine/services/host-register?version=1&command=get-version
01/19/2016 08:15:15 AM Download CA via: https://10.66.73.120:443/ovirt-engine/services/host-register?version=1&command=get-pki-trust
01/19/2016 08:15:15 AM Download SSH via: https://10.66.73.120:443/ovirt-engine/services/host-register?version=1&command=get-ssh-trust
01/19/2016 08:15:15 AM Registration via: https://10.66.73.120:443/ovirt-engine/services/host-register?version=1&command=register&sshUser=root&sshPort=22&port=54321&name=dhcp-66-106-14.nay.redhat.com&uniqueId=4C4C4544-0058-3810-8033-B2C04F363358


> a. establish pki trust for ssl
PASS

/var/log/vdsm/register.log
Download CA via: https://10.66.73.120:443/ovirt-engine/services/host-register?version=1&command=get-pki-trust

> b. establish ssh trust
PASS

/var/log/vdsm/register.log
Download SSH via: https://10.66.73.120:443/ovirt-engine/services/host-register?version=1&command=get-ssh-trust


> c. register within manager
PASS

/var/log/vdsm/register.log
Registration via: https://10.66.73.120:443/ovirt-engine/services/host-register?version=1&command=register&sshUser=root&sshPort=22&port=54321&name=dhcp-66-106-14.nay.redhat.com&uniqueId=4C4C4544-0058-3810-8033-B2C04F363358

> 
> an example can be found at engine host deploy protocol[1]
> 
> 2. implement python library to implement that protocol at node side.
PASS

/usr/lib/python2.7/site-packages/vdsm/tool/register.py

> 
> an example of simple design that is targeted to vdsm can be found at
> bug#994451, it outlines the process.
> 
> 3. integrate (2) into tui.
PASS

> 
> 4. integrate (2) into boot process to get args from kernel command-lines.
PASS as auto install with management_server parameters can succeed.

> 
> OUT OF SCOPE
> 
> 1. implement engine side, manager implementation, of the protocol.
PASS


So the bug is fixed, change bug status to VERIFIED.