Approve a Member Node
=====================

Adding a Member Node to an environment is a two step process:

1. The Member Node must register itself with a Coordinating Node.

2. The Member Node registration must be approved.

See :doc:`/member_node_deployment/mn_approval_process` for the procedure to be 
followed for registering a member node.

Once a Member Node has been registered to an environment, it is necessary to
approve the registration so that the Coordinating Nodes will start evaluating
and processing content offered by the Member Node. The approval process is
outlines below.

There is not a really good notification system in place, other than someone gets
an email, that a node needs to be approved. So, if you know a node needs
approval, the first step is to review the ldap entry for the node. SSH to the
primary CN for the respective environment. For production, this will be
*cn.dataone.org*, which will be one of::

  cn-ucsb-1.dataone.org
  cn-unm-1.dataone.org
  cn-orc-1.dataone.org

You can review all membernodes by executing the command on the CN::

  ldapsearch -x -W -D cn=admin,dc=dataone,dc=org -W -H ldap://localhost:389 \
   -b 'dc=org' 'd1NodeType=mn'


You can review all the content related to a new node id with the command::

  ldapsearch -x -W -D cn=admin,dc=dataone,dc=org -W -H ldap://localhost:389 \
  -b 'dc=org' 'd1NodeId=NODEID'


If the node structure looks good, then you will need to approve the node::

    /usr/local/bin/dataone-approve-node

you will be prompted with a list of nodes that are unapproved

Type in the number of node to approve. Verify that the selection is correct and 
you're done.  
