GithubHelp home page GithubHelp logo

kimchi-project / gingerbase Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 25.0 17.89 MB

Gingerbase: basic host management for WoK

License: Other

Python 47.65% Shell 7.95% CSS 4.20% JavaScript 16.02% XSLT 0.17% Makefile 5.16% M4 16.73% SCSS 2.11%

gingerbase's People

Contributors

adamkingit avatar alinefm avatar alisonjenkins avatar apporc avatar atreyeemukhopadhyay avatar baude avatar cbosdo avatar cd1 avatar clnperez avatar danielhb avatar edusf avatar edwardbadboy avatar frediz avatar gouzongmei avatar laptop006 avatar lvroyce avatar mesmriti avatar mike-kfed avatar nagamani71 avatar peterpennings avatar potula-chandra avatar pradeepkumars avatar rajatgupta21 avatar samhenri avatar sstoppler avatar sureshab avatar truja avatar wenwang1989 avatar xinding avatar yuxinhuo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gingerbase's Issues

wrong parent device name for multipath devices

If the multipath device has name ending with an integer then the following method process it incorrectly

disks._is_dev_extended_partition(devType, devNodePath):

The method blindly strips off the last character which typically is an integer from the partition name. This breaks down if the partition is a multipath device having the integer as a last character in its name. Multiple devices with tailing integer names are added p<number>' to their respective partitions and not just'

The fix would be to handle multipath devices slightly differently than usual block devices

Command to install depencency packages is removing python-cherrypy3 in Ubuntu

The command provided on README.md to install the list of dependency packages on Debian/Ubuntu is automatically removing the package python-cherrypy3, necessary to run wok:

test@ubuntu:~/wok$ sudo apt-get install gettext python-apt git python-configobj python-psutil sosreport python-lxml xsltproc python-parted python-cherrypy pep8 pyflakes python-requests g++ python-dev python-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
g++ is already the newest version.
gettext is already the newest version.
pep8 is already the newest version.
pyflakes is already the newest version.
python-dev is already the newest version.
python-lxml is already the newest version.
python-psutil is already the newest version.
python-requests is already the newest version.
xsltproc is already the newest version.
git is already the newest version.
python-pip is already the newest version.
The following packages were automatically installed and are no longer required:
  libjs-sphinxdoc libjs-underscore python-repoze.lru python-routes python-webob
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libpython3.5-minimal libpython3.5-stdlib python-support python3.5 python3.5-minimal
Suggested packages:
  python-apt-dbg python-apt-doc python-configobj-doc python3.5-venv python3.5-doc
  binfmt-support
The following packages will be REMOVED:
  python-cherrypy3
The following NEW packages will be installed:
  libpython3.5-minimal libpython3.5-stdlib python-apt python-cherrypy python-configobj
  python-parted python-support python3.5 python3.5-minimal sosreport
