Cockpit: installing multiple packages from Software Center only installs the last selected one

NethServer Version: 7.6.1810 (updated yesterday)
Module: nethserver-cockpit 0.13.1-1.ns7, Software Center module

I installed a new instance of NS (using Vagrant), decided to do all the stuff I usually do in the old httpd-admin in cockpit and then tried to install, in one pass, Webtop, the mail server module, fail2ban and the firewall-base interface. I only got the firewall interface in the first place. Interface says “Install 4 applications” but in the end only installed the last one which I chose from the interface.

Subsequent test installing the last three apps resulted in the same behavior (3 apps selected, last was email server, just the email server was installed).

Expected results: installation is done for every selected applications.
Steps to reproduce:
1 - Install NS
2 - Update and install nethserver-cockpit (should be 0.13.1-1.ns7)
3 - Goto Cockpit interface, Software Center
4 - Select 2 or 3 packages, then install them
5 - Check for their installation (I’ve done that inside cockpit, but I forgot to check on the yum side).

I’m probably good to make some more tests in some hours, I have to open up some more bug reports today :smile:

Sorry, but I can’t reproduce.

From the Software Center, I selected: ‘Basic firewall’, ‘Netdata’ and ‘Print Server’

Inside the browser console I can see:

API exec: system-packages/update
$  echo '{"action":"install","packages":["@nethserver-firewall-base","@nethserver-netdata","@nethserver-printers"]}' | /usr/bin/sudo /usr/libexec/nethserver/api/system-packages/update | jq

And from the /var/log/messages:

Sep 12 15:04:04 test2 pkgaction[24596]: install: @nethserver-firewall-base, @nethserver-netdata, @nethserver-printers

Extract of installed packages:

...
Sep 12 15:04:23 test2 yum[24596]: Installed: libjpeg-turbo-1.2.90-6.el7.x86_64
Sep 12 15:04:23 test2 yum[24596]: Installed: lcms2-2.6-3.el7.x86_64
Sep 12 15:04:23 test2 yum[24596]: Installed: libICE-1.0.9-9.el7.x86_64
Sep 12 15:04:23 test2 yum[24596]: Installed: libSM-1.2.2-2.el7.x86_64
Sep 12 15:04:24 test2 yum[24596]: Installed: 1:net-snmp-libs-5.7.2-38.el7_6.2.x86_64
Sep 12 15:04:24 test2 yum[24596]: Installed: foomatic-db-filesystem-4.0-41.20130911.el7.noarch
Sep 12 15:04:24 test2 yum[24596]: Installed: libgusb-0.2.9-1.el7.x86_64
Sep 12 15:04:24 test2 yum[24596]: Installed: poppler-data-0.4.6-3.el7.noarch
Sep 12 15:04:24 test2 yum[24596]: Installed: openjpeg-libs-1.5.1-18.el7.x86_64
Sep 12 15:04:25 test2 yum[24596]: Installed: colord-libs-1.3.4-1.el7.x86_64
Sep 12 15:04:25 test2 yum[24596]: Installed: libXt-1.1.5-3.el7.x86_64
Sep 12 15:04:25 test2 yum[24596]: Installed: libv4l-0.9.5-4.el7.x86_64
Sep 12 15:04:25 test2 yum[24596]: Installed: netdata-conf-1.16.0-1.el7.noarch
Sep 12 15:04:25 test2 yum[24596]: Installed: qpdf-libs-5.0.1-3.el7.x86_64
Sep 12 15:04:25 test2 yum[24596]: Installed: 1:liberation-fonts-common-1.07.2-16.el7.noarch
Sep 12 15:04:25 test2 yum[24596]: Installed: 1:liberation-mono-fonts-1.07.2-16.el7.noarch
Sep 12 15:04:25 test2 yum[24596]: Installed: 1:cups-client-1.6.3-35.el7.x86_64
Sep 12 15:04:25 test2 yum[24596]: Installed: jbigkit-libs-2.0-11.el7.x86_64
Sep 12 15:04:25 test2 yum[24596]: Installed: libtiff-4.0.3-27.el7_3.x86_64
Sep 12 15:04:25 test2 yum[24596]: Installed: poppler-0.26.5-20.el7.x86_64
Sep 12 15:04:25 test2 yum[24596]: Installed: poppler-utils-0.26.5-20.el7.x86_64
Sep 12 15:04:26 test2 yum[24596]: Installed: cups-filters-libs-1.0.35-22.el7.x86_64
Sep 12 15:04:26 test2 yum[24596]: Installed: libfontenc-1.1.3-3.el7.x86_64
Sep 12 15:04:26 test2 yum[24596]: Installed: 1:xorg-x11-font-utils-7.5-21.el7.x86_64
Sep 12 15:04:26 test2 yum[24596]: Installed: urw-fonts-2.4-16.el7.noarch
Sep 12 15:04:26 test2 yum[24596]: Installed: ghostscript-fonts-5.50-32.el7.noarch
Sep 12 15:04:27 test2 yum[24596]: Installed: ghostscript-9.07-31.el7_6.11.x86_64
Sep 12 15:04:27 test2 yum[24596]: Installed: avahi-glib-0.6.31-19.el7.x86_64
Sep 12 15:04:27 test2 yum[24596]: Installed: libwebp-0.3.0-7.el7.x86_64
Sep 12 15:04:28 test2 yum[24596]: Installed: python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64
Sep 12 15:04:28 test2 yum[24596]: Installed: libXpm-3.5.12-1.el7.x86_64
Sep 12 15:04:28 test2 yum[24596]: Installed: gd-2.0.35-26.el7.x86_64
Sep 12 15:04:28 test2 yum[24596]: Installed: hplip-common-3.15.9-3.el7.x86_64
Sep 12 15:04:28 test2 yum[24596]: Installed: lockdev-1.0.4-0.13.20111007git.el7.x86_64
Sep 12 15:04:29 test2 yum[24596]: Installed: avahi-0.6.31-19.el7.x86_64
Sep 12 15:04:29 test2 yum[24596]: Installed: libexif-0.6.21-6.el7.x86_64
Sep 12 15:04:29 test2 yum[24596]: Installed: libgphoto2-2.5.15-1.el7.x86_64
Sep 12 15:04:29 test2 yum[24596]: Installed: netdata-data-1.16.0-1.el7.noarch
Sep 12 15:04:29 test2 yum[24596]: Installed: bc-1.06.95-13.el7.x86_64
Sep 12 15:04:29 test2 yum[24596]: Installed: 1:cups-filesystem-1.6.3-35.el7.noarch
Sep 12 15:04:30 test2 yum[24596]: Installed: cups-filters-1.0.35-22.el7.x86_64
Sep 12 15:04:31 test2 yum[24596]: Installed: 1:cups-1.6.3-35.el7.x86_64
Sep 12 15:04:31 test2 yum[24596]: Installed: ghostscript-cups-9.07-31.el7_6.11.x86_64
Sep 12 15:04:37 test2 yum[24596]: Installed: foomatic-db-ppds-4.0-41.20130911.el7.noarch
Sep 12 15:04:41 test2 yum[24596]: Installed: foomatic-db-4.0-41.20130911.el7.noarch
Sep 12 15:04:41 test2 yum[24596]: Installed: foomatic-filters-4.0.9-8.el7_6.1.x86_64
Sep 12 15:04:41 test2 yum[24596]: Installed: color-filesystem-1-13.el7.noarch
Sep 12 15:04:42 test2 yum[24596]: Installed: colord-1.3.4-1.el7.x86_64
Sep 12 15:04:42 test2 yum[24596]: Installed: foomatic-4.0.9-8.el7_6.1.x86_64
Sep 12 15:04:42 test2 yum[24596]: Installed: 1:libuv-1.30.1-1.el7.x86_64
Sep 12 15:04:45 test2 yum[24596]: Installed: 1:npm-3.10.10-1.6.17.1.1.el7.x86_64
Sep 12 15:04:46 test2 yum[24596]: Installed: 1:nodejs-6.17.1-1.el7.x86_64
Sep 12 15:04:47 test2 yum[24596]: Installed: netdata-1.16.0-1.el7.x86_64
Sep 12 15:04:47 test2 yum[24596]: Installed: libieee1284-0.2.11-15.el7.x86_64
Sep 12 15:04:47 test2 yum[24596]: Installed: sane-backends-libs-1.0.24-12.el7.x86_64
Sep 12 15:04:47 test2 yum[24596]: Installed: hplip-libs-3.15.9-3.el7.x86_64
Sep 12 15:04:48 test2 yum[24596]: Installed: 1:hpijs-3.15.9-3.el7.x86_64
Sep 12 15:04:49 test2 yum[24596]: Installed: hplip-3.15.9-3.el7.x86_64
Sep 12 15:04:49 test2 yum[24596]: Installed: nethserver-cups-1.2.2-1.ns7.noarch
Sep 12 15:04:49 test2 yum[24596]: Installed: nethserver-netdata-1.1.0-1.ns7.noarch
Sep 12 15:04:49 test2 yum[24596]: Installed: nethserver-avahi-1.1.0-1.ns7.noarch
Sep 12 15:04:50 test2 yum[24596]: Installed: nethserver-firewall-base-ui-3.6.6-1.ns7.noarch
...

