9942 Commits

Author SHA1 Message Date
Dan Smith
442c57e168 Disable all import methods if glance is not standalone
Glance should not be exposing import methods that cannot work via its
API, but it does today. In order for tempest (et al) to be able to
properly detect whether import is possible, we must configure the
import methods in standalone mode, or disable them in wsgi mode. The
referenced Glance patch will make this a requirement.

Change-Id: I3bf3498d83607c5e98b70877c061dc54fc3c0a6e
Needed-By: https://review.opendev.org/#/c/741497/
2020-07-16 10:41:13 -07:00
Dan Smith
cc0821a586 Default Glance to standalone mode
A whole set of Glance functionality is not usable under uwsgi, including any
of the more powerful async import, customization, and copying functions.
In order to facilitate writing and running tempest tests for these features
in all environments covered by the various jobs across all the projects that
include Glance, we should default to this deployment method.

It is still possible to deploy glance in uwsgi mode by setting the flag to
False, and we can do that for some jobs to make sure that it continues to
work. However, the default should be what we expect deployers will use,
which is standalone mode.

Depends-On: https://review.opendev.org/741479
Change-Id: I141acab2a07a4eebd8d850f900058bc8cbf9c7bf
2020-07-16 08:16:19 -07:00
Zuul
12a88cfb76 Merge "Make Glance standalone-ness a separate flag" 2020-07-15 15:02:30 +00:00
Zuul
7376939755 Merge "Use glance import workflow for creating image" 2020-07-15 15:02:28 +00:00
Dan Smith
09eea0b20b Make Glance standalone-ness a separate flag
Full Glance functionality requires Glance being run in a configuration
where it can spawn long-running task threads. The default uwsgi mode
does not allow this, and the current workaround is to set WSGI_MODE
to something other than uwsgi to get the devstack code to deploy
Glance as a standalone service. Since this affects the entire rest of
the deployment, this patch separates out a flag to control this behavior
specifically for Glance. When WSGI_MODE=uwsgi, control of the Glance
deployment mechanism is allowed via GLANCE_STANDALONE=True|False. If
WSGI_MODE!= uwsgi then we deploy standalone Glance anyway.

Change-Id: I79068ce0bd7414bc48ff534ee22f0de5d7b091cb
2020-07-14 08:07:07 -07:00
Zuul
2906645d76 Merge "Re-enable memory_tracker" 2020-07-14 08:52:10 +00:00
Abhishek Kekane
73ad9760a3 Use glance import workflow for creating image
Added new boolean option 'GLANCE_USE_IMPORT_WORKFLOW' default to False.
If this parameter set in local.conf as True then devstack will use the
new import workflow to create the image.

In order to use new import workflow of glance;
user need to set below options in local.conf

GLANCE_USE_IMPORT_WORKFLOW=True

Note that the import workflow does not work in uwsgi because of
some fundamental restrictions it has. Thus, devstack must be configured
with WSGI_MODE=mod_wsgi, otherwise glance will not be able to process
the imports. The new helper function will abort to avoid in that case
to avoid the image never being moved to "active" state by an import
task that will never be executed.

Co-Authored-By: Abhishek Kekane <akekane@redhat.com>
Co-Authored-By: Dan Smith <dansmith@redhat.com>
Needed-By: https://review.opendev.org/#/c/734184
Change-Id: I1306fe816b7a3eca1e2312c0c454be3d81118eca
2020-07-13 13:59:36 -07:00
Zuul
3b37b95684 Merge "Allow plugins to override initial network creation" 2020-07-09 15:11:25 +00:00
Jens Harbott
95634d9905 Re-enable memory_tracker
The old peakmem_tracker service has been disabled in [0], now enable
the replacement memory_tracker.

Also fail when the old service is still configured, otherwise
consumers might never notice.

Depends-On: https://review.opendev.org/739995
Change-Id: I583caf3f36a8ff41d7d4106dabc6c5f24243085e
2020-07-08 14:11:18 +00:00
Zuul
6fd4daf8dc Merge "Remove n-api-metadata service from compute nodes" 2020-07-08 10:57:04 +00:00
Rui Zang
6184dea966 Remove n-api-metadata service from compute nodes
Starting up n-api-metadata service on every compute nodes does
not solve the problem of isolated networks (no route to metadata
service). It all depends on how 'enable_isolated_metadata' and
related options (e.g. force_metadata) are set in dhcp agent and
what is configured for the 'nova_metadata_host' option of q-meta
service. Having a global n-api-metadata service in the control
node is sufficient for a mult-node lab setup.
Besides, the n-api-metadata services on compute nodes are not
really working due to https://bugs.launchpad.net/nova/+bug/1815082

