kimchi-project / gingerbase

Gingerbase: basic host management for WoK
Other
47 stars 25 forks source link

Can't install wok package on Ubuntu 14.04 #43

Closed romu70 closed 8 years ago

romu70 commented 8 years ago

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.

andreas-aeschlimann commented 8 years ago

Same issue here. I have worked with Kimchi <2 before and wanted to upgrade now.

I tried on a clean Ubuntu Server 14.04LTS host, installed all necessary dependencies and executed:

sudo dpkg -i wok-*.deb ginger-base-*.deb
Selecting previously unselected package wok.
(Reading database ... 83108 files and directories currently installed.)
Preparing to unpack wok-2.0.0-0.noarch.deb ...
Unpacking wok (2.0.0) ...
Selecting previously unselected package ginger-base.
Preparing to unpack ginger-base-2.0.0-0.noarch.deb ...
Unpacking ginger-base (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
dpkg: dependency problems prevent configuration of ginger-base:
 ginger-base depends on wok; however:
  Package wok is not configured yet.

dpkg: error processing package ginger-base (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
 wok
 ginger-base
danielhb commented 8 years ago

@alinefm do we support wok running in ubuntu 14.04 LTS?

andreas-aeschlimann commented 8 years ago

@danielhb tried on Debian 8.3 as well, I get the same problem. It would be nice if there were a clean "installation instruction" out there, because right now it is a bit hard to understand for people who have no deep insight in the project (my opinion).

Meanwhile I'll try some other approaches. :-)

romu70 commented 8 years ago

+1000 for clean installation instructions.

I finally managed to install Kimchi on Ubuntu 15.10 but with some new issues, I'll raise a new ticket.

alinefm commented 8 years ago

HI @andreasfcb! Hi @romu70!

I am not sure on what you meant about "clean installation instructions". You should start reading the README file from Wok. You can find it at: https://github.com/kimchi-project/wok/blob/master/docs/README.md

There is a special section for Linux support, maybe it worth a reading too: https://github.com/kimchi-project/wok/blob/master/docs/README.md#linux-support

As you will see, Kimchi community makes an effort to test Wok and its official plugins in the latest version of Fedora, Ubuntu, RHEL and openSUSE. Which means: Fedora 23, Ubuntu 15.10, RHEL 7.2 and openSUSE 42.1

AFAIK there are some people trying to run Wok and its plugins on Debian and they are facing some issues due the dependencies. There is a bunch of issues open for it.

I suggest to use Ubuntu 15.10, if you want to run on a debian like distribution.

Each plugin has its own README file. Please, take a time to read the installation and troubleshooting sections:

Kimchi: https://github.com/kimchi-project/kimchi/blob/master/docs/README.md Ginger Base: https://github.com/kimchi-project/gingerbase/blob/master/docs/README.md Ginger: https://github.com/kimchi-project/ginger/blob/master/docs/README.md

Hope it helps you. Please, let me know on any issue you have. You can also join the #kimchi channel on OFTC server for a faster communication.

romu70 commented 8 years ago

@alinefm, just an example: when I installed Kimchi, I first installed Wok and GingerBase from sources and afterwards, I saw some .deb are available. The available of deb files is not emphasized enough compared to the installation from sources. But perhaps, that may be what you want.

Having a single page "Install on Ubuntu" with the different steps GingerBase, then Wok, then Kimchi, with all instructions in a single place would be a huge improvement.

And having the supported versions would also be great.

andreas-aeschlimann commented 8 years ago

Hi @alinefm, I appreciate your answer. I really love Kimchi and I hope I can get it to work, but this time I am really stuck. :-/

To your question. I think the installation instructions are very confusing. For example, it says to install Wok first, but there are no packages/links listed. So I just picked the zip from the "release" tab in the github project. Then, after moving to ginger/gingerbase, it suddenly says to download the *.deb files. This is all very weird and I think the ReadMe would be easier to understand if it just exactly said what to download and where to execute/extract it.

Now back to the issues: So yes, I have read all instructions carefully and installed all dependencies one after each other. I didn't get it to work on Ubuntu 14.04LTS, 15.10 and Debian 8.3 properly (yet). I have to admit I am far from being an expert, so when instructions are not clear I might be confused.

As you suggested, I installed Ubuntu 15.10 now. Installing from the given *.deb packages in the ginger installation ReadMe, I was able to finally connect to https://myhost.com:8001/. But I can only see the tab "Host" and no "Virtualization". So basically, I can do nothing. What does that mean? @romu70 how did you do it?


For the reference, find here some protocol of my struggles when going through the README's. Maybe you will understand why it is very hard to follow. As you suggested, I tried to install it on Ubuntu 15.10. Here is what I have done:

apt-get install gcc make autoconf automake gettext git pkgconf xsltproc logrotate
apt-get install python-cherrypy3 python-cheetah python-pam python-m2crypto python-jsonschema  python-psutil python-ldap python-lxml nginx openssl fonts-font-awesome texlive-fonts-extra
apt-get install g++ python-dev python-pip
pip install cython libsass
apt-get install pep8 pyflakes python-requests
/wok/archive/2.0.0.zip
./autogen.sh --system
make
apt-get install gcc make autoconf automake gettext git pkgconf xsltproc
apt-get install python-configobj websockify novnc python-libvirt libvirt-bin nfs-common qemu-kvm python-parted python-ethtool sosreport python-ipaddr  python-lxml open-iscsi python-guestfs libguestfs-tools spice-html5 python-magic python-paramiko
apt-get install g++ python-dev python-pip
pip install cython libsass
apt-get install pep8 pyflakes python-requests python-mock
apt-get install python-apt sosreport python-configobj python-parted
apt-get install  libvirt-bin python-libvirt hddtemp python-libuser python-ethtool python-augeas python-ipaddr python-magic python-netaddr
apt-get install python-mock
./autogen.sh --system
make
./autogen.sh --system
make
./autogen.sh --system
make
wget http://kimchi-project.github.io/wok/downloads/wok-2.0.0-0.noarch.deb
wget http://kimchi-project.github.io/gingerbase/downloads/ginger-base-2.0.0-0.noarch.deb
wget http://kimchi-project.github.io/ginger/downloads/ginger-2.0.0-0.noarch.deb
dpkg -i wok-*.deb ginger-*.deb

As a regular user, I am asking myself. What's with Kimchi? Is there a package as well? Do I have to install it manually? (Yes, I did that.)

romu70 commented 8 years ago

Hi @andreasfcb, I wrote a simple script to install Kimchi on Ubuntu 15.10, here it is: https://github.com/kimchi-project/kimchi/wiki/Setup-script-for-Ubuntu-15.10. Enjoy!

andreas-aeschlimann commented 8 years ago

@romu70 works like a charm, thank you!

P.S. I think you mean Ubuntu 14.04, not 16.04?

romu70 commented 8 years ago

I couldn't install on 14.04 because of unsatisfied dependencies. I switched to 15.10 and now it works. The script helps a bit to ease the procedure.

I understood 14.04 is not supported. I close the ticket.