Thank you for your fast reply,
currently the maximum is set to 1024.
I'll check back with my colleagues when they are in the office again.
A quick check on some different systems shows this seems to be pretty
standard behaviour, so why should it cause problems?
Can this be circumvented in the agent?
I must look first into what side-effects this change may introduce.
Am 06.01.2014 16:51, schrieb Meital Bourvine:
run:
ulimit -a
And see what's the current value for "open files".
Then increase it with:
ulimit -n <new_number>
If it solved the problem, you need to edit /etc/sysctl.conf so it'll persist after
reboot. add:
fs.file-max = <new_number>
----- Original Message -----
> From: "Sven Kieske" <S.Kieske(a)mittwald.de>
> To: users(a)ovirt.org
> Sent: Monday, January 6, 2014 5:11:10 PM
> Subject: [Users] Bug? ovirt-guest-agent / Ubuntu
>
> Hi,
>
> I just stumbled upon the following in my guest-agent log on
> ubuntu 12.04.3 lts server:
>
> MainThread::INFO::2014-01-06
> 14:29:29,106::ovirt-guest-agent::37::root::Starting oVirt guest agent
> MainThread::ERROR::2014-01-06
> 14:29:29,107::ovirt-guest-agent::117::root::Unhandled exception in oVirt
> guest agent!
> Traceback (most recent call last):
> File "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 111, in
> <module>
> agent.run(daemon, pidfile)
> File "/usr/share/ovirt-guest-agent/ovirt-guest-agent.py", line 42, in
run
> self.agent = LinuxVdsAgent(config)
> File "/usr/share/ovirt-guest-agent/GuestAgentLinux2.py", line 324, in
> __init__
> AgentLogicBase.__init__(self, config)
> File "/usr/share/ovirt-guest-agent/OVirtAgentLogic.py", line 90, in
> __init__
> self.vio = VirtIoChannel(config.get("virtio", "device"))
> File "/usr/share/ovirt-guest-agent/VirtIoChannel.py", line 150, in
> __init__
> self._stream = VirtIoStream(vport_name)
> File "/usr/share/ovirt-guest-agent/VirtIoChannel.py", line 131, in
> __init__
> self._vport = os.open(vport_name, os.O_RDWR)
> OSError: [Errno 24] Too many open files:
> '/dev/virtio-ports/com.redhat.rhevm.vdsm'
>
>
> Guest agent version is:
>
> 1.0.8.201309301944.gitb7f8f2-1p
>
> Another question: How to disable the logging from the agent?
>
> I just tried to set the following in /etc/ovirt-guest-agent.conf:
>
> [handler_logfile]
> class=handlers.RotatingFileHandler
> #args=('/var/log/ovirt-guest-agent/ovirt-guest-agent.log', 'a',
100*1024, 5)
> args=('/dev/null', 'a', 100*1024, 5)
>
> and then restarted the service
> --
> Mit freundlichen Grüßen / Regards
>
> Sven Kieske
>
> Systemadministrator
> Mittwald CM Service GmbH & Co. KG
> Königsberger Straße 6
> 32339 Espelkamp
> T: +49-5772-293-100
> F: +49-5772-293-333
>
https://www.mittwald.de
> Geschäftsführer: Robert Meyer
> St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
> Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
> _______________________________________________
> Users mailing list
> Users(a)ovirt.org
>
http://lists.ovirt.org/mailman/listinfo/users
>
--
Mit freundlichen Grüßen / Regards
Sven Kieske
Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen