Commit Graph

48 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
Mykyta Karpin a0fe5a91df Avoid duplicate declaration of reauth method
Upstream patch https://review.openstack.org/#/c/457869
breaks noop tests, we need prepare heat task to this.

Change-Id: I53b36677a1c7427bee5c5f20e3a04e49d9bbffa2
Closes-Bug: #1684042
2017-04-19 15:40:31 +03:00
obutenko 5035fd3557 Enable proxy headers parsing
As heat is placed behind the proxy we need to enable
proxy headers parsing, so heat is aware about
protocol used to connect to endpoint.

Change-Id: I52e49ab9d866891a81d3c08b82c50c8addd34786
Closes-Bug: #1668227
2017-02-27 15:17:32 +02:00
Vladimir Kuklin a529033fdc Set memcached server to local one for non-keyston services
We misconfigured local cache for services with change
https://review.openstack.org/#/q/Id1034e22d79c3ea6b25575d9bcf8e8750a02365d
Thus, it becomes extremely slow when a controller is down.

With this commit we revert things back to normal with local memcached
for all openstack services leaving keystone memcached shared for tokens
(this was thoroughly tested previously)

Change-Id: I8f6bbf77d27f3d8976985241deb8a948984862f5
Closes-bug: #1657727
2017-01-19 19:26:30 +03:00
Jenkins a523e152cc Merge "Make heat::keystone::domain declaration flexible" 2017-01-02 15:46:32 +00:00
Mykyta Karpin 3d7f2ab803 Switch main components to transport_url
Messaging rabbit-* parameters are deprecated in upstream, so
this patch switches all main components to usage of transport_url

Change-Id: I042f68ac1aeb14234898711a25eaebe0836cbb90
Partial-Bug: #1477967
2016-12-30 09:52:20 +00:00
Oleksiy Molchanov 2babe38767 Make heat::keystone::domain declaration flexible
Change-Id: I3810a2d2b33af95c0ea5336675c4be380f6765d9
Closes-Bug: 1649522
2016-12-28 12:26:04 +00:00
Jenkins fdb38df92a Merge "Adapt fuel-library to removal of old authtoken parameters" 2016-11-11 13:45:11 +00:00
Mykyta Karpin 5a6fea2a76 Adapt fuel-library to removal of old authtoken parameters
These patches https://review.openstack.org/#/q/topic:old_authtoken
are removing old puppet authtoken parameters and now we need to use
parameters from keystone::authtoken class in each affected module

Closes-Bug: #1640083
Partial-Bug: #1390099

Change-Id: Ife3ed88237ce735b2a068415b1e57fca93498dcd
2016-11-09 11:48:14 +02:00
Alexey Deryugin 007a8713ad Make components use PyMySQL as default DB driver
Change-Id: Id012cb764de3b109d95e7c4a29d1d9c94e337117
Closes-Bug: #1550192
2016-11-07 11:44:54 +00:00
Dmitry Ilyin 39cd163c44 Puppet4 support: multiple modules
* Fixes for the openstack tasks and openstack
  modules.
* Fixes for fuel tasks.
* Fixes for openstack modules
* Noop tests fixes.

Puppet4 support: common spec

Remove dynamic nova-compute service lookup because the performance
impact of it was too high. Now this value is being statically
chosen by the OS family name.

Puppet4 support: cobbler

* Fix duplicate declarations of systemd services
* upstream dns servers should be an array

Puppet4 support: rsyslog

Fix duplicate rsyslog service
between haproxy and logging tasks
Add tests to ensure that service is present

Puppet4 support: ntp

Fix ntp service duplicate declaration

Puppet4 support: horizon

Fix forgotten include of nova::params

Puppet4 support: apache

Fix broken containment and ordering

Puppet4 support: mysql

Remove duplicate declaration of the access file

Puppet4 support: keystone

user_admin_role should be array

Puppet4 support: openstack controller

Add forgotten include of nova::params

Puppet4 support: server_config

* Check for both undef and empty string value for mtu
* tunel_id_ranges should be array

Puppet4 support: rabbitmq

Add forgotten vhost name variable

Puppet4 support: tools

Rewrite badly writtent spec file variables.

Related-Bug: 1586480
Change-Id: Ia9b474a7076365c0fcad2b55c65e8305477a4647
2016-08-30 10:09:04 -05:00
Jenkins 72cc15909f Merge "Make RabbitMQ Heartbeat related parameters configurable from hiera" 2016-08-25 20:41:56 +00:00
Oleksiy Molchanov 549155f8a9 Fix heat reauthentication_auth_method with Radosgw
* Set reauthentication_auth_method = trusts only when Radosgw is not used
* Update YAQL expression for heat

