I am trying to set up clustering in Opendaylight, just as described at the Documentation page. When I try to monitor the clustering status using Jolokia, ODL responds with a 401 unauthorized error. Does Jolokia have a specific username and password or does it still use admin/admin?
The commands I am using to query ODL are:
curl -u admin:admin -X GET http://10.5.1.201:8181/jolokia/list
or
curl -u admin:admin -X GET http://10.5.1.201:8181/jolokia/read/org.opendaylight.controller:type=DistributedConfigDatastore,Category=ShardManager,name=shard-manager-config
And the error message I receive is:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 401 Unauthorized</title>
</head>
<body><h2>HTTP ERROR 401 Unauthorized</h2>
<table>
<tr><th>URI:</th><td>/jolokia/list</td></tr>
<tr><th>STATUS:</th><td>401</td></tr>
<tr><th>MESSAGE:</th><td>Unauthorized</td></tr>
<tr><th>SERVLET:</th><td>org.jolokia.osgi.servlet.JolokiaServlet</td></tr>
</table>
</body>
</html>
Does anybody know what I am missing?