Koji Kawamura created NIFI-2686:
-----------------------------------

             Summary: Confusing log message with tls-toolkit.sh "No hostnames 
specified"
                 Key: NIFI-2686
                 URL: https://issues.apache.org/jira/browse/NIFI-2686
             Project: Apache NiFi
          Issue Type: Bug
          Components: Tools and Build
    Affects Versions: 1.0.0
            Reporter: Koji Kawamura
            Priority: Minor


When I executed the following command (1), I saw a INFO log saying that "No 
hostnames specified" (2), even though I specified it with hostnames command 
argument.
The corresponding java check code (3) becomes true if instanceDefinitions is 
not empty. I believe the log is meant for when hostname is not specified. The 
nifi.properties and key stores were successfully generated.

(1) Executed command
./bin/tls-toolkit.sh standalone --hostnames 'localhost' --clientCertDn 
"CN=Koji.Kawamura,OU=NIFI" -o /tmp/generated-keys

(2) INFO log
{code}
2016-08-29 11:18:57,024 INFO [main] o.a.n.t.t.s.TlsToolkitStandalone No 
hostnames specified, not generating any host certificates or configuration.
{code}

(3) Check condition:
{code: title=TlsToolkitStandalone.java line 135}
if (!instanceDefinitions.isEmpty() && logger.isInfoEnabled()) {
    logger.info("No " + TlsToolkitStandaloneCommandLine.HOSTNAMES_ARG + " 
specified, not generating any host certificates or configuration.");
}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to