Skip to content
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

Spams journal with pidof dhlient related messages #417

Closed
towolf opened this issue Sep 9, 2016 · 5 comments
Closed

Spams journal with pidof dhlient related messages #417

towolf opened this issue Sep 9, 2016 · 5 comments
Assignees
Milestone

Comments

@towolf
Copy link

towolf commented Sep 9, 2016

We use our own image but we have the agent installed.

Since we are using systemd-networkd with its own DHCP stack, there is no dhclient being used.

How do we stop the log spam? Is it safe to kill and disable this stuff? it is there another solution?

Relevant:

#195 (comment)

@hglkrijger
Copy link
Member

@towolf, thanks for logging this issue. Today the agent has a built-in assumption that some form of dhclient will be available, and unfortunately there is currently no way to disable that check or error logging. I agree this is a poor experience, and we should take a change to improve it. I will investigate some more.

@hglkrijger
Copy link
Member

@brendandixon, what do you think about something like this to prevent log spamming? hglkrijger@402bffb

@towolf, would you be willing to try this patch out and see if it resolves your issue?

@brendandixon
Copy link
Contributor

lgtm

@hglkrijger hglkrijger self-assigned this Sep 13, 2016
@hglkrijger hglkrijger added this to the v2.1.7 milestone Sep 13, 2016
@towolf
Copy link
Author

towolf commented Sep 13, 2016

We have 2.1.3 installed. Patch from @hglkrijger of course does not apply to that. I'd like to test but need a version that this patch works against. Would the most recent release work?

@hglkrijger
Copy link
Member

@towolf - yes, 2.1.6 would work or you could simply clone from my fork. Not sure which distro your image is based on, but something along these lines:

git clone https://github.com/hglkrijger/WALinuxAgent
cd WALinuxAgent
git checkout gh417
wget https://bootstrap.pypa.io/ez_setup.py -O - | python
python setup.py install
systemctl daemon-reload
service waagent restart
waagent --version

If you happen to be using Ubuntu 1604, which uses Python 3 by default, you would need to run update-alternatives first.

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

No branches or pull requests

3 participants