0 upgraded, 10 newly installed, 1 to remove and 57 not upgraded.
Need to get 4,929 kB of archives.
After this operation, 2,537 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://br.archive.ubuntu.com/ubuntu/ wily/main libpython3.5-minimal amd64 3.5.0-3 [521 kB]
Get:2 http://br.archive.ubuntu.com/ubuntu/ wily/main python3.5-minimal amd64 3.5.0-3 [1,555 kB]
Get:3 http://br.archive.ubuntu.com/ubuntu/ wily/main libpython3.5-stdlib amd64 3.5.0-3 [2,137 kB]
Get:4 http://br.archive.ubuntu.com/ubuntu/ wily-updates/main python-apt amd64 1.0.1ubuntu0.1 [143 kB]
Get:5 http://br.archive.ubuntu.com/ubuntu/ wily/universe python-support all 1.0.15 [26.7 kB]
Get:6 http://br.archive.ubuntu.com/ubuntu/ wily/universe python-cherrypy all 2.3.0-4 [214 kB]
Get:7 http://br.archive.ubuntu.com/ubuntu/ wily/main python-configobj all 5.0.6-2 [34.2 kB]
Get:8 http://br.archive.ubuntu.com/ubuntu/ wily/universe python-parted amd64 3.10.5-1build1 [69.5 kB]
Get:9 http://br.archive.ubuntu.com/ubuntu/ wily/main python3.5 amd64 3.5.0-3 [150 kB]
Get:10 http://br.archive.ubuntu.com/ubuntu/ wily-updates/main sosreport amd64 3.2-2ubuntu1.1 [79.2 kB]
Fetched 4,929 kB in 3s (1,368 kB/s)
(Reading database ... 145815 files and directories currently installed.)
Removing python-cherrypy3 (3.5.0-2build1) ...
Processing triggers for man-db (2.7.4-1) ...
Selecting previously unselected package libpython3.5-minimal:amd64.
(Reading database ... 145018 files and directories currently installed.)
Preparing to unpack .../libpython3.5-minimal_3.5.0-3_amd64.deb ...
Unpacking libpython3.5-minimal:amd64 (3.5.0-3) ...
Selecting previously unselected package python3.5-minimal.
Preparing to unpack .../python3.5-minimal_3.5.0-3_amd64.deb ...
Unpacking python3.5-minimal (3.5.0-3) ...
Selecting previously unselected package libpython3.5-stdlib:amd64.
Preparing to unpack .../libpython3.5-stdlib_3.5.0-3_amd64.deb ...
Unpacking libpython3.5-stdlib:amd64 (3.5.0-3) ...
Selecting previously unselected package python-apt.
Preparing to unpack .../python-apt_1.0.1ubuntu0.1_amd64.deb ...
Unpacking python-apt (1.0.1ubuntu0.1) ...
Selecting previously unselected package python-support.
Preparing to unpack .../python-support_1.0.15_all.deb ...
Unpacking python-support (1.0.15) ...
Selecting previously unselected package python-cherrypy.
Preparing to unpack .../python-cherrypy_2.3.0-4_all.deb ...
Unpacking python-cherrypy (2.3.0-4) ...
Selecting previously unselected package python-configobj.
Preparing to unpack .../python-configobj_5.0.6-2_all.deb ...
Unpacking python-configobj (5.0.6-2) ...
Selecting previously unselected package python-parted.
Preparing to unpack .../python-parted_3.10.5-1build1_amd64.deb ...
Unpacking python-parted (3.10.5-1build1) ...
Selecting previously unselected package python3.5.
Preparing to unpack .../python3.5_3.5.0-3_amd64.deb ...
Unpacking python3.5 (3.5.0-3) ...
Selecting previously unselected package sosreport.
Preparing to unpack .../sosreport_3.2-2ubuntu1.1_amd64.deb ...
Unpacking sosreport (3.2-2ubuntu1.1) ...
Processing triggers for man-db (2.7.4-1) ...
Processing triggers for mime-support (3.58ubuntu1) ...
Setting up libpython3.5-minimal:amd64 (3.5.0-3) ...
Setting up python3.5-minimal (3.5.0-3) ...
Setting up libpython3.5-stdlib:amd64 (3.5.0-3) ...
Setting up python-apt (1.0.1ubuntu0.1) ...
Setting up python-support (1.0.15) ...
Setting up python-cherrypy (2.3.0-4) ...
Setting up python-configobj (5.0.6-2) ...
Setting up python-parted (3.10.5-1build1) ...
Setting up python3.5 (3.5.0-3) ...
Setting up sosreport (3.2-2ubuntu1.1) ...
Processing triggers for python-support (1.0.15) ...
test@ubuntu:~/wok$ 
test@ubuntu:~/wok$ 
test@ubuntu:~/wok$ 
test@ubuntu:~/wok$ sudo src/wokd --environment=developmentTraceback (most recent call last):
  File "src/wokd", line 30, in <module>
    import wok.server
  File "/home/test/wok/src/wok/server.py", line 28, in <module>
    from wok import auth
  File "/home/test/wok/src/wok/auth.py", line 38, in <module>
    from wok.utils import get_all_tabs, run_command
  File "/home/test/wok/src/wok/utils.py", line 33, in <module>
    from cherrypy.lib.reprconf import Parser
