diff --git a/src/main/java/net/floodlightcontroller/core/internal/Controller.java b/src/main/java/net/floodlightcontroller/core/internal/Controller.java index 6208605ec0bf88add3167ffa4726ab72eb0cca96..76f166ad1e850e604eda0680bcd171a7518302a4 100644 --- a/src/main/java/net/floodlightcontroller/core/internal/Controller.java +++ b/src/main/java/net/floodlightcontroller/core/internal/Controller.java @@ -1708,7 +1708,11 @@ public class Controller implements IFloodlightProviderService, roleString = properties.getProperty("floodlight.role"); } catch (IOException exc) { - log.error("Error reading current role value from file: {}", rolePath); + // Don't treat it as an error if the file specified by the + // rolepath property doesn't exist. This lets us enable the + // HA mechanism by just creating/setting the floodlight.role + // property in that file without having to modify the + // floodlight properties. } } }