2018-03-05 19:28:35 +01:00
|
|
|
heat_template_version: rocky
|
2017-02-28 15:57:14 -05:00
|
|
|
|
|
|
|
description: >
|
|
|
|
OpenStack containerized gnocchi service
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
DockerGnocchiApiImage:
|
|
|
|
description: image
|
|
|
|
type: string
|
2017-06-23 18:21:43 +02:00
|
|
|
DockerGnocchiConfigImage:
|
|
|
|
description: The container image to use for the gnocchi config_volume
|
|
|
|
type: string
|
2018-05-18 10:18:43 +02:00
|
|
|
GnocchiApiLoggingSource:
|
|
|
|
type: json
|
|
|
|
default:
|
|
|
|
tag: openstack.gnocchi.api
|
|
|
|
path: /var/log/containers/gnocchi/app.log
|
2017-02-28 15:57:14 -05:00
|
|
|
EndpointMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
|
|
via parameter_defaults in the resource registry.
|
|
|
|
type: json
|
2017-06-22 17:25:03 +02:00
|
|
|
ServiceData:
|
|
|
|
default: {}
|
|
|
|
description: Dictionary packing service data
|
|
|
|
type: json
|
2017-02-28 15:57:14 -05:00
|
|
|
ServiceNetMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service_name -> network name. Typically set
|
|
|
|
via parameter_defaults in the resource registry. This
|
|
|
|
mapping overrides those in ServiceNetMapDefaults.
|
|
|
|
type: json
|
|
|
|
DefaultPasswords:
|
|
|
|
default: {}
|
|
|
|
type: json
|
2017-02-24 06:27:58 -05:00
|
|
|
RoleName:
|
|
|
|
default: ''
|
|
|
|
description: Role name on which the service is applied
|
|
|
|
type: string
|
|
|
|
RoleParameters:
|
|
|
|
default: {}
|
|
|
|
description: Parameters specific to the role
|
2017-05-15 19:06:09 +02:00
|
|
|
type: json
|
2017-04-19 10:58:11 +00:00
|
|
|
EnableInternalTLS:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2017-07-28 17:03:02 -04:00
|
|
|
NumberOfStorageSacks:
|
|
|
|
default: 128
|
|
|
|
description: Number of storage sacks to create.
|
|
|
|
type: number
|
2017-10-02 15:22:08 -04:00
|
|
|
CephClientUserName:
|
|
|
|
default: openstack
|
|
|
|
type: string
|
2018-02-07 11:56:12 +01:00
|
|
|
CephClusterName:
|
|
|
|
type: string
|
|
|
|
default: ceph
|
|
|
|
description: The Ceph cluster name.
|
|
|
|
constraints:
|
|
|
|
- allowed_pattern: "[a-zA-Z0-9]+"
|
|
|
|
description: >
|
|
|
|
The Ceph cluster name must be at least 1 character and contain only
|
|
|
|
letters and numbers.
|
2018-05-23 12:31:16 -04:00
|
|
|
GnocchiFileBasePath:
|
|
|
|
default: '/var/lib/gnocchi'
|
|
|
|
description: Path to use when file driver is used. This could be NFS or a
|
|
|
|
flat file.
|
|
|
|
type: string
|
2017-04-19 10:58:11 +00:00
|
|
|
|
|
|
|
conditions:
|
|
|
|
|
|
|
|
internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
|
2017-02-28 15:57:14 -05:00
|
|
|
|
|
|
|
resources:
|
|
|
|
|
2017-04-13 13:46:31 +00:00
|
|
|
ContainersCommon:
|
|
|
|
type: ./containers-common.yaml
|
|
|
|
|
2017-02-28 15:57:14 -05:00
|
|
|
GnocchiApiPuppetBase:
|
|
|
|
type: ../../puppet/services/gnocchi-api.yaml
|
|
|
|
properties:
|
|
|
|
EndpointMap: {get_param: EndpointMap}
|
|
|
|
ServiceNetMap: {get_param: ServiceNetMap}
|
|
|
|
DefaultPasswords: {get_param: DefaultPasswords}
|
2017-02-24 06:27:58 -05:00
|
|
|
RoleName: {get_param: RoleName}
|
|
|
|
RoleParameters: {get_param: RoleParameters}
|
2017-02-28 15:57:14 -05:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
role_data:
|
|
|
|
description: Role data for the gnocchi API role.
|
|
|
|
value:
|
|
|
|
service_name: {get_attr: [GnocchiApiPuppetBase, role_data, service_name]}
|
|
|
|
config_settings:
|
|
|
|
map_merge:
|
|
|
|
- get_attr: [GnocchiApiPuppetBase, role_data, config_settings]
|
|
|
|
- apache::default_vhost: false
|
2017-08-31 11:07:11 +02:00
|
|
|
logging_source: {get_attr: [GnocchiApiPuppetBase, role_data, logging_source]}
|
|
|
|
logging_groups: {get_attr: [GnocchiApiPuppetBase, role_data, logging_groups]}
|
2018-05-18 10:18:43 +02:00
|
|
|
service_config_settings:
|
|
|
|
map_merge:
|
|
|
|
- get_attr: [GnocchiApiPuppetBase, role_data, service_config_settings]
|
|
|
|
- fluentd:
|
|
|
|
tripleo_fluentd_groups_gnocchi_api:
|
|
|
|
- gnocchi
|
|
|
|
tripleo_fluentd_sources_gnocchi_api:
|
|
|
|
- {get_param: GnocchiApiLoggingSource}
|
2017-02-28 15:57:14 -05:00
|
|
|
# BEGIN DOCKER SETTINGS
|
|
|
|
puppet_config:
|
|
|
|
config_volume: gnocchi
|
|
|
|
puppet_tags: gnocchi_api_paste_ini,gnocchi_config
|
2017-11-13 14:51:37 -05:00
|
|
|
step_config:
|
|
|
|
get_attr: [GnocchiApiPuppetBase, role_data, step_config]
|
2017-07-12 11:41:57 +12:00
|
|
|
config_image: {get_param: DockerGnocchiConfigImage}
|
2017-02-28 15:57:14 -05:00
|
|
|
kolla_config:
|
2017-06-07 15:35:55 +02:00
|
|
|
/var/lib/kolla/config_files/gnocchi_api.json:
|
2017-03-29 14:11:21 +02:00
|
|
|
command: /usr/sbin/httpd -DFOREGROUND
|
2017-11-29 09:49:56 +01:00
|
|
|
config_files: &gnocchi_api_kolla_config_files
|
2017-06-21 16:02:55 +02:00
|
|
|
- source: "/var/lib/kolla/config_files/src/*"
|
|
|
|
dest: "/"
|
|
|
|
merge: true
|
|
|
|
preserve_properties: true
|
2017-08-08 16:19:20 +02:00
|
|
|
- source: "/var/lib/kolla/config_files/src-ceph/"
|
|
|
|
dest: "/etc/ceph/"
|
|
|
|
merge: true
|
|
|
|
preserve_properties: true
|
2017-11-29 09:49:56 +01:00
|
|
|
permissions: &gnocchi_api_kolla_permissions
|
2017-03-07 17:12:36 +01:00
|
|
|
- path: /var/log/gnocchi
|
|
|
|
owner: gnocchi:gnocchi
|
|
|
|
recurse: true
|
2017-10-02 15:22:08 -04:00
|
|
|
- path:
|
|
|
|
str_replace:
|
2018-02-07 11:56:12 +01:00
|
|
|
template: /etc/ceph/CLUSTER.client.USER.keyring
|
2017-10-02 15:22:08 -04:00
|
|
|
params:
|
2018-02-07 11:56:12 +01:00
|
|
|
CLUSTER: {get_param: CephClusterName}
|
2017-10-02 15:22:08 -04:00
|
|
|
USER: {get_param: CephClientUserName}
|
|
|
|
owner: gnocchi:gnocchi
|
|
|
|
perm: '0600'
|
2017-11-29 09:49:56 +01:00
|
|
|
/var/lib/kolla/config_files/gnocchi_db_sync.json:
|
|
|
|
command:
|
|
|
|
str_replace:
|
Fix gnocchi-upgrade Table <..> already exists errors
Currently we are calling /usr/bin/gnocchi-upgrade
--sacks-number=SACK_NUM from each node where gnocchi-api is part of the
role. gnocchi-upgrade seems to be racy and we sometimes end up with the
following error:
2018-03-14 12:39:39,683 [1] ERROR oslo_db.sqlalchemy.exc_filters: DBAPIError exception wrapped from (pymysql.err.InternalError) (1050, u"Table 'archive_policy' already exists") [SQL: u'\nCREATE TABLE archive_policy (\n\tname VARCHAR(255) NOT NULL, \n\tback_window INTEGER NOT NULL, \n\tdefinition TEXT NOT NULL, \n\taggregation_methods TEXT NOT NULL, \n\tPRIMARY KEY (name)\n)ENGINE=InnoDB CHARSET=utf8\n\n']
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
context)
File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py", line 470, in do_execute
cursor.execute(statement, parameters)
File "/usr/lib/python2.7/site-packages/pymysql/cursors.py", line 166, in execute
result = self._query(query)
File "/usr/lib/python2.7/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 856, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 1057, in _read_query_result
result.read()
File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 1340, in read
first_packet = self.connection._read_packet()
File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 1014, in _read_packet
packet.check_error()
File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 393, in check_error
err.raise_mysql_exception(self._data)
File "/usr/lib/python2.7/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
raise errorclass(errno, errval)
InternalError: (1050, u"Table 'archive_policy' already exists")
Let's run it from a the bootstrap node by wrapping it into the
bootstrap_host_exec magic.
Change-Id: I106512eeffff3425608a543f9bc5e6a9508d15e5
Closes-Bug: #1755564
2018-03-14 20:49:05 +01:00
|
|
|
template: /usr/bin/bootstrap_host_exec gnocchi_api /usr/bin/gnocchi-upgrade --sacks-number=SACK_NUM
|
2017-11-29 09:49:56 +01:00
|
|
|
params:
|
|
|
|
SACK_NUM: {get_param: NumberOfStorageSacks}
|
|
|
|
config_files: *gnocchi_api_kolla_config_files
|
|
|
|
permissions: *gnocchi_api_kolla_permissions
|
2017-02-28 15:57:14 -05:00
|
|
|
docker_config:
|
2017-03-07 17:12:36 +01:00
|
|
|
# db sync runs before permissions set by kolla_config
|
2017-06-14 15:24:46 +02:00
|
|
|
step_2:
|
2017-04-13 09:52:01 +03:00
|
|
|
gnocchi_init_log:
|
2017-07-12 11:41:57 +12:00
|
|
|
image: &gnocchi_api_image {get_param: DockerGnocchiApiImage}
|
2017-02-28 15:57:14 -05:00
|
|
|
user: root
|
|
|
|
volumes:
|
2017-03-07 17:12:36 +01:00
|
|
|
- /var/log/containers/gnocchi:/var/log/gnocchi
|
2017-08-02 11:44:18 +02:00
|
|
|
- /var/log/containers/httpd/gnocchi-api:/var/log/httpd
|
|
|
|
command: ['/bin/bash', '-c', 'chown -R gnocchi:gnocchi /var/log/gnocchi']
|
2018-05-25 15:53:08 +02:00
|
|
|
gnocchi_init_lib:
|
|
|
|
image: *gnocchi_api_image
|
|
|
|
user: root
|
|
|
|
volumes:
|
2018-05-23 12:31:16 -04:00
|
|
|
- str_replace:
|
|
|
|
template: GNOCCHI_FILE_BASE_PATH:GNOCCHI_FILE_BASE_PATH
|
|
|
|
params: {GNOCCHI_FILE_BASE_PATH: {get_param: GnocchiFileBasePath}}
|
|
|
|
command:
|
|
|
|
- '/bin/bash'
|
|
|
|
- '-c'
|
|
|
|
- str_replace:
|
|
|
|
template: 'chown -R gnocchi:gnocchi GNOCCHI_FILE_BASE_PATH'
|
|
|
|
params: {GNOCCHI_FILE_BASE_PATH: {get_param: GnocchiFileBasePath}}
|
2018-07-11 10:49:27 +02:00
|
|
|
step_5:
|
2017-02-28 15:57:14 -05:00
|
|
|
gnocchi_db_sync:
|
2018-07-11 10:49:27 +02:00
|
|
|
start_order: 0
|
2017-06-23 18:21:43 +02:00
|
|
|
image: *gnocchi_api_image
|
2017-02-28 15:57:14 -05:00
|
|
|
net: host
|
|
|
|
detach: false
|
|
|
|
privileged: false
|
2017-05-17 08:58:57 -04:00
|
|
|
user: root
|
2017-02-28 15:57:14 -05:00
|
|
|
volumes:
|
2017-04-25 10:55:25 +03:00
|
|
|
list_concat:
|
|
|
|
- {get_attr: [ContainersCommon, volumes]}
|
|
|
|
-
|
2017-11-29 09:49:56 +01:00
|
|
|
- /var/lib/kolla/config_files/gnocchi_db_sync.json:/var/lib/kolla/config_files/config.json:ro
|
|
|
|
- /var/lib/config-data/puppet-generated/gnocchi/:/var/lib/kolla/config_files/src:ro
|
2018-05-23 12:31:16 -04:00
|
|
|
- str_replace:
|
|
|
|
template: GNOCCHI_FILE_BASE_PATH:GNOCCHI_FILE_BASE_PATH
|
|
|
|
params: {GNOCCHI_FILE_BASE_PATH: {get_param: GnocchiFileBasePath}}
|
2017-03-07 17:12:36 +01:00
|
|
|
- /var/log/containers/gnocchi:/var/log/gnocchi
|
2017-08-02 11:44:18 +02:00
|
|
|
- /var/log/containers/httpd/gnocchi-api:/var/log/httpd
|
2017-11-29 09:49:56 +01:00
|
|
|
- /etc/ceph:/var/lib/kolla/config_files/src-ceph:ro
|
|
|
|
environment:
|
|
|
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
2017-04-13 09:52:01 +03:00
|
|
|
gnocchi_api:
|
2017-06-23 18:21:43 +02:00
|
|
|
image: *gnocchi_api_image
|
2018-07-11 10:49:27 +02:00
|
|
|
start_order: 1
|
2017-02-28 15:57:14 -05:00
|
|
|
net: host
|
|
|
|
privileged: false
|
|
|
|
restart: always
|
2018-01-26 15:18:24 +01:00
|
|
|
healthcheck:
|
|
|
|
test: /openstack/healthcheck
|
2017-02-28 15:57:14 -05:00
|
|
|
volumes:
|
2017-04-25 10:55:25 +03:00
|
|
|
list_concat:
|
|
|
|
- {get_attr: [ContainersCommon, volumes]}
|
|
|
|
-
|
2018-05-23 12:31:16 -04:00
|
|
|
- str_replace:
|
|
|
|
template: GNOCCHI_FILE_BASE_PATH:GNOCCHI_FILE_BASE_PATH
|
|
|
|
params: {GNOCCHI_FILE_BASE_PATH: {get_param: GnocchiFileBasePath}}
|
2017-06-07 15:35:55 +02:00
|
|
|
- /var/lib/kolla/config_files/gnocchi_api.json:/var/lib/kolla/config_files/config.json:ro
|
2017-06-21 16:02:55 +02:00
|
|
|
- /var/lib/config-data/puppet-generated/gnocchi/:/var/lib/kolla/config_files/src:ro
|
2017-03-07 17:12:36 +01:00
|
|
|
- /var/log/containers/gnocchi:/var/log/gnocchi
|
2017-08-02 11:44:18 +02:00
|
|
|
- /var/log/containers/httpd/gnocchi-api:/var/log/httpd
|
2017-08-08 16:19:20 +02:00
|
|
|
- /etc/ceph:/var/lib/kolla/config_files/src-ceph:ro
|
2017-04-25 10:55:25 +03:00
|
|
|
-
|
|
|
|
if:
|
|
|
|
- internal_tls_enabled
|
|
|
|
- /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
|
|
|
|
- ''
|
|
|
|
-
|
|
|
|
if:
|
|
|
|
- internal_tls_enabled
|
|
|
|
- /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
|
|
|
|
- ''
|
2017-02-28 15:57:14 -05:00
|
|
|
environment:
|
|
|
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
2017-03-07 17:12:36 +01:00
|
|
|
host_prep_tasks:
|
|
|
|
- name: create persistent logs directory
|
|
|
|
file:
|
2017-08-02 11:44:18 +02:00
|
|
|
path: "{{ item }}"
|
2017-03-07 17:12:36 +01:00
|
|
|
state: directory
|
2017-08-02 11:44:18 +02:00
|
|
|
with_items:
|
|
|
|
- /var/log/containers/gnocchi
|
|
|
|
- /var/log/containers/httpd/gnocchi-api
|
2017-11-08 18:19:25 +01:00
|
|
|
- name: gnocchi logs readme
|
|
|
|
copy:
|
|
|
|
dest: /var/log/gnocchi/readme.txt
|
|
|
|
content: |
|
|
|
|
Log files from gnocchi containers can be found under
|
|
|
|
/var/log/containers/gnocchi and /var/log/containers/httpd/gnocchi-api.
|
|
|
|
ignore_errors: true
|
2017-08-08 16:19:20 +02:00
|
|
|
- name: ensure ceph configurations exist
|
|
|
|
file:
|
|
|
|
path: /etc/ceph
|
|
|
|
state: directory
|
2017-03-14 15:15:46 -04:00
|
|
|
upgrade_tasks:
|
2018-03-23 14:47:34 +01:00
|
|
|
- when: step|int == 0
|
2017-08-07 12:53:28 +02:00
|
|
|
tags: common
|
2018-03-23 14:47:34 +01:00
|
|
|
block:
|
|
|
|
- name: Check if gnocchi_api is deployed
|
|
|
|
command: systemctl is-enabled --quiet openstack-gnocchi-api
|
|
|
|
ignore_errors: True
|
|
|
|
register: gnocchi_api_enabled_result
|
|
|
|
- name: Set fact gnocchi_api_enabled
|
|
|
|
set_fact:
|
|
|
|
gnocchi_api_enabled: "{{ gnocchi_api_enabled_result.rc == 0 }}"
|
|
|
|
- name: "PreUpgrade step0,validation: Check service openstack-gnocchi-api is running"
|
|
|
|
command: systemctl is-active --quiet openstack-gnocchi-api
|
|
|
|
when:
|
|
|
|
- gnocchi_api_enabled|bool
|
|
|
|
tags: validation
|
|
|
|
- name: Check if httpd service is running
|
|
|
|
command: systemctl is-active --quiet httpd
|
|
|
|
ignore_errors: True
|
|
|
|
register: httpd_running_result
|
|
|
|
when: httpd_running is undefined
|
|
|
|
- name: Set fact httpd_running
|
|
|
|
set_fact:
|
|
|
|
httpd_running: "{{ httpd_running_result.rc == 0 }}"
|
|
|
|
when: httpd_running is undefined
|
|
|
|
- name: Check for gnocchi_api running under apache
|
|
|
|
shell: "httpd -t -D DUMP_VHOSTS | grep -q gnocchi"
|
|
|
|
ignore_errors: True
|
|
|
|
register: gnocchi_httpd_enabled_result
|
|
|
|
- name: set fact gnocchi_httpd_enabled
|
|
|
|
set_fact:
|
|
|
|
gnocchi_httpd_enabled: "{{ gnocchi_httpd_enabled_result.rc == 0 }}"
|
|
|
|
- name: "PreUpgrade step0,validation: Check if gnocchi_api_wsgi is running"
|
|
|
|
shell: systemctl status 'httpd' | grep -q gnocchi
|
|
|
|
tags: validation
|
|
|
|
when:
|
|
|
|
- gnocchi_httpd_enabled|bool
|
|
|
|
- httpd_running|bool
|
|
|
|
- when: step|int == 2
|
|
|
|
block:
|
|
|
|
- name: Stop and disable gnocchi_api service
|
|
|
|
service: name=openstack-gnocchi-api state=stopped enabled=no
|
|
|
|
when:
|
|
|
|
- gnocchi_api_enabled|bool
|
|
|
|
- name: Stop and disable httpd service
|
|
|
|
when:
|
|
|
|
- gnocchi_httpd_enabled|bool
|
|
|
|
- httpd_running|bool
|
|
|
|
service: name=httpd state=stopped enabled=no
|
2017-04-19 10:58:11 +00:00
|
|
|
metadata_settings:
|
|
|
|
get_attr: [GnocchiApiPuppetBase, role_data, metadata_settings]
|
2018-01-15 12:16:55 -05:00
|
|
|
fast_forward_upgrade_tasks:
|
2018-02-26 15:33:53 +01:00
|
|
|
- name: Check if httpd service is running
|
|
|
|
command: systemctl is-active --quiet httpd
|
|
|
|
tags: common
|
|
|
|
ignore_errors: True
|
|
|
|
register: httpd_running_result
|
2018-01-15 12:16:55 -05:00
|
|
|
when:
|
2018-02-26 15:33:53 +01:00
|
|
|
- step|int == 0
|
|
|
|
- release == 'ocata'
|
|
|
|
- httpd_running is undefined
|
|
|
|
- name: Set fact httpd_running if unset
|
|
|
|
set_fact:
|
|
|
|
httpd_running: "{{ httpd_running_result.rc == 0 }}"
|
|
|
|
when:
|
|
|
|
- step|int == 0
|
|
|
|
- release == 'ocata'
|
|
|
|
- httpd_running is undefined
|
|
|
|
- name: Check if gnocchi_api is deployed
|
|
|
|
command: systemctl is-enabled --quiet openstack-gnocchi-api
|
|
|
|
tags: common
|
|
|
|
ignore_errors: True
|
|
|
|
register: gnocchi_api_enabled_result
|
|
|
|
when:
|
|
|
|
- step|int == 0
|
|
|
|
- release == 'ocata'
|
|
|
|
- name: Set fact gnocchi_api_enabled
|
|
|
|
set_fact:
|
|
|
|
gnocchi_api_enabled: "{{ gnocchi_api_enabled_result.rc == 0 }}"
|
|
|
|
when:
|
|
|
|
- step|int == 0
|
|
|
|
- release == 'ocata'
|
|
|
|
- name: Check for gnocchi_api running under apache
|
|
|
|
tags: common
|
|
|
|
shell: "httpd -t -D DUMP_VHOSTS | grep -q gnocchi"
|
|
|
|
ignore_errors: True
|
|
|
|
register: gnocchi_httpd_enabled_result
|
|
|
|
when:
|
|
|
|
- step|int == 0
|
|
|
|
- release == 'ocata'
|
|
|
|
- name: Set fact gnocchi_httpd_enabled
|
|
|
|
set_fact:
|
|
|
|
gnocchi_httpd_enabled: "{{ gnocchi_httpd_enabled_result.rc == 0 }}"
|
|
|
|
when:
|
|
|
|
- step|int == 0
|
|
|
|
- release == 'ocata'
|
|
|
|
- name: Stop and disable gnocchi_api service
|
|
|
|
service: name=openstack-gnocchi-api state=stopped enabled=no
|
|
|
|
when:
|
|
|
|
- step|int == 1
|
|
|
|
- release == 'ocata'
|
|
|
|
- gnocchi_api_enabled|bool
|
|
|
|
- name: Stop and disable httpd service
|
|
|
|
when:
|
|
|
|
- step|int == 1
|
2018-01-15 12:16:55 -05:00
|
|
|
- release == 'ocata'
|
2018-02-26 15:33:53 +01:00
|
|
|
- gnocchi_httpd_enabled|bool
|
|
|
|
- httpd_running|bool
|
|
|
|
service: name=httpd state=stopped enabled=no
|
|
|
|
- name: Update gnocchi packages
|
2018-07-20 14:03:57 -04:00
|
|
|
package: name={{ item }} state=latest
|
2018-02-26 15:33:53 +01:00
|
|
|
# (pradk): We have to explicitly update numpy as its obsoleted
|
|
|
|
# by python2-numpy.
|
|
|
|
with_items:
|
|
|
|
- openstack-gnocchi*
|
|
|
|
- numpy
|
|
|
|
when:
|
|
|
|
- step|int == 6
|
|
|
|
- is_bootstrap_node|bool
|
|
|
|
- name: Sync gnocchi DB
|
|
|
|
command: gnocchi-upgrade --skip-storage
|
|
|
|
when:
|
|
|
|
- step|int == 8
|
|
|
|
- is_bootstrap_node|bool
|
2018-05-01 08:55:28 +02:00
|
|
|
- gnocchi_api_enabled|bool
|