ceilometer-upgrade --skip-metering-database fails during undercloud install in master

Bug #1743563 reported by Gabriele Cerami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Pradeep Kilambi

Bug Description

logs at

https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-centos-7-master-containers-build/3ac626c/undercloud/home/jenkins/undercloud_install.log.txt.gz#_2018-01-16_09_36_28

show

2018-01-16 09:36:28 | 2018-01-16 09:36:28,318 INFO: Error: ceilometer-upgrade --skip-metering-database returned 1 instead of one of [0]
2018-01-16 09:36:28 | 2018-01-16 09:36:28,318 INFO: Error: /Stage[main]/Main/Exec[ceilo-gnocchi-upgrade]/returns: change from notrun to 0 failed: ceilometer-upgrade --skip-metering-database returned 1 instead of one of [0]

Changed in tripleo:
assignee: nobody → Gabriele Cerami (gcerami)
summary: - Ceilmeter upgrade fails during undercloud install in master
+ Ceilometer upgrade fails during undercloud install in master
summary: - Ceilometer upgrade fails during undercloud install in master
+ ceilometer-upgrade --skip-metering-database fails during undercloud
+ install in master
Changed in tripleo:
status: Confirmed → Triaged
Revision history for this message
Pradeep Kilambi (pkilambi) wrote :

i see this i gnocchi apache logs:
https://logs.rdoproject.org/openstack-periodic/periodic-tripleo-centos-7-master-containers-build/3ac626c/undercloud/var/log/httpd/gnocchi_wsgi_error.log.txt.gz

seems like a bug in gnocchi

[Tue Jan 16 09:36:23.395613 2018] [:error] [pid 25242] [remote 192.168.24.1:0] File "/usr/lib/python2.7/site-packages/gnocchi/rest/api.py", line 1301, in <module>
[Tue Jan 16 09:36:23.396663 2018] [:error] [pid 25242] [remote 192.168.24.1:0] NotIDKey = voluptuous.All(six.text_type, voluptuous.NotIn(["id"]))
[Tue Jan 16 09:36:23.396687 2018] [:error] [pid 25242] [remote 192.168.24.1:0] AttributeError: 'module' object has no attribute 'NotIn'

Revision history for this message
Pradeep Kilambi (pkilambi) wrote :

could be we're using older version of voluptuous for gnocchi. Might be a packaging thing. lemme investigate

Changed in tripleo:
assignee: Gabriele Cerami (gcerami) → Pradeep Kilambi (pkilambi)
Revision history for this message
Pradeep Kilambi (pkilambi) wrote :

we're running Jan 16 09:24:40 Installed: python-voluptuous-0.8.9-1.el7.noarch

and upstream gnocchi requirements.txt shows 0.6 .. So looks like upstream gnocchi forgot to bump the requirements.

This support seems to be added in voluptuous in 0.8.10

Revision history for this message
Pradeep Kilambi (pkilambi) wrote :

voluptuous rebase is already in progress: https://review.rdoproject.org/r/#/c/11344/

bumping minimum required version for gnocchi: https://review.rdoproject.org/r/11352

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Alfredo Moralejo (amoralej) wrote :

python-voluptuous has been updated to python-voluptuous-0.10.5-2.el7 in RDO dependencies repo for master.

Revision history for this message
Emilien Macchi (emilienm) wrote :

The voluptuous update worked fine, the undercloud is now deployed.

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/queens)

Reviewed: https://review.openstack.org/613010
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=d54a6f7e7f2bdbe171f9bed17dbb73a78588da07
Submitter: Zuul
Branch: stable/queens

commit d54a6f7e7f2bdbe171f9bed17dbb73a78588da07
Author: Mehdi Abaakouk <email address hidden>
Date: Tue Oct 23 20:41:47 2018 +0200

    ceilometer: --skip-metering-database is gone

    Option --skip-metering-database is gone since OSP13
    (I6b262dd440a72f25662b64d938ab9e5328709a97).

    This change removes it.

    Closes-bug: #1743563

    Change-Id: I675dc4985cdb3a86fac0a8421518ff3d7c784214
    (cherry picked from commit 60f6300e9bbd255a8a8f65d7ed5b50cbb5e4e662)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.openstack.org/627047

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/rocky)

Reviewed: https://review.openstack.org/613009
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=582182f39a298c2841fe5c442e41f83f84da60c5
Submitter: Zuul
Branch: stable/rocky

commit 582182f39a298c2841fe5c442e41f83f84da60c5
Author: Mehdi Abaakouk <email address hidden>
Date: Tue Oct 23 20:41:47 2018 +0200

    ceilometer: --skip-metering-database is gone

    Option --skip-metering-database is gone since OSP13
    (I6b262dd440a72f25662b64d938ab9e5328709a97).

    This change removes it.

    Closes-bug: #1743563

    Change-Id: I675dc4985cdb3a86fac0a8421518ff3d7c784214
    (cherry picked from commit 60f6300e9bbd255a8a8f65d7ed5b50cbb5e4e662)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by Martin Mágr (<email address hidden>) on branch: master
Review: https://review.openstack.org/627047

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.3.0

This issue was fixed in the openstack/tripleo-heat-templates 8.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 9.3.0

This issue was fixed in the openstack/tripleo-heat-templates 9.3.0 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.