gnocchi file missing

Bug #1915618 reported by admin0
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Unassigned

Bug Description

eb 13 21:39:13 cloud-c3-1030990-gnocchi-container-5bf050be <function get_program_name at 0x7f446b7e78b0>[3467]: 2021-02-13 21:39:13,478 [3467] ERROR cotyledon._utils: Unhandled exception
                                                                                                                 Traceback (most recent call last):
                                                                                                                   File "/openstack/venvs/gnocchi-21.2.0/lib/python3.8/site-packages/gnocchi/incoming/__init__.py", line 117, in NUM_SACKS
                                                                                                                     self._num_sacks = int(self._get_storage_sacks())
                                                                                                                   File "/openstack/venvs/gnocchi-21.2.0/lib/python3.8/site-packages/gnocchi/incoming/file.py", line 47, in _get_storage_sacks
                                                                                                                     with open(os.path.join(self.basepath_tmp, self.CFG_PREFIX),
                                                                                                                 FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/gnocchi/tmp/gnocchi-config'

                                                                                                                 During handling of the above exception, another exception occurred:

                                                                                                                 Traceback (most recent call last):
                                                                                                                   File "/openstack/venvs/gnocchi-21.2.0/lib/python3.8/site-packages/cotyledon/_utils.py", line 95, in exit_on_exception
                                                                                                                     yield
                                                                                                                   File "/openstack/venvs/gnocchi-21.2.0/lib/python3.8/site-packages/cotyledon/_service.py", line 139, in _run
                                                                                                                     self.run()
                                                                                                                   File "/openstack/venvs/gnocchi-21.2.0/lib/python3.8/site-packages/gnocchi/cli/metricd.py", line 78, in run
                                                                                                                     self._configure()
                                                                                                                   File "/openstack/venvs/gnocchi-21.2.0/lib/python3.8/site-packages/tenacity/__init__.py", line 311, in wrapped_f
                                                                                                                     return self.call(f, *args, **kw)
                                                                                                                   File "/openstack/venvs/gnocchi-21.2.0/lib/python3.8/site-packages/tenacity/__init__.py", line 391, in call
                                                                                                                     do = self.iter(retry_state=retry_state)
                                                                                                                   File "/openstack/venvs/gnocchi-21.2.0/lib/python3.8/site-packages/tenacity/__init__.py", line 338, in iter
                                                                                                                     return fut.result()
                                                                                                                   File "/usr/lib/python3.8/concurrent/futures/_base.py", line 432, in result
                                                                                                                     return self.__get_result()
                                                                                                                   File "/usr/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
                                                                                                                     raise self._exception
                                                                                                                   File "/openstack/venvs/gnocchi-21.2.0/lib/python3.8/site-packages/tenacity/__init__.py", line 394, in call
                                                                                                                     result = fn(*args, **kwargs)
                                                                                                                   File "/openstack/venvs/gnocchi-21.2.0/lib/python3.8/site-packages/gnocchi/cli/metricd.py", line 162, in _configure
                                                                                                                     self.fallback_tasks = list(self.incoming.iter_sacks())
                                                                                                                   File "/openstack/venvs/gnocchi-21.2.0/lib/python3.8/site-packages/gnocchi/incoming/__init__.py", line 248, in iter_sacks
                                                                                                                     return (self._make_sack(i) for i in six.moves.range(self.NUM_SACKS))
                                                                                                                   File "/openstack/venvs/gnocchi-21.2.0/lib/python3.8/site-packages/gnocchi/incoming/__init__.py", line 119, in NUM_SACKS
                                                                                                                     raise SackDetectionError(e)
                                                                                                                 gnocchi.incoming.SackDetectionError: [Errno 2] No such file or directory: '/var/lib/gnocchi/tmp/gnocchi-config'

fix:
/var/lib/gnocchi/tmp/gnocchi-config
with
{"sacks": 128}

Revision history for this message
Jonathan Rosser (jrosser) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_gnocchi (master)
Changed in openstack-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_gnocchi (master)

Reviewed: https://review.opendev.org/c/openstack/openstack-ansible-os_gnocchi/+/817457
Committed: https://opendev.org/openstack/openstack-ansible-os_gnocchi/commit/b9d2f805e3658bdbb387ac810003c5f1e70e96df
Submitter: "Zuul (22348)"
Branch: master

commit b9d2f805e3658bdbb387ac810003c5f1e70e96df
Author: Jonathan Herlin <email address hidden>
Date: Wed Nov 10 17:18:16 2021 +0100

    Fix gnocchi multi-node when storage_driver is file

    When gnocchi_storage_driver is file, run the db sync on all nodes.
    But if gnocchi_storage_driver is other than file, run only on first node.

    Closes-Bug: #1915618
    Change-Id: I18a0ca9e32515194fbcf939bed53cdbef4de26f6

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_gnocchi (stable/wallaby)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_gnocchi (stable/victoria)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_gnocchi (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/openstack-ansible-os_gnocchi/+/817428
Committed: https://opendev.org/openstack/openstack-ansible-os_gnocchi/commit/09d669b9f2605635ef46b433d2d084f1b46a6628
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 09d669b9f2605635ef46b433d2d084f1b46a6628
Author: Jonathan Herlin <email address hidden>
Date: Wed Nov 10 17:18:16 2021 +0100

    Fix gnocchi multi-node when storage_driver is file

    When gnocchi_storage_driver is file, run the db sync on all nodes.
    But if gnocchi_storage_driver is other than file, run only on first node.

    Closes-Bug: #1915618
    Change-Id: I18a0ca9e32515194fbcf939bed53cdbef4de26f6

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_gnocchi (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/openstack-ansible-os_gnocchi/+/817429
Committed: https://opendev.org/openstack/openstack-ansible-os_gnocchi/commit/61e63ffb546a5786a5b2d20eb54b85758f3a0780
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 61e63ffb546a5786a5b2d20eb54b85758f3a0780
Author: Jonathan Herlin <email address hidden>
Date: Wed Nov 10 17:18:16 2021 +0100

    Fix gnocchi multi-node when storage_driver is file

    When gnocchi_storage_driver is file, run the db sync on all nodes.
    But if gnocchi_storage_driver is other than file, run only on first node.

    Closes-Bug: #1915618
    Change-Id: I18a0ca9e32515194fbcf939bed53cdbef4de26f6

tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_gnocchi yoga-eom

This issue was fixed in the openstack/openstack-ansible-os_gnocchi yoga-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_gnocchi victoria-eom

This issue was fixed in the openstack/openstack-ansible-os_gnocchi victoria-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_gnocchi wallaby-eom

This issue was fixed in the openstack/openstack-ansible-os_gnocchi wallaby-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_gnocchi xena-eom

This issue was fixed in the openstack/openstack-ansible-os_gnocchi xena-eom release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.