agent: fixed "modified" files after clone.

Due to CR/LF issue some files were reported as "modified" even after
new clone or hard reset. Recommited the files with the right line-
ending.

Change-Id: I147b60f91335e18d786f79e3ab5d3799c1b18ab8
Signed-off-by: Gal Hammer <ghammer@redhat.com>
agent: Send 'uninstalled' notification non blocking

The "echo" command blocks if the host is not connected to the
virtio-serial port. Replace it with a short python script that
opens the port with the O_NONBLOCK flag. This way, removing the
agent's doesn't hung if vdsm (or any other listener) doesn't
exist during the removal.

Change-Id: I5b49e53cda2f21bd759b0f3f67619f7f1e45688f
Signed-off-by: Gal Hammer <ghammer@redhat.com>
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
Report multiple IPv4 addresses per device if available

A future version of python-ethtool is going to expose
ethtool.etherinfo.get_ipv4_addresses() method, reporting multiple
addresses of a single device. Use this method if available.

Signed-off-by: Dan Kenigsberg <danken@redhat.com>
Change-Id: I77bfd63874134b8d0c626c6d179643c2ec781b44
agent: datadir as default home for the ovirtagent user

Solves the issue with starting the service when polyinstantiated
namespaces are used on the system.
Following the Fedora guideline:
    http://fedoraproject.org/wiki/Packaging:UsersAndGroups

Bug-Url: https://bugzilla.redhat.com/883124
Change-Id: I08cd6e8ca4341c62c0e5f18b6c6226a103873f62
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Sorted gitignore and added .idea

Change-Id: Iad052f3d272b5df68275de9baeac3f9e45ea32c5
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Reported MAC on Windows now the same as on Linux

Reporting of the MAC differs between linux and Windows guest operating
systems. The windows operating system reports it separated by dashes '-'.
This changeset will replace those dashes with colons ':'

Change-Id: Id19a8944025ee22d82a57b99fe4ba1c4315c27e9
Bug-Url: https://bugzilla.redhat.com/908761
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Call restorecon on pidfile

Change-Id: I8729ce8018566b400846e0d639dfdb6b11d51862
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Pep8 fixes

* CredServer
* GuestAgentLinux2
* VirtIoChannel
* WinFile
* version
* setup.py - FP on py2exe import
* OVirtGuestAgent
* OVirtAgentLogic
* ovirt-guest-agent
* LockActiveSession
* GuestAgentWin32

Change-Id: I74c33ed2ef2e5c33b9d25cb8b38e4201d67a957b
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Running PEP8 checks on python files

Change-Id: Ie41f1126dfd124e393ae11e9c4c054c7c23ce7aa
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>
agent: Fixing .gitattributes

.gitattributes should contains text infront of eol

Change-Id: Iec9a241e05c2c6c9a3922de0c9153e97406118eb
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>