Commit Graph

35 Commits

Author SHA1 Message Date
Andreas Jaeger 854b3c5d37 Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: Iffe3a7de281b48693606fe0c84ebec8190018167
2019-12-18 09:41:48 +01:00
dmburmistrov 16f345bd2b Ensure corosync files & packages
In Ubuntu 16.04 corosync package is
splitted. "fuel-rabbit-fence" package
needs "notifyd"-part, so depends are
updated.

* ensure corosync necessary directories
* don't run sed on Ubuntu 16.04

blueprint: mos-xenial

Closes-bug: #1587075

Change-Id: I241a7976ad0c347167938a3b2656f633bc988046
2016-07-28 14:43:41 +00:00
Dmitry Teselkin f3417c7063 Add build dependency - git
blueprint: mos-xenial

Change-Id: I34bfc242c5ca87132e62bdaaf3badcdc72ea57c4
2016-06-28 13:49:38 +00:00
Alexey Lebedeff cf0e2eb689 Fix path to rabbitqm policy on debian
Debian .install files are processed by dh_install, which is not able to
rename files - it always interprets destination as a directory
name. Thus debian package contained
`/usr/sbin/set_rabbitmq_policy/set_rabbitmq_policy.sh` instead of
`/usr/sbin/set_rabbitmq_policy`.

Change-Id: I7ded7d870f1279b5d96028725da76a14015568f5
Closes-Bug: 1589599
2016-06-07 13:33:16 +03:00
dmburmistrov 8982d790f4 Purge 'upstart' from fuel-umm dependencies
* trusty already has upstart installed
* this dependency is not necessary

blueprint: mos-xenial

Related-Bug: #1583619

Change-Id: I34179355d424b5d68a52625d6e73c7295389f1d7
2016-06-03 20:16:37 +03:00
Dmitry Teselkin 14671a89aa Add build dependency ruby-thor for library package
librarian-puppet-simple requires ruby-thor

Change-Id: Ib7aa008e915c9d94a6a1bea96e847c73d18f3038
blueprint: mos-xenial
Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
2016-06-02 11:31:29 +02:00
Bogdan Dobrelya ba8ba8eeed Consume upstream rabbitmq-server v3.6.1 OCF RA
* The package contains the OCF script now,
  remove it from Fuel's fuel-ha-utils.
* Rework the custom fuel rabbitmq-server OCF wrapper
  installation from the package, make it
  to invoke the upstream OCF RA from
  /usr/lib/ocf/resource.d/rabbitmq/rabbitmq-server-ha
* Address some of TODO/FIXME as well.

Related blueprint upstream-rabbit-ocf

Change-Id: Iaa401685eb5e8dc514809eec426b9e550de609ac
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-05-18 12:28:50 +02:00
dmburmistrov 39a9a6e867 Add systemd unit for "fuel-rabbit-fence"
Closes-bug: #1581555

Change-Id: Ic7442ec5e310cc9b5256a4a1aab40a6955756c06
2016-05-13 19:24:31 +03:00
Sergey Kulanov e87798e12f Align fuel-library debian package name with version
Rename fuel-library9.0_10.0.0-1~u14.04
               to
       fuel-library10.0_10.0.0-1~u14.04

Change-Id: I19e4d286f8a7d21d95aed752fa2f154c30a7c01b
Closes-bug: #1567474
2016-04-07 17:24:39 +03:00
Sergey Kulanov b3e229a2ed Bump version to 10.0
Fuel-CI: disable

Change-Id: Ifdaf5597bc3578ed31e22c58985cd06fefeb5d92
Related-bug: #1558589
2016-04-06 11:44:33 +03:00
Jenkins b25ee26020 Merge "Build fuel-library as deb package" 2016-03-29 08:01:51 +00:00
Vitaly Parakhin f49224e92b Build fuel-library as deb package
Package upstream and fuel-library Puppet modules for Ubuntu
using the current fuel-library RPM approach:

