Open SpeedBlack opened 6 years ago
I continued my tests, with a second container in the same pod (localhost), I have the following error :
# skydive-flow-matrix --analyzer 127.0.0.1:8082
Traceback (most recent call last):
File "/usr/local/bin/skydive-flow-matrix", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/matrix/matrix.py", line 451, in main
csv_output(matrix, args.list_no_peers)
File "/usr/local/lib/python2.7/dist-packages/matrix/matrix.py", line 266, in csv_output
result = matrix.get_matrix()
File "/usr/local/lib/python2.7/dist-packages/matrix/matrix.py", line 107, in get_matrix
"G.%sV().Has('Type', 'host').HasKey('Sockets')" % self.get_context())
File "/usr/local/lib/python2.7/dist-packages/skydive/rest/client.py", line 111, in lookup_nodes
return self.lookup(gremlin, Node)
File "/usr/local/lib/python2.7/dist-packages/skydive/rest/client.py", line 104, in lookup
objs = self.request("/api/topology", method="POST", data=data)
File "/usr/local/lib/python2.7/dist-packages/skydive/rest/client.py", line 85, in request
raise BadRequest(e.read())
skydive.rest.client.BadRequest: <HTML><TITLE>503 Service Unavailable</TITLE>
<H1>503 Service Unavailable</H1>
Failed to connect to server <B>127.0.0.1</B></HTML>
On the other hand, if I try, for example, the command below, the analyzer answers correctly:
# skydive client status --analyzer 127.0.0.1:8082
{
"Agents": {
"XXXX": {
"ServiceType": "agent",
"ClientProtocol": "protobuf",
"Addr": "X.X.X.X",
"Port": 56328,
"IsConnected": true,
"ConnectTime": "2018-10-24T14:22:23.256576159Z",
"RemoteHost": "XXXX"
},
"XXXX": {
"ServiceType": "agent",
"ClientProtocol": "protobuf",
"Addr": "X.X.X.X",
"Port": 42862,
"IsConnected": true,
"ConnectTime": "2018-10-24T14:22:23.300763942Z",
"RemoteHost": "XXXX"
}
},
"Peers": {
"Incomers": {},
"Outgoers": {}
},
"Publishers": {},
"Subscribers": {
"X.X.X.X:45560": {
"ServiceType": "webui",
"ClientProtocol": "json",
"Addr": "X.X.X.X",
"Port": 45560,
"IsConnected": true,
"ConnectTime": "2018-10-24T14:22:30.724894609Z",
"RemoteHost": "X.X.X.X:45560"
}
},
"Alerts": {
"IsMaster": true
},
"Captures": {
"IsMaster": true
},
"Probes": [
"fabric",
"peering"
]
}
I use Skydive version 0.20.0.
Do you have any idea ?
Thanks !
Hi,
I'm trying to discover the skydive-flow-matrix but I have a problem connecting to the analyzer :
I'm trying to use this tool in Openshift. Here is my current configuration :
I tried to install the tool in the same image (skydive/skydive:0.20.0) to use it in the same pod or in another pod but the result is the same.
Here is the current configuration :
Will I have an option to activate on the Analyzer ? Do you have any idea ?
Thanks !