fd3ba428d98e60fb29e4a311786a1a317c78abe6
Commit Graph

422 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Jean-Philippe Evrard
4731ec66db Clarify supported SUSE versions
This role only support openSUSE Leap 15, not 42.3, not tumbleweed.
Saying all is confusing and a bad practice. This fixes it, while
ensuring the job is properly defined to test that assertion.
Change-Id: I679939edd56149a2aed29228e5215648956c60da
2019年05月14日 11:47:47 +02:00
OpenStack Proposal Bot
2bb0428bb3 Updated from OpenStack Ansible Tests
Change-Id: I3202333007abbb4bf15cfadbec01a39e9ffaa68b
2019年05月09日 11:33:37 +00:00
Zuul
355a5a0ec9 Merge "Replacing the HTTP protocal with HTTPS in project.yaml." 2019年04月24日 20:15:03 +00:00
Zuul
9149d9586c Merge "missing document start "---"" 2019年04月24日 18:53:14 +00:00
OpenStack Proposal Bot
47f584f0d0 Updated from OpenStack Ansible Tests
Change-Id: Icacdc17bd35bdc30646f7dd9011933b764adec1a
2019年04月22日 07:12:27 +00:00
OpenDev Sysadmins
ba677a7d53 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:45:03 +00:00
Zuul
7ae02a38fd Merge "handlers: reload instead of restart" 2019年04月11日 22:20:10 +00:00
Zuul
6e38380b00 Merge "debian: add ci and update meta" 2019年04月09日 03:09:13 +00:00
b1b961dbc9 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.
Change-Id: Idf442d5b01f54206fdff44022995e6b2eda90b0f
Sem-Ver: feature
2019年04月08日 09:14:59 +00:00
Mohammed Naser
b3c79f944b debian: add ci and update meta
This patch adds the Debian jobs for this role to make sure
it's always passing as well as updates the meta to reflect
it's support of Debian accordingly.
It also clean-up an old variable which is carried for upgrades
that is no longer relevant now.
A new variable has been added to ensure pre-packages, which
have been generally assumed to be installed as a base OS
package, have been installed before installing the application
or configuring the system via the role.
Depends-On: I135ea73604890eae5e9e2a7cdcab81b2b39ad426
Change-Id: I19094b540aff81b7aa029880e404a2990f82e538
Signed-off-by: Kevin Carter <kevin@cloudnull.com>
2019年04月08日 08:45:53 +01:00
Mohammed Naser
8f9a452bb5 handlers: reload instead of restart
When we restart HAproxy, we kill all the connections and it causes
all of the services to be dropped out. This is really not ideal and
causes things to be lost in the control plane.
This patch instead does a reload which will safely keep the existing
clients connected till they evacuate and then use SO_REUSEPORT for
the new process.
Change-Id: I502457f691ad66dfd68ace21ac1575cea23b538a
2019年04月07日 01:56:33 -04:00
Mohammed Naser
5d217ffea6 docs: drop sphinxmark
sphinxmark is no longer compatible with the latest release of Sphinx
which is causing all of our documentation jobs to fail. This patch
removes it as our current usage of openstacktheme for documentation
already provides watermarks for current branch and notices for which
branch the documentation covers.
Change-Id: I06fec95c12a239a6d143a8bf7d6e072d4eeb6d2d
2019年04月04日 05:12:24 +00:00
OpenStack Proposal Bot
14cf2374b7 Updated from OpenStack Ansible Tests
Change-Id: I1ce94c4ab7eb6532c1445d80304543eaf872422a
2019年03月22日 21:55:36 +00:00
Zuul
ca51879876 Merge "Variable to set HTTP keepalive mode" 2019年03月19日 03:03:52 +00:00
Zuul
87925b67ba Merge "fix tox python3 overrides" 2019年03月13日 17:49:11 +00:00
Zuul
bde8657721 Merge "Remove suffix from letsencrypt renew" 2019年03月12日 17:41:18 +00:00
Zuul
c06b4a09e9 Merge "Fix venv installation of Letsencrypt certbot" 2019年03月12日 17:39:02 +00:00
Gaudenz Steinlin
e911f3f2d2 Variable to set HTTP keepalive mode
The HTTP keepalive mode is currently hardcoded to "http-server-close"
for all HTTP services. This disables keepalive for HAProxy to backend
connections, but leaves it enabled for client connections to HAProxy.
This is problematic especially for service to service calls (e.g.
nova-api to neutron). If a request is made at the same time the HAProxy
keepalive timeout expires, the result of the request is undefined. This
leads to code 500 error responses from the nova-api because the request
from nova-api to neutron failed. "Connection aborted" error messages in
the logs are an indication of this issue.
There is also a bug report[1] about the same issue in devstack which was
solved by disabling keepalive and a script[2] to reproduce the issue in
devstack.
This adds a default and per service variables to set the HTTP keepalive
mode used by HAProxy. The default value is changed to "forceclose" to
disable HTTP keepalive on the server and client side. With HTTP
keepalive disabled the issue can no longer be reproduced.
[1] https://bugs.launchpad.net/devstack/+bug/1630664
[2] https://github.com/JordanP/openstack-snippets/blob/master/keepalive-race/keep-alive-race.py
Change-Id: If819912873270f0568974925490023310f9cbd66
2019年03月04日 18:29:25 +01:00
Ionuț Bîru
c86ec47b4b Remove suffix from letsencrypt renew
The suffix is added automatically by certbot if there is already a configuration for
domain passed as argument.
Change-Id: I7440b84648bf58c36dcb262920c876c7d1a5efa4
2019年03月04日 09:36:03 +02:00
OpenStack Proposal Bot
ca23ec42ed Updated from OpenStack Ansible Tests
Change-Id: Ia10e5172c1d7a65fb5325ce6499d0ba9105d4a8e
2019年02月27日 06:01:54 +00:00
Frank Kloeker
b9cb133bb0 Fix venv installation of Letsencrypt certbot
certbot-auto wants to install depedencies which are possibly
not fulfilled by the repo-server - so bypass installation here.
Use the venv bin later for the renew script.
Minor errors are also fixed.
Change-Id: I4087bbcb4fe6182cb090a5b6b85bea36768b4f4f
2019年02月02日 01:14:18 +01:00
Frank Kloeker
4fb2059a3b Add feature Letsencrypt SSL certification
- installs certbot-auto
- generates and validates ssl cert
- installs cert in haproxy settings
- renew cert with cron
Change-Id: Iea59ec2893a988b184ca8bc70e1d273ac071551e
2019年01月17日 17:54:50 +01:00
huang.zhiping
0b372f9111 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: I1d9a985c6c81f7ee789daa4c8529d33635503787
Closes-Bug: #1801657 
2018年12月24日 07:48:50 +00:00
Zuul
937fa0168d Merge "Allow backend and backup node rise/fall parameters to be set" 2018年12月18日 11:03:54 +00:00
Zuul
aa3b54eba0 Merge "Update mailinglist from dev to discuss" 2018年12月18日 10:38:46 +00:00
Zuul
7d8b9f31ad Merge "Force force-tlsv12 only" 2018年12月17日 17:16:45 +00:00
Jonathan Rosser
e5104a345c Allow backend and backup node rise/fall parameters to be set
The template previously set the rise/fall count to the number
of backend/backup nodes. This may not always be appropriate
so this patch allows the rise/fall counts to be defined per
service if required. The default behaviour remains unchanged
if no rise/fall counts are provided.
Change-Id: Ib413b622310b1f6f5146060089af7dffc0dd9236
2018年12月13日 21:52:55 +00:00
Matthew Thode
547d7f91be Force force-tlsv12 only
Secure by default
Change-Id: I70007af94bfd5e482662ab72d25bf090cf5d0834
2018年12月13日 14:20:37 -06:00
Jonathan Rosser
4a22e7683b Allow user defined options for the backend servers
There are many possible options that can be set for haproxy backend
servers but the current template does not provide a means for these
to be supplied. This patch follows the pattern already used with
haproxy_backend_options and creates a new haproxy_backend_server_options.
Change-Id: Ic312e5915a5df07121ffadca643ca6e4013e00ee
2018年12月05日 12:44:33 +00:00
ZhongShengping
c4891a8b0b 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: Ic3f30f6027926f720e132f96e308cc34d018891c
2018年12月05日 09:16:39 +08:00
ShangXiao
0d1f564c15 Add bugs url link to README
Change-Id: I9a432f69b5c891d8f1cdcaeaf16076a4bf75ee25
2018年12月04日 10:03:47 +00:00
zhouxinyong
f4c9fb514c Replacing the HTTP protocal with HTTPS in project.yaml.
Change-Id: I015d45907e755de4c506b03b22e8f8ff4cd48528
2018年11月14日 00:33:18 +08:00
Zuul
08455bb0ba Merge "Allow rsyslog to log HAProxy locally" 2018年11月10日 10:00:51 +00:00
wangqi
8d26148459 missing document start "---"
Change-Id: Id6ffcc8146ad0ae298bcee38ce58e0ea912514ba
2018年10月30日 07:58:42 +00:00
Zuul
75b2519062 Merge "Add 'absent' service state" 2018年10月25日 12:35:11 +00:00
Logan V
972ebbe5db Add 'absent' service state
Allow deprecation of haproxy endpoints by setting the state of the
service to 'absent'. It will also now clean up any config files
when there are no backends, or the service is disabled.
Change-Id: I1db5932c559b5e04d330c114164869dd43c1cbb2
2018年10月08日 15:11:10 +01:00
OpenStack Proposal Bot
f118f1add8 Updated from OpenStack Ansible Tests
Change-Id: I97bc5724f6507ae5fe6fe92fe8c95ce6533e1336
2018年10月02日 14:50:47 +00:00
Zuul
42c7764ff8 Merge "fix tox python3 overrides" 2018年09月29日 17:16:21 +00:00
OpenStack Proposal Bot
9e237e034a Updated from OpenStack Ansible Tests
Change-Id: I3e281d2ea7addcfea07f63b1c49f695a99a87ed0
2018年09月29日 04:52:32 +00:00
OpenStack Proposal Bot
c92a608222 Updated from OpenStack Ansible Tests
Change-Id: I1ffcec44e42d94dd9dea7332cc0f7105753a0083
2018年09月28日 06:17:26 +00:00
Doug Hellmann
db93eed386 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: Iee7722a0ef9d7adacc666b51989373a01248cbcd
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018年09月26日 18:42:09 -04:00
Corey Wright
1e0aa6bf47 Allow rsyslog to log HAProxy locally
* Install haproxy-logging.cfg numerically before Ubuntu's
 /etc/rsyslog.d/49-haproxy.conf so its logging directives see HAProxy
 logs before they are discarded by 49-haproxy.conf.