Change-Id: Ib8691c3eeee59758fbd98989d9460f1458ea422f
Related-Bug: 1815082
2020-07-07 19:43:52 -07:00
Zuul
2ecd182385 Merge "Remove GLANCE_V1_ENABLED option" 2020-07-07 19:16:32 +00:00
Zuul
d3b41b528d Merge "Allow IP-based subject alt names" 2020-07-07 08:43:50 +00:00
Zuul
3e0960d78f Merge "Revert "Drop keystone dedicated ports"" 2020-07-06 22:21:42 +00:00
Zuul
edd867daef Merge "Remove tempest deprecated img_dir option" 2020-07-06 20:07:29 +00:00
Abhishek Kekane
f8dbfd394a Revert "Drop keystone dedicated ports"
This reverts commit f6286cb586eb1f861866bfdf85c4f873c79fd592.

This patch is blocking glance as it needs mod_wsgi to perform new import workflow.

Change-Id: I4475247dfe986114d37678b3d3d552c0c7d02ddc
2020-07-06 14:01:08 -05:00
Zuul
105b2f4ee5 Merge "Fix string comparison" 2020-07-06 15:10:00 +00:00
Zuul
79722c78d5 Merge "Move process-stackviz role from Tempest to Devstack" 2020-07-06 15:09:57 +00:00
Zuul
153de584d0 Merge "Add neutron-ovn-tempest-ovs-release job to the check queue" 2020-07-06 15:09:55 +00:00
Zuul
e3e8063380 Merge "Cleanup VM instances during unstack" 2020-07-02 11:27:25 +00:00
Xinliang Liu
8956006e51 Fix string comparison
String comparison should be included with square brackets.

Change-Id: I9a4fab7848e5dba8a5b3b09a75e7aac213368706
2020-07-02 08:34:01 +00:00
Radosław Piliszek
3cbb33e5c6 Fix python3_enable to return true
Recent regression spotted by Dmitry Tantsur.
DevStack dropped Py2 support but the now-unused-in-devstack
python3_enable got its result nastily inversed.

Change-Id: I4b37cc847a24705c4955cec2e6e45f0514705f1b
2020-06-30 17:52:10 +02:00
Zuul
48c0d38502 Merge "Add "OVN" debs and rpms package files" 2020-06-30 11:37:29 +00:00
Zuul
6d9591fe41 Merge "Make opensuse platform job non-voting again" 2020-06-30 11:01:35 +00:00
Zuul
e0d06adffc Merge "Drop support for python2" 2020-06-30 08:53:44 +00:00
Zuul
1041007e89 Merge "Drop keystone dedicated ports" 2020-06-29 18:24:40 +00:00
Jens Harbott
59519ca5cc Make opensuse platform job non-voting again
The non-voting flag was accidentally dropped in [0].

[0] Ib4416dc2f5e003fd770f5240a8f78213c56af8e6

Change-Id: If9519f1ac9afd66553e1c1410fdc16369f166b98
2020-06-29 10:24:21 +02:00
Xinliang Liu
b066707d64 Fix targetcli install error on ubuntu focal
No targetcli package on Ubuntu Focal, it should use targetcli-fb also
when "$CINDER_ISCSI_HELPER" == "lioadm".

Although Xenial only has targetcli, but Xenial is dropped from CI. And
starting from bionic, Ubuntu uses targetcli-fb to replace targetcli. So
here we can use is_ubuntu to make ubuntu use targetcli-fb.

Change-Id: I6d35b6651d486e716980dcd9f4d693bed560463a
2020-06-28 09:59:02 +00:00
Zuul
46e74f339d Merge "Prepare for dropping keystone admin endpoint" 2020-06-27 12:25:29 +00:00
Zuul
85825f1c2c Merge "Provide integer number to arping "-w" parameter" 2020-06-27 12:25:26 +00:00
Brian Rosmaita
ee5cf747d8 Remove GLANCE_V1_ENABLED option
This option sets enable_v1_api in glance-api.conf, a setting that
was removed by change Ia086230cc8c92f7b7dfd5b001923110d5bc55d4d
in July 2018, so remove the devstack option from lib/glance.

It occurs in two other places:

This option is used in lib/cinder to set an option that was removed
from Cinder by change Ice379db9ae83420bacf9e96e242c7515930eae86 in
Queens, so remove the related code.

When this option is False, it is used in lib/tempest to set
[image-feature-enabled]/api_v1 to False in the tempest config file.
However, the default value of ths setting has been False since
change Iab3a209c744375bf2618afc00a3f7731b62f557e in Sept 2018,
so remove the related code.

Change-Id: I4b18a0a388ed7e7a392fabeac613778e0d23dee7
2020-06-27 10:47:53 +02:00
Jens Harbott
d7a82f41e4 Drop support for python2
python2 is EOL, let's move on and only support python3.

Change-Id: Ieffda4edea9cc19484c04420ed703f7141ef9f15
2020-06-26 15:27:32 +02:00
Jens Harbott
f6286cb586 Drop keystone dedicated ports
Those historic references to port 5000 and 35357 aren't being used
anymore for some time, so let us drop them.

Clean up some python2/3 wording along the way.

No longer mention Identity API v2, which is also a thing of the past.

