kimchi-project / gingerbase Goto Github PK
View Code? Open in Web Editor NEWGingerbase: basic host management for WoK
License: Other
Gingerbase: basic host management for WoK
License: Other
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
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.
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
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"
}
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".
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.
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
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.
Dashboard → Debug Reports → Generate → Generating
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.
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.
These unit tests are failing running in F22 x86_64:
Traceback (most recent call last):
File "test_authorization.py", line 63, in test_nonroot_access
self.assertEquals(403, resp.status)
AssertionError: 403 != 200
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'
As we did with kimchi-project/ginger#44, we need to verify for trailing whitespace and new blank line errors in gingerbase as well.
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.
Running make rpm on CentOS 7 fails.
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 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.
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.
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.
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:
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.
After login, navigate to "Updates" tab. You must have repository(ies) enabled with software available to upgrade.
Click "Update All' to start the process, then navigate to any other tab, and go back to "Updates" tab. You will see that there will be no upgrade progress being displayed.
Help page content update to reflect the current UI pages
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
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
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?
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)
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:
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':
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.
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:
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
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"
}
Identify what is needed to have gingerbase package included in the openSUSE official repositories.
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:
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.
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.
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.
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
Update All with out any icon for Software updates.
I also know from the design document that there is no icon for the button "Update all".
I recommend to have good icon here too.
Identify what is needed to have gingerbase package included in the Fedora official repositories.
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.
Dashboard → Debug Reports → Generate
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.
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.
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"
}
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).
Goto Updates Tab
Select an Actions Add next to which ever repos
Under the updatable Options you will see an i icon for info
You refer to the repos as a DEB repos when really we are running on RHEL with a yum repos.
I would make them more generic esp if when we rebase to Zeus this would change.
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:
The package python2-dnf is not present in the contrib/gingerbase.spec.fedora.in file. Perhaps adding this dependency fixes the issue?
Dashboard → Debug Reports → Generate → Rename
rename is not allowing with hyphen or normal text operation is always fail
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.
My suggestion is to have a button bellow the Repositories title to add a new repo, just like we have in Software Updates:
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?
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:
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.
Identify what is needed to have gingerbase package included in the Ubuntu official repositories.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.