Please verify that you can correctly access the list of yum groups: yum grouplist -v.
You should see the newly installed applications under Installed Groups: section.

You are right. I have to better describe the issue, since I have now found the way to reproduce both the good and the bad behaviour on the same machine.

Once on the Software Center, the expected and correct behaviour (all the application you previously selected are installed) is showing only if your search filters (within the search bar) are cleared. Search filters modify the visibility of the selected packages, so even if the button says “Install n apps” it will only install the last searched and flagged package.

I can now clearly state some scenarios here:

  1. Selecting all packages to be installed directly from the first rendered page of Software Center works as expected;
  2. Selecting some packages, then search for a package with the search bar, flag that one and directly push the install button inside the search results will only install the package which is shown, even if the button counts the correct number of flagged applications to be installed: this shows the bad behaviour I described;
  3. Select some packages from the main page, then search for another one, flag it for installation from the search results, then remove search filters (clearing the search bar). Push the “install” button: correct behaviour is shown;
  4. (this is the enlighting one) Select two package from the first render of Software Center page, then search another one but do not flag it for installation, then push the Install 2 apps button directly from the search result. You will receive an error:
**Error**

Applications not installed.

Check  `API`  for more info:
`system-packages/update`

It seems that the search filters reduce the visibility of the previously flagged packages for installation, but the button counts them correctly.

1 Like

I should add that not only the search field is reducing the visibility of flagged-for-installation apps, but also the general subdivisions of packages (Base system, NethForge, Firewall).

I can almost reproduce this one: in my case no selected package has been installed.

IIRC this is the desired behavior.

Please be patient for the fix, I’d like to wait our UI guy who is actually on vacation :slight_smile:

3 Likes

Hi, the fix is now in 7.7.1908/testing, the package is: nethserver-cockpit.

The behavior is: if you select an app that you want to install, even if the text filter is filled or not, the selected app will be installed.

Testing of 7.7 :slight_smile: