Project

General

Profile

Task #7243

Need to document how to clean up the node registry

Added by Dave Vieglais over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Robert Waltz
Category:
d1_cn_noderegistry
Start date:
2015-07-01
Due date:
% Done:

100%

Story Points:
Sprint:

History

#1 Updated by Dave Vieglais over 9 years ago

  • Assignee changed from Dave Vieglais to Robert Waltz

#2 Updated by Robert Waltz over 9 years ago

Synchronization uses Hazelcast for communications regarding changes to the nodelist.

Before a node is deleted from LDAP, d1 processing must be turned off.

For CNs that have the dataone_cn_dev_scripts package installed, to delete a node, execute the following command:

/usr/share/dataone_cn_dev_scripts/perl/ldapDeleteNode.pl -id [nodeid]

(the dataone_cn_dev_scripts can be found in subversion at https://repository.dataone.org/software/tools/trunk/dataone_cn_dev_scripts/ . The project builds a debian package.)

For CNs that do not have the dataone_cn_dev_scripts package installed, run the following commands:

ldapsearch -x -W -D cn=admin,dc=dataone,dc=org -W -H ldap://localhost:389 -b 'dc=org' '(&(objectClass=d1ServiceMethodRestriction) (d1NodeId=[nodeid]))'

on the resulting DNs run:
ldapdelete -D cn=admin,dc=dataone,dc=org -W -H ldap://localhost:389 -x "[DN]"

repeat for the following searches
ldapsearch -x -W -D cn=admin,dc=dataone,dc=org -W -H ldap://localhost:389 -b 'dc=org' '(&(objectClass=d1NodeService) (d1NodeId=$nodeid))'

ldapsearch -x -W -D cn=admin,dc=dataone,dc=org -W -H ldap://localhost:389 -b 'dc=org' '(cn=$nodeid)'

after all the entries are deleted, restart d1 processing

#3 Updated by Robert Waltz almost 9 years ago

  • Parent task deleted (#7197)

Determine best place in documentation to place this text

#4 Updated by Robert Waltz almost 9 years ago

  • Target version changed from CCI-2.0.0 to CCI-2.1.0

#5 Updated by Dave Vieglais over 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • translation missing: en.field_remaining_hours set to 0.0

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)