ImportError: No module named reprconf

How to reproduce:

$ git clone https://github.com/kimchi-project/wok.git
#
# install Wok dependencies
#
$ sudo apt-get install gcc make autoconf automake gettext git pkgconf python-cherrypy3 python-cheetah python-imaging python-pam python-m2crypto python-jsonschema python-psutil python-ldap python-lxml nginx xsltproc openssl fonts-font-awesome texlive-fonts-extra pep8 pyflakes python-requests g++ python-dev python-pip
$ sudo pip install cython libsass
$ ./autogen.sh --system
$ make
$ sudo src/wokd --environment=development          # It works
#
# Ctrl-C to go back to console
# install GingerBase dependencies
# 
$ sudo apt-get install gettext python-apt git python-configobj python-psutil sosreport python-lxml xsltproc python-parted python-cherrypy pep8 pyflakes python-requests g++ python-dev python-pip
$ sudo src/wokd --environment=development
Traceback (most recent call last):
  File "src/wokd", line 30, in <module>
    import wok.server
  File "/home/test/wok/src/wok/server.py", line 28, in <module>
    from wok import auth
  File "/home/test/wok/src/wok/auth.py", line 38, in <module>
    from wok.utils import get_all_tabs, run_command
  File "/home/test/wok/src/wok/utils.py", line 33, in <module>
    from cherrypy.lib.reprconf import Parser
ImportError: No module named reprconf

Tested on a Ubuntu 15.10 machine.

Cannot list available packages to system update on Ubuntu 15.10

When using the UI to upgrade an Ubuntu 15.10 system, the list is not provided by the following error:

An error occurred while retrieving system information. GGBPKGUPD0003E: Error while getting packages marked to be updated. Details: E:Not locked

screenshot from 2015-12-29 16-00-44

Got the same error when trying to get the list of available packages using REST command:

$  curl -k -u test -H "Content-Type: application/json" -H "Accept: application/json" 'https://192.168.122.155:8001/plugins/gingerbase/host/packagesupdate' -X GET
Enter host password for user 'test':
{
  "reason":"GGBPKGUPD0003E: Error while getting packages marked to be updated. Details: E:Not locked",
  "code":"500 Internal Server Error",
  "call_stack":"Traceback (most recent call last):\n  File \"/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py\", line 670, in respond\n    response.body = self.handler()\n  File \"/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py\", line 217, in __call__\n    self.body = self.oldhandler(*args, **kwargs)\n  File \"/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py\", line 61, in __call__\n    return self.callable(*self.args, **self.kwargs)\n  File \"/home/test/wok/src/wok/control/base.py\", line 363, in index\n    raise cherrypy.HTTPError(500, e.message)\nHTTPError: (500, u'GGBPKGUPD0003E: Error while getting packages marked to be updated. Details: E:Not locked')\n"
}

Not able to rename a debug report

When trying to rename a debug report, nothing happens on UI and error messages raises on background screen.

How to reproduce:
1 - once logged in, select Host->Dashboard tabs
2 - for any debug reported listed, select Actions->Rename
3 - on new screen, rename the debug report and click on Submit button

Nothing happens after that. If the Submit button is clicked only once, the error message "Nothing matches the given URI". If the Submit button is clicked twice, the error message "GGBDR0001E: Debug report blablebli does not exist".

screenshot from 2015-12-28 16-09-04

If I change to a diffente tab and move back to Dashboard, I can see the debug report renamed. Tested on a Fedora 23 host machine.

Cannot build gingerbase out of wok structure

Distro: Ubuntu 15.10 x86_64
Tried to clone gingerbase separately from wok and could not build it. The same problem occurs trying to build gingerbase in wok tree before building wok itself.

Compiling .scss file src/gingerbase.scss
sassc -s expanded src/gingerbase.scss gingerbase.css
sassc: error: Error: File to import not found or unreadable: ../../../../../../../ui/css/src/modules/wok-variables
Parent style sheet: /home/dev/gingerbase/ui/css/src/gingerbase.scss
on line 22 of src/gingerbase.scss

@import "../../../../../../../ui/css/src/modules/wok-variables";
^

