Commit Graph

24 Commits

Author SHA1 Message Date
Alan Pevec 1bbcbff4fb Use PBR
Refactor setup.py using Python Build Reasonableness[1]
as a standard for OpenStack projects.

[1] http://docs.openstack.org/developer/pbr/

Closes-Bug: #1559150
Change-Id: Ie3b3845f11236f5338228690418760599914cce4
2016-09-21 17:49:02 +02:00
Javier Pena 15b05be87b Fix pep8 and py27 tests in Ubuntu Xenial
With the introduction of Ubuntu Xenial images, we are having issues
with pep8 and py27 tests, see
http://logs.openstack.org/78/330478/6/check/gate-packstack-pep8-ubuntu-xenial/1011cfa/console.html
for an example.

Since the cryptography version constraint was set to allow Nova to
work, I'm setting the same constraint here (!=1.3.0,>=1.0), which
seems to work as expected.

Change-Id: I2783bf9a7f32e11fdf661b18b2937d3420c6aa2d
2016-08-02 10:56:32 +02:00
Javier Pena f3a5db5991 Change way of cloning OPM from source
Up to now, we were using a consolidated openstack-puppet-modules
repository. Since we are moving to individual packages, that repo
will no longer be maintained, and we will switch to cloning the
puppet modules themselves.

The code to install Puppet modules has been adapted from
https://github.com/openstack/puppet-openstack-integration/blob/master/functions,
to also benefit from the Zuul cache for OpenStack puppet modules.

In the current patch, all Puppet modules are taken from their
master branches. This is consistent with the way they are handled
in RDO Trunk packaging.

Change-Id: I7cc6f5ec138dd7e8d9ef06fc7e59ad8e3d5d58e8
2016-05-04 17:03:20 +02:00
Ivan Chavero 7691a6c580 Fix requirements when installing from source
Nova fails to work with some versions of cryptography so we have
to adjust for the version that nova sets in its own requirements,
this makes us set pyOpenSSL < 16.0.0 because it does not work with
the version of cryptograpy that gets installed when it's constrained
to: cryptography!=1.3.0,>=1.0.

Change-Id: I59fbaab8e8034916fb41ee76b429469982bd7d39
2016-04-25 11:24:04 -06:00
David Moreau-Simard 5b2648aec3 Fix gate: Tempest setup and repositories
- We no longer need to setup Tempest in a virtual environment
  since that is now handled by tox
- Do not explicitely require python-openstackclient since that
  is now handled by puppet-tempest since
  https://review.openstack.org/301162
- Setup packstack to consume Mitaka repositories and OPM until
  Newton is actively tested
- Make swap configuration consistent
- Add an empty other-requirements.txt file to prevent the
  openstack gate environment to pre-install dependencies for
  us; these are installed within run_tests.sh
- Enforce locale, seems necessary since the switch to the new
  centos7 images in the openstack-infra gate

Co-Authored-By: David Moreau Simard <dms@redhat.com>
Co-Authored-By: Javier Peña <jpena@redhat.com>
Change-Id: I80813ee9404a3cbc837d0d9810855fb13c0d904b
2016-04-12 10:34:44 -04:00
Jenkins c83d29e00b Merge "Rename stackforge to openstack" 2016-01-05 12:41:49 +00:00
Swapnil Kulkarni (coolsvap) e11af4f02d Rename stackforge to openstack
Change-Id: I91d3e2afd849e0bae0219a3bb8eee04c33b86439
2015-12-28 21:24:16 +05:30
Javier Pena a2bc04a7c2 Set proper OPM branch
With the recent OPM branch change, master-patches is now master
(upstream-master is the previous master). Packstack needs to adapt
to this.

Change-Id: Ib53a118e88542a88767a1c1cb61faafad54dd9b5
2015-12-15 17:42:32 +01:00
Lukas Bezdicka 1c0c36bf40 Refactor SSL setup to use CA to sign certificates
Users can now use Packstack generated CA or provide Subordinate CA to packstack
to sign certificates used by OpenStack.

Resolves: rhbz#1163866

Change-Id: Idd89dbb7f197a194fd87576be6d95a75d059231e
2015-05-27 17:19:27 +02:00
Martin Mágr 9a347f80d5 Single source of documentation
This patch adds feature for parsing docs/packstack.rst file for parameter
USAGE values.

Change-Id: Iea404e8ade657e82ac1e33ad3697180680c3633e
Closes-bug: rhbz#1199847
2015-03-30 12:37:51 +02:00
Christian Berendt d7916cec60 Enable PEP8 checks H102, H232, H233, H301, H904
* H102  Apache 2.0 license header not found
* H232  Python 3.x incompatible octal xxx should be written as 0oxxx
* H233  Python 3.x incompatible use of print operator
* H301  one import per line
* H904  Wrap long lines in parentheses instead of a backslash

