Bug 1252504 - gnocchi-dbsync fails to run due to missed module
Summary: gnocchi-dbsync fails to run due to missed module
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-pytimeparse
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: z1
: 7.0 (Kilo)
Assignee: Pradeep Kilambi
QA Contact: Yurii Prokulevych
URL:
Whiteboard:
Depends On:
Blocks: 1293176
TreeView+ depends on / blocked
 
Reported: 2015-08-11 14:49 UTC by Yurii Prokulevych
Modified: 2015-12-21 01:14 UTC (History)
5 users (show)

Fixed In Version: python-pytimeparse-1.1.5-1.el7ost
Doc Type: Technology Preview
Doc Text:
With this update, the package python-pytimeparse is rebased to version 1.1.5 for openstack-gnocchi, so that gnocchi-dbsync can work successfully without any ImportErrors.
Clone Of:
Environment:
Last Closed: 2015-09-03 17:37:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1721 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Bug Fix and Enhancement Advisory 2015-09-03 21:36:25 UTC

Description Yurii Prokulevych 2015-08-11 14:49:29 UTC
Description of problem:
When trying to run gnocchi-dbsync got next error:

Traceback (most recent call last):
  File "/usr/bin/gnocchi-dbsync", line 6, in <module>
    from gnocchi.cli import storage_dbsync
  File "/usr/lib/python2.7/site-packages/gnocchi/cli.py", line 15, in <module>
    from gnocchi.indexer import sqlalchemy as sql_db
  File "/usr/lib/python2.7/site-packages/gnocchi/indexer/sqlalchemy.py", line 31, in <module>
    from gnocchi import utils
  File "/usr/lib/python2.7/site-packages/gnocchi/utils.py", line 19, in <module>
    from pytimeparse import timeparse
  File "/usr/lib/python2.7/site-packages/pytimeparse/__init__.py", line 28, in <module>
    from .timeparse import timeparse as parse
  File "/usr/lib/python2.7/site-packages/pytimeparse/timeparse.py", line 34, in <module>
    from builtins import dict, int
ImportError: No module named builtins

Additional info:
Looks like it requires newer version of pytimeparse. Similar request in rhbz:1215261

Comment 4 Pradeep Kilambi 2015-08-12 15:07:47 UTC
python-pytimeparse rebased to 1.1.5 in brew:

https://brewweb.devel.redhat.com/buildinfo?buildID=451989

moving to Modified.

Comment 6 Yurii Prokulevych 2015-08-24 12:41:35 UTC
Successfully run gnocchi-dbsync <excerpt from the output>:
...
2015-08-24 08:17:26.590 2344 DEBUG oslo_db.sqlalchemy.session [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE
_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/session.py:513


Packages:
openstack-gnocchi-doc-1.0.0-4.el7ost.noarch
openstack-gnocchi-carbonara-1.0.0-4.el7ost.noarch
openstack-gnocchi-indexer-sqlalchemy-1.0.0-4.el7ost.noarch
openstack-gnocchi-api-1.0.0-4.el7ost.noarch
python-gnocchi-1.0.0-4.el7ost.noarch
openstack-gnocchi-statsd-1.0.0-4.el7ost.noarch
python-pytimeparse-1.1.5-1.el7ost.noarch

Comment 9 errata-xmlrpc 2015-09-03 17:37:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2015:1721


Note You need to log in before you can comment on or make changes to this bug.