594 Commits

Author SHA1 Message Date
Mohammed Naser
4de1219730 swift3: remove support
The swift3 middleware has been deprecated in replacement with the
s3api middleware instead.  This removes all the swift3 references
to hopefully enable someone to cleanly add s3api eventually.

Change-Id: I3a8a1ab861ec81b1f4f8dbc02a6a332d4ce495b8
2019-03-29 09:41:50 -04:00
Mohammed Naser
52aacc5f0b Update role for new source build process
The variables swift_developer_mode and swift_venv_download
no longer carry any meaning. This review changes swift to
do the equivalent of what developer_mode was all the time,
meaning that it always builds the venv and never requires
the repo server, but it will use a repo server when available.

As part of this, we move the source build out of its own file
because it's now a single task to include the venv build role.
This is just to make it easier to follow the code.

Change-Id: I9233e4daff0034339750477fd21d5cfa181afd83
2019-03-29 03:10:31 +00:00
Mohammed Naser
b3602ac191 Test using integrated build
In order to do a more complete verification of any patches,
we add a full uncontainerised OpenStack deployment to do the
functional testing using the integrated repo. This replaces
the previous functional test mechanism.

Any additional role tests are left as-is. They will require
some extra implementation in the integrated build before they
can be transferred.

The CentOS distro. installation was missing RPMs which meant
some binaries was missing, this patch adds those as well.

Depends-On: https://review.openstack.org/648502
Depends-On: https://review.openstack.org/648551
Depends-On: https://review.openstack.org/648575
Change-Id: I4b73967aacb92b63f9f01514979e31aa2fb5f61e
2019-03-28 23:09:46 -04:00
Jesse Pretorius
430932f274 Remove unnecessary package install duplication
Currently the devel packages are installed everywhere,
but they only need to be where the wheels are built.

Also, there is already a task to install the packages
needed on the target hosts when installing - so we do
not need to give the same list to the venv install role
because they will already have been installed.

We remove the unnecessary installation of the compiling
packages because the python venv build role already does
it. We also remove the curl and which packages as they
appear to be unused. The git package is moved to the
devel package list as it's only used there.

We also re-order the package lists alphabetically to
make them easier to follow.

Depends-On: https://review.openstack.org/613585
Change-Id: I6d037c45aee8b54502a2e3f3add56b23be34109d
2019-01-03 09:27:55 +00:00
Zuul
ea72d83a9e Merge "Ensure ssh client is available for rsync" 2018-12-30 16:44:52 +00:00
Zuul
2369d3d79f Merge "Update the HTTP links to HTTPS in jobs.yaml." 2018-12-30 15:16:51 +00:00
Zuul
c07dcb3940 Merge "spelling error" 2018-12-30 15:16:50 +00:00
Zuul
492938173b Merge "fix http links to https links" 2018-12-22 18:22:10 +00:00
Jonathan Rosser
d73548e20f Ensure ssh client is available for rsync
This is in a seperate package on ubuntu/centos systems and bundled
in openssh on suse. The ssh client was missing on centos so this
patch ensures it is always present for all distributions.

Change-Id: I4885f88938bd49ae81ce8f0a85fde46ddbe311a4
2018-12-22 09:06:47 +00:00
chenjiao
a84c6dbc2b spelling error
Change-Id: Id1c70cdab762677da29a17e3baf988fbd069e420
2018-12-06 18:34:18 +08:00
ZhongShengping
02af184a83 Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: Idd85f6b91dfb582a7d944315e2057e9760c20586
2018-12-05 09:16:39 +08:00
Zuul
25224726f6 Merge "fix 'an unique' to 'a unique'" 2018-12-05 00:52:06 +00:00
Zuul
bf4a6d240e Merge "Enable overriding the service setup host python interpreter" 2018-11-30 22:36:00 +00:00
Zuul
191112fdd9 Merge "Add bugs url link to README" 2018-11-30 20:27:08 +00:00
Jesse Pretorius
c7e11dfcbd Enable overriding the service setup host python interpreter
In order to enable the service setup host python interpreter to
be changed easily, we make it a variable. This will be useful
when someone sets the service setup host to be the utility
container, because we'll be able to set this var by default.

Change-Id: Icb3ea9ad782218c357ec0e3c577ecbe6fbf60461
2018-11-30 16:42:46 +00:00
Zuul
55f27fdab3 Merge "Add variable for the ssh service and ensure its enabled" 2018-11-30 05:53:13 +00:00
Kevin Carter
d40a020678 Add variable for the ssh service and ensure its enabled
The ssh service on ubuntu based systems is "ssh" which is established by
the service unit path `/lib/systemd/system/ssh.service`. When running
the service will respond to the name "sshd" however this is just an
alias. This change adds a variable to set the service unit name
based on the distro family which will allow the service to start should
it be masked.