Change-Id: Iafff097eee082f24ea2ae27ad038ad115aa36c61
2020-06-26 15:26:22 +02:00
Jens Harbott
32c00890ed Prepare for dropping keystone admin endpoint
Keystone no longer has any special functionality hidden behind the admin
endpoint. Stop referencing it in consumers, so it can later be dropped
completely.

Change-Id: I04a5d77908005268cc7c59e7e9ddeea70f6732e2
2020-06-26 15:26:22 +02:00
Ghanshyam Mann
02da0c40f9 Add focal nodeset
This commit adds the focal nodeset for
multinode so that those can be used for
projects side jobs or testing.

We need to define these as first step to avoid
any conflict on nodeset name if project started
defining these.
Example: three node focal nodeset is already
defined in x/tobiko, fixing the same in depends on.
-I30a6bb63269f031a74f9bff6c765d59d91088797

Depends-On: https://review.opendev.org/#/c/738128/

Change-Id: I5ce49f7a7d52d00555c14b08864bc8975956b20c
Story: #2007865
Task: #40212
2020-06-26 01:17:20 +00:00
Rodolfo Alonso Hernandez
ca486c5259 Provide integer number to arping "-w" parameter
Some arping versions only accept an integer number for the
"deadline" (-w) parameter.

Change-Id: Ie21c9b5820262d049c0fcd8147d85cc110d88272
Closes-Bug: #1885169
2020-06-25 18:22:28 +00:00
Zuul
572815884c Merge "Remove dragonflow reference" 2020-06-24 08:18:36 +00:00
Zuul
966665a85a Merge "Update distros on the docs start page" 2020-06-24 06:00:51 +00:00
Zuul
48c2f9de74 Merge "Stop claiming to support Debian distros" 2020-06-24 02:19:04 +00:00
Zuul
9b0364f20e Merge "Make devstack run on focal (Ubuntu LTS 20.04)" 2020-06-24 01:59:51 +00:00
Zuul
f395253c48 Merge "Use python3 pip module instead of pip binary" 2020-06-23 21:33:20 +00:00
Zuul
76d1729f94 Merge "Enable certificate check for glance_store+swift" 2020-06-23 16:47:11 +00:00
Sean McGinnis
8b099c408b
Remove dragonflow reference
Dragonflow was retired in 2018 and is now being retired. This removes a
documentation reference to it.

Change-Id: I24ab79482306a7c816b5242a981f1b508ff8f6ec
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-23 10:30:20 -05:00
Zuul
3db45118b6 Merge "Remove neutron-fwaas from the jobs' required project" 2020-06-23 08:38:25 +00:00
Jens Harbott
cd57449c9f Stop claiming to support Debian distros
We haven't had a working job for stretch or jessie in years, attempts
to get things fixed have been dropped, set let's be honest and drop
those from our support list.

Change-Id: Ia6152be79f8044f7ff039ec0911ad4938d6271f4
2020-06-23 08:08:13 +02:00
Dr. Jens Harbott
3480093b93 Make devstack run on focal (Ubuntu LTS 20.04)
- Add a nodeset and a platform job
- Drop uwsgi-py2 pkg that no longer exists
- Blacklist tests that are currently failing

Change-Id: Ib4416dc2f5e003fd770f5240a8f78213c56af8e6
2020-06-23 08:04:18 +02:00
Jens Harbott
f1ed7c77c5 Use python3 pip module instead of pip binary
Focal only provides a pip3 binary, no pip3.8. Instead of working around
that with a symlink, use the module instead.

Add version information output for this variant.

Change-Id: I7af194ecc40e4d43c10ce067a661bb6ab4ca37d4
2020-06-23 08:02:52 +02:00
Ghanshyam Mann
264d2a2e5f Move process-stackviz role from Tempest to Devstack
process-stackviz role currently defined in Tempest repo[1] and used
in tempest jobs. Issue with having it in branchless Tempest is that any
fix in that role cannot be backported to older Tempest. Also stackviz is
not Tempest things it is only used by Tempest jobs.

Stackviz can be considered as a service similar to Tempest so inatlling it in
Devstack side make sense. Also that will give us advantage to handle the
branch specific fixes or backpoting the fixes.

This can solve the current issues we are facing on rocky branch
- https://zuul.opendev.org/t/openstack/build/c1e2da80537448bfb24331fb4198a931/console#4/0/29/controller

[1] https://opendev.org/openstack/tempest/src/branch/master/roles/process-stackviz

Change-Id: I0ba1fd05c6391cd8bb978119ecfbb891def2d497
2020-06-19 20:32:09 +00:00
Federico Ressi
c2c2b6b415 Handle uwsgi install for CentOS/RHEL
Change-Id: Ifa876b3e5f89258f40055fa7ce03f5e9c601771c
2020-06-18 10:18:06 +00:00
Zuul
a13ab8db2d Merge "Revert "Work around uwsgi breakage"" 2020-06-17 19:09:28 +00:00