Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
c508ef3ba6
!15 在默认配置文件中设置 'guest-manager-multi-thread' 为 'true'
From: @crrs666 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2023-03-24 09:01:29 +00:00
wangdi
66ac7db34a Set guest-manager-multi-thread to true in default configuration file 2023-03-24 16:44:32 +08:00
openeuler-ci-bot
ee769782c0
!9 修复mom包中python3路径错误
From: @crrs666 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2023-03-14 01:09:14 +00:00
wangdi
9759fb7313 fix wrong python3 intepreter path 2023-03-14 09:01:37 +08:00
openeuler-ci-bot
e0e4512381
!8 Add url field
From: @liqiuyu123 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2022-04-01 03:24:06 +00:00
liqiuyu
267fefd91c add yaml 2022-04-01 11:15:26 +08:00
openeuler-ci-bot
5080412fc6
!5 更新版本至0.6.2
From: @kylinwangdi 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
2022-03-16 02:18:07 +00:00
wangdi
aa85445018 Bump version to 0.6.2 2022-03-15 16:18:40 +08:00
openeuler-ci-bot
4465b50b1c !3 Bump version to 0.6.1
From: @crrs666
Reviewed-by: @jxy_git
Signed-off-by: @jxy_git
2021-07-07 09:49:24 +00:00
wangdi
2ec4a175c7 Bump version to 0.6.1 2021-07-06 11:12:10 +08:00
5 changed files with 69 additions and 25 deletions

View File

@ -0,0 +1,26 @@
From 48f8987596642b9a8adf17b307ff658b35c3f779 Mon Sep 17 00:00:00 2001
From: wangdi <wangdi@kylinos.cn>
Date: Fri, 24 Mar 2023 16:36:54 +0800
Subject: [PATCH] fill default value true for guest-manager-multi-thread in
momd.conf
---
doc/mom-balloon+ksm.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/mom-balloon+ksm.conf b/doc/mom-balloon+ksm.conf
index 4456da7..23d54eb 100644
--- a/doc/mom-balloon+ksm.conf
+++ b/doc/mom-balloon+ksm.conf
@@ -61,7 +61,7 @@ policy-dir:
# advantage of those guarantees, and do the monitoring using a single thread.
# If set to false, disable the current behaviour and configure MOM to monitor
# all the VMs using only one thread.
-guest-manager-multi-thread:
+guest-manager-multi-thread: true
[logging]
# Set the destination for program log messages. This can be either 'stdio' or
--
2.39.1

Binary file not shown.

BIN
mom-0.6.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,24 +1,19 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
%{!?with_check: %global with_check 0}
%{!?with_check: %global with_check 1}
%global package_version 0.5.12
%global package_name mom
%global package_version 0.6.2
Name: %{package_name}
Version: 0.5.12
Release: 1%{?release_suffix}%{?dist}
Name: mom
Version: 0.6.2
Release: 3
Summary: Dynamically manage system resources on virtualization hosts
Group: Applications/System
License: GPLv2
URL: http://www.ovirt.org
Source: %{package_name}-%{package_version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
URL: https://www.ovirt.org
Source: https://resources.ovirt.org/pub/src/mom/mom-0.6.2.tar.gz
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: python-mock
BuildRequires: python3-devel
BuildRequires: python3-six
Requires(post): systemd
Requires(preun): systemd
@ -27,14 +22,13 @@ BuildRequires: systemd
# MOM makes use of libvirt by way of the python bindings to monitor and
# interact with virtual machines.
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
Requires: libvirt-daemon-driver-qemu
%else
Requires: libvirt
%endif
Requires: libvirt-python
Requires: python3-libvirt
Requires: python3-six
Requires: procps
Patch1: 0001-fill-default-value-true-for-guest-manager-multi-thre.patch
%description
MOM is a policy-driven tool that can be used to manage overcommitment on KVM
@ -50,18 +44,19 @@ MOM supports control of memory ballooning and KSM but the architecture is
designed to accommodate new mechanisms such as cgroups.
%prep
%setup -q -n %{package_name}-%{package_version}
%autosetup -p1 -n mom-0.6.2
%build
%configure --docdir="%{_pkgdocdir}"
%configure \
PYTHON="%{__python3}" \
--docdir="%{_pkgdocdir}"
make %{?_smp_mflags}
%install
rm -rf "%{buildroot}"
make DESTDIR="%{buildroot}" install
install -dm 755 %{buildroot}%{_unitdir}
mv contrib/momd.service %{buildroot}%{_unitdir}
install contrib/momd.service %{buildroot}%{_unitdir}
install -d -m 0755 "%{buildroot}/%{_sysconfdir}"
install -m 0644 doc/mom-balloon+ksm.conf "%{buildroot}/%{_sysconfdir}/momd.conf"
@ -81,11 +76,30 @@ make check %{?_smp_mflags}
%files
%config(noreplace) %{_sysconfdir}/momd.conf
%license COPYING
%doc README.md
%dir %{_pkgdocdir}/examples
%{_pkgdocdir}/examples/*
# COPYING is handled by license macro, avoid to ship duplicates
%exclude %{_pkgdocdir}/COPYING
%{_unitdir}/momd.service
%{_sbindir}/momd
%{python_sitelib}/mom/
%{_pkgdocdir}/*
%{python3_sitelib}/mom/
%changelog
* Fri Mar 24 2023 wangdi <wangdi@kylinos.cn> - 0.6.2-3
- Set 'guest-manager-multi-thread' to 'true' in default configuration file
* Mon Mar 13 2023 wangdi <wangdi@kylinos.cn> - 0.6.2-2
- Fix wrong python3 intepreter path
* Tue Mar 15 2022 wangdi <wangdi@kylinos.cn> - 0.6.2-1
- Bump version to 0.6.2
* Tue Jul 06 2021 wangdi <wangdi@kylinos.cn> - 0.6.1-1
- Bump version to 0.6.1
* Wed Mar 04 2020 Huihui Fu <huihui.fu@cs2c.com.cn> - 0.5.12-1
- Initial package

4
mom.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: oVirt/mom
tag_prefix: ^v
separator: "."