33 Commits

Author SHA1 Message Date
Jeremy Stanley
091b42b7da Stop installing nose and pylint from distros
The distro packages of nose and pylint depend on python-setuptools
on some platforms, and on some of those platforms (at least CentOS
6.x) you can't resolve dependencies on python-setuptools properly if
you've forcibly removed it already (as we do on our CI workers). It
appears that any current upstream use of these tools in relation to
DevStack-based testing is now relying on tox and pip to obtain them
instead.

Change-Id: Ibd16ac550c90364115caf57fae4f5f4cb5d5f238
2015-05-08 17:43:08 +00:00
Jenkins
5cb3d6b7ee Merge "Install packaged pyOpenSSL" 2015-04-02 11:39:40 +00:00
Jenkins
9720239618 Merge "Install Nova into its own venv" 2015-03-27 17:34:10 +00:00
Ian Wienand
9e98f9435e Install packaged pyOpenSSL
pyOpenSSL has done a rewrite of itself in Python.  This may be good
for many reasons, but memory usage is not one of them.  It just about
doubles the size of at least swift, which usually consumes about 6% of
a CI testing vm's 8gb RAM.  This is enough to push centos hosts into
OOM conditions and then everything falls apart.

The distro packages of pyOpenSSL are the older C-based versions, which
doesn't bring in the kitchen sink of cffi & pycparser.

Change-Id: Icd4100da1d5cbdb82017da046b00b9397813c2f2
2015-03-27 14:43:14 +11:00
Dean Troyer
4533eeec1f Install Nova into its own venv
Install a couple of optional feature prereqs in hypervisor plugins.

rootwrap is horribly called indirectly via PATH.  The choice, other than fixing
such nonsense, is to force the path in sudo.

TODO:
* python guestfs isn't in pypi, need to specifically install it to not
  use the distro package

Change-Id: Iad9a66d8a937fd0b0d1874005588c702e3d75e04
2015-03-26 14:54:00 -05:00
Sean Dague
eeb7bda510 eliminate TEST_ONLY differentiation
devstack is a development and test environment, but by default we were
only installing the runtime dependencies. We should install all the
testing required packages as well.

Change-Id: I7c95927b9daad15766aac9d1276b10ca62efb24c
2015-03-25 11:55:32 -04:00
Ian Wienand
b0595235a2 Don't use packaged unittest2
Let pip install unittest2; pip installation can conflict with the
packaged version.

Change-Id: Iec9b35174ac68ebf713cd7462d7b5a82583d6e22
Partial-Bug: #1430592
2015-03-11 12:07:20 +11:00
Attila Fazekas
802473e45a Do not install the python-virtualenv on Fedora
The files/rpms/general:python-virtualenv explicitly
installed this package on Fedoras.

This package is not installed on other distros by devstack
by default.

If you stack/unstack the package gets reinstalled,
and confuses the system about the installed virtual-env version.
The uninstall works in CI, but it can be problematic when you do
reinstalls on the same machine.

The uninstall introduced by
834b804d3eda9029d3c66db0ab732a76a22ed08b, this commit deos not
has any reference to the external bug what it supposed to solve.

Related RDO thread started here:
https://www.redhat.com/archives/rdo-list/2015-March/msg00015.html

Change-Id: I4a723f179bdc28d39a4910fb9e3787e9e67c354b
2015-03-04 14:57:44 +01:00
Attila Fazekas
99b598887b Fedora-21 has openjdk-1.8.0 only
Fedora-21 does not have openjdk-1.7.0 it has only 1.8.0.

This change also fixing the no op statement in the configure.

Change-Id: I6012aeb17b8e8fafa37d48aa29482702fa3491fd
2015-02-25 09:53:39 +01:00
Attila Fazekas
0fda343c18 msgpack-python requires g++
msgpack-python when installed from source requires a C++ compiler
installed on the system, otherwise it falls back to the python
implementation.

Change-Id: Iffe1f90f3a70780be22459c3f7a3cddfe47f01ca
2015-02-23 14:33:52 +01:00
Wayne Okuma
00d0da36af Adds elasticsearch support as a pre-req for the glance-index.
Add elastic search pkg installation and start into the glance install
and start paths.

Change-Id: I53fc37225dd606f627c9f967083007613eb1f1bb
Implements: blueprint catalog-index-service
2015-02-09 11:35:00 -08:00
Attila Fazekas
1f316beb20 Remove rhel6 and py26 support
el6 is shipped with Python 2.6.x which is not expected
to be supported with the openstack kilo release.

For el6 support we need to do lot of thing differently,
which makes the code more complicated.

This change removes el6 and py26 support from devstack.

