TripleO Openstack train introspection timed out - openstack

i have a question why when i run "openstack overcloud node introspect --all-manageable" is always failed,
here is my instackenv.json :
(undercloud) [stack#tripleo ~]$ cat instackenv.json
{
"nodes":[
{
"capabilities": "profile:compute,boot_option:local",
"name": "tripleo.compute1",
"pm_type": "pxe_ilo",
"pm_user": "admin",
"pm_password": "password",
"pm_addr": "10.14.32.9",
"mac":[
"98:F2:B3:21:DA:46"
]
},
{
"capabilities": "profile:control,boot_option:local",
"name": "tripleo.controller1",
"pm_type": "pxe_ilo",
"pm_user": "admin",
"pm_password": "password",
"pm_addr": "10.14.32.8",
"mac":[
"98:F2:B3:21:FA:10"
]
}
]
}
here is my ironic-inspector.log :
2020-10-16 10:37:33.775 7 ERROR ironic_inspector.node_cache [-] Introspection for nodes [u'14b4b5f0-71ec-4107-9f30-236abb705808', u'fa623d6d-0241-4b3a-a04b-079f1e7ed847'] has timed out
2020-10-16 10:37:33.777 7 DEBUG ironic_inspector.node_cache [-] [node: 14b4b5f0-71ec-4107-9f30-236abb705808 state waiting] Attempting to acquire lock acquire_lock /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:105
2020-10-16 10:37:33.778 7 DEBUG ironic_inspector.node_cache [-] [node: 14b4b5f0-71ec-4107-9f30-236abb705808 state waiting] Successfully acquired lock acquire_lock /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:107
2020-10-16 10:37:33.778 7 DEBUG ironic_inspector.node_cache [-] [node: 14b4b5f0-71ec-4107-9f30-236abb705808 state waiting] Successfully released lock release_lock /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:119
2020-10-16 10:37:33.778 7 DEBUG ironic_inspector.node_cache [-] [node: 14b4b5f0-71ec-4107-9f30-236abb705808 state waiting] Executing fsm(waiting).process_event(timeout) fsm_event /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:207
2020-10-16 10:37:33.778 7 INFO ironic_inspector.node_cache [-] [node: 14b4b5f0-71ec-4107-9f30-236abb705808 state waiting] Updating node state: waiting --> error
2020-10-16 10:37:33.778 7 DEBUG ironic_inspector.node_cache [-] [node: 14b4b5f0-71ec-4107-9f30-236abb705808 state waiting] Committing fields: {'state': 'error'} _commit /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:150
2020-10-16 10:37:33.789 7 DEBUG ironic_inspector.node_cache [-] [node: 14b4b5f0-71ec-4107-9f30-236abb705808 state error] Committing fields: {'finished_at': datetime.datetime(2020, 10, 16, 3, 37, 33, 778442), 'error': 'Introspection timeout'} _commit /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:150
2020-10-16 10:37:33.800 7 DEBUG ironic_inspector.node_cache [-] [node: fa623d6d-0241-4b3a-a04b-079f1e7ed847 state waiting] Attempting to acquire lock acquire_lock /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:105
2020-10-16 10:37:33.800 7 DEBUG ironic_inspector.node_cache [-] [node: fa623d6d-0241-4b3a-a04b-079f1e7ed847 state waiting] Successfully acquired lock acquire_lock /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:107
2020-10-16 10:37:33.801 7 DEBUG ironic_inspector.node_cache [-] [node: fa623d6d-0241-4b3a-a04b-079f1e7ed847 state waiting] Successfully released lock release_lock /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:119
2020-10-16 10:37:33.801 7 DEBUG ironic_inspector.node_cache [-] [node: fa623d6d-0241-4b3a-a04b-079f1e7ed847 state waiting] Executing fsm(waiting).process_event(timeout) fsm_event /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:207
2020-10-16 10:37:33.801 7 INFO ironic_inspector.node_cache [-] [node: fa623d6d-0241-4b3a-a04b-079f1e7ed847 state waiting] Updating node state: waiting --> error
2020-10-16 10:37:33.801 7 DEBUG ironic_inspector.node_cache [-] [node: fa623d6d-0241-4b3a-a04b-079f1e7ed847 state waiting] Committing fields: {'state': 'error'} _commit /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:150
2020-10-16 10:37:33.807 7 DEBUG ironic_inspector.node_cache [-] [node: fa623d6d-0241-4b3a-a04b-079f1e7ed847 state error] Committing fields: {'finished_at': datetime.datetime(2020, 10, 16, 3, 37, 33, 801202), 'error': 'Introspection timeout'} _commit /usr/lib/python2.7/site-packages/ironic_inspector/node_cache.py:150
here is my journalctl :
(undercloud) [stack#tripleo ~]$ sudo journalctl -u openstack-ironic-inspector-dnsmasq
-- No entries --
(undercloud) [stack#tripleo ~]$ sudo journalctl -u openstack-ironic-inspector
-- No entries --
(undercloud) [stack#tripleo ~]$
here is my controller not getting dhcp and my result in undercloud.
thanks

and there is some dhcp request :
[stack#tripleo ~]$ sudo tcpdump -i any port 67 or port 68 or port 69
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
09:50:57.118995 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:02:f5 (oui Unknown), length 548
09:50:57.118995 ethertype IPv4, IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:02:f5 (oui Unknown), length 548
09:50:57.118995 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:02:f5 (oui Unknown), length 548
09:51:05.193145 ethertype IPv4, IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:02:f5 (oui Unknown), length 548
09:51:05.193153 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:02:f5 (oui Unknown), length 548
09:51:05.193153 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:02:f5 (oui Unknown), length 548
09:51:05.602879 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:42:a5 (oui Unknown), length 548
09:51:05.602879 ethertype IPv4, IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:42:a5 (oui Unknown), length 548
09:51:05.603323 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:42:a5 (oui Unknown), length 548
09:51:09.667411 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:42:a5 (oui Unknown), length 548
09:51:09.667412 ethertype IPv4, IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:42:a5 (oui Unknown), length 548
09:51:09.667411 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:42:a5 (oui Unknown), length 548
09:51:17.741535 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:42:a5 (oui Unknown), length 548
09:51:17.741536 ethertype IPv4, IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:42:a5 (oui Unknown), length 548
09:51:17.741535 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:42:a5 (oui Unknown), length 548
09:51:21.286506 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:02:f5 (oui Unknown), length 548
09:51:21.286506 ethertype IPv4, IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:02:f5 (oui Unknown), length 548
09:51:21.286871 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 98:f2:b3:2c:02:f5 (oui Unknown), length 548
10:15:53.427748 IP tripleo.localdomain.52678 > tripleo.localdomain.tftp: 47 RRQ "map-file" octet tsize 0 blksize 512 timeout 3
and here is my undercloud.conf :
[stack#tripleo ~]$ sudo cat undercloud.conf | grep -v "^#" | grep -v "^$" [DEFAULT]
certificate_generation_ca = local
generate_service_certificate = true
local_interface = eno2
local_ip = 192.168.35.1/24
undercloud_admin_host = 192.168.35.2
undercloud_enable_selinux = true
undercloud_hostname = tripleo.undercloud
undercloud_public_host = 192.168.35.3
[ctlplane-subnet]
cidr = 192.168.35.0/24
dhcp_end = 192.168.35.20
dhcp_start = 192.168.35.5
gateway = 192.168.35.1
inspection_iprange = 192.168.35.25,192.168.45.80
[stack#tripleo ~]$
just info if I deploy a tripleo baremetal with 1 undercloud, 1 controller, and 1 compute.and for the mac address controller is 98: f2: b3: 2c: 02: f5 and compute is 98: f2: b3: 2c: 42: a5
I've tried to turn off firewall and selinux but it had no effect and error was still same

Related

postman http get request with authentification fails with 401 reply

I have an IOT device (PV inverter). As with many of these there is an official API mostly for data retrival and some settings. However, given the right credentials (admin account) you can configure significantly more in the webinterface.
I would like to be able to do this from my home automation server directly (via node red finally). So I tried to have a look at the communication between the browser and the inverter via Wireshark.
I found some GET an POST calls, and wanted to start with the replication of a GET call via node-red or Postman first.
However, no matter what I tried so far I only get 401 replies.
Seemingly, I'm not able to setup the message with proper authentificaion. In wireshark the Postman and the original GET request are very close.
Here is the original (followed by a "200 OK" response):
Internet Protocol Version 4, Src: 192.168.0.64, Dst: 192.168.0.5
Transmission Control Protocol, Src Port: 56183, Dst Port: 80, Seq: 1, Ack: 1, Len: 601
Source Port: 56183
Destination Port: 80
[Stream index: 1]
[Conversation completeness: Incomplete (28)]
[TCP Segment Len: 601]
Sequence Number: 1 (relative sequence number)
Sequence Number (raw): 2463465501
[Next Sequence Number: 602 (relative sequence number)]
Acknowledgment Number: 1 (relative ack number)
Acknowledgment number (raw): 1894190984
0101 .... = Header Length: 20 bytes (5)
Flags: 0x018 (PSH, ACK)
[TCP Flags: ·······AP···]
Window: 512
[Calculated window size: 512]
[Window size scaling factor: -1 (unknown)]
Checksum: 0x8409 [unverified]
[Checksum Status: Unverified]
Urgent Pointer: 0
[Timestamps]
[SEQ/ACK analysis]
TCP payload (601 bytes)
Hypertext Transfer Protocol
GET /commands/StandbyState HTTP/1.1\r\n
Host: 192.168.0.5\r\n
Connection: keep-alive\r\n
Accept: application/json, text/plain, /\r\n
Authorization: Digest username="technician", realm="Webinterface area",
nonce="63af2777:24350f8b8a09fb90b82b6ac480d325cc", uri="/commands/StandbyState", response="a09ac5fe504563040d0ff8acfd68653e", qop=auth, nc=00000022, cnonce="NaN"\r\n
username="technician"
realm="Webinterface area"
nonce="63af2777:24350f8b8a09fb90b82b6ac480d325cc"
uri="/commands/StandbyState"
response="a09ac5fe504563040d0ff8acfd68653e"
qop=auth
nc=00000022
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/108.0.0.0 Safari/537.36\r\n
Referer: http://192.168.0.5/\r\n
Accept-Encoding: gzip, deflate\r\n
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7\r\n
\r\n
[Full request URI: http://192.168.0.5/commands/StandbyState]
and here is the captured Postman packet
Internet Protocol Version 4, Src: 192.168.0.64, Dst: 192.168.0.5
Transmission Control Protocol, Src Port: 43404, Dst Port: 80, Seq: 1, Ack: 1, Len: 471
Source Port: 43404
Destination Port: 80
[Stream index: 5]
[Conversation completeness: Incomplete, DATA (15)]
[TCP Segment Len: 471]
Sequence Number: 1 (relative sequence number)
Sequence Number (raw): 990556558
[Next Sequence Number: 472 (relative sequence number)]
Acknowledgment Number: 1 (relative ack number)
Acknowledgment number (raw): 2175082347
0101 .... = Header Length: 20 bytes (5)
Flags: 0x018 (PSH, ACK)
[TCP Flags: ·······AP···]
Window: 513
[Calculated window size: 131328]
[Window size scaling factor: 256]
Checksum: 0x8387 [unverified]
[Checksum Status: Unverified]
Urgent Pointer: 0
[Timestamps]
[SEQ/ACK analysis]
TCP payload (471 bytes)
Hypertext Transfer Protocol
GET /commands/StandbyState HTTP/1.1\r\n
[truncated]Authorization: Digest username="technician", realm="Webinterface area", nonce="63af2777:24350f8b8a09fb90b82b6ac480d325cc", uri="/commands/StandbyState", algorithm="MD5", qop=auth, nc=00000022, cnonce="NaN", response="a09ac5fe5
username="technician"
realm="Webinterface area"
nonce="63af2777:24350f8b8a09fb90b82b6ac480d325cc"
uri="/commands/StandbyState"
algorithm="MD5"
qop=auth
nc=00000022
cnonce="NaN"
User-Agent: PostmanRuntime/7.30.0\r\n
Accept: /\r\n
Postman-Token: e5d8ee2c-37fb-49ae-aa37-1cf05bfe8608\r\n
Host: 192.168.0.5\r\n
Accept-Encoding: gzip, deflate, br\r\n
Connection: keep-alive\r\n
\r\n
[Full request URI: http://192.168.0.5/commands/StandbyState]
[HTTP request 1/1]
Why does this not work?

ffmpeg coversion for rtmp stream, fname empty

I want to use HLS_Variant feature for the NGINX rtmp Module.
But if I follow the examples in the documentation I can't get it to work.
I have the following test:
application Test {
live on;
record off;
on_publish http://127.0.0.1/php/rtmp_auth.php;
on_publish_done http://127.0.0.1/php/on_publish_done.php;
exec_push /usr/local/bin/ffmpeg -loglevel debug -i rtmp://localhost:1935/Test/$name
-c:v libx264 -acodec aac -preset veryfast -b:v 256k -tune zerolatency -vf "scale=480:trunc(ow/a/2)*2" -f flv rtmp://localhost:1935/Z006/$name_low
-c:v libx264 -acodec aac -preset veryfast -b:v 768k -tune zerolatency -vf "scale=720:trunc(ow/a/2)*2" -f flv rtmp://localhost:1935/Z006/$name_mid
-c:v libx264 -acodec aac -preset veryfast -b:v 1024k -tune zerolatency -vf "scale=960:trunc(ow/a/2)*2" -f flv rtmp://localhost:1935/Z006/$name_high
-c:v libx264 -acodec aac -preset veryfast -b:v 1920k -tune zerolatency -vf "scale=1280:trunc(ow/a/2)*2" -f flv rtmp://localhost:1935/Z006/$name_higher
-c copy -f flv rtmp://localhost:1935/Z006/$name_src 2>>/tmp/Log.log; }
application Z006 {
live on;
record off;
hls on;
hls_path /usr/local/www/stream/tmp/hls0;
hls_nested on;
hls_variant _low BANDWIDTH=288000; # _low - Low bitrate, sub-SD resolution
hls_variant _mid BANDWIDTH=448000; # _mid - Medium bitrate, SD resolution
hls_variant _high BANDWIDTH=1152000; # _high - Higher-than-SD resolution
hls_variant _higher BANDWIDTH=2048000; # _higher - High bitrate, HD 720p resolution
hls_variant _src BANDWIDTH=4096000; # _src - Source bitrate, source resolution
}
As you can see there is nothing special about that.
The generated log looks like this:
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with FreeBSD clang version 10.0.1 (git#github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
configuration: --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --pkgconfigdir=/usr/local/libdata/pkgconfig --disable-static --enable-shared --enable-pic --enable-gpl --enable-avresample --cc=cc --cxx=c++ ->
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument 'rtmp://localhost:1935/Test//'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libx264'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'aac'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'veryfast'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '256k'.
Reading option '-tune' ... matched as AVOption 'tune' with argument 'zerolatency'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=480:trunc(ow/a/2)*2'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'flv'.
Reading option 'rtmp://localhost:1935/Z006//_low' ... matched as output url.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libx264'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'aac'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'veryfast'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '768k'.
Reading option '-tune' ... matched as AVOption 'tune' with argument 'zerolatency'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=720:trunc(ow/a/2)*2'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'flv'.
Reading option 'rtmp://localhost:1935/Z006//_mid' ... matched as output url.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libx264'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'aac'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'veryfast'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '1024k'.
Reading option '-tune' ... matched as AVOption 'tune' with argument 'zerolatency'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=960:trunc(ow/a/2)*2'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'flv'.
Reading option 'rtmp://localhost:1935/Z006//_high' ... matched as output url.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libx264'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'aac'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'veryfast'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '1920k'.
Reading option '-tune' ... matched as AVOption 'tune' with argument 'zerolatency'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=1280:trunc(ow/a/2)*2'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'flv'.
Reading option 'rtmp://localhost:1935/Z006//_higher' ... matched as output url.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'flv'.
Reading option 'rtmp://localhost:1935///_src' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url rtmp://localhost:1935/Test//.
Successfully parsed a group of options.
Opening an input file: rtmp://localhost:1935/Test//.
[NULL # 0x80609a000] Opening 'rtmp://localhost:1935/Test//' for reading
[rtmp # 0x806089300] No default whitelist set
[tcp # 0x806089380] No default whitelist set
[tcp # 0x806089380] Original list of addresses:
[tcp # 0x806089380] Address 127.0.0.1 port 1935
[tcp # 0x806089380] Address ::1 port 1935
[tcp # 0x806089380] Interleaved list of addresses:
[tcp # 0x806089380] Address 127.0.0.1 port 1935
[tcp # 0x806089380] Address ::1 port 1935
[tcp # 0x806089380] Starting connection attempt to 127.0.0.1 port 1935
[tcp # 0x806089380] Successfully connected to 127.0.0.1 port 1935
[rtmp # 0x806089300] Handshaking...
[rtmp # 0x806089300] Type answer 3
[rtmp # 0x806089300] Server version 13.14.10.13
[rtmp # 0x806089300] Proto = rtmp, path = /Test//, app = Test/, fname =
[rtmp # 0x806089300] Window acknowledgement size = 5000000
[rtmp # 0x806089300] Max sent, unacked = 5000000
[rtmp # 0x806089300] New incoming chunk size = 4096
[rtmp # 0x806089300] Creating stream...
[rtmp # 0x806089300] Sending play command for ''
I think the error is clearly the Empty 'fname'.
But I don't know what to do about that?
EDIT:
Even if I change $name to my Streamname which I use in OBS the conversion isn't started.
I think I got it working.
After days of testing and rebuilding with debug support I found the issue.
All starts when you use the combination of:
on_publish
exec
php-fpm
The on_publish request is handled first via php-fpm. It produces the following logs:
2021/11/29 09:50:42 [debug] 90542#0: epoll timer: 9996
2021/11/29 09:50:42 [debug] 90542#0: epoll: fd:15 ev:2005 d:00007FEFED509668
2021/11/29 09:50:42 [debug] 90542#0: *3 http upstream request: "/php/rtmp_auth.php?"
2021/11/29 09:50:42 [debug] 90542#0: *3 http upstream process header
2021/11/29 09:50:42 [debug] 90542#0: *3 malloc: 000056047409F050:4096
2021/11/29 09:50:42 [debug] 90542#0: *3 posix_memalign: 00005604740A0060:4096 #16
2021/11/29 09:50:42 [debug] 90542#0: *3 recv: eof:1, avail:-1
2021/11/29 09:50:42 [debug] 90542#0: *3 recv: fd:15 80 of 4096
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi record byte: 01
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi record byte: 06
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi record byte: 00
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi record byte: 01
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi record byte: 00
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi record byte: 36
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi record byte: 02
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi record byte: 00
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi record length: 54
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi parser: 0
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi header: "Location: /"
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi parser: 0
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi header: "Content-type: text/html; charset=UTF-8"
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi parser: 1
2021/11/29 09:50:42 [debug] 90542#0: *3 http fastcgi header done
2021/11/29 09:50:42 [debug] 90542#0: *3 HTTP/1.1 302 Moved Temporarily
Server: nginx/1.20.2
Date: Mon, 29 Nov 2021 08:50:42 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
Location: /
As u can see, fastcgi sets the http code to 302 with Location "/".
This Location is the $name variable used for exec!
So we have to force this Location to be our streamname.
Example rtmp_auth.php
<?php
$streamName = $_POST["name"];
//Check for streamkey here
//If okay, set Location and Return Code (Set 403 if Auth failed)
header('Location: '.$streamName, TRUE, 200);
?>
After we Set the new Location manually the Log Changes to:
2021/11/29 09:57:56 [debug] 90618#0: epoll timer: 10000
2021/11/29 09:57:56 [debug] 90618#0: epoll: fd:15 ev:2005 d:00007F491020B668
2021/11/29 09:57:56 [debug] 90618#0: *3 http upstream request: "/php/rtmp_auth.php?"
2021/11/29 09:57:56 [debug] 90618#0: *3 http upstream process header
2021/11/29 09:57:56 [debug] 90618#0: *3 malloc: 000055F9E1EC9050:4096
2021/11/29 09:57:56 [debug] 90618#0: *3 posix_memalign: 000055F9E1ECA060:4096 #16
2021/11/29 09:57:56 [debug] 90618#0: *3 recv: eof:1, avail:-1
2021/11/29 09:57:56 [debug] 90618#0: *3 recv: fd:15 88 of 4096
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi record byte: 01
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi record byte: 06
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi record byte: 00
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi record byte: 01
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi record byte: 00
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi record byte: 40
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi record byte: 00
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi record byte: 00
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi record length: 64
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi parser: 0
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi header: "Location: Test_input"
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi parser: 0
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi header: "Content-type: text/html; charset=UTF-8"
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi parser: 1
2021/11/29 09:57:56 [debug] 90618#0: *3 http fastcgi header done
2021/11/29 09:57:56 [debug] 90618#0: *3 HTTP/1.1 302 Moved Temporarily
Server: nginx/1.20.2
Date: Mon, 29 Nov 2021 08:57:56 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
Location: Test_input
Now the $name Variable is set for next use with exec Command.
I hope someone can save some Hours of testing with this Information.

ERROR[12799] netsock2.c: getaddrinfo("ims.ntc.net.np", "(null)", ...): Name or service not known, How can i resolve this issue?

I am trying to configure NTC SIP Line Trunk configuration but " ERROR[12799] netsock2.c: getaddrinfo("ims.ntc.net.np", "(null)", ...): Name or service not known" error occur. Telecom said that our sip request not reaching there, How can i resolve this issue ?
[2020-07-24 07:59:05] ERROR[12799] netsock2.c: getaddrinfo("ims.ntc.net.np", "(null)", ...): Name or service not known
[2020-07-24 07:59:05] WARNING[12799] acl.c: Unable to lookup 'ims.ntc.net.np'
[2020-07-24 07:59:05] WARNING[12799] acl.c: Cannot connect to (null): Invalid argument
[2020-07-24 07:59:05] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:05] NOTICE[12799] chan_sip.c: -- Registration for '+97723597002#ims.ntc.net.np' timed out, trying again (Attempt #14)
[2020-07-24 07:59:05] WARNING[12799] chan_sip.c: Retransmission timeout reached on transmission 63c184f060c6ddd85c43e1b75b3aec3f#127.0.0.1 for seqno 114 (Critical Request) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 60031ms with no response
[2020-07-24 07:59:06] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:07] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:09] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:13] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:17] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:21] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 07:59:25] WARNING[12799] chan_sip.c: sip_xmit of 0x7f93981e0960 (len 433) to (null) returned -1: Invalid argument
[2020-07-24 08:00:05] ERROR[12799] netsock2.c: getaddrinfo("ims.ntc.net.np", "(null)", ...): Name or service not known
This is a DNS Looukup error.
If you are using this DNS in any trunk configuration this is the source of the problem, map using and IP directly and you will have no more errors.
But if the trunk is using an IP I suggest you to map this domain. The provider can use an internal domain in the request and this can trow an error.
Check too if there's no firewall blocking the communication.
You are using somewhere trunk host name "ims.ntc.net.np" and that dns name is invalid.
Check name or ensure dns works okay.

TFTP timeout while bootstraping nodes (Mirantis Openstack)

I have a strange issue with TFTP server. While I'm trying to boot my bare-metal Dell R710 to provision new roles to Mirantis Openstack I'm getting:
CLIENT MAC ADDR: ....
CLIENT IP: ...
GATEWAY IP: ...
PXE-E32: TFTP open timeout
But the most strange thing that server will boot successfully after some time (in a few hours).
We are using integrated NICs - Broadcom NetXtream II cards
Please find below tcpdump from tftp/dhcp server (fuel master):
[root#fuel2 ~]# sudo tcpdump ether host d0:67:xx:xx:xx:xx
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
12:08:54.881515 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from d0:67:xx:xx:xx:xx (oui Unknown), length 548
12:08:59.028611 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from d0:67:xx:xx:xx:xx (oui Unknown), length 548
12:08:59.083520 ARP, Request who-has fuel2.labs.mydomain.org tell 172.25.190.7, length 46
12:08:59.083558 ARP, Reply fuel2.labs.mydomain.org is-at 00:50:56:a8:38:e1 (oui Unknown), length 28
12:08:59.083751 IP 172.25.190.7.bootpc > SI1-SCCM-LV.mydomain.org.pxe: BOOTP/DHCP, Request from d0:67:xx:xx:xx:xx (oui Unknown), length 548
12:08:59.111846 IP 172.25.190.7.ah-esp-encap > SI1-SCCM-LV.mydomain.org.tftp: 36 RRQ "boot\x86\wdsnbp.com" octet tsize 0
12:09:01.115771 IP 172.25.190.7.acp-port > SI1-SCCM-LV.mydomain.org.tftp: 36 RRQ "boot\x86\wdsnbp.com" octet tsize 0
12:09:05.125596 IP 172.25.190.7.msync > SI1-SCCM-LV.mydomain.org.tftp: 36 RRQ "boot\x86\wdsnbp.com" octet tsize 0
12:09:11.112825 IP 172.25.190.7.gxs-data-port > SI1-SCCM-LV.mydomain.org.tftp: 36 RRQ "boot\x86\wdsnbp.com" octet tsize 0
12:09:19.077381 IP 172.25.190.7.vrtl-vmf-sa > SI1-SCCM-LV.mydomain.org.tftp: 36 RRQ "boot\x86\wdsnbp.com" octet tsize 0
12:09:29.022504 IP 172.25.190.7.newlixengine > SI1-SCCM-LV.mydomain.org.tftp: 41 RRQ "boot\x86\wdsnbp.com" octet blksize 1456
12:10:05.052292 IP 172.25.190.7.newlixconfig > SI1-SCCM-LV.mydomain.org.tftp: 41 RRQ "boot\x86\wdsnbp.com" octet blksize 1456
12:11:17.063229 IP 172.25.190.7.tsrmagt > SI1-SCCM-LV.mydomain.org.tftp: 41 RRQ "boot\x86\wdsnbp.com" octet blksize 1456
12:13:05.052148 IP 172.25.190.7.tpcsrvr > SI1-SCCM-LV.mydomain.org.tftp: 41 RRQ "boot\x86\wdsnbp.com" octet blksize 1456
12:15:29.018871 IP 172.25.190.7.idware-router > SI1-SCCM-LV.mydomain.org.tftp: 41 RRQ "boot\x86\wdsnbp.com" octet blksize 1456
Issue was solved. Looks like we have a wds service in our network that is listening this subnet as well.

Qmail Log: lots of UNAUTHENTICATED SENDER

On qmail logs there are lots of the following lines:
2012-12-14 18:04:49.314299500 simscan:[9999]:CLEAN (4.00/50.00):2.2875s:Delivery Status Notification (Failure):aa.aa.aa.aa::info#xxxx.it
2012-12-14 18:04:49.657999500 CHKUSER accepted rcpt: from <::> remote <utility-xxxx.it:unknown:aa.aa.aa.aa> rcpt <info#xxx.it> : found existing recipient
2012-12-14 18:04:49.658005500 policy_check: local -> local info#xxxx.it (UNAUTHENTICATED SENDER)
2012-12-14 18:04:49.658016500 policy_check: policy allows transmission
2012-12-14 18:04:49.658019500 spamdyke[9945]: ALLOWED from: (unknown) to: info#xxxx.it origin_ip: 82.85.185.32 origin_rdns: utility-xxxxx.it auth: (unknown)
and
12-14 18:03:57 CHKUSER accepted rcpt: from <::> remote <utility-xxxx.it:unknown:aa.aa.aa.aa> rcpt <info#xxxx.it> : found existing recipient
12-14 18:03:57 policy_check: local -> local info#xxxx.it (UNAUTHENTICATED SENDER)
12-14 18:03:57 spamdyke[9945]: ALLOWED from: (unknown) to: info#xxxx.it origin_ip: aa.aa.aa.aa origin_rdns: utility-xxxx.it auth: (unknown)
12-14 18:03:59 simscan:[9999]:CLEAN (4.00/50.00):2.4153s:Delivery Status Notification (Failure):aa.aa.aa.aa::info#xxxx.it
12-14 18:04:00 CHKUSER accepted rcpt: from <::> remote <utility-xxxx.it:unknown:aa.aa.aa.aa> rcpt <info#xxxx.it> : found existing recipient
12-14 18:04:00 policy_check: local -> local info#xxxx.it (UNAUTHENTICATED SENDER)
12-14 18:04:00 spamdyke[9945]: ALLOWED from: (unknown) to: info#xxxx.it origin_ip: aa.aa.aa.aa origin_rdns: utility-xxxx.it auth: (unknown)
12-14 18:04:02 simscan:[9999]:CLEAN (4.00/50.00):2.5481s:Delivery Status Notification (Failure):aa.aa.aa.aa::info#xxxx.it
12-14 18:04:02 CHKUSER accepted rcpt: from <::> remote <utility-xxxx.it:unknown:aa.aa.aa.aa> rcpt <info#xxxx.it> : found existing recipient
12-14 18:04:02 policy_check: local -> local info#xxxx.it (UNAUTHENTICATED SENDER)
12-14 18:04:02 spamdyke[9945]: ALLOWED from: (unknown) to: info#xxxx.it origin_ip: aa.aa.aa.aa origin_rdns: utility-xxxx.it auth: (unknown)
Does this mean something unwanted?
Thank you... I'm completely new to qmail
possibly these are the bounce message recieved by the user info#xxxx.it
12-14 18:03:57 CHKUSER accepted rcpt: from <::> remote rcpt : found existing recipient
It is possible that someone has spoofed the mail id of sender and might be performing some spam activity. And as we all know spammers send mails to random ids and most of which do-not exists. In return the sender id would get a bounce message.
Just verify it.

Resources