Commit Graph

2288 Commits

Author SHA1 Message Date
Javier Pena 7e4ed593d6 Fix CI jobs
- Add jobs removed in [1] to the local configuration.
- Fix SSH key distribution in multinode job. It was broken on a
  recent Zuul update, it seems.
- Use pip by default instead of pip3 if present (needed for CentOS 7).

[1] - https://review.opendev.org/730813

Change-Id: I2572d92cbaabc1f02fc0790896ccaa3edfc5e6c2
(cherry picked from commit 76b1559d3a161b0d2326ada77bc69d089639075f)
(cherry picked from commit 100c950bc7)
2020-05-28 11:36:30 +02:00
yatinkarel 00bcd23a27 Remove explicit compress of log files
Explicit compress is not needed post [1], explicit
compress is making log files not browsable.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-January/011875.html

Change-Id: Id6e285e37759aadae9ebf27522d3145b77a6d691
(cherry picked from commit 098ae58c62)
2020-02-26 07:55:51 +00:00
Zuul 7cb5aff4b5 Merge "Ensure the Aodh DB is synced" into stable/stein 2020-01-23 17:32:58 +00:00
Alfredo Moralejo 96fbb954ed Use upper-constraints when installing packstack from source
Currently, it's not using the constraints file so we may use different
versions that other services.

Change-Id: I3f8eb965b6f08ddf6c0bc89a53e051e43047aecb
(cherry picked from commit 7417aef9bc)
2020-01-14 11:54:38 +00:00
Javier Pena b0906362b4 Ensure the Aodh DB is synced
We were lacking the "sync_db => true" parameter when calling aodh::api,
so the database was not initialized, and API calls were failing.

Change-Id: Idbc4f5a3310c0776ba4973b45dbaf554d8372b8e
Closes-Bug: #1855443
(cherry picked from commit 1f64071f5a)
2020-01-10 14:34:58 +00:00
Alfredo Moralejo 3911fed9c2 Pin gettext to < 3.3.0 and puppet-redis
Also pinning gettext as version 3.3.0 is not compatible with the ruby
version in CentOS7.

Also, pinning puppet-redis to the commit in RDO as latest commits broke
unixsocket parameter [1].

[1] https://review.opendev.org/#/c/696257/

Change-Id: I8d226aa2218eafc07119f88eca5be24c3514b717
(cherry picked from commit 3be5458f4b)
2020-01-09 14:25:29 +01:00
Zuul 7aa819d5d5 Merge "Use https for cirros downloads" into stable/stein 2019-10-24 14:43:28 +00:00
Alfredo Moralejo 95994ee611 Use https for cirros downloads
http is being much slower and anyway using https is a good practice.

Change-Id: Ib9b4194c88cd9065babb81c788ed52b2ee5b8d2f
(cherry picked from commit 97e5a40dbb)
2019-10-24 06:59:35 +00:00
Javier Pena 7fd7bcb4f5 Reduce unnecessary log storage
Previously we were storing the whole contents of /var/tmp/packstack,
which includes all Puppet modules and is unnecessarily filling up
the log server.

Instead, let's store /var/tmp/packstack/latest, where the last
Packstack execution logs are kept. That is really what we need.

Also added 'ip netns' command to logs to help troubleshooting issues
with dhcp agent.

Change-Id: Ia138c13c0797d2b83c9e3b4037c4648abf8f7295
(cherry picked from commit cfdbeb5d02)
2019-10-24 05:18:23 +00:00
Alfredo Moralejo bb2cf94c62 Use cirros image from cached for demo provisioning
Currently, we are using cached image for UEC (tempest) but not for demo
provisioning.

Change-Id: I637edcdcc129dc8ed86eb4f3fdd4e216dd3f48a7
2019-10-22 09:52:07 +00:00
Andreas Jaeger b57ef00da8 Fix setup.py for Pypi
PYPI now requires that markdown files are flagged, fix this.

See failure here:
https://zuul.opendev.org/t/openstack/build/efe723049d554688a1c50f43425f63e6

Change-Id: I4b34395767750449bede8845ddb54eb224a3bd06
(cherry picked from commit dfb83c8631)
2019-10-04 07:51:43 +00:00
David Moreau Simard cd85c4eebc Enable replication to redhat-openstack/packstack with upload-git-mirror
The replication to github is no longer automatically managed by opendev.