The change will now delegate to all nodes within the swift cluster
ensuring ssh is enabled and started. If SSH is not running everywhere at
the same time swift ring distribution will not be possible later on in
the role.

Change-Id: Ifbc748019403f0c0712d5f241f118e998d2061d4
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-11-28 17:52:41 +00:00
MaoyangLiu
8fc5ef9560 fix 'an unique' to 'a unique'
Change-Id: I1a0aaa6b76acd43e90c539cc324291dd6d729359
2018-11-24 11:19:59 +08:00
chengebj5238
9b3d56186f fix http links to https links
Change-Id: I666954537dd193e56c0e8b86fabb0a44f35e697e
2018-11-24 10:21:24 +08:00
Zuul
50a548df9a Merge "remove loop control when running include_role" 2018-11-22 11:12:52 +00:00
Zuul
a107be5bd3 Merge "fix tox python3 overrides" 2018-11-13 18:06:49 +00:00
zhouxinyong
889635ad4d Update the HTTP links to HTTPS in jobs.yaml.
Change-Id: I94cc86b3654d1156149d78f3778dbaabb7953d1a
2018-11-14 00:52:21 +08:00
huang.zhiping
e965a6ddcb fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I27b758fed3cdb4e65203d0b0051244fcde72b700
Closes-Bug:  #1801657
2018-11-08 13:46:45 +00:00
Jonathan Rosser
87fb727472 Correct swift replication service units
These pointed to the wrong binaries, and in the case of the object
replicator, a non-existant binary. The names of the binaries have
been checked here:

https://packages.ubuntu.com/bionic/all/swift-account/filelist
https://packages.ubuntu.com/bionic/all/swift-container/filelist
https://packages.ubuntu.com/bionic/all/swift-object/filelist

Change-Id: Ib8d4875d44130048c5a5d8b2973d6da3a4321abe
2018-11-02 20:47:15 +00:00
Markos Chandras
b4a047791d vars: Do not pull devel packages on distro installations
The devel packages are only needed to build the pip packages so we don't
need them when we install packages straight from the distro repos.

Change-Id: I08c6206dd83551e50a5b594cf428ffb8b2e8ebd8
Depends-On: https://review.openstack.org/612673
Depends-On: https://review.openstack.org/612661
2018-10-23 14:58:44 +01:00
Markos Chandras
5abef12948 zuul: Switch to distro package installation template
Change-Id: I5cba73a11c540620428f97ecdb2fd0a3c113833b
2018-10-22 15:10:19 +01:00
Markos Chandras
67f22ffb04 RedHat: Use monolithic openstack-swift package
It seems that RDO moved to a sinlge monolithic openstack-swift package
so lets use that instead. This fixes the following problem:

No package matching 'openstack-swift-plugin-swift3

Change-Id: I9a0efd15be4fde3a96e9feb72bed55d45262cb8c
2018-10-22 14:59:45 +01:00
Jimmy McCrory
b9eafb6a48 Set container_name as host_var in test inventory
The connection plugin no longer falls back on using the
inventory_hostname as the container_name. Set container_name as a host
var for each container in the test inventory.

Change-Id: If28f2586017c3813afd4260533c16e4390cebc04
2018-10-20 16:40:04 -07:00
Francois Deppierraz
5e11ba0377 releasenotes: oslo-messaging-separate-backends add project name
Without this patch, the release notes published at
https://docs.openstack.org/releasenotes/openstack-ansible/rocky.html contains
the same line multiple times which is not very clear.

[...]
    Support separate oslo.messaging services for RPC and Notifications
    to enable operation of separate and different messaging backend servers.

    Support separate oslo.messaging services for RPC and Notifications
    to enable operation of separate and different messaging backend servers.
[...]

Change-Id: I0ed1a43670d97f2e2215d04c641f7bd4cfbe4f44
2018-10-15 16:57:25 +02:00
Zuul
a9b5d023de Merge "Trivial: Fix the pep8 warning" 2018-10-04 09:07:44 +00:00
Kevin Carter
ca6b0d729a
remove loop control when running include_role
When running an included role with_items + loop control is slow. This
change feeds the role the entire list of curated services which will
improve execution speed, especially when dealing with hundreds of hosts.

