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
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
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
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
- 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
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
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
* 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
* 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
- Global reformating
- Add link to the Puppet Style Guide
Change-Id: I7b45bafa79946814d3a44e95651f446b518f58bd
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
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>
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
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
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
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