* Set owner of /var/log/haproxy to rsyslog's `syslog` user so rsyslog
 can write to it on Ubuntu.
* Limit HAProxy-related rsyslog processing to HAProxy log messages
 instead of any/all log messages with the local0 or local1 facility
 and assuming HAProxy is the only application using those facilities.
Change-Id: Ic259abc281619ba5ee8f020ac68373858a06e94d
Closes-Bug: #1783886 
2018年09月23日 00:58:47 -05:00
Markos Chandras
31f0c0a929 Disable HAProxy apparmor profile if present
openSUSE ships a HAProxy profile which prevents the creation of the
/run/haproxy.stat file.
profile="/usr/sbin/haproxy" name="/run/haproxy.stat.21697.tmp" pid=21697 comm="haproxy" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
As such, lets follow the common pattern across OSA roles to disable the
profile instead of trying to manage it.
Change-Id: Iaacb628f4cc78687c95034e81ed924807a3018bd
2018年09月19日 14:22:38 +01:00
Markos Chandras
baa46072ea SUSE: Add support for openSUSE Leap 15
Change-Id: Ia5b86821ad3bc9458f7a474a13479939dd2ca21d
2018年09月13日 15:08:07 +01:00
Markos Chandras
f856772945 tasks: Ensure the 'adm' group is present
The role uses the 'adm' group when creating the log directory. However,
nothing really checks whether the groups is present or not, so it will
fail in case it is not. As such, we need to create the group before
trying to use it.
Change-Id: I757632db50b57710da77ea36de09e5f76674fcd5
2018年09月13日 15:08:07 +01:00
jacky06
72bbe3eef5 Replace Chinese punctuation with English punctuation
Curly quotes(Chinese punctuation) usually input from Chinese input
method. When read from english context, it makes some confusion.
Change-Id: Ia7da4523e726db04f85b1ebd49bf5ec4e31fe727
Closes-Bug: #1792131 
2018年09月12日 12:57:40 +00:00
huang.zhiping
0afd9bf43c switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I08fbb533b6e7e35b257a1f14efd2cfe6725ff776
Story: #2002586
Task: #24319 
2018年08月21日 13:21:46 +00:00
huang.zhiping
71dabbb4f5 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: Icdfca2f5d33ecb97c5c13948fdf3c38eb4e047f1
Story: #2002586
Task: #24319 
2018年08月21日 12:42:56 +00:00
Jesse Pretorius
4843a9cc3d Use the TESTING_BRANCH env var for constraints
The TESTING_BRANCH environment variable is provided by the
run_tests.sh script and is derived from the .gitreview file.
This ensures that once the master branch becomes a stable
branch, the constraints from the stable branch in the
integrated repository will automatically get used once the
.gitreview file is updated.
To ensure that the required environment variables are present
we export them appropriately in run_tests.sh and modify the
tox configuration to pass them into the tox test.
Change-Id: Id1dc554c375f499c365e05017f6617e5e905a855
Needed-By: https://review.openstack.org/579371 
2018年08月16日 15:24:58 +01:00
e156ab39cc Update reno for stable/rocky
Change-Id: I196be7531999af51ce0b1d1ce8e24aee8fd323dc
2018年08月10日 16:44:52 +00:00