Skip to content

Conversation

JoseVillalta
Copy link
Contributor

Fixes bug in DNS configuration for SC-enabled tasks in BR.

This change fixes a bug in the DNS configuration for managed_linux instances and internal ec2 debug platforms.
In SC enabled tasks, we always have to get DNS configuration from the control plane. This change adds logic to check if new AWSVPC network namespace requires the platform to get DNS config from the task payload or if we get DNS configuration from the host files.

Summary

This change fixes a bug in the DNS configuration for managed_linux instances and internal ec2 debug platforms.
In SC enabled tasks, we always have to get DNS configuration from the control plane. configuration from the host files.

Implementation details

This change adds logic to check if new AWSVPC network namespace requires the platform to get DNS config from the task payload or if we get DNS

Testing

Internal end-to-end tests. Two services talk to each other in ec2-debug mode using Bottlerocket OS.

New tests cover the changes:

Description for the changelog

Fixes bug in DNS configuration for SC tasks in BR platforms

Additional Information

Does this PR include breaking model changes? If so, Have you added transformation functions?

Does this PR include the addition of new environment variables in the README?

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…gate platfomrs that use netlib (internal platforms like EC2 debug and Omakase)
@JoseVillalta JoseVillalta requested a review from a team as a code owner September 26, 2025 14:27
@JoseVillalta JoseVillalta requested review from xxx0624 and removed request for a team September 26, 2025 14:28
@JoseVillalta JoseVillalta requested a review from sparrc September 26, 2025 14:29

func (c *containerdDebug) CreateDNSConfig(taskID string, netNS *tasknetworkconfig.NetworkNamespace) error {
return c.common.createDNSConfig(taskID, true, netNS)
// SC tasks will get DNS config from control plane
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nonblocking: can we have some context why the DNS config from customer can help for SC?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have a unit test for this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants