-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set hostname in dhcp_relay container #868
Set hostname in dhcp_relay container #868
Conversation
@pyadvichuk: I have not experienced the behavior you're describing. Can you please post some output showing this behavior? |
actually this comes from RFC 3046, section 2.0 - Relay Agent Information Option
actually, it correspond to the implementation details of Linux
so.. that's why it is required to have correct hostname inside Probably, it is required to start the discussion regarding setting correct hostname for containers but i have no any information about dev plans and even can't imagine the scope of changes to implement this. So, from my understanding proposed fix is the simplest and fastest way. |
I understand how our Option 82 circuit_id is supposed to be formatted. I developed the patch for dhcrelay to support this format. I was asking for logs and/or output from one of your affected devices, because we do not see this issue. When I run Can you please provide more details/output? What version of SONiC are you running? |
It's built from master by jenkins job Mar 30, 2019.
|
I don't have any machines running that exact build. However, I just tested on a machine running a newer build from April 11 (commit: sonic-net/sonic-buildimage@0a6dd88), and running |
@jleveque could you please have a look at #2806 as it looks i've found the root couse of issue we've faced. |
Summary:
dhcp_relay testcase expects to see {{ inventory_hostname }} as a part of
Option82::Agent Circuit ID
but, inside docker container the hostname issonic
. That's why the testcase failed.Type of change
Approach
How did you do it?
execute remote shell to set hostname in the container
How did you verify/test it?
run
dhcp_relay
testacase, checked statusAny platform specific information?
no
@lguohan, @yxieca: please review and merge this.