contrail-logs fails in Contrail 3
Distinguished Expert

contrail-logs fails in Contrail 3

by Distinguished Expert on ‎12-16-2016 02:52 PM - edited on ‎12-16-2016 03:38 PM by Administrator Administrator (1,361 Views)



Issuing contrail-logs command fails with the following message:



root@openstack:~# contrail-logs 
HTTP error code: 401

The same command was working fine in the previous Contrail versions, because unauthenticated requests to analytics API were allowed. Now HTTP error 401 (unauthorized) is returned.





The solution is to provide admin username and password, as in this example:



root@openstack:~# contrail-logs --admin-user admin --admin-password contrail
2016 Dec 11 23:16:51.672922 openstack [Config:contrail-discovery:0:__default__][SYS_INFO] : discServiceLog:3997 <cl=compute-2:contrail-vrouter-nodemgr,st=Collector>  subs service=openstack, assign=2, count=2