HTTPS通知未到达天鹅座

时间:2019-04-26 13:09:41

标签: fiware-orion fiware-cygnus

猎户座版本为2.1.0 Orion使用-https选项在HTTPS中启动

我们在订阅的URL中使用“ HTTPS”协议架构->参考“:” https://cygnus.domain.com/notify

当我们插入与订阅匹配的实体时,该实体是在Orion中创建的,而不是在STH中创建的。

Orion日志返回:通知已成功发送到https://cygnus.domain.com:443/notify

如果我们在订阅中的URL中使用“ HTTP”协议架构,则它可以正常工作 如果我们使用curl在HTTP或HTTPS中直接通知天鹅座,那么它将起作用

猎户座日志如下:

time=Friday 22 Feb 11:24:28 2019.158Z | lvl=INFO | corr=N/A | trans=1550831768-689-00000000058 | from=pending | srv=pending | subsrv=pending | comp=Orion | op=logMsg.h[1832]:lmTransactionStart | msg=Starting transaction to https://cygnus.domain.com:443/notify
 time=Friday 22 Feb 11:24:28 2019.159Z | lvl=INFO | corr=6a8319ac-3694-11e9-872e-0242c0a81006 | trans=1550831768-689-00000000056 | from=10.6.11.36 | srv=svctestnca | subsrv=/svcpath/testnca | comp=Orion | op=logMsg.h[1916]:lmTransactionEnd | msg=Transaction ended
 time=Friday 22 Feb 11:24:28 2019.177Z | lvl=INFO | corr=N/A | trans=1550831768-689-00000000057 | from=pending | srv=pending | subsrv=pending | comp=Orion | op=httpRequestSend.cpp[615]:httpRequestSendWithCurl | msg=Notification Successfully Sent to https://cygnus.domain.com:443/notify
 time=Friday 22 Feb 11:24:28 2019.159Z | lvl=INFO | corr=N/A | trans=1550831768-689-00000000058 | from=pending | srv=pending | subsrv=pending | comp=Orion | op=httpRequestSend.cpp[594]:httpRequestSendWithCurl | msg=Sending message 20 to HTTP server: sending message of 826 bytes to HTTP server
 time=Friday 22 Feb 11:24:28 2019.176Z | lvl=INFO | corr=N/A | trans=1550831768-689-00000000058 | from=pending | srv=pending | subsrv=pending | comp=Orion | op=logMsg.h[1916]:lmTransactionEnd | msg=Transaction ended

感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

此问题已解决 订阅参考为https://cygnus.domain.com/notify 但是Orion在https://cygnus.domain.com:443/notify

中对其进行了转换

我们有一个HAProxy来负载平衡请求。存在一个ACL来接受doamin cygnus.domain.com,但不存在一个ACL来接受cygnus.domain.com:443

修改ACL可解决问题

  • 旧ACL:acl IS_Cygnus hdr(host)-i cygnus.domain.com
  • 新ACL:acl IS_Cygnus hdr_beg(host)-i cygnus.domain.com