fix(netflow): сохранить IPv6 в смешанных шаблонах IPFIX
This commit is contained in:
1 parent
c718654bc7
commit
11813179a7
13 files changed
+400
-20
No files matched your search
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"date": "2026-10-11",
|
||||
"block": "12.5.144",
|
||||
"runtime": {
|
||||
"backend": "ux-ipfix144",
|
||||
"frontend": "ux-traffic141",
|
||||
"backendHealthy": true
|
||||
},
|
||||
"checks": {
|
||||
"preFixMixedTemplateFailureReproduced": true,
|
||||
"localTrafficFlowSeriesExit": 0,
|
||||
"localSqlAndUdpSkipsNotCountedAsPasses": true,
|
||||
"changedFilesEslintPassed": true,
|
||||
"backendProductionBuildPassed": true,
|
||||
"compiledOutputsMatched": 984,
|
||||
"udpDatagramsReceived": 2,
|
||||
"rawRows": 6,
|
||||
"rawAndMinuteBytes": 25200,
|
||||
"rawAndMinutePackets": 42,
|
||||
"hourAndDayInternetFactsBytes": 7200,
|
||||
"hourAndDayInternetFactsPackets": 12,
|
||||
"workerShutdownAcknowledged": true,
|
||||
"ownDatabasesRemoved": 3
|
||||
},
|
||||
"attempts": [
|
||||
{
|
||||
"date": "2026-10-11",
|
||||
"name": "mm_accept_144_1791711481707",
|
||||
"tests": [
|
||||
{
|
||||
"module": "ipv6-pipeline",
|
||||
"passed": false,
|
||||
"error": "Command failed: /usr/local/bin/node /app/backend/acceptance/ipv6-pipeline.mjs\nSQLite → PostgreSQL: файл /tmp/mm144-check.sqlite не найден, база после wipe остаётся пустой (defaults settings)\n/app/node_modules/pg-pool/index.js:45\n Error.captureStackTrace(err)\n ^\n\nerror: column \"src_ip\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n at async file:///app/backend/acceptance/ipv6-pipeline.mjs:130:23 {\n length: 169,\n severity: 'ERROR',\n code: '42703',\n detail: undefined,\n hint: 'Perhaps you meant to reference the column \"flow_buckets.src\".',\n position: '13',\n internalPosition: ",
|
||||
"output": "IPv6 dual-stack IPFIX parsing: passed\n",
|
||||
"stderr": "SQLite → PostgreSQL: файл /tmp/mm144-check.sqlite не найден, база после wipe остаётся пустой (defaults settings)\n/app/node_modules/pg-pool/index.js:45\n Error.captureStackTrace(err)\n ^\n\nerror: column \"src_ip\" does not exist\n at /app/node_modules/pg-pool/index.js:45:11\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n at async file:///app/backend/acceptance/ipv6-pipeline.mjs:130:23 {\n length: 169,\n severity: 'ERROR',\n code: '42703',\n detail: undefined,\n hint: 'Perhaps you meant to reference the column \"flow_buckets.src\".',\n position: '13',\n internalPosition: undefined,\n internalQuery: undefined,\n where: undefined,\n schema: undefined,\n table: undefined,\n column: undefined,\n dataType: undefined,\n constraint: undefined,\n file: 'parse_relation.c',\n line: '3861',\n routine: 'errorMissingColumn'\n}\n\nNode.js v22.23.3\n"
|
||||
}
|
||||
],
|
||||
"databaseRemoved": true
|
||||
},
|
||||
{
|
||||
"date": "2026-10-11",
|
||||
"name": "mm_accept_144_1791711569907",
|
||||
"tests": [
|
||||
{
|
||||
"module": "ipv6-pipeline",
|
||||
"passed": false,
|
||||
"error": "Command failed: /usr/local/bin/node /app/backend/acceptance/ipv6-pipeline.mjs\nSQLite → PostgreSQL: файл /tmp/mm144-check.sqlite не найден, база после wipe остаётся пустой (defaults settings)\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\n\nAssertionError [ERR_ASSERTION]: flow_hour_facts\n\n7200 !== 25200\n\n at file:///app/backend/acceptance/ipv6-pipeline.mjs:142:20\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5) {\n generatedMessage: false,\n code: 'ERR_ASSERTION',\n actual: 7200,\n expected: 25200,\n operator: 'strictEqual',\n diff: 'simple'\n}\n\nNode.js v22.23.3\n",
|
||||
"output": "IPv6 dual-stack IPFIX parsing: passed\n",
|
||||
"stderr": "SQLite → PostgreSQL: файл /tmp/mm144-check.sqlite не найден, база после wipe остаётся пустой (defaults settings)\nnode:internal/modules/run_main:123\n triggerUncaughtException(\n ^\n\nAssertionError [ERR_ASSERTION]: flow_hour_facts\n\n7200 !== 25200\n\n at file:///app/backend/acceptance/ipv6-pipeline.mjs:142:20\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5) {\n generatedMessage: false,\n code: 'ERR_ASSERTION',\n actual: 7200,\n expected: 25200,\n operator: 'strictEqual',\n diff: 'simple'\n}\n\nNode.js v22.23.3\n"
|
||||
}
|
||||
],
|
||||
"databaseRemoved": true
|
||||
},
|
||||
{
|
||||
"date": "2026-10-11",
|
||||
"name": "mm_accept_144_1791711673824",
|
||||
"tests": [
|
||||
{
|
||||
"module": "ipv6-pipeline",
|
||||
"passed": true,
|
||||
"output": "IPv6 dual-stack IPFIX parsing: passed\n{\"udpDatagramsReceived\":2,\"rawRows\":6,\"allTrafficBytes\":25200,\"allTrafficPackets\":42,\"internetFactsBytes\":7200,\"internetFactsPackets\":12,\"workerShutdownAcknowledged\":true,\"minuteHourDayTotalsPassed\":true}\nIPV6_UDP_PIPELINE_ACCEPTED\n"
|
||||
}
|
||||
],
|
||||
"databaseRemoved": true
|
||||
}
|
||||
],
|
||||
"baseline": {
|
||||
"message": "Zero IPv4 placeholder overwrote/blocked preceding/following IPv6",
|
||||
"assertionActual": null,
|
||||
"assertionExpected": "336294708603508370466308566559167086608",
|
||||
"source": "Local controlled dual-stack IPFIX fixture against pre-fix parser"
|
||||
},
|
||||
"bounds": [
|
||||
"Real UDP socket and production collector worker, full PostgreSQL bootstrap and inet storage, source/destination/bytes/packets verified per row",
|
||||
"Controlled synthetic IPFIX exporter over IPv4 UDP loopback; not native RouterOS exporter or IPv6 outer transport acceptance",
|
||||
"Six fixture flows include forward/reverse public IPv6 and documentation/benchmark/multicast; raw/minute count all six, Internet facts exclude three non-public peers by existing rules",
|
||||
"Zero IPv4 placeholders in both field orders no longer overwrite/block usable IPv6; present IPv4 precedence retained; expanded unspecified IPv6 handled consistently",
|
||||
"First attempt had wrong src_ip/dst_ip test query; corrected to actual src/dst schema without production schema change",
|
||||
"Second attempt incorrectly expected all traffic in Internet facts; corrected independent fixture totals25200/42 raw and7200/12 Internet based on three explicitly public flows; aggregation/filter rules unchanged",
|
||||
"Child requires exact mm_accept_144 database name and checks current_database before migrations; parent creates own DB and drops owner-checked exact DB after success/failure; legacy SQLite override ephemeral",
|
||||
"Working database untouched by fixtures; network settings/passwords unchanged; backend-only deployment with rollback retained",
|
||||
"No throughput, real exporter timing/loss, IPv6 WAN or populated UI flow acceptance claim"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"date": "2026-10-11",
|
||||
"block": "12.5.144",
|
||||
"runtime": {
|
||||
"backend": "ux-ipfix144",
|
||||
"frontend": "ux-traffic141"
|
||||
},
|
||||
"checks": {
|
||||
"readOnlyFrontendUnchanged": true,
|
||||
"backendHealthy": true,
|
||||
"backendProductionBuildPassed": true
|
||||
},
|
||||
"cases": [
|
||||
{
|
||||
"width": 1440,
|
||||
"httpStatus": 200,
|
||||
"api": [
|
||||
{
|
||||
"path": "/api/traffic/bound-interfaces",
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"path": "/api/traffic/users",
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"path": "/api/traffic/servers",
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"path": "/api/traffic/servers/1/live",
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"path": "/api/traffic/servers/1/interfaces",
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"path": "/api/traffic/servers/1",
|
||||
"status": 200
|
||||
}
|
||||
],
|
||||
"pageErrors": [],
|
||||
"noOverflow": true
|
||||
},
|
||||
{
|
||||
"width": 320,
|
||||
"httpStatus": 200,
|
||||
"api": [
|
||||
{
|
||||
"path": "/api/traffic/servers",
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"path": "/api/traffic/users",
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"path": "/api/traffic/bound-interfaces",
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"path": "/api/traffic/servers/1/live",
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"path": "/api/traffic/servers/1/interfaces",
|
||||
"status": 200
|
||||
},
|
||||
{
|
||||
"path": "/api/traffic/servers/1",
|
||||
"status": 200
|
||||
}
|
||||
],
|
||||
"pageErrors": [],
|
||||
"noOverflow": true
|
||||
}
|
||||
],
|
||||
"bounds": [
|
||||
"Read-only initial loading with real current lab catalog; no full NetFlow ingestion or throughput claim",
|
||||
"Catalog failure and pending loading checked by controlled E2E; numeric live server details/interfaces/SSE enabled only after confirmed catalog ownership",
|
||||
"Interface filter remains selected on range changes; backend source switch invalidates prior catalog ownership"
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user