This change also removed a discontinued (1 year ago)
openSUSE 12.2 code path, which used a similar codepath as el6.

Several comment related to el6 also removed or modified.

Change-Id: Iea0b0c98a5e11fd85bb5e93c099f740fe05d2f3a
2015-01-27 09:22:52 +01:00
Monty Taylor
18a81a2058 Stop installing setuptools from distros
We go through a bunch of trouble to install setuptools via pip. Having
it in the distro install too is confusing.

Change-Id: I6875fe2a1ee6b7d296f7f44b4b1601794b136440
2014-12-26 09:53:21 -06:00
Kashyap Chamarthy
91e4018afd Add 'net-tools' package dependency
Noticed this on a freshly installed, minimal Fedora-21 (from
development repos):

  $ ./stack.sh
  [. . .]
  2014-11-13 10:56:22.442 | + local exitcode=0
  2014-11-13 10:56:22.453 | + sudo route add -net 10.1.0.0/24 gw 172.24.4.2
  2014-11-13 10:56:22.479 | sudo: route: command not found
  2014-11-13 10:56:22.488 | + exit_trap
  [. . .]

Also added it to files/rpms-suse/general, just in case.

Change-Id: I77954d97e654e8f384a2016631df14e73be927fe
2014-11-13 12:27:59 +01:00
Akihiro Motoki
6518c0b88e Compile Horizon message catalogs during stack.sh
Recently compiled message catalogs (mo files) were removed
in Horizon and django_openstack_auth repositories.
We need to compile message catalogs to make translations
available for Horizon users. It is useful for developers too.

Change-Id: I0831e8308205c116d8e3bb8b43be7f0dd6fa0c0a
2014-10-18 06:40:08 +09:00
Matt Riedemann
18d5db8452 Add graphviz package to general list for building docs
A few projects are now gating on docs not having warnings/errors in them
during the docs build with sphinx, so developers are going to want to be
able to run 'tox -e docs' locally and fix issues.

The graphviz package is used by sphinx when building docs but you have
to get it from the distro, so this change adds the package to the
various distro lists.

Closes-Bug: #1359749

Change-Id: I7b7dee5e5d0dce6d5020b3e711f500118be163f8
2014-08-20 18:09:44 -07:00
Attila Fazekas
87d74a0bdd Promote libffi-dev as a general dependency
libffi-dev/libffi-devel can be requested for rebuilding the
python clients which is an un-skipable part of the devstack install.

Promoting the libffi-devel to a general dependency.

Change-Id: I1dac7fd536b94de1e49aaf335ac29ffae1bd39d1
2014-07-09 20:18:04 +02:00
Kashyap Chamarthy
2b5c14d2d8 Add libyaml-devel package dependancy
Without libyaml-devel package installed (on Fedora-20),
running ./stack throws:

  [. . .]
  build/temp.linux-x86_64-2.7/check_libyaml.c:2:18: fatal error: yaml.h:
  No such file or directory #include <yaml.h> ^ compilation terminated.

  libyaml is not found or a compiler error: forcing --without-libyaml
  [. . .]

Adding this dependency to files/rpms/general resolves it. Also added to
files/apts/general.

Change-Id: If1aa23bf3fc76ea2b321c3725dd07050ddd4b825
2014-06-28 02:20:09 +05:30
Attila Fazekas
692011593e Move gcc to general
Lot of packages explicitly requires gcc now, but almost all of
the components needs it.

Always keep gcc in hand-range.

files/rpms/general: always installs the libxlst2-devel, not just on
RHEL 6, package recompile capability always handy and these are small
packages anyway.

Change-Id: Ia7d0e1938fb2453e3c02b979f99d6d179c6a24c6
2014-05-18 09:40:23 +02:00
Sergey Skripnick
d7f7cb275c Add python-dev to general requirements
Package python-openstackclient depends on pycrypto, and pycrypto depends
on python-dev. Since python-openstackclient should be installed in any
case, python-dev should be in general requirements.

Change-Id: I2d6f5919bdc1175252c78cd203a8769d3892b923
Closes: bug 1292477
2014-04-02 15:35:28 +00:00
Attila Fazekas
e7b6399d45 Install bc with all distribution
After commit def4c141 the bc is requred for devstack install on minimal
image, commit fbe12f98 fixed the issue with ubuntu, but not with other
distribution.

Adding bc to the files/rpms-suse/general and files/rpms/general.

Change-Id: Ieb2e3e2af454bca03bb3d7565ff731dc357e699f
2014-01-27 11:58:45 +01:00
Alvaro Lopez Ortega
d7f6090f29 Add support for Fedora 20
The list of RPM packages have been updated to support the recently
released Fedora 20 distribution.