Makefile:517: recipe for target 'gingerbase.css' failed
make[3]: *** [gingerbase.css] Error 1
make[3]: Leaving directory '/home/dev/gingerbase/ui/css'
Makefile:373: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/dev/gingerbase/ui'
Makefile:604: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/dev/gingerbase'
Makefile:443: recipe for target 'all' failed
make: *** [all] Error 2

Software Update Progress freezes when session timeout'ed.

After start a host Software Update with a huge number of packages to update that takes more time to finish than the UI session timeout parameter, the screen freezes (no update no Software Update Progress window) with no information to user.

User needs to change to a different tab to UI check that session closed (Wok session timeout is set to 5 or 10 minutes, I guess) and then prompt message and move to login screen.

While Generating Debug Report multiple issues

Dashboard → Debug Reports → Generate → Generating

  1. No response from back-end it keeps saying Generating and session gets expire
  2. error message should be close able
  3. Once error message received Generating and loading icon should not be displaying on UI

Cannot add a new or edit a repository with new UI.

When trying to add a new repository entry under 'Updates' tab, after fill the 'Identifier', 'Name' and 'URL' fields, the 'Add' button is enabled but nothing happens when clicking on it.

screenshot from 2015-12-28 15-03-25

The same happens after edit any field of an existent repository - nothing happens after click on Save button. In addition, to both actions, nothing happens on backend side. This happens on Fedora 23 host machine.

Tests failing @ Fedora 23

These unit tests are failing running in F22 x86_64:

FAIL: test_nonroot_access (test_authorization.AuthorizationTests)

Traceback (most recent call last):
File "test_authorization.py", line 63, in test_nonroot_access
self.assertEquals(403, resp.status)
AssertionError: 403 != 200

FAIL: test_uninstalled_plugin_paths (test_config.ConfigTests)

Traceback (most recent call last):
File "test_config.py", line 66, in test_uninstalled_plugin_paths
% prefix)
AssertionError: '/etc/wok/plugins.d' != '/usr/share/wok/src/wok/plugins/gingerbase'


sosreport diagnostic

Bring up a list of all logged events ordered by time and severity.
Allows for further filtering of these events, either by severity type or range of time. Modify the view, according to the query result.
Allow for the selection of multiple events (or all) and produce a single file to be downloaded.

make rpm on CentOS fails

Running make rpm on CentOS 7 fails.

  • I downloaded the latest zip file from github.
  • Extracted it on a pristine CentOS installation.
  • Executed ./autogen.sh.
  • Executed make
  • Executed make rpm (failed with below error)

error: File not found: /root/wok-master/rpm/BUILDROOT/wok-2.0.0-0.el7.centos.x86_64/usr/lib/firewalld/services/wokd.xml

Line 130 in the specfile says: %{_prefix}/lib/firewalld/services/wokd.xml, but this isn't available. I guess the src/firewalld.xml file should be copied to that location, but that's just a wild guess.

regards

UI allows renaming of debug report to empty string

UI allows debug report to be renamed to empty string. The result is the following:

wok/src/wok/plugins/gingerbase/data/debugreports/test0.tar.xz renamed to wok/src/wok/plugins/gingerbase/data/debugreports/.tar.xz

And that debug report is not listed anymore by the UI.

Can't install wok package on Ubuntu 14.04

I installed the dependencies listed in the wok installation documentation, but when I run sudo dpkg -i wok-*.deb, I get:

(Reading database ... 208299 files and directories currently installed.)
Preparing to unpack wok-2.0.0-0.noarch.deb ...
Unpacking wok (2.0.0) over (2.0.0) ...
Setting up wok (2.0.0) ...
dpkg: error processing package wok (--install):
 subprocess installed post-installation script returned error exit status 127
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
 wok

A bit cryptic for me, any idea? Thanks.

Debug reports to support s390x platform

Originally reported on kimchi-project/kimchi#749

Current upstream code just collects sosreport and tar is moved to /var/lib/kimchi/debugreports.
For s390x platform, dbginfo also need to be collected by running dbginfo.sh along with sosreport.
And final tar of sosreport and dbginfo should get collected and moved to /var/lib/kimchi/debugreports.

