Hi,
Back again with the next stage of our trial. We're trying to bridge a docker OpenDXL broker into an existing hub. I thought I would get it working with 3 docker containers first. I went onto the primary broker in the hub and created a cert under broker, deleted the files in the keystore on broker 1fd87aac-0784-4362-a8ec-38ca791e301a and put the new cert bundle in. Everything is up but messages sent don't appear in any of the other brokers. The docker run strings are shown below:
docker run -d --restart=unless-stopped -it -p 1443:443 -p 1883:8883 -p 2443:8443 -v /dxlbroker-volume-1:/dxlbroker-volume:z --name opendxl-broker1 opendxl:broker-001
docker run -d --restart=unless-stopped -it -p 3443:443 -p 2883:8883 -p 4443:8443 -v /dxlbroker-volume-2:/dxlbroker-volume:z --name opendxl-broker2 opendxl:broker-001
docker run -d --restart=unless-stopped -it -p 5443:443 -p 3883:8883 -p 6443:8443 -v /dxlbroker-volume-3:/dxlbroker-volume:z --name opendxl-broker3 opendxl:broker-001
Docker bridge
- "Containers": {
- "76c018659c6f1f9f7d4694224f58da995980926068b800f38a3d772e0dc18fa4": {
- "Name": "opendxl-broker2",
- "EndpointID": "0986343596b30da75fa6d6175624a108cfbb6dadbc40f1198cdffe9a80b3ddbd",
- "MacAddress": "02:42:ac:11:00:07",
- "IPv4Address": "172.17.0.7/16",
- "IPv6Address": ""
- },
- "d0b3196e9364e3fcbba75a399a965fe0f3363b872a08aba7d92afd1100973359": {
- "Name": "opendxl-broker3",
- "EndpointID": "51d209487e8464bcb31ceb8c71675b4bd380d9a1bb06930d534914a270a669af",
- "MacAddress": "02:42:ac:11:00:08",
- "IPv4Address": "172.17.0.8/16",
- "IPv6Address": ""
- },
- "ed7a95f4f8d6de50f55c7ef35e7407c45820d51526d4d73911b73d9cc96b662e": {
- "Name": "opendxl-broker1",
- "EndpointID": "19c97e960e687a32dffc31ed6f052288978343de9f1c0b49eaf7daba6beb1385",
- "MacAddress": "02:42:ac:11:00:03",
- "IPv4Address": "172.17.0.3/16",
- "IPv6Address": ""
- }
Here are is the file I have in all three containers for policy/brokerstate.policy
- {
- "hubs": [{
- "id": "rootHub",
- "primaryBroker": "20e7820c-b339-48dd-987f-21805f86aea4",
- "secondaryBroker": "5f4e8e79-08ab-4602-9248-527df5db1e45",
- "name": "Root Hub"
- }],
- "brokers": [{
- "id": "20e7820c-b339-48dd-987f-21805f86aea4",
- "hostname": "d7a95f4f8d6",
- "port": "1883",
- "webSocketPort": "1443",
- "altHostname": "172.17.0.3"
- },
- {
- "id": "5f4e8e79-08ab-4602-9248-527df5db1e45",
- "hostname": "76c018659c6f",
- "port": "2883",
- "webSocketPort": "3443",
- "altHostname": "172.17.0.7"
- },
- {
- "id": "1fd87aac-0784-4362-a8ec-38ca791e301a",
- "hostname": "d0b3196e9364",
- "port": "3883",
- "webSocketPort": "5443",
- "altHostname": "172.17.0.8",
- "parentId": "rootHub"
- }
- ]
- }
Anything I've missed?
The two hub brokers are showing root hub. The bridged broker isn't showing a parent.