On Tue, Jul 02, 2013 at 10:31:24PM +0800, WXR wrote:
> The cloudstack-management service can not start normally.
> The logs indicate the reason but I don't know how to get rid of the issue.
> 
> 2013-07-02 19:26:09,078 INFO  [utils.component.ComponentContext] 
> (Timer-1:null) Running SystemIntegrityChecker managementServerNode
> 2013-07-02 19:26:09,080 ERROR [utils.component.ComponentContext] 
> (Timer-1:null) System integrity check failed. Refuse to startup

Strange.  Can you bump the log level to DEBUG?

I see that the exception is coming from .

Here's the relevant code:

public class ManagementServerNode extends AdapterBase implements 
SystemIntegrityChecker {
    private final Logger s_logger = 
Logger.getLogger(ManagementServerNode.class);

    private static final long s_nodeId = MacAddress.getMacAddress().toLong();

    public static enum State { Up, Down };

    public ManagementServerNode() {
        setRunLevel(ComponentLifecycle.RUN_LEVEL_FRAMEWORK_BOOTSTRAP);
    }

    @Override
    public void check() {
        if (s_nodeId <= 0) {
            throw new CloudRuntimeException("Unable to get the management 
server node id");
        }
    }

    public static long getManagementServerId() {
        return s_nodeId;
    }

    @Override
    public boolean start() {
        try {
            check();
        } catch (Exception e) {
            s_logger.error("System integrity check exception", e);
            System.exit(1);
        }
        return true;
    }
}



>From what I see, it seems like the only exception would be caused by the
s_nodeId being <= 0, which is odd because I assume you have a mac
address... ;-)

DEBUG log level should help.

Reply via email to