You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ezelkow1 (via GitHub)" <gi...@apache.org> on 2024/12/06 15:45:04 UTC
[I] Inconsistency in records.yaml IP fields (ipv6 parsing) [trafficserver]
ezelkow1 opened a new issue, #11900:
URL: https://github.com/apache/trafficserver/issues/11900
We noticed here that when using dns.local_ipv6 ATS will complain while parsing, Im assuming due to all the extra colons in the ipv6 address so that is resolved by just wrapping in quotes. However it does not complain when having both an ipv4 and a 6 in outgoing_ip_to_bind. So wondering if there is a way to make ATS act consistently. Right now we just quote wrap all of them which seems to work
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Inconsistency in records.yaml IP fields (ipv6 parsing) [trafficserver]
Posted by "brbzull0 (via GitHub)" <gi...@apache.org>.
brbzull0 commented on issue #11900:
URL: https://github.com/apache/trafficserver/issues/11900#issuecomment-2538279700
>Because the outgoing_ip_to_bind field ats/yamlcpp did not complain when that field was set with ip_to_bind: ipv4_addr ipv6_addr
without quote wrapping it
it's the same, no inconsistency I think. You can assign the same ipv6 to `local_ipv6` or the other one as long as you do not place the colon at the end or some other special character that makes the parser believe that it's a special character.
Do you have an example where the behave diffently?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Inconsistency in records.yaml IP fields (ipv6 parsing) [trafficserver]
Posted by "ezelkow1 (via GitHub)" <gi...@apache.org>.
ezelkow1 commented on issue #11900:
URL: https://github.com/apache/trafficserver/issues/11900#issuecomment-2539879962
so here's my example (just using IP's for one of my VMs running 10):
`
outgoing_ip_to_bind: 192.168.5.16 [2601:282:4300:54:4d17:e14a:9a32:b49d]
dns:
local_ipv4: 192.168.5.16
local_ipv6: [2601:282:4300:54:4d17:e14a:9a32:b49d]
`
Error: Error: Error parsing /opt/ats10/etc/trafficserver/records.yaml. yaml-cpp: error at line 217, column 17: bad conversion
Like 217 is just the local_ipv6 field. Now if I wrap that in quotes it will no longer error out. However that does not explain how the outgoing_ip_to_bind is apparently parsed correctly having a non-quoted ipv6 string
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Inconsistency in records.yaml IP fields (ipv6 parsing) [trafficserver]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #11900:
URL: https://github.com/apache/trafficserver/issues/11900#issuecomment-3648751688
This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Inconsistency in records.yaml IP fields (ipv6 parsing) [trafficserver]
Posted by "brbzull0 (via GitHub)" <gi...@apache.org>.
brbzull0 commented on issue #11900:
URL: https://github.com/apache/trafficserver/issues/11900#issuecomment-2535709717
This is not ATS but rather how YAML works. if we use special characters like the colon(which is an [indicator character](https://yaml.org/spec/1.2.2/#53-indicator-characters)) inside a value, then it may need quotes, otherwise the YAML parser will fail as per specs.
I think we should wrap the string if we use special characters in it. Not sure if you have any other ideas?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Inconsistency in records.yaml IP fields (ipv6 parsing) [trafficserver]
Posted by "ezelkow1 (via GitHub)" <gi...@apache.org>.
ezelkow1 commented on issue #11900:
URL: https://github.com/apache/trafficserver/issues/11900#issuecomment-2536323070
well I get that but thats why I found the inconsistency odd. Because of the outgoing_ip_to_bind field ats/yamlcpp did not complain when that field was set with ip_to_bind: ipv4_addr ipv6_addr
without quote wrapping it
That is what led me to believe there is inconsistent parsing behavior going on
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Inconsistency in records.yaml IP fields (ipv6 parsing) [trafficserver]
Posted by "maskit (via GitHub)" <gi...@apache.org>.
maskit commented on issue #11900:
URL: https://github.com/apache/trafficserver/issues/11900#issuecomment-2540155562
> local_ipv6: [2601:282:4300:54:4d17:e14a:9a32:b49d]
The value is read as an array because of the brackets. You cannot have a string that has the format without quoting. I think you'd get a similar error on `outgoing_ip_to_bind` if you removed the IPv4 address.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Inconsistency in records.yaml IP fields (ipv6 parsing) [trafficserver]
Posted by "bryancall (via GitHub)" <gi...@apache.org>.
bryancall commented on issue #11900:
URL: https://github.com/apache/trafficserver/issues/11900#issuecomment-4828270474
Thanks for the detailed write-up. After reading through the thread, this is standard YAML behavior rather than an inconsistency in Traffic Server. In your example, `local_ipv6: [2601:282:4300:54:4d17:e14a:9a32:b49d]` is wrapped in square brackets, and YAML reads bracketed text as a flow sequence (an array), so the scalar-to-string conversion fails with "bad conversion". The `outgoing_ip_to_bind` value parsed fine only because it was written without brackets and without a trailing colon or other YAML indicator character. As maskit noted, you would get the same error on `outgoing_ip_to_bind` if it were written the same way. Both fields are read identically as plain strings (`RecGetRecordStringAlloc` for `proxy.config.dns.local_ipv4` and `local_ipv6` in `src/iocore/dns/DNS.cc`), so there is no field-specific parsing difference in Traffic Server. The correct approach is exactly what you landed on: quote any value that contains YAML indicator characters, for example `local_ipv6: "2601:
282:4300:54:4d17:e14a:9a32:b49d"` (no brackets). Since the question has been answered and the workaround is the expected usage, I am closing this. Please reopen if you hit a case that does not fit the YAML rules above.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Inconsistency in records.yaml IP fields (ipv6 parsing) [trafficserver]
Posted by "bryancall (via GitHub)" <gi...@apache.org>.
bryancall closed issue #11900: Inconsistency in records.yaml IP fields (ipv6 parsing)
URL: https://github.com/apache/trafficserver/issues/11900
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org