Граф коммитов

44 Коммитов

Автор SHA1 Сообщение Дата
Nageswara Nandigam 71edfe351f
Monitor extension memory cgroups (#2632)
* Monitor extension memory cgroups

* disable the resource accounting

* fix unit test cases
2022-07-14 14:58:13 -07:00
Nageswara Nandigam 8320fee03c
Monitor RAM usage for VMAgent (#2597)
* Monitor RAM usage for VMAgent

* address comments

* fix Unit test

* address new comments

* refactor metricvalue

* fix tests

* fix monitor UTS

* fix pylint warning

* update periodic report

* addressed few more comments

* fix ut errors

* pylint warnings

* pylint error

* fix tests

* address private members

* log counter found error

* fix test errors
2022-06-02 09:26:46 -07:00
peter9370 cd3b6d21b0
Added support for devuan linux distribution (#2553)
* Added support for distro Devuan

(Will only work with Devuan >= 4 (Chimaera) - reason is
that in Devuan < 4, the platform.linux_distribution module is
used to get distro details - and this module is unable to
distinguish between Debian and Devuan. In Chimaera, python3 is 3.9,
and in this, platform.linux_distribution has been removed, so that
distro details are obtained using distro.linux_distribution - which
is able to distinguish between Debian and Devuan)

Details:

- added azurelinuxagent/common/osutil/devuan.py
- modified azurelinuxagent/common/osutil/factory.py to use devuan.py
- added init and config files for devuan
- modified setup.py for devuan support
- modified tests/common/osutil/test_factory.py to test devuan support

* waagent.conf - changed default for OS.EnableFirewall to y

* devuan.py - removed unused module imports

* init/devuan/walinuxagent: removed all operations on and references to pidfile, and simplified status to reflect this

* init/devuan/walinuxagent: removed commented-out code lines, and tidied up some comments

Co-authored-by: Norberto Arrieta <narrieta@users.noreply.github.com>
2022-05-18 09:24:32 -07:00
Nageswara Nandigam fbe19bd75a
Cgroup coverage for RedHat and Centos (#2450)
* enable cgroups for centous and redhat

* fix unit tests

* debug

* increase timeout

* test

* undo changes

* update setup.py

* update setup.py

* test

* logging order fix

* undo log

* ignored 7.1

* add log

* enable tested distros

* fix brackets
2022-01-04 12:27:04 -08:00
Shreenidhi Shedi 3345d1fd0e
Add support for VMware PhotonOS (#2431) 2021-12-07 23:02:59 +05:30
Nageswara Nandigam 1e03ab50d0
onboard redhat82 (#2290) 2021-07-06 13:39:20 -07:00
Nageswara Nandigam 68559c5655
Support sles 15 sp2 distro (#2272)
* support sles 15 sp2 distro

* copy of waagent file

* setting bin file
2021-06-17 12:06:19 -07:00
Norberto Arrieta e101f2082b
Move agent to azure slice (#2145)
* Move agent to Azure slice

* Python 2 compat

* cleanup dropin file

* Moved unit files to /lib

* Cleanup drop in files

* Start extensions in the vmextensions slice

* Fix unit tests

* Remove unused variable; fix comments

* Fix merge issue

Co-authored-by: narrieta <narrieta>
2021-02-05 12:55:14 -08:00
Paula Gombar 7fa50e461b
Create root slice for Azure and root slice for extensions (#2111) 2020-12-18 14:51:04 -08:00
chalamalasetty 6e9b985c1d
Add support for CBL-Mariner distro (#2099) 2020-12-11 16:50:36 -08:00
Pascal de Bruijn 44548b0464
Fix permissions on the Ubuntu systemd service file (#1814)
Co-authored-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
2020-03-17 13:11:42 -07:00
larohra f2b788887d
Revert "Rhel8 changes" 2019-06-13 11:32:54 -07:00
larohra 4bda31be24 Merge branch 'Rhel8Changes' of https://github.com/larohra/WALinuxAgent into Rhel8Changes 2019-06-10 13:15:31 -07:00
larohra 6630ab1234 Updated the tests 2019-06-10 13:14:48 -07:00
root 0dc01e3206 Made waagent file executable 2019-06-06 21:36:34 +00:00
larohra 3a7f220672 Added separate bin files for RHEL 8 2019-06-05 17:31:20 -07:00
larohra 786122cf92 Added a new unit file for RHEL8 and modified setup file for it 2019-06-05 12:11:33 -07:00
plessisa 169f89c8ff Support for Linux Openwrt (#1412)
* General Support for Linux Openwrt
* Resource Disk support for Linux Openwrt
* User provisioning support for Linux Openwrt
* Networking support for Linux Openwrt
* Fix indentation issue
* Update for to avoid future flake8 errors
* Reduce the logs when using static IP
2019-02-21 21:42:08 -08:00
Hongjiang Zhang 9f01d3883e fix the issue of "dmidecode is not found" on FreeBSD 2017-06-15 10:59:51 +08:00
Reyk Floeter aad62676a7 Add initial support for the OpenBSD operating system (#712)
* Add initial support for the OpenBSD operating system

There are some differences between FreeBSD, OpenBSD, and Linux.

Notes:

- OpenBSD ships LibreSSL, but WALinuxAgent needs OpenSSL for CMS, so
use the openssl port and the "eopenssl" binary instead.

- Don't run the custom DHCP client but parse /var/db/dhclient.leases.hvn0.
OpenBSD's lease file uses a modified syntax.

- OpenBSD does not have /proc.  WALinuxAgent should never assume that
the /proc filesystem is available.

- OpenBSD does not have sudo, but its replacement doas.  The OpenBSD
class implements support for modifying the doas.conf file.

- Unlike FreeBSD, OpenBSD supports and mounts UDF DVDs just fine.

- Create a swap partition instead of a swap file on the resource disk.

- Many other minor changes for OpenBSD

TODO:

- The /proc checks needs to be replaced with pgrep/ps etc. checks for
OpenBSD.  For now it just checks if /proc is available or returns
without error.
Make sure to install waagent with --register-service as setuptools
will not set the permissions of /etc/rc.d/waagent correctly (the file
has to be executable to be used by OpenBSD's rc system).

* Remove debug statement that was use to fix mount_dvd on OpenBSD.

* I accidentally replaced the FreeBSD resource disk handler.

The OpenBSD disk handler is an addition, not a replacement.

Found by jonathangray

* pylint

pylint found one bug in setting the password; other changes are just
for the style.

* strip newline from generated password hash.

Issue reported by Lili Deng.

* Keep AutoUpdate enabled, it was disabled for initial porting.

Pointed out by @hglkrijger

* Use a wildcard and delete all DHCP lease files on *BSD.

Requested by @hglkrijger
2017-05-30 15:27:22 -07:00
zegman ed8f449798 Add Check Point GAiA OS support 2017-05-17 16:28:59 +03:00
enihcam ab90f075d1 Add Arch distro support (#670)
* Add Arch distro support

* Added archDistro in waagent2.0

* Added missing dependency for archDistro

* Revert "Added missing dependency for archDistro"

This reverts commit 259cc020c4.

* Revert "Added archDistro in waagent2.0"

This reverts commit dc51cdfcb3.

* Enable waagent AutoUpdate for archlinux.
2017-04-18 12:02:01 -07:00
William Douglas d4a3226142 Add Clear Linux distro support 2016-10-26 21:12:05 +00:00
Scott Moser 54256269d4 walinuxagent.service: adjust Wants and After (#426)
There is no reason for walinuxagent.service to Want
cloud-final.service.  That could cause problems if cloud-init was
disabled.

There is also no reason for it to need to run After cloud-final.
Instead replace that with After of cloud-init.  That will ensure
that cloud-init in its datasource code has an opportunity affect
walinuxagent before it starts.

The need for this is because cloud-init was starting walinux.service
during cloud-init.service, which would cause unresolvable
cyclic dependencies.
2016-09-14 16:57:04 -07:00
Ahmet Alp Balkan 99b89b3386 Add -u unbuffering to ubuntu systemd unit (#289) 2016-07-06 10:25:28 -07:00
Stephen A. Zarkos d2b7e69314 Fix RPM install (#243)
* Update setup.py to add udev files

* Rename systemd service to waagent.service

- Keep waagent.service for consistency
- Use /usr/bin/python as default instead of /usr/bin/python3
2016-06-17 14:56:44 -07:00
Ahmet Alp Balkan 5645bdda9e [2.1] Systemd unit file updates (#230)
* Rename systemd unit file, chmod -x

* Extend the systemd unit file

* Add notice for ubuntu systemd file
2016-06-15 15:13:28 -07:00
Dong Liu 95ea883433 Fix setup.py install for coreos. 2016-04-06 13:26:16 +08:00
Dong Liu e522afc307 Add service script for FreeBSD. 2016-02-23 09:58:56 +08:00
Yue Zhang 82fde85f17 Update systemd unit file and waagent.conf for Ubuntu15.10 2015-11-19 00:55:04 +08:00
Yue Zhang 27270823f2 Rename Windows Azure to Microsoft Azure 2015-10-23 14:55:05 +08:00
Yue Zhang 4fad64dd30 Fix setup.py
1. Fix systemd init script location for SUSE and centos
2. Fix sysV script for SLES11
3. Use systemctl for sles12+
4. Mitigate systemd issue on centos 7.1
2015-10-20 10:21:36 +08:00
Yue Zhang 3cb46637c1 Use hard-code python path for Ubuntu 15.04 test 2015-08-05 11:48:42 +08:00
Yue Zhang 8c02b0c4c1 Support old extensions 2015-08-05 11:34:06 +08:00
Yue Zhang 46de362f28 Add service config for ubuntu pre-15.04 2015-08-02 15:29:58 +08:00
Yue Zhang fb40e89ea6 Add restart to upstart and systemd script 2015-08-02 14:23:50 +08:00
Yue Zhang 5d8caf770e Handle socket error for dhcp handler and add restart for systemd 2015-08-02 12:41:31 +08:00
Yue Zhang 9f299a419f Improve log and cleanup code 2015-06-30 16:24:24 +08:00
Yue Zhang 46c6115ee3 Change to systemd for ubuntu 1504 2015-06-30 16:24:24 +08:00
Yue Zhang 73525cd028 Update init script for sysV 2015-06-30 02:20:18 +08:00
Yue Zhang 4b69733951 Add register-service option to setup.py 2015-06-29 14:50:37 +08:00
Yue Zhang ae7697e8d3 Fix init script for centos 2015-06-27 17:49:14 +08:00
Yue Zhang 8ed9073057 Add distro loader 2015-06-24 15:49:09 +08:00
Yue Zhang f077df51ed Update setup.py 2015-06-16 15:00:24 +08:00