From @laggarcia
I know this is not related to Kimchi/Ginger, but ideally I think dbginfo call should be included as a plugin to sosreport.

Cannot use mouse after generate a Debug Report using Firefox

It's not able to use the mouse after request to generate a new Debug Report. Looks like the screen is working because the graphs in Dashboard tab are still updating, but the mouse lost its capability to click on any link.

How to reproduce:

  1. Select Host->Dashboard tab
  2. Under Debug Reports table, select Actions->Generate
  3. Enter a report name and click on Generate button
  4. Try to click on any link/button

Only after refresh the page (F5 or Ctrl+R) the mouse goes back to work. Tested using Firefox 43 browser provided by Fedora 23 package system.

Repositories is not supported on OpenSuse

The Repositories class is not supported on OpenSuse host machine. With that Ginger Base is not able to manage/list Zypper repositories by the API.

$ curl -k -u test -H "Content-Type: application/json" -H "Accept: application/json" 'https://192.168.122.34:8001/plugins/gingerbase/host/capabilities' -X GET
Enter host password for user 'test':
{
  "update_tool":true,
  "federation":"off",
  "repo_mngt_tool":null,
  "system_report_tool":false
}

Tested on OpenSUSE Leap 42.1

Dashboard contents are not shown in Fedora 23

No error shown in log. In firebug I can see the following:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/ jquery.min.js:5:0
not well-formed :1:80
TypeError: data.memory is undefined jquery.min.js:636:9

Provide an option to delete multiple debug reports at once

1)Start kimchi from browser(https://:8001)
2)Select the host tab\dashboard
3)Click on generate button under debug reports if there are no reports there yet. Generate several reports if so.
Suppose that we have more that one debug reports & we want to delete all of them. We need to select report one at a time and click on delete.
Can we provide an option to delete multiple debug reports at once?

rpm creation failed on Fedora 23

Originally report at kimchi-project/kimchi#779

make[4]: *** No rule to make target 'src/gingerbase.scss', needed by 'gingerbase.css'. Stop.
make[4]: Leaving directory '/home/chandra/kimchi/src/wok/plugins/gingerbase/rpm/BUILD/ginger-base-2.0.0/ui/css'
Makefile:372: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/chandra/kimchi/src/wok/plugins/gingerbase/rpm/BUILD/ginger-base-2.0.0/ui'
Makefile:606: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/chandra/kimchi/src/wok/plugins/gingerbase/rpm/BUILD/ginger-base-2.0.0'
Makefile:443: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/chandra/kimchi/src/wok/plugins/gingerbase/rpm/BUILD/ginger-base-2.0.0'
error: Bad exit status from /var/tmp/rpm-tmp.RRMRzq (%build)

Debug report generation error - Fedora 23

When generating a debug report in current master, running in Fedora 23, doesn't matter if leaving the name empty or not, the following error appears:

image

Unexpected exception: GGBDR0003E: Unable to create debug report report-1457960709184. Details: 1.

A very helpful message, of course ... not. I've patched the code temporarily to show the error message (will send patch to ML soon). This was thrown when trying to create a debug report with name 'test':

image