Change-Id: I4f5d8b0bfabfb7a8b8a47cecb3c00a69698c7bf3
Closes-Bug: 1611031
2016-08-11 12:16:27 +03:00
Alexey Deryugin 64b99da4df Make RabbitMQ Heartbeat related parameters configurable from hiera
Now we use default values of haertbeat related parameters, and
we need to have an ability to override them using Hiera.

Change-Id: I6d5d26657883aff0f1ff8d3faa1176ff6a8eb220
Closes-Bug: #1576320
Closes-Bug: #1573592
2016-07-28 06:15:30 +00:00
Alex Schultz df416f53d2 Use memcache for keystone_authtoken
This change updates where we calculate the memcache server information
to the globals hiera data and updates all the openstack services to
use the heira memcached_servers key for consistency. Additionally all
api services have been updated to configure the memcached servers for
the keystone_authtoken middleware configuration to improve the
responsiveness of the service.

Change-Id: Id1034e22d79c3ea6b25575d9bcf8e8750a02365d
Closes-Bug: #1597512
2016-07-06 14:26:22 -06:00
iberezovskiy 4c727a3ff4 Cleanup workarounds for kombu_compression parameters
Closes-bug: #1598106

Change-Id: I85c05ac9cdefafffc7d9dba80882a42f2812cc02
2016-07-01 13:48:29 +03:00
Denis Egorenko 610564638f Use public_hash for determining current protocol and address for Heat
Heat parameters heat_metadata_server_url, heat_waitcondition_server_url,
heat_watch_server_url require to be set with proper protocol and address
in case of usage SSL.

Change-Id: I7baa7b44db4237347ddadccb4537e0080ef62322
Closes-bug: #1582283
2016-05-24 17:46:47 +03:00
iberezovskiy e51623c6bf Updates for notification_driver parameters of some services
* don't hard-code notification driver for heat and murano
* accordingly update yaql expressions in tasks.yaml
* enable previously disabled tests because of upstream work

Change-Id: Id6d6a9a2308e716d030989944dd951cc7301751c
Related-bug: #1566716
Related-bug: #1568796
2016-04-26 16:13:51 +03:00
dmburmistrov 897aea28ae Remove heat-engine from pacemaker controll
Heat-engine service doesn't require pacemaker
control since Fuel 7.0. This patch removes
pacemaker usage by default, but still gives
an ability to enable it (only for "N"-release).

Closes-bug: #1570297

Change-Id: Ibfe4a610c1196834aeede786cbcfa9521d1bec40
2016-04-25 13:55:21 +03:00
Aleksandr Didenko 6908722cfc Switch from RUN: to ROLE: annotation
* RUN annotation caused duplication for tasks in the old folder
* RUN should only be used if you need non-standard run configuration
* With ROLE annotation there's no need to update all the tests
  when you add new astute.yaml fixture for existing role
* Fix manifest variable in broken tests

Change-Id: I7a1c98bdb51590d8d80cee387de35d5581cf1da2
Partial-bug: #1535339
2016-04-07 15:46:46 +02:00
Aleksandr Didenko aaa49dc120 Update noop tests to work with 9.0 fixtures
- Update yaml-to-rspec assignments to match with a new set of
  fixtures
- Fix errors in rspec tests to make the work properly with up to
  date fixtures

Integration tests are disabled because this patch affects noop
rspec tests only.

Fuel-CI: disable

