Gnocchi statsd gets configured only on first controller in HA environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Unassigned |
Bug Description
Gnocchi statsd gets configured only on first controller in HA environment and it fails to start on the rest of 2 controllers:
Deploy command:
source ~/stackrc
export THT='/home/
openstack overcloud deploy --templates $THT \
-e $THT/environmen
-e $THT/environmen
-e ~/templates/
-e $THT/environmen
-e $THT/environmen
-e $THT/environmen
-e ~/templates/
--control-scale 3 \
--control-flavor controller \
--compute-scale 3 \
--compute-flavor compute \
--ntp-server clock.redhat.com \
--libvirt-type qemu
on overcloud-
[root@overcloud
[DEFAULT]
log_dir = /var/log/gnocchi
[api]
max_limit = 1000
host=10.0.0.11
workers=4
port=8041
[archive_policy]
[cors]
[cors.subdomain]
[database]
[indexer]
url = mysql+pymysql:
[metricd]
[oslo_middleware]
[oslo_policy]
policy_file = /etc/gnocchi/
[statsd]
resource_id = 0a8b55df-
user_id = 27c0d3f8-
project_id = 6c38cd8d-
archive_policy_name = low
flush_delay = 10
[storage]
driver = ceph
ceph_pool = metrics
ceph_username = openstack
ceph_keyring = /etc/ceph/
ceph_conffile = /etc/ceph/ceph.conf
[keystone_
auth_uri=http://
identity_uri=http://
admin_user=gnocchi
admin_password=
admin_tenant_
On controller-1:
[root@overcloud
[DEFAULT]
log_dir = /var/log/gnocchi
[api]
max_limit = 1000
host=10.0.0.10
workers=4
port=8041
[archive_policy]
[cors]
[cors.subdomain]
[database]
[indexer]
url = mysql+pymysql:
[metricd]
[oslo_middleware]
[oslo_policy]
policy_file = /etc/gnocchi/
[statsd]
[storage]
driver = ceph
ceph_pool = metrics
ceph_username = openstack
ceph_keyring = /etc/ceph/
ceph_conffile = /etc/ceph/ceph.conf
[keystone_
auth_uri=http://
identity_uri=http://
admin_user=gnocchi
admin_password=
admin_tenant_
The service fails to start on controller-1 and controller-2:
CRITICAL gnocchi [-] RequiredOptError: value required for option: statsd.resource_id
ERROR gnocchi Traceback (most recent call last):
ERROR gnocchi File "/usr/bin/
ERROR gnocchi sys.exit(statsd())
ERROR gnocchi File "/usr/lib/
ERROR gnocchi statsd_
ERROR gnocchi File "/usr/lib/
ERROR gnocchi raise cfg.RequiredOpt
ERROR gnocchi RequiredOptError: value required for option: statsd.resource_id
ERROR gnocchi
Changed in tripleo: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in tripleo: | |
status: | Fix Committed → Fix Released |
This is the patch that broke it: https:/ /review. openstack. org/#/c/ 344513 It removed the gnocchi configuration completely from non-bootstrap nodes.