kimchi-project / ginger

WoK plugin for host management
Other
66 stars 41 forks source link

Ubuntu-16.04: Unable to list System Services #403

Closed pvital closed 7 years ago

pvital commented 8 years ago

Using Ubuntu 16.04 and lcorreia@89bf175 as HEAD, the 'System Services Management' tab is not listing the current system services, showing a 'Loading..." wheel on screen:

screenshot from 2016-09-14 13-26-01

No messages in wok-error.log is printed, and backend is working:

$ curl -k -u test -H 'Content-type: application/json' -H 'Accept: application/json' https://192.168.122.30:8001/plugins/ginger/services -X GET
Enter host password for user 'test':

[
  {
    "load":"loaded",
    "sub":"running",
    "name":"accounts-daemon.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "2294":"/usr/lib/accountsservice/accounts-daemon"
      },
      "name":"Control group /system.slice/accounts-daemon.service"
    },
    "desc":"Accounts Service"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"acpid.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{
        "2301":"/usr/sbin/acpid"
      },
      "name":"Control group /system.slice/acpid.service"
    },
    "desc":"ACPI event daemon"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"apparmor.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/apparmor.service"
    },
    "desc":"LSB: AppArmor initialization"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"apport.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/apport.service"
    },
    "desc":"LSB: automatic crash report generation"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"atd.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "2189":"/usr/sbin/atd -f"
      },
      "name":"Control group /system.slice/atd.service"
    },
    "desc":"Deferred execution scheduler"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"cgmanager.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/cgmanager.service"
    },
    "desc":"Cgroup management daemon"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"console-setup.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/console-setup.service"
    },
    "desc":"Set console font and keymap"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"cron.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "2185":"/usr/sbin/cron -f"
      },
      "name":"Control group /system.slice/cron.service"
    },
    "desc":"Regular background program processing daemon"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"dbus.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{
        "2197":"/usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile ..."
      },
      "name":"Control group /system.slice/dbus.service"
    },
    "desc":"D-Bus System Message Bus"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"ebtables.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/ebtables.service"
    },
    "desc":"LSB: ebtables ruleset management"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"getty@tty1.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "2431":"/sbin/agetty --noclear tty1 linux"
      },
      "name":"Control group /system.slice/system-getty.slice/getty@tty1.service"
    },
    "desc":"Getty on tty1"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"grub-common.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/grub-common.service"
    },
    "desc":"LSB: Record successful boot for GRUB"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"hddtemp.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/hddtemp.service"
    },
    "desc":"LSB: disk temperature monitoring daemon"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"ifup@kbens3.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{
        "2265":"/sbin/dhclient -1 -v -pf /run/dhclient.kbens3.pid -lf /var/lib/dhcp/dh..."
      },
      "name":"Control group /system.slice/ifup@kbens3.service"
    },
    "desc":"ifup for kbens3"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"irqbalance.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{
        "2435":"/usr/sbin/irqbalance --pid=/var/run/irqbalance.pid"
      },
      "name":"Control group /system.slice/irqbalance.service"
    },
    "desc":"LSB: daemon to balance interrupts for SMP systems"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"iscsid.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "2374":"/sbin/iscsid",
        "2373":"/sbin/iscsid"
      },
      "name":"Control group /system.slice/iscsid.service"
    },
    "desc":"iSCSI initiator daemon (iscsid)"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"keyboard-setup.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/keyboard-setup.service"
    },
    "desc":"Set console keymap"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"kmod-static-nodes.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/kmod-static-nodes.service"
    },
    "desc":"Create list of required static device nodes for the current kernel"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"libvirt-bin.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "2894":"/usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --...",
        "2632":"/usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/isolated_netz.c...",
        "2893":"/usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --...",
        "2633":"/usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/isolated_netz.c...",
        "2399":"/usr/sbin/libvirtd"
      },
      "name":"Control group /system.slice/libvirt-bin.service"
    },
    "desc":"Virtualization daemon"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"libvirt-guests.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/libvirt-guests.service"
    },
    "desc":"Suspend Active Libvirt Guests"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"lvm2-lvmetad.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{
        "891":"/sbin/lvmetad -f"
      },
      "name":"Control group /system.slice/lvm2-lvmetad.service"
    },
    "desc":"LVM2 metadata daemon"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"lvm2-monitor.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/lvm2-monitor.service"
    },
    "desc":"Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"lxcfs.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "2193":"/usr/bin/lxcfs /var/lib/lxcfs/"
      },
      "name":"Control group /system.slice/lxcfs.service"
    },
    "desc":"FUSE filesystem for LXC"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"lxd-containers.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/lxd-containers.service"
    },
    "desc":"LXD - container startup/shutdown"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"mdadm.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{
        "2371":"/sbin/mdadm --monitor --pid-file /run/mdadm/monitor.pid --daemonise --..."
      },
      "name":"Control group /system.slice/mdadm.service"
    },
    "desc":"LSB: MD monitoring daemon"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"networking.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/networking.service"
    },
    "desc":"Raise network interfaces"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"nfs-config.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/nfs-config.service"
    },
    "desc":"Preprocess NFS configuration"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"nginx.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "2693":"nginx: worker process",
        "2692":"nginx: worker process",
        "2691":"nginx: master process /usr/sbin/nginx -g daemon on; master_process on;..."
      },
      "name":"Control group /system.slice/nginx.service"
    },
    "desc":"A high performance web server and a reverse proxy server"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"ondemand.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/ondemand.service"
    },
    "desc":"LSB: Set the CPU Frequency Scaling governor to \"ondemand\""
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"open-iscsi.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/open-iscsi.service"
    },
    "desc":"Login to default iSCSI targets"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"polkitd.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{
        "2382":"/usr/lib/policykit-1/polkitd --no-debug"
      },
      "name":"Control group /system.slice/polkitd.service"
    },
    "desc":"Authenticate and Authorize Users to Run Privileged Tasks"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"qemu-kvm.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/qemu-kvm.service"
    },
    "desc":"LSB: QEMU KVM module loading script"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"rc-local.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/rc-local.service"
    },
    "desc":"/etc/rc.local Compatibility"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"resolvconf.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/resolvconf.service"
    },
    "desc":"Nameserver information manager"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"rsyslog.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "2191":"/usr/sbin/rsyslogd -n"
      },
      "name":"Control group /system.slice/rsyslog.service"
    },
    "desc":"System Logging Service"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"setvtrgb.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/setvtrgb.service"
    },
    "desc":"Set console scheme"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"snapd.firstboot.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/snapd.firstboot.service"
    },
    "desc":"Run snappy firstboot setup"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"snapd.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "2312":"/usr/lib/snapd/snapd"
      },
      "name":"Control group /system.slice/snapd.service"
    },
    "desc":"Snappy daemon"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"ssh.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "2353":"/usr/sbin/sshd -D"
      },
      "name":"Control group /system.slice/ssh.service"
    },
    "desc":"OpenBSD Secure Shell server"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"systemd-fsck@dev-disk-by\\x2duuid-844bc582\\x2d8a38\\x2d4b52\\x2d86dd\\x2dae2f895b2892.service",
    "autostart":false,
    "active":"active",
    "cgroup":"",
    "desc":"File System Check on /dev/disk/by-uuid/844bc582-8a38-4b52-86dd-ae2f895b2892"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"systemd-journal-flush.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/systemd-journal-flush.service"
    },
    "desc":"Flush Journal to Persistent Storage"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"systemd-journald.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{
        "847":"/lib/systemd/systemd-journald"
      },
      "name":"Control group /system.slice/systemd-journald.service"
    },
    "desc":"Journal Service"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"systemd-logind.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{
        "2163":"/lib/systemd/systemd-logind"
      },
      "name":"Control group /system.slice/systemd-logind.service"
    },
    "desc":"Login Service"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"systemd-modules-load.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/systemd-modules-load.service"
    },
    "desc":"Load Kernel Modules"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"systemd-random-seed.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/systemd-random-seed.service"
    },
    "desc":"Load/Save Random Seed"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"systemd-remount-fs.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/systemd-remount-fs.service"
    },
    "desc":"Remount Root and Kernel File Systems"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"systemd-sysctl.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/systemd-sysctl.service"
    },
    "desc":"Apply Kernel Variables"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"systemd-timesyncd.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "2044":"/lib/systemd/systemd-timesyncd"
      },
      "name":"Control group /system.slice/systemd-timesyncd.service"
    },
    "desc":"Network Time Synchronization"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"systemd-tmpfiles-setup-dev.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/systemd-tmpfiles-setup-dev.service"
    },
    "desc":"Create Static Device Nodes in /dev"
  },
  {
    "load":"loaded",
    "sub":"failed",
    "name":"systemd-tmpfiles-setup.service",
    "autostart":false,
    "active":"failed",
    "cgroup":"",
    "desc":"Create Volatile Files and Directories"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"systemd-udev-trigger.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/systemd-udev-trigger.service"
    },
    "desc":"udev Coldplug all Devices"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"systemd-udevd.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{
        "915":"/lib/systemd/systemd-udevd"
      },
      "name":"Control group /system.slice/systemd-udevd.service"
    },
    "desc":"udev Kernel Device Manager"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"systemd-update-utmp.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/systemd-update-utmp.service"
    },
    "desc":"Update UTMP about System Boot/Shutdown"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"systemd-user-sessions.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/systemd-user-sessions.service"
    },
    "desc":"Permit User Sessions"
  },
  {
    "load":"loaded",
    "sub":"exited",
    "name":"ufw.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{},
      "name":"Control group /system.slice/ufw.service"
    },
    "desc":"Uncomplicated firewall"
  },
  {},
  {
    "load":"loaded",
    "sub":"running",
    "name":"virtlogd.service",
    "autostart":false,
    "active":"active",
    "cgroup":{
      "processes":{
        "2741":"/usr/sbin/virtlogd"
      },
      "name":"Control group /system.slice/virtlogd.service"
    },
    "desc":"Virtual machine log manager"
  },
  {
    "load":"loaded",
    "sub":"running",
    "name":"wokd.service",
    "autostart":true,
    "active":"active",
    "cgroup":{
      "processes":{
        "4501":"systemd-cgls --no-pager /system.slice/wokd.service",
        "3003":"python2 /usr/bin/wokd",
        "2480":"python2 /usr/bin/wokd"
      },
      "name":"Control group /system.slice/wokd.service"
    },
    "desc":"Wok - Webserver Originated from Kimchi"
  }
]
biancafc commented 8 years ago

Same issues with Fedora 24.