eucalyptus / eucalyptus-cookbook

Chef cookbook for deploying Eucalyptus
Other
23 stars 47 forks source link

yum install eucaconsole misses dependencies (nighly repo misses rpms) #132

Open ChristianKniep opened 9 years ago

ChristianKniep commented 9 years ago

During the installation the install of eucaconsole the installation fails.

==> eucadev2-all: [2014-12-04T16:42:32+00:00] INFO: yum_package[eucaconsole] installing eucaconsole-4.0.2-0.0.3325.22.el6 from eucalyptus-release repository
==> eucadev2-all:
==> eucadev2-all: ================================================================================
==> eucadev2-all: Error executing action `upgrade` on resource 'yum_package[eucaconsole]'
==> eucadev2-all: ================================================================================

This fails due to missing packages in the repository:

Error: Package: eucaconsole-4.0.2-0.0.3325.22.el6.noarch (eucalyptus-release)
           Requires: python-pyramid-layout
Error: Package: eucaconsole-4.0.2-0.0.3325.22.el6.noarch (eucalyptus-release)
           Requires: python-pyramid-beaker

The repositories:

[root@eucadev2-all ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.euserv.net
 * elrepo: ftp.nluug.nl
 * epel: fedora.tu-chemnitz.de
 * extras: ftp.plusline.de
 * updates: centos.mirrors.as250.net
repo id                                                    repo name                                                                status
base                                                       CentOS-6-Base                                                        6,518
elrepo                                                     ELRepo.org Community[...]                                       327
epel                                                        Extra Packages for Enterprise Linux 6 - x86_64       11,241
euca-build-deps                                     euca-build-deps                                                         52
euca2ools-release                                  Euca2ools Package Repo                                          2
eucalyptus-release                                 Eucalyptus Package Repo                                         89
extras                                                     CentOS-6 - Extras                                                      35
updates                                                  CentOS-6 - Updates                                                  420
repolist: 18,684
[root@eucadev2-all ~]#

The rpm are available within the 4.0 repo but not the nightly one, that should be the problem...

My workaround is to let it fail, install the two packages by hand and restart the provisioning...

host $ vagrant ssh
vagrant $ sudo su -
vagrant # yum install -y --nogpgcheck http://downloads.eucalyptus.com/software/eucalyptus/4.0/centos/6/x86_64/python-pyramid-beaker-0.8-0.1.el6.noarch.rpm
vagrant # yum install -y --nogpgcheck http://downloads.eucalyptus.com/software/eucalyptus/4.0/centos/6/x86_64/python-pyramid-layout-0.8-0.1.el6.noarch.rpm
vagrant # logout
vagrant $ logout
host $ 

The provision fails due to some legacy directory. By removing it the provision will get through...

$ vagrant provision
==> eucadev2-all: Loading Berkshelf datafile...
==> eucadev2-all: Sharing cookbooks with VM
==> eucadev2-all: Updating Vagrant's Berkshelf...
The following berks command failed to execute:

    /usr/bin/berks vendor /Users/kniepbert/.berkshelf/vagrant-berkshelf/shelves/berkshelf20141204-12803-dv6lw0-eucadev2-all --berksfile /Users/kniepbert/git/locafox/vagrant/eucalyptus-cb/Berksfile
[...]
$ rm -rf /Users/kniepbert/.berkshelf/vagrant-berkshelf/shelves/berkshelf20141204-12803-dv6lw0-eucadev2-all
$ vagrant provision
viglesiasce commented 9 years ago

Thanks @ChristianKniep! Those 4.0.2 released packages are the latest, the nightlies are actually older.

For 4.1 nightlies check out this repo: http://downloads.eucalyptus.com/software/eucalyptus/nightly/devel/centos/6/x86_64/

Would you mind sending a PR changing the Vagrantfile to use the released packages for 4.0.2?

ChristianKniep commented 9 years ago

Will do... Should I ramp up to 4.1 (if possible)? EDIT: Maybe not, but a branch 'devel' would be nice..

ChristianKniep commented 9 years ago

Hey @viglesiasce,

I am sorry, but the 4.0.2 repository is where to find?

Since the 4.0/rhel/6/ repo provides the missing packages, wouldn't it be more convenient to copy them over and stick to the 4.0/centos/6 repository?

No difference there... Sorry, it's also not to find in the rhel repo.

Cheers