Bug 1135921 - OVIRT36 - [RFE] ovirt-node-registration - a generic node registration
Summary: OVIRT36 - [RFE] ovirt-node-registration - a generic node registration
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-node
Classification: oVirt
Component: RFEs
Version: ---
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-3.6.1
: 3.6
Assignee: Douglas Schilling Landgraf
QA Contact: cshao
URL: http://www.ovirt.org/Features/VDSM/Ge...
Whiteboard:
: 875088 (view as bug list)
Depends On:
Blocks: 515681 629392 753315 994451 1097685 1113622
TreeView+ depends on / blocked
 
Reported: 2014-09-01 07:50 UTC by Alon Bar-Lev
Modified: 2016-02-18 10:54 UTC (History)
19 users (show)

Fixed In Version: ovirt-node-3.6.0-0.22.20151126git72acbb2.el7
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-18 10:54:04 UTC
oVirt Team: Node
Embargoed:
rule-engine: ovirt-3.6.z+
ylavi: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 40966 0 None None None Never
oVirt gerrit 41081 0 None None None Never
oVirt gerrit 41303 0 None None None Never
oVirt gerrit 43180 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.