Bug 1653773
Summary: | Thread terminated due to uncaught null pointer exception | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Sai Sindhur Malleni <smalleni> |
Component: | opendaylight | Assignee: | lpeer <lpeer> |
Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Noam Manos <nmanos> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 13.0 (Queens) | CC: | jhershbe, mkolesni, nyechiel, smalleni |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-12-17 10:16:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sai Sindhur Malleni
2018-11-27 15:45:35 UTC
This exception happens here: public void addBridgeForNodeIid(InstanceIdentifier<Node> nodeIid, OvsdbBridgeAugmentation bridge) { if (nodeIid != null && bridge != null) { nodeIidToBridgeMap.put(nodeIid, bridge); } } It would seem the only way this can happen is if nodeIidToBridgeMap is null. nodeIidToEtc is initialized here: public void start() { try { createIdPool(); configEntityCandidate = entityOwnershipService.registerCandidate( new Entity(IfmConstants.INTERFACE_CONFIG_ENTITY, IfmConstants.INTERFACE_CONFIG_ENTITY)); bindingEntityCandidate = entityOwnershipService.registerCandidate( new Entity(IfmConstants.INTERFACE_SERVICE_BINDING_ENTITY, IfmConstants.INTERFACE_SERVICE_BINDING_ENTITY)); this.ifaceToTpMap = new ConcurrentHashMap<>(); this.ifaceToNodeIidMap = new ConcurrentHashMap<>(); this.nodeIidToBridgeMap = new ConcurrentHashMap<>(); ifmStatusProvider.reportStatus(ServiceState.OPERATIONAL); LOG.info("InterfacemgrProvider Started"); } catch (CandidateAlreadyRegisteredException e) { LOG.error("Failed to register entity {} with EntityOwnershipService", e.getEntity()); ifmStatusProvider.reportStatus(e); } catch (InterruptedException | ExecutionException e) { LOG.error("Failed to create idPool for InterfaceMgr", e); } } If an exception is thrown in the first three lines of the try block the hash maps will never be initialized. Can you please check if any of the LOG.error messages are present higher up in the log? Also, please check for "InterfacemgrProvider Started"? NB: In general there is no reason for the hash map initializations to be in the try block. A patch should be raised to move them. Sai, can you please attach the relevant logs from when this happened? Closing since there are no logs attached. Please attach the relevant logs and reopen the bug should you encounter it again. |