* use librarian-puppet-simple for downloading upstream modules
* use upstream_modules.tar.gz workaround to build package in
  isolated environments (LP #1482667)

Closes-Bug: #1535881
Change-Id: I176593263501093a2ce5e609f23a28d611f853a6
2016-03-24 15:12:29 +02:00
Bogdan Dobrelya 8ebd9b1299 Put the RabbitMQ OCF RA policy to /usr/sbin
* Fix failing pcs resource list command
  and move the policy file from the ocf to policy dir
* Configure the custom policy file to be picked
  in the /usr/sbin/set_rabbitmq_policy as the
  fuel-libraryX package installs it.
* As the upstream rabbitmq-server package does not
  install one, use the default policy OCF path param
  as the /usr/local/sbin/...
* Add the policy_file param and unit tests to the
  cluster::rabbitmq_ocf

Closes-bug: #1558627

Change-Id: I4937bde611b06c3e39385a322053610c98584d79
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-03-24 09:23:50 +00:00
Peter Zhurba a51e6da7d1 Add systemd support to unified maintenance mode.
Was performed:
* Unify main code and move system depended code into umm_svc.local
* Modify packaging procedure

Closes-Bug: #1525269
Change-Id: I04602b26f2a0b9b6d5ed3cd23f175bd54d1f2808
2016-01-20 11:06:30 +02:00
Sergey Kulanov 8b70b540c3 Bump version to 9.0
Set openstack version to 2016.1.0-9.0 for now.
Proper versioning for 9.0 release is to be defined later.

Related patch to fuel-web:

https://review.openstack.org/#/c/259059/

Fuel-CI: disable

Change-Id: Iec9da695c4b240fc4e1cc1231ae6e4724311054c
2015-12-23 22:41:10 +02:00
Jenkins 40abb636ca Merge "Fix Fuel RabbitMQ-fence daemon start issue in install tests" 2015-12-15 22:35:32 +00:00
Dmitry Mescheryakov 7e96ef47ca Add ability to disable HA for RabbitMQ queues
Add two flags:
 * enable_rpc_ha which enables queue mirroring for RPC queues
 * enable_notifications_ha which enables queue mirroring for
   Ceilometer queues

Since the feature is experimental, both flags are set to true by
default to preserve current behaviour.

The change is implemented in several steps:
 * the upstream script changed so that it allows to extend the
   list of parameters and uses a policy file to define RabbitMQ
   policies.
 * we add our own version of OCF script which wraps around the
   upstream one. It defines a new enable_rpc_ha and
   enable_notifications_ha parameter and passes their value to the
   upstream script.
 * we add our policy file, where we use the introduced parameters
   to decide which policies we should set.

So we will have two OCF scripts for RabbitMQ in our deployment:
 * rabbitmq-server-upstream - the upstream version
 * rabbitmq-server - our extention, which will be used in the
   environment

The upstream version of the script is pushed to the upstream
along with empty policy file, so that other users can define their
own policies or extend the script if needed. Here are the
corresponding pull requests:
  https://github.com/rabbitmq/rabbitmq-server/pull/480
  https://github.com/rabbitmq/rabbitmq-server/pull/482
(both are already merged)

Text for Operations Guide

It is possible to significantly reduce load which OpenStack puts on
RabbitMQ by disabling queue mirroring. This could be done separately
for RPC queues and Ceilometer ones. To disable mirroring for RPC
queues, execute the following command on one of the controllers:

    crm_resource --resource p_rabbitmq-server --set-parameter \
        enable_rpc_ha --parameter-value false

To disable mirroring for Ceilometer queues, execute the following
command on one of the controllers:

    crm_resource --resource p_rabbitmq-server --set-parameter \
        enable_notifications_ha --parameter-value false

In order for any of the changes to take effect, RabbitMQ service
should be restarted. To do that, first execute

    pcs resource disable master_p_rabbitmq-server

Then monitor RabbitMQ state using command

    pcs resource

until it shows that all RabbitMQ nodes are stopped. Once they are,
execute the following command to start RabbitMQ:

    pcs resource enable master_p_rabbitmq-server

Beware: during restart all messages accumulated in RabbitMQ will be
lost. Also, OpenStack will stop functioning until RabbitMQ is up
again, so plan accordingly.

Note that it is not yet well tested how this configuration affects
failover when some cluster nodes go down. Hence it is experimental,
use at your own risk!

DocImpact:  ops-guide

Implements: blueprint rabbitmq-disable-mirroring-for-rpc
Change-Id: I80ae231ca64e2a903b0968d36ba0e85ca9cc9891
2015-12-11 20:23:05 +03:00
Denis Egorenko f2326bb68b Combine Heat-engine OCF scripts for Ubuntu & Centos into one common
Currently we have two ocf scripts for Heat-engine: for ubuntu and
centos. This patch removes this separation and combines into
one common OCF script.

Change-Id: I5e440f50da20ef26fca22a34df98864925f8211e
Closes-bug: #1378032
2015-12-11 16:29:39 +03:00
Sergey Kulanov 5c8f5e136b Fix Fuel RabbitMQ-fence daemon start issue in install tests
Update fuel-rabbit-fence package by adding rabbitmq-server as
a dependency. For now this issue is covered by manifests [1]

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

Change-Id: I8607820f4949629781667dc6b48e6285b58dc040
Closes-bug: #1524308
2015-12-09 14:01:16 +02:00
Peter Zhurba 8d138e0e0d Move umm from puppet to a package
Move umm related file from puppet to a package and change deploing process

Change-Id: I466d89158fab523981ea002e83933696284a11ac
Closes-bug:#1508274
2015-11-20 15:12:12 +00:00
Alex Schultz 6e79750c29 Clean rabbitmq dump of auto-delete queues
This change adds a script that can be used on the output from the
rabbitmq admin plugin that dumps the rabbitmq definitions to a json
format. This script removes the auto-delete queues and cleans up any
references to them in the bindings and exchanges.

Change-Id: Ie3f3194b3eaaa8dc28d1cd3442090b586e177306
Closes-Bug: #1497961
Co-Authored-By: Dmitry Mescheryakov <dmescheryakov@mirantis.com>
2015-10-27 15:13:06 -05:00
Alex Schultz 5c3e685c9c Moving socat to a fuel-misc dependency
fuel-misc provides haproxy-status which needs socat. Additionally we
are currently requiring the socat package in several places in
puppet to try and satisfy this dependancy. This will consolidate
them into a single requirement where it is needed.

Depends-On: I951b137627880b20ece3c64e6a0c8b6ab473daab
Change-Id: If3069c8c7bc68337596195e27e2213a4c9ec3540
Closes-Bug: 1479033
2015-09-25 13:13:34 +00:00
Vladimir Kuklin 491d2f8000 Bump version to 8.0
Change-Id: I480e32fe6bd3618bbb9d4ee00caff0bfe150c49f
Fuel-CI: disable
2015-09-07 21:25:36 +03:00
Ilya Shakhat 14240365c7 Use neutron-netns-cleanup utility
Utility neutron-netns-cleanup is extended to cover cleaning features
of both OCF and q-agent-cleanup. It is responsible for:
 * terminating in-namespace processes
 * removing net interfaces and OVS ports
 * removing namespaces
New utility uses pyroute2 library and at least 3 times faster than
the old solution.

Closes-Bug: #1436414
Closes-Bug: #1434196

Change-Id: Id8f12e7a342ccad3c3362d70159101bb95d918fd
2015-08-13 17:35:35 +03:00
Kamil Sambor 34dc599af2 Add new tasks for configure and deploy vms
* added basic template for vms
* added manifest to spawn vms

Implements: blueprint reduced-footprint
Change-Id: I5a218975e3f441bc53b86066101595ad7cb5ef06
2015-07-14 14:54:41 +02:00
Alex Schultz 77d7b22c4c Rename clustercheck to galeracheck
This change renames the clustercheck script to galeracheck as it
conflicts with a similarly named script from the percona packages.

Change-Id: I995138a022e09f12b53abb560eaf1e6134504001
Closes-Bug: 1461304
2015-06-24 16:18:32 -05:00
Jenkins 970c424521 Merge "Make log rotation more bulletproof" 2015-06-15 07:46:30 +00:00
Igor Shishkin c35e5cafdb
fuel-library spec update for 7.0.
Change-Id: I86a4b953d517fa686d690fb104836f1aaace236e
Signed-off-by: Igor Shishkin <ishishkin@mirantis.com>
2015-06-09 04:11:14 +03:00
Bartłomiej Piotrowski dd0eacc460 Make log rotation more bulletproof
- use flock to ensure that only one instance of fuel-logrotate is running
- combine centos and ubuntu versions of fuel-logrotate to a single file
- remove unused versions of fuel-logrotate file
- enable delayed compression in system-wide logrotate.conf to avoid race
  condition between fuel-logrotate and regular logrotate
- enable delaycompress also on master node
- default minsize (30M) and maxsize (100M) in system-wide logrotate.conf
- use file_line for logrotate.conf updates
- use bash to execute fuel-logrotate
- fix path to cron's logrotate script in logrotate-debug

This commit changes default behavior of logrotate by enabling compress
and delaycompress. The result is that compression is enabled for all log
files managed by logrotate and rotated logs are compressed only on the next
rotation. It allows us to resolve rotation cycle that might happen when
both regular logrotate and fuel-logrotate were executed at the same
time, causing both to rotate the same file.

Closes-Bug: 1461400
Doc-Impact: ops guide
Change-Id: I94c497a8916fa6fac87ea2ddc51f6de56ab73f98
Co-Authored-By: Alex Schultz <aschultz@mirantis.com>
2015-06-08 12:11:55 -05:00
Vladimir Kuklin 42df864217 Make HAProxy check of swift proxy backends via management VIP
W/o this fix, when the management interface on the controller node
running a Swift proxy is down, HAProxy would fail to update
its backend status at the storage network.

This is a problem as we want swift backends not able to connect the
swift endpoint via the management VIP to be marked down. Othewise,
responces time for any requested swift commands would be drastically
longer. Simple httpcheck option cannot resolve this because the swift
healthcheck reports OK, if conntacted via the storage network.

In order to fix this, simple healthcheck script is implemented.
This script is running as HTTP xinetid service at TCP port 49001 and
is accessible only from the localhost, 240.0.0.2, and storage plus
management networks. The service verifies the node under check for the:
a) management VIP is pingable via ICMP (by 3 packets)
b) Swift endpoint is reachable by TCP-connect via the local storage address
within 5 seconds connection timeout
c) Swift healthcheck report via the local storage address endpoint is OK