Unexpected exception: GGBDR0003E: Unable to create debug report test. Details: --- Logging error --- Traceback (most recent call last): File "/usr/lib64/python3.4/logging/__init__.py", line 980, in emit stream.write(msg) UnicodeEncodeError: 'ascii' codec can't encode characters in position 87-92: ordinal not in range(128) Call stack: File "/sbin/sosreport", line 25, in main(sys.argv[1:]) File "/usr/lib/python3.4/site-packages/sos/sosreport.py", line 1591, in main sos.execute() File "/usr/lib/python3.4/site-packages/sos/sosreport.py", line 1562, in execute self.collect() File "/usr/lib/python3.4/site-packages/sos/sosreport.py", line 1252, in collect plug.collect() File "/usr/lib/python3.4/site-packages/sos/plugins/__init__.py", line 715, in collect self._collect_copy_specs() File "/usr/lib/python3.4/site-packages/sos/plugins/__init__.py", line 677, in _collect_copy_specs self._log_info("collecting path '%s'" % path) File "/usr/lib/python3.4/site-packages/sos/plugins/__init__.py", line 152, in _log_info self.soslog.info(self._format_msg(msg)) Message: "[plugin:libvirt] collecting path '/var/log/libvirt/qemu/k\udcc4\udcab\udcd0\udcbc\udcd1\udc81h\udcc4\udcab-\udce2\udc88\udca8\udcd0\udcbc.log'" Arguments: () [archive:TarFileArchive] Unable to add '/var/tmp/sos.174yvwah/sosreport-test-20160314101105/proc/sys/net/ipv4/route/flush' to FileCacheArchive: [Errno 13] Permission denied: '/var/tmp/sos.174yvwah/sosreport-test-20160314101105/proc/sys/net/ipv4/route/flush' [archive:TarFileArchive] Unable to add '/var/tmp/sos.174yvwah/sosreport-test-20160314101105/proc/sys/net/ipv6/route/flush' to FileCacheArchive: [Errno 13] Permission denied: '/var/tmp/sos.174yvwah/sosreport-test-20160314101105/proc/sys/net/ipv6/route/flush' [archive:TarFileArchive] Unable to add '/var/tmp/sos.174yvwah/sosreport-test-20160314101105/proc/sys/vm/compact_memory' to FileCacheArchive: [Errno 13] Permission denied: '/var/tmp/sos.174yvwah/sosreport-test-20160314101105/proc/sys/vm/compact_memory' Traceback (most recent call last): File "/sbin/sosreport", line 25, in main(sys.argv[1:]) File "/usr/lib/python3.4/site-packages/sos/sosreport.py", line 1591, in main sos.execute() File "/usr/lib/python3.4/site-packages/sos/sosreport.py", line 1565, in execute self.html_report() File "/usr/lib/python3.4/site-packages/sos/sosreport.py", line 1330, in html_report self._html_report() File "/usr/lib/python3.4/site-packages/sos/sosreport.py", line 1394, in _html_report rfd.write(html) UnicodeEncodeError: 'ascii' codec can't encode characters in position 5019-5024: ordinal not in range(128) .

There's a chance that this might be something specific to my host configuration, as I've received word that other people running F23 isn't experiencing this issue. Because of that I'm not setting the milestone to 2.1.

Misleading CPU numbers in Basic Information when SMT (multithreading) active.

Architecture:s390x, OS: KVM for IBM z Systems

When SMT is enabled, the CPU information is misleading:

Online: 8, Offline: 0, Shared: 4, Dedicated: 0
CPU(s)

Its showing 8 CPUs, but when it comes to shared and dedicated only 4 are being shown.

The inconsistency is caused by:

  • the total number of CPUs is gathered via lscpu which is returning the number of
    threads. Handling threads as CPUs is consistent here with other platforms.
    [root@zs95k4 ~]# lscpu
    Architecture: s390x
    CPU op-mode(s): 32-bit, 64-bit
    Byte Order: Big Endian
    CPU(s): 8
    On-line CPU(s) list: 0-7
    Thread(s) per core: 2
    Core(s) per socket: 8
    Socket(s) per book: 3
    Book(s): 8
    Vendor ID: IBM/S390
  • the number of shared/dedicated CPUs is gathered from /proc/sysinfo and here
    we have the LPAR cores:
    [root@zs95k4 ~]# cat /proc/sysinfo
    ................................................
    LPAR CPUs Total: 4
    LPAR CPUs Configured: 4
    LPAR CPUs Standby: 0
    LPAR CPUs Reserved: 0
    LPAR CPUs Dedicated: 0
    LPAR CPUs Shared: 4

I guess we need to add the information about the threads for clarification.
Here a proposal on how we could display the information:

Online: 8, Offline: 0
CPU(s)

Shared: 4, Dedicated: 0
Core(s)

Thread(s) per Core: 2

Software update fails with 500 status code when host is up to date