Change-Id: I76eb105f6cd2624b6c9edfc0dcedd2f2c56aa5af
(cherry picked from commit 51fb71534a)
2019-09-11 16:00:21 +02:00
Andreas Jaeger fa8e8fdab1 Remove Fedora 28 job
Fedora 28 is end-of-live and gets removed from OpenDev testing,
remove it completely here. Packstack plans to use CentOS 8 instead of
Fedora for Python 3 based distros.

This will be backported to all open branches.

Change-Id: I10f444de465437db31efd438b07ca18497580d82
(cherry picked from commit 28c795eccf)
2019-09-02 17:26:28 +02:00
Zuul 9bf6c11202 Merge "change memcached IPv6 bind host to IPv6 format" into stable/stein 2019-08-19 13:46:28 +00:00
Guo Larry 88fc699f83 change memcached IPv6 bind host to IPv6 format
The existing localhost6 can't pass the ip_address pattern which cause
ERROR. Since the mentioned bug is already fixed in redhat RPM. Change
listen IPv6 address back.

Closes-Bug: #1838611

Change-Id: I02e7a5e2c7a610d4d74fed731df1fa37b9cbca3e
Signed-off-by: Guo Larry <larry.guo@nokia-sbell.com>
(cherry picked from commit 3929c6a08f)
2019-08-15 09:53:06 +08:00
Guo Larry d3eea20b1a add IPv6 support for choose_my_ip function
Several place need to use choose_my_ip function to know which IP offered
to packstack belongs to current node. Unfortunately, IPv6 version failed.
With this change, it will be OK no matter which IP version given.
For both ovs_agent and ovn_agent, add split ":" matching besides dot to
support IPv6.

Closes-Bug: #1838732

Change-Id: I0269db6641bca335685140d2d6439bc795cd8c46
Signed-off-by: Guo Larry <larry.guo@nokia-sbell.com>
(cherry picked from commit 02bd30d943)
2019-08-13 15:50:58 +00:00
Alfredo Moralejo 8557a38e00 Fix URL to get the list of projects
It's used in copy-logs.sh. Also copy all content of /var/tmp/packstack
instead of only latest directory.

Change-Id: I7c6d72876e881f73d2421206e004f514563ad803
(cherry picked from commit fcdaff0d25)
2019-08-13 13:38:38 +00:00
Zuul 37dbc6f3c5 Merge "Force qemu emulation in CI and add dmidecode command to logs" into stable/stein 2019-08-13 13:14:15 +00:00
Alfredo Moralejo 24566dcf2f Force qemu emulation in CI and add dmidecode command to logs
Some upstream infra is enabling nested virtualization but it's failing
randomly so let's force qemu virt_type.

We need it to debugs issues with jobs incorrectly detecting
virtualization time.

Change-Id: I1e53bbdcccb6402d343c98abf2696d452717d1a9
(cherry picked from commit c84e3b6e84)
2019-08-13 07:44:55 +00:00
Alfredo Moralejo 61dd7f39ff Use upper-constraints file when running tests
Currently, u-c is not uses so we are not using the versions specified in
requirements project.

Change-Id: Id0fd9e98103ff804a43f2d4485f72ac48df261c8
2019-08-12 17:27:06 +02:00
Alfredo Moralejo c68b79943c Add OS_REGION_NAME when keystone api is >= 2 in rc file
Currently, OS_REGION_NAME is in keystone_admin rc file only when
keystone api is < 3. This is incorrect as region name is also meaningful
in newer versions and needed in some cases as shown in [1].

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1716434

Change-Id: I45dc6511ee8874b9719be6816062777f2ce371f0
2019-06-05 08:50:16 +00:00
Alfredo Moralejo 18df75b7d3 Rename package resouce for pythonX-redis
puppet-aodh uses python-redis name for the package resource used to
install the python bindings [1] so we need to use the same name.
Otherwise it fails because of conflicting names when using python3.

[1] https://github.com/openstack/puppet-aodh/blob/master/manifests/evaluator.pp#L43

Change-Id: I96d1106ecfecd1bd1425770ff21bbb469f08af9c
2019-05-17 16:08:17 +00:00
Tobias Urdin b8c44d7976 Pin sphinx to <2.0.0
The 2.0.0 release introduces a requirement for using
python3.5 but we are running this in python 2.7

Change-Id: I055ab99e48e018d041a2aef7c8998f72ebd4ff5e
(cherry picked from commit d2b1c67d57)
2019-05-17 16:07:43 +00:00
Javier Pena e9242f14af Enable stable/stein reviews
We need to update .gitreview to use the stable/stein branch, and
the different sources to use stein-based content, instead of master.