Change-Id: I07003acb76eaa719daabc451239067494efa2bba
2015-02-02 10:45:44 +01:00
Christian Berendt 713b745e0e Enable PEP8 checks for F401, E202, E271, E272, E711, E712
* F401 module imported but unused
* E271 multiple spaces after keyword
* E272 multiple spaces before keyword
* E202 remove extraneous whitespace
* E711 comparison to None should be 'if cond is None:'
* E712 comparison to True/False should be 'if cond is True/False:' or 'if cond:'

Change-Id: I56a1dbee2ae17b8315a55215e2c676e0de8311f7
2015-01-16 13:11:31 +01:00
Christian Berendt a532dd9638 Fix spelling of OpenStack
According to the OpenStack Documentation conventions it should
be OpenStack and not Openstack or openstack.

https://wiki.openstack.org/wiki/Documentation/Conventions#OpenStack.2C_not_Openstack_or_openstack

Change-Id: I08a0432dd00a122a4e335f9af0577892737cd64d
2014-12-15 16:51:20 +01:00
Gael Chamoulaud 9be16f3ee5 Switch README file to Markdown
- Global reformating
- Add link to the Puppet Style Guide

Change-Id: I7b45bafa79946814d3a44e95651f446b518f58bd
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2014-11-12 17:30:32 +01:00
Gael Chamoulaud 219cf98b4f Adds Hiera implementation within Packstack
Packstack configures Hiera as data backend. Packstack puppet templates are now
using hiera() and hiera_array() functions to fetch data from hiera backend.

Packstack generates a defaults.yaml file in the /var/tmp/packstack directory.

Firewall rules for each openstack components are inserted into the hiera
backend as hash and created by the create_resources function.

Change-Id: Iab553a71264b0fc0f26d33a6304b545ad302f664
Fixes: rhbz#1145223
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2014-10-27 14:49:09 +01:00
Lukas Bezdicka f0b83d6cd7 Switch packstack o-p-m branch to master-patches
The o-p-m master-patches branch contains rpm released master version of
o-p-m plus rpm patches applied to it ensuring that packstack will work
with it as in some cases master o-p-m is unusable for packstack.

Change-Id: Ib4e642bb96de1d87a5d36c20d5e2d4e2650353be
2014-10-27 10:54:53 +01:00
Lukas Bezdicka 409b615896 Remove submodule initialisation as we now use subtrees
Change-Id: I2d61bb3a2c20d8f75cf35572bfebe76788284ecc
Requires: https://github.com/redhat-openstack/openstack-puppet-modules/pull/113
2014-10-02 09:22:35 -04:00
Martin Magr bfdf666bec Fixed remote DB installations
This patch fixes host resolution for MySQL/MariaDB remote installation.
Relevant Puppet providers have been moved to separate module because remote
installation for AMQP backend will be implemented in this module.
Initialization for MySQL/MariaDB client has been fixed, so it is now
working also with MariaDB client (RHEL-7+, Fedora-20+).

Change-Id: Ic9328562226ecceebff11f9021457d1338977e77
Fixes: rhbz#1128212
2014-08-11 16:08:13 +02:00
Martin Magr 65fcfc52d0 Use own command for modules
With this patch we will use separate command to install Puppet modules.
Subclassing setuptools commands breaks behaviour and IMHO it's impossible
to make it work both for build system and from-source-installations

Additional fix for rhbz#1063982

Change-Id: Id7eb1c8357339b44ebf72cbfed46265db0dfec33
2014-02-24 20:02:11 +01:00
Martin Magr fd4465574d Use openstack-puppet-modules
This patch is getting rid of all internal Puppet modules. Also facts
have been moved to Packstack module where all future facts should
be located.

setup.py is enhanced so that all modules are cloned/copied to correct
place in case user is installing from source.

Change-Id: I3757767881a0e2ef1a3c6a1f6ce62cb3239f96e7
2014-02-17 16:34:55 +01:00
Dan Kenigsberg 1724ae8626 Update setuptool URL to the current primary repository
Change-Id: I1b272ad519f6d045b3c3a51a9e290ef5b8519f39
Signed-off-by: Dan Kenigsberg <danken@redhat.com>
2013-10-10 13:19:56 +01:00
Martin Magr 1265f9b608 Correct CIDR values in case of invalid is given
Change-Id: I4f2a18acb2f5a0c17e7154368b767c70fd166e8c
Fixes: rhbz#969977
2013-07-29 14:13:36 +02:00
Derek Higgins 607acaf857 Creating a single unit and pep8 test
Starting with one of each to make sure the unit and pep8 gate tests work

Change-Id: Ia4e5595df8937c8612143e19e21e17cfdc18a4b1
2013-01-12 23:06:40 +00:00
Derek Higgins 29a82333a6 Restructuring project for python's setuptools 2012-11-27 09:39:15 +00:00