Customer reports that -n flag is not honored for lsslp for P8 LE.
lsslp -s PBMC -w
It discovered 5 servers. The customer changed the names of the severs. Then removed 1 server from xCAT DB, then run the the following command:
lsslp -s PBMC -w -n
The command put all 5 servers in the xCAT DB instead of the one that was removed.
The function with -n should check against the ip address and only puts the new ones in.
The list of nodes found by lsslp:
The nodes already known to xCAT:
All the cn00[678] nodes are similar, and were added to the node table via lsslp -w. I have added another node to my cluster, Server-8247-22L-SN2126F3A, which I will rename to cn005-mgmt. I would expect lsslp -w will notice that the Serial, MTM, and IP address of 3 nodes are already present, and skip those during the database update process. However,
running lsslp -s PBMC -w -V
the node database has the original 3 nodes re-inserted with their original display names.
Er Tao, could you work on this bug? Thanks.
Fixed this defect with git commit hash num 4dd21f177578050491127cbb2e3762a39f125910 for master and 156840fc28fa072dac307a3a617f34373016c516 for 2.9
Haven't update nodetype attribute for predefined node after discovery process. Checked in code with git commit hash num fd1734478cfaea88a42f96ac9fbc123c1b1552cc for 2.9 and f84470119831c157379af74a3d4f43f48d99dcd5 for master.