Architecture: x86 and s390x
OS: Fedora and KVM for IBM z Systems

Currently when system is up to date with all packages, /plugins/gingerbase/swupdate returns 500 status code. Ideally it should be successful operation returning 200.

[suresh@localhost ~]# curl -k -u root -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{}' 'https://127.0.0.1:8001/plugins/gingerbase/host/swupdate'
Enter host password for user 'root':
{
"reason":"GGBPKGUPD0001E: No packages marked for update",
"code":"500 Internal Server Error"
}

Repositories section fail to load on Fedora 23

From @chandrureddy :
GingerBase : Repositories section fail to load on Fedora 23

Environment:
[cpotula@localhost ~]$ uname -a
Linux localhost.localdomain 4.2.3-300.fc23.x86_64 #1 SMP Mon Oct 5 15:42:54 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Steps to reproduce:

  1. install Kimchi WOK and install gingerbase
  2. start wokd via 'systemctl start wokd'
  3. Browse 'https://localhost:8001/#plugins/gingerbase/host' . Observer no repositories shown.

Logs:
[24/Nov/2015:11:30:40] ENGINE Started monitor thread 'Session cleanup'.
[24/Nov/2015:11:30:40] ENGINE Started monitor thread 'Session cleanup'.
GGBREPOS0014E: Repository management tool was not recognized for your system.

The interface for Actions under the Updates Panel is inconsistent and does not make sense.

Issue is that if you look at Updates Panels and under that Repositories
Each repos listed has an "Action" pull down next to it.
On the other panels you have a high level actions button on top
Then a selection to perform an action against it.
You also have an "Add"
The add is the most confusion of all because you have to select an already existing repos to add a new one which makes no sense.

No toolbar on Ubuntu 15.10

Hi,
I finally managed to install Kimchi on a Ubuntu 15.10. I can reach the https://localhost:8001 page and I can login. Now, I've another annoying issue : there is no toolbar. I see the title bar with the Kimchi icon, the user menu with a "Log out" item and the help menu.

Below, there is an empty grey area where I guess the toolbar should stand...but it doesn't.

Any help would be great. Thanks.

History data view

Now, a collection of host statics are displayed to the user in a real time fashion. The user can know what is going on by monitoring the host statics. However, sometimes, the user need to look back into the host statics for system management analysis, especially he need to get the statics in a certain time range.

In the front end, a coordinate diagram within a certain time should be displayed based on the statics data from the backend. And the front end may or may not cache the statics data. In the back end, a file should be created to store the host statics sampled in a certain rate, say 100 seconds by default. The API for the client to get the samples will be

GET /host/stats?start=2013-11-11 00:00&end=2013-11-12:00:00

Edit does not work on an existing repos

From the Updates Panel under Repositories
Select Actions Next to target repos and Edit
Make any change that it allows as some fields are not allowed
Save

Nothing changes and the pop up window stays open and the Save Button becomes enable again.

I reopened the Repos again with Edit and the Old data was still there.
I checked under yum.repos.d and the file is unchanged as well.

Help pages split

Help pages split as per new tabs dashboard and updates has to be done other wise help content will not be fetched and you could see following error message.

572d1a98-9fe2-11e5-8424-78a3489da56d

[Enhancement] Blank dashboard for non admin users

I created an user to access wok without admin permission (not in sudoers). After login user that user account I got a blank Dashboard:
image

I think there is not problem to show dashboard content that doesn't need admin rights.

Ubuntu repositories not being displayed (error GGBREPOS0025E)

When navigating to the tab "Updates", on Ubuntu 14.04, I get the following error:

An error occurred while retrieving system information. GGBREPOS0025E: Unable to retrieve repository information. Details: 'E:Not locked'

After another two clicks on "Retry" I was able to see my repositories, but the error box does not disappear (as per figure bellow). Also, if I reload the tab (either by navigating to other tabs or by clicking F5) I miss the list again.

image

Cannot update system on Ubuntu 15.10

After get the list of available packages to update on a Ubuntu 15.10 host machine, and clicked on "Update All" button, the "Update Progress" box shows up but nothing happens.

