Skip to content

Commit b8f4a5a

Browse files
Add kimchi family and deps (#12)
* Add build support kimchi/ginger familly Adding the follow packages: * kimchi * ginger * gingerbase * wok Fix open-power-host-os/builds#8 * Add build support to noVNC noVNC is a known dependency for kimchi, not distributed in centOS 7.2 so let's build it. Also includes patches to fix open-power-host-os/builds#33 * Add build support to libguestfs Yet another package that's not built on CentOS7.2, it's required to install kimchi.
1 parent 59ae8c7 commit b8f4a5a

File tree

264 files changed

+45183
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+45183
-0
lines changed

ginger/centOS/7.2/ginger.spec

Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
%define ibm_release .1
2+
3+
%define pkvm_release .pkvm3_1_1
4+
5+
Name: ginger
6+
Version: 2.2.0
7+
Release: 1%{?dist}%{?pkvm_release}
8+
Summary: Host management plugin for Wok - Webserver Originated from Kimchi
9+
BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}
10+
Group: System Environment/Base
11+
License: LGPL/ASL2
12+
Source0: %{name}.tar.gz
13+
BuildArch: noarch
14+
BuildRequires: gettext-devel >= 0.17
15+
BuildRequires: autoconf
16+
BuildRequires: automake
17+
BuildRequires: libxslt
18+
Requires: gettext >= 0.17
19+
Requires: wok >= 2.1.0
20+
Requires: ginger-base
21+
Requires: libuser-python
22+
Requires: libvirt
23+
Requires: python-ethtool
24+
Requires: python-ipaddr
25+
Requires: python-magic
26+
Requires: python-netaddr
27+
Requires: python-augeas
28+
Requires: libvirt-python
29+
30+
31+
%description
32+
Ginger is a host management plugin for Wok (Webserver Originated from Kimchi),
33+
that provides an intuitive web panel with common tools for configuring and
34+
operating Linux systems. Kimchi is a Wok plugin for managing KVM/Qemu virtual
35+
machines.
36+
37+
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
38+
%global with_systemd 1
39+
%endif
40+
41+
%prep
42+
%setup -n %{name}
43+
44+
45+
%build
46+
./autogen.sh --system
47+
make
48+
49+
50+
%install
51+
rm -rf %{buildroot}
52+
make DESTDIR=%{buildroot} install
53+
54+
55+
%clean
56+
rm -rf $RPM_BUILD_ROOT
57+
58+
59+
%post
60+
%if 0%{?with_systemd}
61+
install -dm 0755 /usr/lib/systemd/system/wokd.service.requires
62+
ln -sf ../tuned.service /usr/lib/systemd/system/wokd.service.requires
63+
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
64+
service wokd restart
65+
%endif
66+
67+
68+
%postun
69+
%if 0%{?with_systemd}
70+
if [ $1 == 0 ]; then # uninstall
71+
rm -f /usr/lib/systemd/system/wokd.service.requires/tuned.service
72+
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
73+
service wokd restart
74+
fi
75+
%endif
76+
77+
78+
%files
79+
%attr(-,root,root)
80+
%{python_sitelib}/wok/plugins/ginger/*.py*
81+
%{python_sitelib}/wok/plugins/ginger/API.json
82+
%{python_sitelib}/wok/plugins/ginger/control/*.py*
83+
%{python_sitelib}/wok/plugins/ginger/model/*.py*
84+
%{_datadir}/wok/plugins/ginger/ui/images/*.svg
85+
%{_prefix}/share/locale/*/LC_MESSAGES/ginger.mo
86+
%{_datadir}/wok/plugins/ginger/ui/config/tab-ext.xml
87+
%{_datadir}/wok/plugins/ginger/ui/css/base/images/*.gif
88+
%{_datadir}/wok/plugins/ginger/ui/css/base/images/*.png
89+
%{_datadir}/wok/plugins/ginger/ui/css/ginger.css
90+
%{_datadir}/wok/plugins/ginger/ui/js/*.js
91+
%{_datadir}/wok/plugins/ginger/ui/pages/help/ginger-help.css
92+
%{_datadir}/wok/plugins/ginger/ui/pages/help/*/*.html
93+
%{_datadir}/wok/plugins/ginger/ui/pages/tabs/*.html.tmpl
94+
%{_datadir}/wok/plugins/ginger/ui/pages/i18n.json.tmpl
95+
%{_datadir}/wok/plugins/ginger/ui/pages/host-network*.html.tmpl
96+
%{_datadir}/wok/plugins/ginger/ui/pages/*.html.tmpl
97+
%{_sysconfdir}/wok/plugins.d/ginger.conf
98+
%{_sysconfdir}/systemd/system/wokd.service.d/ginger.conf
99+
100+
101+
%changelog
102+
* Wed Aug 24 2016 <baseuser@ibm.com>
103+
Log from git:
104+
- 4b9924f023099d28c919e55e0834860ca8342d06 Issue #381: 'make clean' does not revert its changes from 'make rpm'
105+
- 6fec29c3ecbf857a8cd3199cc8fcf3eb038e1ffa Capabilities API: get current feature state
106+
- 2b9565f2887b38789b957fe4fed1b4f6ce4d160e Make all is_feature_available methods static
107+
- 317d4d73265759802a2c498d86791f76e2a6bec4 Fixing miscellaneous issues in swap functionalities
108+
- 6c73928647a85b998e0122a66469741a3c55ee48 Fixing miscellaneous issues in swap functionalities
109+
- 10af984cf47d9f0cfd7abbaa2a2a509a3efa8e4d Add missing user request log messages
110+
- 762e2e98de6d9d9bcb9901d7a5852f55493b1723 Remove duplicated entry
111+
- 4826f3b56e33ee7f803506856840e4b75c7d0176 Revert "Use past verbs and other log message improvements"
112+
- 56b0aaa70d386eda6a6b168d1637081a4ea461ee Move audit error messages along to correct section
113+
- 260e87bcf63e35bac328a438fe64f912984d1aaa Ginger control: import control classes using sub_node
114+
- 9bd9ee1f293d76c7d684b637362e21bd41db84a8 test/test_authorization.py: test changes after urlsubnode change
115+
- ba0c0862aabd02ace16cd3fb07588ff3723b7b8b Removing control/nfsshares.py file
116+
- 5affd694999fb83e6e566b9cd14044db7fa9c96a Control classes: fixing @UrlSubNode calls
117+
- a1054c215ad1ebef319227dfdcc57255013d661e Issue #372 : Add support for target rescan
118+
- 0efe8265ecbd70750875125f5ead7bded5019578 docs/API.md : adding configuration backup APIs
119+
- 3fac3f0b38bdfb506d3ef957ff8d3162e0b7be8f docs/API.md: removing duplicated ibm_sep entry
120+
- 3988eabb242f6524e0db585185c7424056e35f10 Introducing Volume Group related operations.
121+
- 6df0850a73c26a499b63609b778e735ca7bba03b Introducing Volume group related operations.
122+
- 17cca53e5f7d3df3f2d44fa6794467e63ba59398 Introducing Volume group related operations.
123+
- 597159efa472e0c797484e96fc8013d500485c45 Update stringutils imports
124+
- fb9b53d74e81bdc83eaaf49617813cd396ce3740 Issue #377 : Full Width and Arabic digits not accepted for batch delete of config backup
125+
- e4beb6d74b8302f593028713190e52d2eea4af79 Revert "Globalisation support - externalize all remaining strings for ginger plugin."
126+
- 3b3a91bb64f19692800f348df96b9e1a70f0a3ff Issue #372 : Add support to target authentication
127+
- 7a762e61e808f8ba5b4ff4a57fe3f84fc469b410 Globalisation support - externalize all remaining strings for ginger plugin.
128+
- e79ead0fe695cffabbb051ff6fa51c06d11fcea5 Modify the info returned by partitions listing API
129+
- 9dbae80e2eef671f482b8733bd6aa224c7957b09 Issue #375 :Fifteen Character VLAN device name not being recognized as a valid VLAN Interface name.
130+
- 85317f0b8f3b68f0dced1115ef19057205af0c28 Issue #376:Unable to edit the text field or click submit/cancel after press ESC or click outside the error message dialog of Add User.
131+
- 74182c95dc44ef83e5dcd0431a167ab3fd66e195 Time out while generating config back up file leave the tar file behind
132+
- 9439806d811a7c2bbbb7907cb3ab507e65b3f212 Issue #372 : iSCSI Discovery and IQN actions support
133+
- a84c1c51b07da6e763f19653b884df55bd222d4a Audit rules backend: new tests file test_rules
134+
- 617cf532691b23c51a09d7ecdcbd303552c560f7 Audit rules backend: changes in controls, ginger.py and model/model.py
135+
- bbeea7b374749ab5539db3859900b1f452c252c9 Audit rules backend: API doc and i18n.py changes.
136+
- ebce57e2d0461d215422a9b5c9ba69c63d48f4ea Audit rules backend: new model/rules.py module
137+
- a1e3df94a82457c6e8e2b8e810904537220ee1fa Introducing File system related operations.
138+
- 26e08586e2f0b8901b5f7efe2d40016026f34b7c Introducing File system related operations.
139+
- f93c2f6c4bf242cad45e43fb77ab1b43d056fd28 Introducing File system related operations.
140+
- b85b15f732d2ad442597696faf903351f93bbcad Extend Filesystem mounting to include mount options
141+
- 4de6c1454ace270454c6fec08c923c03ae072c10 Added cursor for tasks in progress
142+
- e3d52545c4b6fa49dc4489f39d4ffdac663fbd99 Improvements on Configuration Backup UI
143+
- 670fdf8457768f01646fc9537b77025572f7b8c2 Github #94: OpenSUSE network support
144+
- ba7623c6c47daef6bbe9ceaabbd5638a89db4e47 Implementation of Partition for storage devices
145+
- 97f0d08f6a296eb789167edec53d6984ab07b2c5 Issue #371 : Create disk partitions takes integer input for size
146+
- 4c1f481b48b6f52fe337a12e63330ef8f41117ae Github #121: WoK log flooded by hddtemp messages
147+
- 84f43d5188892e30b39793d9c6e43d555f0ed88d Issue #300 : Redesign "Network Configuration" UI
148+
- 4cb9b33e90d32d140b9db2545df4c8076531e330 Fixing wok_log redundancy and i18n.py error messages
149+
- 681174296d5c0f70ff8609e82e24921ec3edbbc1 Fixing wok_log redundancy and i18n.py error messages
150+
- aea7709b8e2d8c5fadd5ee164a1b56e95aee8e38 Fixing wok_log redundancy and i18n.py error messages
151+
- 32f2841ca3e893f1346b4210b922bebcf89ebc07 Fixing wok_log redundancy and i18n.py error messages
152+
- 930c71db18c3bdeabc98580679696fe81db448cd Issue #299: Redesign "Global Network Configuration" UI
153+
- 3529cd987e7d7202b94771882337b94e3efd54a6 Removing debug info from model/users.py
154+
155+
* Tue Jul 12 2016 Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
156+
- Added 'dir' directives for each dir and subdir in the 'files' section
157+
- rpmlint fixes
158+
159+
* Tue May 31 2016 Ramon Medeiros <ramonn@linux.vnet.ibm.com>
160+
- Update spec with Fedora community Guidelines
161+
162+
* Mon May 16 2016 Ramon Medeiros <ramonn@linux.vnet.ibm.com>
163+
- Does not disable tuned service as dependency when update package
164+
165+
* Wed Mar 23 2016 Daniel Henrique Barboza <dhbarboza82@gmail.com>
166+
- Removed 'pyparted' from dependencies because it is a Ginger-base dependency
167+
- Removed 'python-cheetah' from build dependencies
168+
- Added wok version restriction >= 2.1.0
169+
170+
* Tue Mar 1 2016 Daniel Henrique Barboza <dhbarboza82@gmail.com>
171+
- added ui/images/*.svg in 'files' section
172+
173+
* Sat Feb 6 2016 Chandra Shekhar Reddy Potula <chandra@linux.vnet.ibm.com>
174+
- Add libvirt service dependencies to Ginger
175+
176+
* Mon Jan 25 2016 Daniel Henrique Barboza <dhbarboza82@gmail.com>
177+
- Changed 'controls' dir to 'control' in 'files' section
178+
- Added 'datadir'/wok/plugins/ginger/ui/pages/*.html.tmpl to 'files'
179+
- Changed 'models' dir to 'model' in 'files' section
180+
181+
* Fri Dec 25 2015 Daniel Henrique Barboza <dhbarboza82@gmail.com>
182+
- Changed 'files' to include all ui/js/*.js js files
183+
- Changed 'files' to include all ui/pages/help/*/*.html help files
184+
- Changed 'files' to include all ui/pages/tabs/*.html.tmpl tabs
185+
186+
* Wed Dec 16 2015 Daniel Henrique Barboza <dhbarboza82@gmail.com>
187+
- Removed 'host-admin.css' from 'files'
188+
- added 'ui/js/ginger-bootgrid.js' in 'files'
189+
190+
* Fri Dec 11 2015 Daniel Henrique Barboza <dhbarboza82@gmail.com>
191+
- Added ui/pages/tabs/host-admin.html.tmpl to 'files'
192+
193+
* Fri Nov 27 2015 Chandra Shekhar Reddy Potula <chandra@linux.vnet.ibm.com>
194+
- Add missing dependencies for Ginger
195+
196+
* Thu Oct 2 2014 Rodrigo Trujillo <rodrigo.trujillo@linux.vnet.ibm.com>
197+
- Add Help pages for Ginger
198+
- Change build system to enable and release Help pages
199+
200+
* Wed Jul 2 2014 Paulo Vital <pvital@linux.vnet.ibm.com> 1.2.1
201+
- Changed the package name from kimchi-ginger to ginger
202+
203+
* Wed Apr 16 2014 Zhou Zheng Sheng <zhshzhou@linux.vnet.ibm.com> 1.2.0
204+
- Initial release of Kimchi-ginger dedicated RPM package

ginger/ginger.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Package:
2+
name: 'ginger'
3+
clone_url: 'https://github.com/open-power-host-os/ginger.git'
4+
branch: 'powerkvm-v3.1.1'
5+
commit_id: '4b9924f'
6+
expects_source: 'ginger'
7+
files:
8+
centos:
9+
'7.2':
10+
spec: 'centOS/7.2/ginger.spec'

gingerbase/centOS/7.2/gingerbase.spec

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
2+
%global with_systemd 1
3+
%endif
4+
5+
%define ibm_release .1
6+
7+
%define pkvm_release .pkvm3_1_1
8+
9+
Name: ginger-base
10+
Version: 2.0.0
11+
Release: 1%{?dist}%{?pkvm_release}
12+
Summary: Wok plugin for base host management
13+
BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}
14+
BuildArch: noarch
15+
Group: System Environment/Base
16+
License: LGPL/ASL2
17+
#Source0: %{name}-%{version}.tar.gz
18+
Source0: %{name}.tar.gz
19+
Requires: wok
20+
Requires: pyparted
21+
Requires: python-cherrypy
22+
Requires: python-configobj
23+
Requires: python-lxml
24+
Requires: python-psutil >= 0.6.0
25+
Requires: rpm-python
26+
Requires: gettext
27+
Requires: git
28+
Requires: sos
29+
BuildRequires: gettext-devel
30+
BuildRequires: libxslt
31+
BuildRequires: python-lxml
32+
BuildRequires: autoconf
33+
BuildRequires: automake
34+
35+
%if 0%{?fedora} >= 23
36+
Requires: python2-dnf
37+
%endif
38+
39+
%if 0%{?rhel} == 6
40+
Requires: python-ordereddict
41+
BuildRequires: python-unittest2
42+
%endif
43+
44+
%description
45+
Ginger Base is an open source base host management plugin for Wok
46+
(Webserver Originated from Kimchi), that provides an intuitive web panel with
47+
common tools for configuring and managing the Linux systems.
48+
49+
%prep
50+
%setup -n %{name}
51+
52+
%build
53+
./autogen.sh --system
54+
make
55+
56+
57+
%install
58+
rm -rf %{buildroot}
59+
make DESTDIR=%{buildroot} install
60+
61+
62+
%clean
63+
rm -rf $RPM_BUILD_ROOT
64+
65+
%files
66+
%attr(-,root,root)
67+
%{python_sitelib}/wok/plugins/gingerbase
68+
%{_datadir}/gingerbase
69+
%{_prefix}/share/locale/*/LC_MESSAGES/gingerbase.mo
70+
%{_datadir}/wok/plugins/gingerbase
71+
%{_datadir}/wok/plugins/gingerbase/ui/pages/tabs/host-dashboard.html.tmpl
72+
%{_datadir}/wok/plugins/gingerbase/ui/pages/tabs/host-update.html.tmpl
73+
%{_sysconfdir}/wok/plugins.d/gingerbase.conf
74+
%{_sharedstatedir}/gingerbase/
75+
76+
77+
%changelog
78+
* Wed Jan 20 2016 <baseuser@ibm.com>
79+
Log from git:
80+
- 0116a20469f779df16c4322dd97b2981d3a0feef Issue #19: Fix HTTP return code of host updated.
81+
- ad2fed466e19254cb4b5d59acecc31689bca2c71 Update README.md file.
82+
- b32fbb11d2db06fe50519b3dfb4906bdf0414af8 Issue #27 : wrong parent device name for multipath devices
83+
- 14ce7c45d1d09edec10cc06555379f1bddf3aa78 Github #3: failing gingerbase tests
84+
- e979cd5acc81e2f4b4c03c4a3b33d9a22ef8f0df Implement a new testcase for the sw upgrade monitor
85+
- fce108fc28592a6c7c2e3a1416da4f374d72f814 Remove unecessary apt lock from AptRepo class
86+
- aff316bd6a4162be9b36f186319f2cfc43e7e60e Remove unecessary apt lock from AptUpdate class
87+
- 88fbc07bad0a8bb0ed479f5ae753c7c7c2fd25f2 Implement the package manager monitor frontend
88+
- 8f1c57a71d39acdaae4c2e20b5fe22792f9640ac Implement class to support Fedora dnf package manager
89+
- ff5edae125642f266f2bce28c3efe440a04fdf69 issue #23: Update README.md
90+
- 518fae03aff5341976d43819aff9614acc3e5047 Debug report enhancement to find the generated SoSreport and debugreport files
91+
- 52c7ea56e3bf7d0f5bfa839a961c94bd453cc0ef Fixing openSUSE rpm build
92+
- 734f4b2dcde807585731d19008e11a6f6db8362a Do not rely on python-pip to install build dependencies
93+
- f6bed1ff4755912b6a57ef233e3c5953eb578b82 Fix Portuguese translations for storage pool.
94+
- d78e65b93c1f03a67d21d7a41304b19e9b755f85 Github #18: lscpu output varies with system language
95+
- 8a03afe8ec068e6447feade3430f141c336ec3b7 Fixing errors in .po files
96+
- 9d2ffb1dedffae95e108db14218ce565761dad9a Preparing Ginger-base version 2.0.0
97+
- dda6b1135e80158a03c9c7975194c1685372224f Use correct gettext package for building
98+
- 6c9f6ab36e469ff4f719ab99219b8f13e3edcbc7 Fixing whitespace errors
99+
- 7e0cba5235b56bff0fbbdd295e6f699a28fba5ec Github #16: make check-local improvements
100+
- f70ccb14fe1c3b1528f3760fd18c0b3ddf640ca8 Issue #14 : Help pages split
101+
- 6b31d076c70c7aaeca2cd67c35d0166cc1b7dad4 Issue #14 : Help pages split
102+
- 64c3487452dade4321ce8c3e2e30cb67c5ccc801 Issue #14 : Help pages split
103+
- 1e41ecb9a8758b91b6ca5cde6ff6712dac50cbb1 Issue #14 : Help pages split
104+
- fcaa1d3c8e3a944e8215c7c9099d894dd9a93e15 Issue #14 : Help pages split
105+
- dcb4376784e06744317cfbb645f26b1c81f57557 Issue #14 : Help pages split
106+
- 7e6234ce6186f92bcdf2a255beed4a141a3f8db1 Issue #14 : Help pages split
107+
- 304a495acbeba4eb7abf20898dc7c671c9c986c3 Issue #14 : Help pages split
108+
- 344297e1e02008d1482ce7de01b6947e270abcd5 Issue #14 : Help pages split
109+
- 3df9b75f6d22fd841742a175b89768249871594f Issue #14 : Help pages split
110+
- 1e32cfa8479ed8ce2255e25d2ed9e436571cbd04 Issue #14 : Help pages split
111+
- 1d266db0db4a57616201fc4894e2ec73da409087 Removed line-chart SCSS from Wok and added to Gingerbase
112+
- 1d9e6401460c37d85e2140763e3cb1689c925658 Upgrade GingerBase objectstore schema.
113+
- d9c4da167b5859e66ee2a98bff05db449f3ee21c Use always flag as a fallback
114+
- 67f4df227a8fe8286755ed2e28484982840318c8 Update dependencies for all distributions
115+
- 9bf0a9c28bda69d45534302b71315f86c8aaac5b Issue #12: fixing _get_cpus() of HostModel
116+
- 5d322a4cb5bdec9d11a5d4d464f7015f44b334ea Fixing RPM packaging of tabs
117+
- 637389bab622b11ce27bbde73f7129b6be79669a Fixing broken packaging due to wrong variable
118+
- 2f96d70ee8b8bda4d51ef2b808e55ab7a7c3fa27 Bug fix: Proper set role_key according to new tabs
119+
- 3cf077e224580ae9d8f61a3c1ee39d59ab3be226 Remove required authentication from /
120+
- 52dbc280d4515d787517febc67a3449b68d6fb3d Create read-only view for Dashboard tab
121+
- b04c055660e11935a762c8de5c1702989dcbc471 Expose HTML tabs files in a specific /tabs URI
122+
- 6039f64507aa97a265810ecb9a3d1d28490fb838 Add missing dependency python-apt
123+
- 3f990d12df59ac9f1f119246e35455bac844ed16 Fixed Repository Add and Edit modals
124+
- 21a29cbc9c7daff92b22ba5f339d6f8cf2f284bb Adding Media Queries support to Gingerbase
125+
- a022e3c58b9040b7de577c97341d856639e33064 Issue #8: Ubuntu repositories not being displayed (error GGBREPOS0025E)
126+
- f94dba213b96b4de80c7d2544ecd9ed80c8f9d6d Issue #4 : rpm creation failed on Fedora 23
127+
- e4d839cf87ab1172104fceb061d88120e0f28b91 Fix Issue #2 - Support dnf for Fedora repositories and updates
128+
- 299832ed895b532dec0847debeac4dfe354b1d5d Ginger Base repository
129+
- b10d056daf0d65ef257e848d32798fc61b65b90d Fix issue 766 - Define network interface in libvirt
130+
131+
* Tue Aug 25 2015 Chandra Shehkhar Reddy Potula <chandra@linux.vnet.ibm.com> 0.0-1
132+
- First build

gingerbase/gingerbase.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Package:
2+
name: 'gingerbase'
3+
clone_url: 'https://github.com/open-power-host-os/gingerbase.git'
4+
branch: 'powerkvm-v3.1.1'
5+
commit_id: '56a2bc3'
6+
expects_source: 'ginger-base'
7+
files:
8+
centos:
9+
'7.2':
10+
spec: 'centOS/7.2/gingerbase.spec'

0 commit comments

Comments
 (0)