Partial-bug: #1535339
Change-Id: I02a289d2d206a1f4ac3c829503bbae582717cae1
2016-04-05 09:54:16 +02:00
Bogdan Dobrelya e99656cf07 Map noop fixtures for integration tests
Use custom mappings (#RUN notation) of noop fixtures
for noop integration tests.
Iteration 2: recover mappings as it before the regression
and map all for the tasks w/o mappings.

Closes-bug: #1561890

Change-Id: I6ca3363ea4b2fae1ec73d61122caef6764ba79d1
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2016-03-25 17:57:57 +01:00
iberezovskiy a47d71b1fe Add ability to set kombu_compression for OpenStack components
Add posibility to set kombu_compression in OpenStack config files.
This option is disabled by default but its value can be overridden
from hiera. Also some checks were added to prevent from duplication
errors which can come from puppet-openstack patches similar to
https://review.openstack.org/#/c/292309/

Closes-bug: #1546554

Change-Id: I1a835f97c23073d3a450dd58decee2876bee53c9
2016-03-24 13:39:22 -06:00
Andrew Woodward eb22a92462 Drop openstack::heat
This uplifts the openstack::heat directly into the calling task.

Closes-bug: #1544179
Change-Id: Id3a39e0c75832e64c2f60664c0ffc0acfa7c0ec3
Blueprint: fuel-remove-conflict-openstack
2016-03-18 10:47:09 -07:00
Aleksandr Didenko 714f474776 Fix keystone URLs in noop tests
Fix some outdated noop rspec tests to match with the current
manifests.

Change-Id: I4bf4bc583fba96a5f0b109cf9e74bd82d3fa1bfe
Fuel-CI: disable
Partial-bug: #1535339
2016-03-17 14:07:47 +01:00
Peter Zhurba 9272bcfc2a Ensurability fix for modular/heat/heat.pp
Add config-cleanup part if sahara becomes disabled.

Change-Id: Idf58656a432ad74c223828f45141f876aaac3795
Related-Blueprint: #granular-task-ensurability
2016-03-01 17:46:44 +02:00
Dmitry Ilyin a041b2b71f Switch to external noop tests
* Use external noop tests library and fixtures
* Corrections and fixes for the spec library to make it work

Partial blueprint: deployment-data-dryrun
Fuel-CI: disable
Change-Id: Ie8d1f80bbee04b9bacb43ba4fa39a423624a8301
2016-02-16 20:10:10 +03:00
Alex Schultz 569ebdb59d Make heat task idempotent
This change updates the heat task to be idempotent. In order to do this,
we have changed the wait_for_heat_config exec to be refresh only and is
now only triggered if configuration changes are done. Additionally this
change cleans up the pacemaker integration for heat and moves it into
the cluster module. With the addition to the cluster module, unit tests
have been added to the new cluster::heat_engine class.

The resources that were always being executed prior to this change:
 - Cs_resource[p_heat-engine]
 - Exec[wait_for_heat_config]

Change-Id: Ie0f7137206f2733259bff7b0c2c86fb1634add76
Related-Blueprint: granular-task-idempotency
2016-02-12 13:22:06 -07:00
Vladimir Kuklin cbcb81d343 Refactor code of LB backends waiting pieces
This commit introduces a couple of classes and a function
to allow a user to specify for which load balancing checkers
to wait.

Change-Id: I9548ae440111fb0c2356ccb897318d30a8e264ff
Related-bug: #1533279
2016-02-01 14:43:58 +03:00
Alex Schultz 739a5a611c Update connection string generation
This change leverages the os_database_connection function from
openstacklib to generate the connection strings for our services. As
part of this change, we are moving the database connection string
generation to the osnailyfacter modular tasks and updating the
openstack classes to consume a connection string rather than the
seperate host, user, password, database name and database type.

Additionally as part of this change, we are updating the mysql
connection strings to only include read_time=60 if debian based packages
are used. This is due to the fact that python-pymysql, which is used by
Ubuntu packages, does not support the read_timeout option as part of the
connection string.

Change-Id: I45c51a05ba7cf9648b0202cc3c2216d185bd7eda
Closes-Bug: #1526938
Related-Blueprint: deploy-with-uca-packages
2016-01-20 08:12:57 -07:00
Jenkins 53e9b493db Merge "Enable caching for Heat validation process" 2016-01-20 14:32:41 +00:00
Denis Egorenko b5a06d8bec Enable caching for Heat validation process
Caching will provide better perfomance with work of huge Sahara clusters
on big deployments.

This feature was merged in the middle of stable liberty development.

Change-Id: I0ddb4422d0f5894c4226c9e19106fc7de110906d
Closes-bug: #1534510
2016-01-18 09:43:07 +00:00
Alex Schultz 788b336288 Skip docker resource install with UCA packages
This change updates the heat modular task to only attempt to install the
heat docker packages when using a package set that provides a standalone
package. Currently only the RedHat and Debian based package sets provide
a seperate package. The UCA packages do not provide the heat docker
templates as a separate package.

Change-Id: If66f928f8afdebd3eedad1da9ac9e5c1e23c2101
Related-Blueprint: deploy-with-uca-packages
2016-01-12 12:26:35 -07:00
Aleksandr Didenko ba7ed96778 Add support for external load-balancers
Add new hiera configuration key 'external_lb'. If it's set to
true then we should not configure Haproxy LB on controllers and
also we should switch 'haproxy_backend_status' to 'http' provider.

We calculate 'external_lb' during 'globals.pp' task - if we have
no VIPs with 'haproxy' namespace, then it's set to 'true'.

It does not change the default deployment scheme.

Also fixing minor issue with default provider for
'haproxy_backend_status' type.

Closes-bug: #1522749
Change-Id: I5539d04d577465bd410494a6c0b7caff18857878
2016-01-04 11:48:07 +01:00
Denis Egorenko 3c8a649a8f Enable re-authentication option in Heat for deployments with Sahara
Add new config option reauthentication_auth_plugin for enforce usage
of trusts_auth_plugin for making authenticated requests, when
Sahara is enabled.

Change-Id: I244edf767b3167ac1ff8e25bdc8c304da342b836
Closes-bug: #1529246
2015-12-30 16:24:19 +03:00
Denis Egorenko a607d9ad7a Run db sync only on primary controller
We should run db sync only on primary controllers. Currently
upstream modules have posibility to specify should we run
db sync or don't.

Change-Id: If061c0f1b2706ec4fd88966b8620e5586d98b0b8
Closes-bug: #1330875
2015-12-11 09:52:39 +00:00
iberezovskiy 5f1683b098 Install heat-docker package only after heat-engine
Heat-engine package is heat-docker dependency,
so if installation of heat-docker package is performed before
heat-engine installation it leads to autostart of heat-engine package
(in that moment override file isn't exist yet, because it will be
triggered directly before evaluation of heat-engine package resource).
As a result, the heat-engine service is run without any configuration.

To fix that we need to sеt heat-engine package installation strictly
before heat-docker package.

Change-Id: I5420e64e3ab6b2ca0305f5f41eb722e3ead42b25
Closes-bug: #1520610
2015-12-10 14:30:37 +03:00
Nikita Koshikov 66c4bdadcc Add selective SSL support
Add second-level hash for TLS support. If user mixing this hash into his
astute.yaml, values from it will be taken to TLS-related tasks instead
of ones from UI.

Hash to use looks like:

use_ssl:
  horizon: true
  horizon_public: true
  horizon_public_hostname: horizon.fuel.local
  horizon_public_usercert: true
  horizon_public_certdata: KeyPairStoredHere

  keystone: true
  keystone_public: true
  keystone_public_ip: <ip of external keystone>
  ...
  keystone_internal: true
  ...
  keystone_admin: true
  ...

  glance: true
  glance_public: true
  ...

Co-Authored-By: Stanislaw Bogatkin <sbogatkin@mirantis.com>
Related to blueprint selective-ssl
Change-Id: Ic3034b3fea27a370b1f7cbd4e088f361fce96142
2015-12-01 19:03:29 +00:00
iberezovskiy 9bb09a21bb Enable oslo.messaging debug for OpenStack components
We should have oslo.messaging debug enabled
when OpenStack log debug is set to true.
Make default_log_levels configurable through globals.yaml.

NOTE: sahara::logging class can't be used because of
https://github.com/openstack/puppet-sahara/blob/master/manifests/init.pp#L371
It leads to duplicate declaration of this class. That's why
default_log_levels parameter for sahara::logging is configured
through globals.yaml. After new puppet modules sync with upstream
we will get the same problem for another openstack components.
It will be fixed in the way as it's done for sahara now.

Closes-bug: #1509090

Change-Id: Ia8665eaf526158760a5420e7813c7367cc457c0c
2015-11-25 12:56:12 +00:00
Alex Schultz e821f58f3f Switch heat to use auth_uri and identity_uri
This change updates heat to use the auth_uri and identity_uri instead of
the deprecated keystone_host parameter.

Change-Id: Ie9ac86c17ceebb675b2053230668e17bdfb66f88
Closes-Bug: #1514983
2015-11-11 09:40:36 -06:00
iberezovskiy d9615e4317 Configure the 'max_json_body_size' option for Heat
Default max template size and default max JSON body size
are 524288 (0.5 MB) and 1048576 (1 MB) respectively.
The value for max template size was increased to 5440000,
so we need to set appropriate value for max JSON body size
to 10880000.

Change-Id: Ib517117681bf70667e16b98d0eb34ac277d3ed31
Closes-bug: #1486616
2015-08-21 10:26:39 +00:00
Jenkins 3505165804 Merge "Fix upstart logs management" 2015-08-17 10:28:17 +00:00
Denis Egorenko 7ece4296f4 Increase Heat requests timeouts
During creating and using one Heat template for hundreds VMs happens
timeout error, because validating and checking templates are needing
much more time in such enviroments.

Timeouts set in agreement with MOS-Scale team.

Change-Id: I2c599762625e2a1bc6d3c86a6f1bba26c24f16d0
Closes-bug: #1475274
Closes-bug: #1483833
2015-08-14 15:12:06 +03:00
Denis Egorenko a0a6f154f0 Increase Heat template size and request limit
Currently we have small default size for Heat templates and it
occurs problem for creating templates by Sahara.

Also increasing max_resources_per_stack will help to avoid problem
with exceeded request limit for maximum resources per stack.

Both values set in agreement with MOS-Scale team.

Change-Id: Id2301c1886f5b896daf87c469ed0010a68af3fc3
Related-bug: #1483833
2015-08-13 18:11:29 +03:00
Sergey Kolekonov 8637d96478 Fix upstart logs management
- disable use_stderr option for all components because upstart adds to logs
  all output from stderr output of its jobs
- add upstart logs to common fuel logrotate configuration file
- add noop tests

Change-Id: Ifefec5e4c8e3438229018edc7c1aaa53a3a779bd
Upstream patches: https://review.openstack.org/#/q/topic:bug/1482564,n,z
Closes-bug: #1469176
2015-08-12 12:56:36 +00:00
Mykyta Koshykov 5b50044c2a Split keystone endpoint creation into respective tasks
- Refactor ceilometer auth.pp. It's a part of
  https://review.openstack.org/#/c/201565/ though it's required by
  endpoint task separation
- Moved keystone endpoint creations to separate tasks with initial noop
  tests

Misc:
- Created Unified structure in creation tasks. They are separated as
  <task>/db.pp and <task>/keystone.pp
- Removed firewall.pp.dist.
- Removed database requirement in ceilometer/tasks.yaml
- Fixed notification in heat.pp
- many linting fixes

Partial blueprint: detach-components-from-controllers

Co-Authored-By: Bartłomiej Piotrowski <bpiotrowski@mirantis.com>
Co-Authored-By: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
Co-Authored-By: Alex Schultz <aschultz@mirantis.com>
Co-Authored-By: Matthew Mosesohn <mmosesohn@mirantis.com>

Change-Id: I61376f2bbeade23ae1d49a82f4e908be28144e78
2015-07-21 01:43:58 +02:00
iberezovskiy 99ad7e2dde Adapt synced Heat module for Fuel usage
Key moments:
    * Fix lint errors
    * Remove duplication of package->service dependencies
    * Workoaround for MySQL module
    * Fix name for heat-engine service in heat_ha class
    * Remove heat_config options from osnailyfacter class
    * Configure delegated roles from heat class
    * Add retries to heat domain creation command
      commit I2fbb97adde6743153fc81f8dba153356c382cb52
    * Add retry to heat_domain_id
      commit: I1630f54cdfa850a6b4dcbc9b714ebc6195de1fb0
    * Update in heat_domain_id_setter
      commit: I4c0df7600e10d57429eda854cd8aa6208e1c6539
    * Add noop tests for new parameters

  Implements: blueprint upgrade-openstack-puppet-modules

Change-Id: Ib9fa8acc54c124f8656d49accbdbbf733f2d3fd3
2015-07-07 16:01:59 +03:00
Aleksandr Didenko dc8edb6e66 Modular noop tests
We can run noop tests via 'rake spec'. This will allow us to:

  - Make sure that catalog compiles and there are no dependency
    cycles in the graph.
  - Use RSpec tests to check that needed puppet resources present
    in the catalog for specific astute.yaml configuration.

In order to test just execute these commands:
  export WORKSPACE=/tmp/fuel_noop_tests
  mkdir -p $WORKSPACE
  ./utils/jenkins/fuel_noop_tests.sh

It iterates over astsute.yaml files and runs rspec tests for puppet
tasks configured in the astute.yaml for the node.

In order to run specific test and/or specific astute.yaml, you can
set appropriate env variables. For example:
  export NOOP_TEST="keystone/*"
  export NOOP_YAMLS="tests/noop/astute.yaml/novanet_flat.primary-controller.yaml"
  ./utils/jenkins/fuel_noop_tests.sh

If you also want to store puppet logs in case of errors, please set
PUPPET_LOGS_DIR env variable:
  export PUPPET_LOGS_DIR=/tmp/puppet_error_logs

If you want to store all the delcarated File and Package resources,
please set NOOP_SAVE_RESOURCES_DIR env variable:
  export NOOP_SAVE_RESOURCES_DIR=/tmp/puppet_resources

Related-bug: #1402738
Implement blueprint deployment-dryrun

Fuel CI temporarily disabled since this change does not affect
MOS deplyoment process, only CI itself.

Fuel-CI: disable

Change-Id: I38b23832d1e8701440aacb300256f513c466c762
2015-04-09 11:56:33 +03:00