screenshot from 2015-12-29 16-28-26

Looking at the REST response in Firebug console, the return of the POST command was:

{
  "reason":"GGBPKGUPD0003E: Error while getting packages marked to be updated. Details: E:Not locked"
,
  "code":"500 Internal Server Error"
} 

The same happens when using REST command by console:

$  curl -k -u test -H "Content-Type: application/json" -H "Accept: application/json" 'https://192.168.122.155:8001/plugins/gingerbase/host/swupdate' -X POST -d'{}'
Enter host password for user 'test':
{
  "reason":"GGBPKGUPD0003E: Error while getting packages marked to be updated. Details: E:Not locked",
  "code":"500 Internal Server Error"
} 

Service start doesn't works when system's language is not English

lscpu.py expects lscpu command to return a line with "Core(s) per socket" in it.
When the system's local isn't English (French for example), this isn't the case: a french system gives "Cœur(s) par socket".

This lead to a wok.exception.NotFoundError: GGBCPUINF0005E: GGBCPUINF0005E error when trying to start wok's service (systemctl start wokd.service).

Add 'python2-dnf' as a Fedora 23 dependency in the spec file

This is somewhat related to issue #2

When installing Gingerbase RPM the Dashboard and Updates tab does not load. I am aware that there is an issue regarding the dashboard (issue #12 ) but this one has a very specific message in wok-error.log:

$ cat /var/log/wok/wok-error.log 
GGBREPOS0014E: GGBREPOS0014E
GGBREPOS0014E: GGBREPOS0014E
GGBREPOS0014E: GGBREPOS0014E
GGBREPOS0014E: GGBREPOS0014E
[11/Dec/2015:00:41:22] ENGINE Listening for SIGHUP.
[11/Dec/2015:00:41:22] ENGINE Listening for SIGHUP.
[11/Dec/2015:00:41:22] ENGINE Listening for SIGTERM.
[11/Dec/2015:00:41:22] ENGINE Listening for SIGTERM.
[11/Dec/2015:00:41:22] ENGINE Listening for SIGUSR1.
[11/Dec/2015:00:41:22] ENGINE Listening for SIGUSR1.
[11/Dec/2015:00:41:22] ENGINE Bus STARTING
[11/Dec/2015:00:41:22] ENGINE Bus STARTING

GGBREPOS0014E is the following error:

"GGBREPOS0014E": _("Repository management tool was not recognized for your system.")

Issue #2 fixed this issue by adding code in repositories.py and a README note about the packages:

  • If using Fedora, install the following additional packages:

  • $ sudo yum install python2-dnf
  • If using RHEL, install the following additional packages:

  • $ sudo yum install python-unittest2 python-ordereddict

The package python2-dnf is not present in the contrib/gingerbase.spec.fedora.in file. Perhaps adding this dependency fixes the issue?

Add a new repo is not intuitive

In order to add a new repository it's necessary to select Actions of any repository, then click Add. It doesn't make much sense because Add is not an action to any particular repo.
image

My suggestion is to have a button bellow the Repositories title to add a new repo, just like we have in Software Updates:
image

No option provided to update selected packages only

1)select kimchi from browser
2)Select hosts tab\updates. Under Software updates, there is no option to select a package and update only that package.

Can we provide an option to updated selected packages only?

sosreport generation does not allow underscore in name

Originally reported on kimchi-project/kimchi#748

URI: /plugins/gingerbase/model/debugreports
Action: Post
Post data: {"name": "debugreport_1"}
Output: Error "underscore not allowed in the debug report name."

Investigation:

sosreport command generate report tar.gz by removing _

And existing upstream code search for file with pattern "sosreport-*" at /tmp or /var/tmp

Solution:
Parsed the output of sosreport to get the path and name of sosreport generated. instead of searching the pattern "sosreport-*" in /tmp or /var/tmp.

Dashboard live consumption charts not aligned

Hello,

I found a minor issue in the dashboard chart with both Chromium v44 and Firefox 40, those charts are not aligned within the box they belong. Screenshot bellow:

image

My resolution is 1600x900.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.