Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

Hyperic HQ

RabbitMQ plugin - command line discover fails with ERROR AutoScan failed for RabbitMQ

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Deferred
  • Affects Version/s: 4.6, 4.x Sprint 27
  • Fix Version/s: None
  • Component/s: Plugins
  • Environment:
    Hyperic server 4.6.0-EE-246 on CentOS 5.4 x64 with embedded Postgres DB
    Hyperic agent 4.6.0-EE-244 on CentOS 5.4 x64
  • Case Links:
    none
  • Regression:
    Yes
  • Tags:

Description

RabbitMQ plugin - command line discover fails with ERROR AutoScan failed for RabbitMQ.

This occurs on both RabbitMQ running HTTPS and RabbitMQ running non-https.

Running the command line discover command results with 0 servers found and throws the following:

ERROR [Thread-0] [AutoScan] AutoScan failed for RabbitMQ
java.lang.IllegalStateException: java.security.KeyStoreException:  alias is null.  filePath is null.  password is null. 
	at org.hyperic.util.security.DefaultSSLProviderImpl.<init>(DefaultSSLProviderImpl.java:128)
	at org.hyperic.util.http.HQHttpClient.<init>(HQHttpClient.java:35)
	at org.hyperic.hq.plugin.rabbitmq.core.HypericRabbitAdmin.<init>(HypericRabbitAdmin.java:92)
	at org.hyperic.hq.plugin.rabbitmq.core.HypericRabbitAdmin.<init>(HypericRabbitAdmin.java:116)
	at org.hyperic.hq.plugin.rabbitmq.detect.RabbitServerDetector.generateSignature(RabbitServerDetector.java:357)
	at org.hyperic.hq.plugin.rabbitmq.detect.RabbitServerDetector.getServerResources(RabbitServerDetector.java:98)
	at org.hyperic.hq.autoinventory.scanimpl.NullScan.scan(NullScan.java:83)
	at org.hyperic.hq.autoinventory.Scanner.start(Scanner.java:198)
	at org.hyperic.hq.autoinventory.ScanManager.mainRunLoop(ScanManager.java:141)
	at org.hyperic.hq.autoinventory.ScanManager.access$000(ScanManager.java:41)
	at org.hyperic.hq.autoinventory.ScanManager$1.run(ScanManager.java:107)
Caused by: java.security.KeyStoreException:  alias is null.  filePath is null.  password is null. 
	at org.hyperic.util.security.KeystoreManager.getKeyStore(KeystoreManager.java:80)
	at org.hyperic.util.security.DefaultSSLProviderImpl.<init>(DefaultSSLProviderImpl.java:111)
	... 10 more

See attached 'rabbitmq-cli-discover.log' for full command line output for non-https RabbitMQ.
See attached 'rabbitmq-cli-discover-https.log' for full command line output for https RabbitMQ.

Expected Result:
Command line discover finds RabbitMQ server successfully and no errors reported

Actual Result:
Command line discover does not find RabbitMQ server and error reported

Steps to Reproduce:

  • Execute command line disover for RabbitMQ on non-https RabbitMQ server
    • >java -jar hq-pdk-4.6.0.BUILD-SNAPSHOT.jar -Dplugins.include=rabbitmq -m discover -Dlog=debug

Activity

Hide
German Laullon added a comment -

This is the real error:
ERROR [Thread-0] [AgentKeystoreConfig] Agent Properties error: Failed to load: /opt/hyperic/4.6.0-EE-246/hyperic-hqee-agent-4.6.0.BUILD-SNAPSHOT/bundles/agent-4.6.0.BUILD-SNAPSHOT-20110722112449/pdk/lib/conf/agent.properties

Run the pluing on:
/opt/hyperic/4.6.0-EE-246/hyperic-hqee-agent-4.6.0.BUILD-SNAPSHOT

add "-Dhttps=true" to the command line.

Show
German Laullon added a comment - This is the real error: ERROR [Thread-0] [AgentKeystoreConfig] Agent Properties error: Failed to load: /opt/hyperic/4.6.0-EE-246/hyperic-hqee-agent-4.6.0.BUILD-SNAPSHOT/bundles/agent-4.6.0.BUILD-SNAPSHOT-20110722112449/pdk/lib/conf/agent.properties Run the pluing on: /opt/hyperic/4.6.0-EE-246/hyperic-hqee-agent-4.6.0.BUILD-SNAPSHOT add "-Dhttps=true" to the command line.
Hide
Frederic Calindas added a comment -

Running the command from the requested location and using 'Dhttps=true' properly returns correct result:

# java -jar ./bundles/agent-4.6.0.BUILD-SNAPSHOT-20110722112449/pdk/lib/hq-pdk-4.6.0.BUILD-SNAPSHOT.jar -Dplugins.include=rabbitmq -m discover -Dhttps=true
1 server detected

The command should be able to be executed from any path as with other plugins.

This should be addressed but severity can be lowered.

Show
Frederic Calindas added a comment - Running the command from the requested location and using 'Dhttps=true' properly returns correct result:
# java -jar ./bundles/agent-4.6.0.BUILD-SNAPSHOT-20110722112449/pdk/lib/hq-pdk-4.6.0.BUILD-SNAPSHOT.jar -Dplugins.include=rabbitmq -m discover -Dhttps=true
1 server detected
The command should be able to be executed from any path as with other plugins. This should be addressed but severity can be lowered.
Hide
German Laullon added a comment -

I agree, but post 4.6

Show
German Laullon added a comment - I agree, but post 4.6
Hide
Yoav Epelman added a comment -

<Bugs division between team leaders>
We will not fix that in the near future. Closing.

Show
Yoav Epelman added a comment - <Bugs division between team leaders> We will not fix that in the near future. Closing.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved:
    Last comment:
    32 weeks, 6 days ago