Closes-Bug: #1263291

Co-Authored: Alvaro Lopez Ortega <alvaro@gnu.org>
Change-Id: Ia66abef1a1a54e6d5ee6eebc12908cef3f1d211d
2014-01-10 10:52:41 +01:00
Dean Troyer
62d1d698a0 Add tools/install_pip.sh
Install a known working recent version of pip that handles installation
dependencies more correctly than before.  Extract to a separate script
so it can be used apart from stack.sh.

* Install distro setuptools if it not already present
* Install pip from source tarball as get-pip.py proved to be unreliable
* Remove python-distribute and python-pip from all prereq files,
  move python-setuptools to 'general'
* Remove the earlier unfubar_setuptppls() call that attenpted to fix this
* Only update requirements.txt when no changes in repo

Tested on Precise, F18 and CentOS6.
* Fedora and RHEL allow pip to install packages ON TOP OF RPM-installed
  packages.  THIS IS BROKEN.  And is one reason we have to be so picky
  about order and so forth.

Change-Id: Ibb4b42119dc2e51577c77bbbbffb110863e5324d
2013-08-07 20:28:56 -05:00
Monty Taylor
60aba9cb6a Remove installation of python-netaddr
System and pip installation of this conflit and cause breakages.

Change-Id: I87a03f88a134683310d6ec0bd62d86c5007fcd72
2013-08-02 23:52:38 +00:00
Jenkins
201379cc38 Merge "Adds openssl-devel to the RPMs dependencies" 2013-06-15 12:13:10 +00:00
Giulio Fidente
eeaa41a1ce Adds openssl-devel to the RPMs dependencies
pyOpenSSL (required by glanceclient) fails to build if openssl
header files are missing.

Change-Id: I3ebce749ee9ca88cbbecc6b7676a086d82670f4d
Fixes: bug #1188650
2013-06-11 17:58:05 +02:00
Joe Gordon
5747b80175 Don't install pep8 from packages
We have migrated to flake8 and most distros don't have the version of
pep8 that flake8 (and hacking) use.  Instead of installing pep8 from
packages it should be installed from pip

Change-Id: I86e4f8316f3cdc27303bfd039a78c0d6202ce321
2013-06-06 17:37:56 -07:00
Ian Wienand
7919d851a9 RHEL6 support rpms
Install some rpms required for operation on RHEL6.  Additionally,
remove some system packages that interfere with pip installs.

Change-Id: I273ce59d7bf066e73d524f61b8ad048599101dab
2013-04-29 11:46:57 +10:00
David Ripton
a0f660b0f9 Add a dependency on openssl.
Nova and Keystone use openssl to setup certificates.  If it's not
there then Keystone fails with "Error 2: No such file or directory",
Nova fails with "openssl: command not found" and glance fails with
"glance: error: argument --os-auth-token: expected one argument"
Basically, cascading errors everywhere.  So I put the dependency
in "general" since it affects multiple packages.

Fixes bug 1152315

Change-Id: I803f91644443d7aba78c0a90384e32f6eece36ec
2013-03-07 15:46:25 -05:00
David Ripton
bbc54635c8 Install the python-netaddr package before we use it.
It's used if installed and not used if not installed, which is confusing.
So trying to install it should make things a bit less confusing.

It's available under the same name in both Fedora and Ubuntu.

Change-Id: I6785dd5e831e9cf2da2eae5b116a9f5859c68c6d
2012-10-22 09:41:32 -04:00
Dean Troyer
32c520f46d Add bridge-utils to deps for Ubuntu and Fedora.
They don't always get installed via dependencies any more.

Change-Id: I46f333c79ecccca9e10170d06039611fad5813dc
2012-08-01 19:57:34 -05:00
Vincent Untz
03086e18b4 Add tar to list of packages to install
It turns out a minimal Fedora installation doesn't have tar by default.
Since we use tar when uploading the default image to glance, we need to
make sure it's installed. And since it might be useful for other very
generic tasks DevStack might do, just always install it (by putting it
in the general list of packages).

Change-Id: I4dae3b43a700d80b8752a5b846a6ce302fadb751
2012-07-04 12:27:42 +02:00
Dean Troyer
5218d451dc E) Add support for Fedora 16
Highlights:
* Add files/rpms/*
* get_packages() only loads deps for services that are enabled

11Apr2012
* change mod_wsgi cwd to $HORIZON_DIR
* fix horizon apache log file name and location

Note: This superceeds https://review.openstack.org/4364

Change-Id: I95486584561e4418907a6a4feb0ffbe4f4ea1843
2012-04-11 14:55:47 -05:00