Reports an HTTP 200 OK, if all of the results are OK.
Otherwise, it would report an HTTP 503 Error.
Expected Swift node control plane failover time will be around 30 seconds.
Swift data plane is not affected.

DocImpact: Reference architecture, swift failover.

Closes-bug: #1459772
Related-bug: #1460623

Change-Id: I55a35b45257763a20f33bd47cb5c57de53558ccf
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-06-01 17:57:41 +03:00
Vladimir Kuklin afa71661f3 Fix fuel-logrotate file installation
Change-Id: Ib8d1f605b5aa254547ef5b88bc6fec591926b051
Closes-bug: #1459222
2015-05-27 15:36:40 +03:00
Vladimir Kuklin 6e6d1cb23c Ensure the rabbit-fence daemon started and respawned
W/o this fix, if the daemon crashed, it
would remain stopped. Also, the rabbit fence
daemon will crash on start, when there is no
/var/run/rabbitmq piddir exist.

The solution is
* add the respawn option to
the daemon's upstart (TODO for Centos inittab)
* and ensure the piddir
created by upstart/init.d before starting the daemon.

This also requires to add the rabbitmq and
fuel-rabbit-fence packages as a dependency.

Closes-bug: #1456791

Change-Id: I4e71eb9e4aa4ff3b877aa89a37d82215740aaeab
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-05-23 00:09:33 +00:00
Vladimir Kuklin 710553c1cc All the work done for fuel-library packaging
1) Package fuel library into three different
packages:
RPM: fuel-library6.1
ALL: fuel-ha-utils, fuel-misc

2) Install packages onto slave nodes
implements blueprint: package-fuel-components

Change-Id: Ie759857fb94db9aa94aaeaeda2c6ab5bb159cc9e
2015-05-15 02:44:53 +03:00
Matthew Mosesohn f2a09e72f5 Update deb version to 6.1.0
blueprint package-fuel-components

Change-Id: I481a51d6676672c72ba7818cc6b318dddc498c22
2015-04-22 14:48:58 +03:00
Vladimir Kuklin 0ccd804849 Backward-compatible commit for packaging of fuel-library
based on Change-Id: Ie759857fb94db9aa94aaeaeda2c6ab5bb159cc9e
All the work done for fuel-library packaging

Should be overriden by the change above after we switch
CI to package-based

implements blueprint: package-fuel-components

Change-Id: I48ed37a009b42f0a9a21cc869a869edb505b39c3
2015-04-16 11:23:29 +03:00