Change-Id: I6258d23300c8b26469f8480aa042d53b91d90ad1
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-04 00:44:56 -05:00
OpenStack Proposal Bot
f88a41dc92 Updated from OpenStack Ansible Tests
Change-Id: I63ecb6bbaeb7e1e697e146f8ffa029460dbd64a9
2018-10-02 14:55:01 +00:00
Zuul
87ebd230e0 Merge "Updated from OpenStack Ansible Tests" 2018-09-29 18:57:04 +00:00
Zuul
8fe9f0b951 Merge "fix tox python3 overrides" 2018-09-29 18:48:45 +00:00
OpenStack Proposal Bot
692ae0b7a6 Updated from OpenStack Ansible Tests
Change-Id: Icd14d452d1310a3ab8a23036f097b9ae487b9e95
2018-09-29 04:56:03 +00:00
OpenStack Proposal Bot
1a029b2bb1 Updated from OpenStack Ansible Tests
Change-Id: I42c6a13b6f9ac332cca916bddf9582e60d0713b2
2018-09-28 06:21:49 +00:00
Zuul
e3a4eb0ca1 Merge "Remove role used for upgrade tests" 2018-09-27 11:55:05 +00:00
Zuul
abc66a1979 Merge "zuul.d: Update jobs for package installations" 2018-09-27 05:59:15 +00:00
Zuul
2f41710768 Merge "add the project source code repository" 2018-09-27 04:40:54 +00:00
Zuul
13cc54e223 Merge "Add source code repository notes link to README" 2018-09-27 04:40:53 +00:00
ShangXiao
a2a470e150 Add bugs url link to README
Change-Id: I869e70b67bf566d7f9296aec8f3def968b64bbe6
2018-09-27 03:08:31 +00:00
Doug Hellmann
8fcf7e4c1a fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I6a2c6bbaa09b220c2b44e2a8d9be6a9a0bfa3453
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:44:24 -04:00
Markos Chandras
e0fde62f4e zuul.d: Update jobs for package installations
Add Leap 15 distro_install job and replace Xenial with Bionic since the
former does not provide packages for recent OpenStack releases.

Change-Id: I946b225cc43f9195f63b064a33392476270f7d32
2018-09-25 08:17:19 +01:00
Markos Chandras
8916fc6214 SUSE: Add support for openSUSE Leap 15
Change-Id: I0b3cbe2b633afe9f3b7d7a1e506df6e4f985e92b
2018-09-20 16:12:23 +01:00
Zuul
eb1e16e26e Merge "Add the project source code repository in README" 2018-09-19 20:32:20 +00:00
Jesse Pretorius
9e8da77d84 Remove role used for upgrade tests
In https://review.openstack.org/601060 we removed everything
related to the upgrade tests, except the 'previous' role.

Change-Id: I99aad1c3c4ec342c2997b2e59289d60304f1c81a
2018-09-19 21:13:15 +01:00
Jesse Pretorius
cd17cb20d7 Remove python-keystoneclient package install
Now that we no longer use our own keystone module, but
instead make use of the ansible runtime venv's shade
library and upstream ansible modules, we can eliminate
this package/library being installed on the host.

To do this, we also ensure that the functional test
now uses the Ansible runtime venv for all OpenStack
modules, and we use the native Ansible OpenStack
modules instead of our own.

Change-Id: I0ecb55308a846ad0f1bb05c10b9e0aad3da15449
2018-09-18 13:19:28 +00:00
Zuul
70978b3cec Merge "Trivial: Fix the pep8 warning" 2018-09-17 04:21:18 +00:00
Jesse Pretorius
b122bf2192 Rename SUSE vars file to cater for any version
To make the transition between versions easier,
we rename the vars file. This also resolves
issues when meta-dependent role inclusions do
not pick up the correct file when using the
include_vars task with multiple search paths.

Depends-On: https://review.openstack.org/602924
Change-Id: I8d624cde558a9c332f8e90d3269ee4a010191f7e
2018-09-16 01:54:43 +00:00
Jesse Pretorius
386cdb51e2 Clean up role tests
Now that we're using the general templates, we can slim down
the role test definitions. We can also remove tests which are
not being watched, or which are fundamentally broken. With
this we can also remove unused scripts/plays.

We do the following:

1. We remove the 'upgrade' job, given that it's been broken
   all cycle due to the way the job executes and we need to
   regroup to figure out another way to do it. The associated
   scripts are also removed.
2. We remove the 'pypy' tox target. The job was removed some
   time ago, but the tox target left behind. The associated
   inventory is also removed.
3. We remove the 'multireg' jobs. The jobs have been failing
   for some time and are very complex. If multi-region tests
   are re-implemented, they should be done in a simpler way -
   probably best using multiple nodes, rather than trying to
   fudge it on a single host with containers. The associated
   scripts and inventory items are also removed.
4. We rename the 'func_swift3' tox target to 'swift3', and
   reconfigure the job appropriately. The verbose logging for
   ansible is also removed, given that we have ARA to provide
   decent diagnostic output.

Change-Id: I411fcaac9a1ddf17996d771f13b2de7e775e4a60
2018-09-09 11:36:17 +01:00