2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2024-12-25 12:41:45 +00:00
2 xcatprobe_requests
Mark Gurevich edited this page 2016-09-08 09:06:10 -04:00

This page is created to hold some thoughts about what other probe functions we should provide that may be useful to the users of xCAT

osimages:

  • detect when multiple diskless image templates are sharing the same rootimgdir attribute

table attributes

  • verify format and validity of attribute values in all xCAT db tables. For example check if a value number or alpha, "yes" or "no", supported string like "ipmi" or "kvm", etc.

node definitions:

  • In discovery, we have a discovered node definition using bmcdiscover command. There are situations where a user may run it again with the -w option and write definitions into xCAT for nodes that have already been discovery (If the IP addresses do not change) Or, there may be times when the cleanup of the osimage definition in xCAT is not working as intended. We should have a probe command that will check the "discovered" definitions and run it against the node definition to see if the node is actually discovered in xCAT
  • Some way to check the discovery status of a cluster. For example, if there are 2000 pre-defined nodes, run the probe command against xCAT to get a percentage of the discovery. If 1000 nodes have been discovered, 50% would be the results. Can we leverage the DB to query this directly?
  • In addition to #2, can we also have a count for identifying the state of the pre-defined nodes
    ./some_probe_command cluster_status
    Number of nodes defined in this xCAT cluster: 2000
    100% of the nodes defined have been discovered!
    
    ./some_probe_command cluster_status
    Number of nodes defined in this xCAT cluster: 2000
    Awaiting Discovery. . . . : 1500 
    In Genesis/Discovery. . . : 400
    OS Provisioned. . . . . . : 100
    5% of the nodes defined have been discovered!