Change-Id: I7593afe60e1dbde9c713aaa2937997c556707be1
2019-04-29 18:41:56 +02:00
OpenDev Sysadmins 269243890d OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:18 +00:00
Zuul d781240f86 Merge "Replace openstack.org git:// URLs with https://" 2019-03-25 15:34:28 +00:00
Ian Wienand 3bb518d9ce Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I0b4e3ec44d4e577f6a8af4c8a94ea9ca78c3c20d
2019-03-24 20:35:33 +00:00
Zuul 5d4087299b Merge "Enable fwaas in scenario002" 2019-03-22 10:05:43 +00:00
Zuul f25cf9b1d3 Merge "Add iptables-services to installed packages in run_tests.sh" 2019-03-22 10:05:42 +00:00
Javier Pena 8cbbd4ced6 Cast redis port to Integer for use with puppet-redis
puppet-redis has recently started requesting the port parameter to
be an integer [1].

[1] - 8134de7d32

Change-Id: I0346ff4d6c59a99cbec596a68cc9c27a68add415
2019-03-14 13:55:02 +00:00
yatin 18d142444d Switch to default -2 for libvirt_inject_partition
We are seeing random tempest failures in some infra
nodes(like rdo, vexxhost-sjc1) when nova contains
[libvirt]inject_partition = -1. Until this is sorted
out switching to using default value for it.

We have done this switch in past in [1] but was reverted
for master branch in [2].

[1] https://review.openstack.org/#/c/569463/
[2] https://review.openstack.org/#/c/621652/

Change-Id: Idd92eda0df58e9006b9b1b0cb136ae03eb98e012
2019-03-06 19:52:09 +05:30
Javier Pena 82046eb49e Add iptables-services to installed packages in run_tests.sh
The puppet-firewall code uses /usr/libexec/iptables/iptables.init,
which is provided by the iptables-services package. This package is
commonly included, but let's be safe.

Change-Id: Ifb917f370b63184378ea6b399ca3a5a3f85eabc0
2019-02-25 12:59:12 +01:00
Javier Pena a2decd62fc When generating self-signed certs, ensure cn length is <=64
When the fqdn of the machine is too long, we can go beyond the 64
character limit of the CN attribute for the SSL certificate. Let's
make sure we do not exceed that limit.

Change-Id: Idc3ad1743971a52902a832797070d5010b38d9e7
2019-02-21 14:17:51 +01:00
Javier Pena 316fad0d10 Additional fixes for RHEL 8 support
- pip install needs /usr as a prefix, otherwise packstack is installed
  under /usr/local/bin, which is not a valid path for sudo.
- iptables package is required.
- SSL certificates need to be decoded when writing, to avoid string
  issues.

Change-Id: Ia49ebda480ace91c6727c887c4cd8394cfefcfff
2019-02-19 17:49:35 +01:00
Javier Pena fe9620acd4 Fix pip setup for RHEL 8
On RHEL 8, we have no pip but we have pip3, so we need to adapt the
pip detection and setup to this.

This also requires taking into account a new possible location for
packstack.rst, under /usr/local/share.

Change-Id: I3b93449fb4b7faabb15a8b186d2be1c174b754b6
2019-02-19 17:33:59 +01:00
Javier Pena d84fd14687 Fix package installs in run_tests.sh for RHEL 8
Some packages we always install in run_tests.sh are either not present
in RHEL 8, or need to be named differently.

Change-Id: I14b98e8a4d237bed77581ae4364351913234c9ba
2019-02-19 17:33:59 +01:00
yatin 7f70f691d7 Set tempest flavor disk size to non-zero
Post [1] it's not allowed to create instances with
0 disk size flavors, this patch set's the Default disk
size for flavor created for tempest to 1.

[1] https://review.openstack.org/#/c/603910/

Change-Id: Ifb7b4d869aec5e9f3d6f0f0a7207baf30a2d123a
2019-02-19 11:22:57 +05:30
Alfredo Moralejo 0dd7ed8481 Enable fwaas in scenario002
To improve CI coverage.

Change-Id: I0cea0aa8ffea43f4ccb0694245fc46a5acc46e8f
2019-02-06 04:13:33 +00:00
yatin feb1f62540 Switch to supported firewall v2 driver
Firewall v1 driver was deprecated long ago and
is now removed in [1], let's switch to firewall v2
driver.

[1] https://review.openstack.org/#/c/616410/

