HTTPS通知无法到达天鹅座

问题描述 投票:1回答:1

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

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

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

但是猎户座日志返回:通知成功发送到https://cygnus.domain.com:443/notify

如果我们在订阅中使用URL中的“HTTP”协议模式,那么它是否有效如果我们使用curl通过HTTP或HTTPS通知dirctly Cygnus它的工作原理

猎户座日志吼叫:

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

谢谢你的帮助。

fiware-orion fiware-cygnus
1个回答
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
© www.soinside.com 2019 - 2024. All rights reserved.