monasca-agent value_meta truncation doesn't account for expanded newlines

Bug #1501934 reported by Bradley Klein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Monasca
Triaged
Undecided
Bradley Klein

Bug Description

The agent slices the value_meta string to 2047, but on the server side, the string is actually larger by the number of newline chars in the string. This string:

Running router checks: WFFFF-INF-F-INF--INF-FFFFF\nWarning: The following ips failed to be pinged:\n IP: 24.26.93.106 Uptime: 167 days, 4:49:33.042665\n Instance: brad-canary (2770a3d4-d191-4380-a9bb-27b238681e3c)\n Tenant ID: 9f000df4a521445f8a4555d25c4bb4e3 Network ID: a56c92e5-5590-4bd1-a7fc-c0a7e5c04be9\n Router: bradrouter (52a77472-8df9-45ed-84f5-f7299a011d0c)\n Ignoring: CLOUDOPS_PINGFAIL in metadata\nCritical: The following ips failed to be pinged:\n IP: 24.26.93.15 Uptime: 22 days, 0:47:30.059483\n Instance: mfischV2-1 (20532feb-453c-4e06-a70a-dffbefbd3e9d)\n Tenant ID: 4764ba822ecb43e582794b875751924c Network ID: 7ef2fb1b-2acb-4fb2-9c85-a95dd9467715\n Router: mfisch (9c5a7368-9d07-41a9-8d98-0b8e57caa8ca)\n********************************************************************************\n IP: 24.26.93.22 Uptime: 5:09:50.096811\n Instance: iperftests-2 (18f5a2d5-39eb-4f9f-a25c-11716d18a950)\n Tenant ID: 86897aca9e814373ad4df06d063c0554 Network ID: 96ee4276-7408-4f33-9544-4eae93ea5a9c\n Router: ericstestrouter (85690a8e-07ad-4fe6-a6d2-608d780719d7)\n********************************************************************************\n IP: 24.26.93.51 Uptime: 150 days, 3:21:48.172479\n Instance: rally (b38e0633-fcec-4bb7-8459-7cc24f807232)\n Tenant ID: 5e6fbe72daed4802a93a63434af9c516 Network ID: a2aefe24-fc11-4e64-a698-5b16f3c05aa1\n Router: soapuiRegression-router (ae480052-5f57-46ac-a251-4206c4577d76)\n********************************************************************************\n IP: 24.26.93.114 Uptime: 8 days, 2:07:13.184110\n Instance: perf_test (d474ff9b-68ca-45b3-8615-c42e24309a57)\n Tenant ID: b8f1d25a25e346d5894dd94807f835fc Network ID: 26c1685b-196b-4ba4-b231-7913cdd8dd53\n Router: cdel_router (9dabc9f4-7657-4f9b-b7cc-301e90fe75b9)\n********************************************************************************\n IP: 24.26.93.40 Uptime: 83 days, 8:47:09.290400\n Instance: talligent (1d2207c2-a0d9-4834-8d60-9f7662e9e143)\n Tenant ID: dbc2e327b320497

is 2078 characters and causes issues when pushing to the db. This bug is related to https://bugs.launchpad.net/monasca/+bug/1501926 and https://bugs.launchpad.net/monasca/+bug/1501929.

Allan G (greental)
Changed in monasca:
status: New → Triaged
assignee: nobody → Bradley Klein (brad-klein)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.