Change-Id: Ic995a392075133dd1fba9e417e07149dc1cb4863
2019-02-06 04:13:10 +00:00
Zuul 5847b42828 Merge "Switch the default Neutron ML2 driver to OVN" 2019-02-05 12:13:09 +00:00
Zuul 76769643ca Merge "Deploy Sahara with unversioned endpoints" 2019-02-05 11:13:28 +00:00
Daniel Alvarez 637a7a6ee2 Switch the default Neutron ML2 driver to OVN
This patch is changing the default driver used in Packstack from
ML2/OVS to ML2/OVN. It also flips jobs running with OVS to OVN and
viceversa while keeping the lbaas scenario with OVS.

Also, the encapsulation used by default changes from vxlan to
geneve.

Change-Id: I0abfdb1de66730101a27ca3a949f056b50fc9c98
Signed-off-by: Daniel Alvarez <dalvarez@redhat.com>
2019-02-05 10:18:14 +00:00
Luigi Toscano 05f0ec3f1f Deploy Sahara with unversioned endpoints
Sahara supports unversioned endpoint also for the current API v1.1,
and deploying with unversioned endpoints is a better setting
if people want to use both API v1.1 and the (soon-stable) API v2
at the same time.
See https://review.openstack.org/#/c/582285/ for more details.

Closes-Bug: #1782147
Change-Id: Iab7db3d03a63c2a21c63fcb34e8322ec58a94a02
2019-01-24 12:02:28 +01:00
Javier Pena 627e2f77cd Work around Fedora umask issues in run_tests.sh
We are having issues in some CI jobs running on Fedora images. They
are caused by a combination of factors that create the wrong umask.

Change-Id: I2114f688a8fd78311cb045a9b7560ed3360970ad
2019-01-17 08:49:58 +00:00
Tobias Urdin 926bc175be Remove port 35357
This removes port 35357 for Keystone as will be
done in [1] and changes all references to that port.

I can't see that packstack will need to keep the support
for both ports as done in TripleO recently [2].

[1] https://review.openstack.org/#/c/619257/
[2] https://review.openstack.org/#/c/627793/

Change-Id: I4b6dcd396e1e5e666e7429929240bca7aadbc3bb
2019-01-07 16:00:11 +00:00
Tobias Urdin eaf3c70182 Use glance::registry::logging to set logging
This was missed in [1].

[1] https://review.openstack.org/#/c/620539/

Change-Id: I5b627907bb19ad09e695e84f5eaae38c1b43451b
2019-01-07 15:40:58 +01:00
yatin dbb2a9790d Remove usage of 'use_neutron' sahara option
'use_neutron' deprecated param is removed from puppet-sahara
in [1], this patch cleans it up in packstack.

[1] https://review.openstack.org/#/c/620808

Change-Id: Id1b284afcc8a69464d698f15f7e094bcdfb078fa
2018-12-26 10:54:32 +05:30
Chandan Kumar a03b8ab9c1 Move debug param to aodh::logging class
https://review.openstack.org/#/c/620415/ moves the debug parameters
in aodh::logging class.
This is so that we can remove the deprecated logging options in the
init classes of aodh modules.

https://review.openstack.org/#/c/620539/ already done the same but
it was left which is leading to breaking aodh deployment giving no
debug parameters.

Change-Id: I62a438a35c3897573bf0e7ee7d0ad033e63e53b9
2018-12-10 17:54:56 +05:30
Javier Pena a3fe814be8 Fix Hiera keys with a dot
The new Puppet version does not recognize dots in hiera key names,
so we need to replace them with underscores.

Change-Id: I6642d5963a598151dedbbbd957449bb317ceaa59

Replace deprecated 'auth_uri' with 'www_authenticate_uri'

Deprecated 'auth_uri' parameter is being removed from
puppet modules in [1].
In Swift 'auth_uri' is still not deprecated, it's being
deprecated in [2], so that can be taken care later.
For Sahara use ::sahara::keystone::authtoken class to configure
keystone parameters as the one specified in '::sahara' are deprecated
for removal.

[1] https://review.openstack.org/#/q/topic:remove-auth-uri
[2] https://review.openstack.org/#/c/621138/

Co-Authored-By: Javier Pena <jpena@redhat.com>
Change-Id: I68edd9225b44938dc6c275bf464d0e328e814848
2018-12-03 19:40:15 +05:30
Tobias Urdin d675e77360 Move debug param to <module>::logging class
Related change [1] we will cleanup these deprecated
one in the near future.

[1] https://review.openstack.org/#/c/620415/

Depends-On: https://review.openstack.org/#/c/620535/
Change-Id: I903cabe1a50cd02d228b594ee41d2adf58c7f42a
2018-11-28 14:23:49 +01:00