Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1512791 - RFE: Include boto3 for s3 support for gnocchi
Summary: RFE: Include boto3 for s3 support for gnocchi
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: distribution
Version: 14.0 (Rocky)
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Mike Burns
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks: 1513835
TreeView+ depends on / blocked
 
Reported: 2017-11-14 06:22 UTC by Jaison Raju
Modified: 2019-04-09 18:52 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3245811 None None None 2017-11-20 08:09:32 UTC

Description Jaison Raju 2017-11-14 06:22:42 UTC
Description of problem:
S3 based storage support is present in gnocchi RHOS11 : https://review.openstack.org/#/c/354131/

But boto3 modules are missing in RHOS releases.
$ git branch -a
  rhos10
* rhos11
setup.cfg -
[extras]
s3 =
    boto3
    botocore>=1.5
    msgpack-python
    lz4<0.9.0
    tooz>=1.38
gnocchi-statsd failed to start due to the missing boto3 module.
Which is expected as this module is not present:
https://review.openstack.org/#/c/354131/36/gnocchi/storage/s3.py -
try:
    import boto3
    import botocore.exceptions
except ImportError:
    boto3 = None

Version-Release number of selected component (if applicable):
RHOS11
gnocchi 3.1.x

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
our release should have boto3 : https://github.com/boto/boto3

Additional info:

Comment 1 Jaison Raju 2017-11-14 13:51:41 UTC
/var/log/gnocchi/gnocchi-upgrade.log :
2017-11-14 09:50:37.819 461495 CRITICAL gnocchi [-] RuntimeError: boto3 unavailable
2017-11-14 09:50:37.819 461495 ERROR gnocchi Traceback (most recent call last):
2017-11-14 09:50:37.819 461495 ERROR gnocchi   File "/bin/gnocchi-upgrade", line 10, in <module>
2017-11-14 09:50:37.819 461495 ERROR gnocchi     sys.exit(upgrade())
2017-11-14 09:50:37.819 461495 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/cli.py", line 70, in upgrade
2017-11-14 09:50:37.819 461495 ERROR gnocchi     s = storage.get_driver(conf)
2017-11-14 09:50:37.819 461495 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/storage/__init__.py", line 144, in get_driver
2017-11-14 09:50:37.819 461495 ERROR gnocchi     conf.incoming)
2017-11-14 09:50:37.819 461495 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/storage/incoming/s3.py", line 39, in __init__
2017-11-14 09:50:37.819 461495 ERROR gnocchi     s3.get_connection(conf)
2017-11-14 09:50:37.819 461495 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/storage/common/s3.py", line 38, in get_connection
2017-11-14 09:50:37.819 461495 ERROR gnocchi     raise RuntimeError("boto3 unavailable")
2017-11-14 09:50:37.819 461495 ERROR gnocchi RuntimeError: boto3 unavailable
2017-11-14 09:50:37.819 461495 ERROR gnocchi 

/var/log/gnocchi/statsd.log
2017-11-14 09:48:24.439 454127 WARNING oslo_config.cfg [-] Option "project_id" from group "statsd" is deprecated for removal.  Its value may be silently ignored in the future.
2017-11-14 09:48:24.451 454127 CRITICAL gnocchi [-] RuntimeError: boto3 unavailable
2017-11-14 09:48:24.451 454127 ERROR gnocchi Traceback (most recent call last):
2017-11-14 09:48:24.451 454127 ERROR gnocchi   File "/usr/bin/gnocchi-statsd", line 10, in <module>
2017-11-14 09:48:24.451 454127 ERROR gnocchi     sys.exit(statsd())
2017-11-14 09:48:24.451 454127 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/cli.py", line 83, in statsd
2017-11-14 09:48:24.451 454127 ERROR gnocchi     statsd_service.start()
2017-11-14 09:48:24.451 454127 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/statsd.py", line 171, in start
2017-11-14 09:48:24.451 454127 ERROR gnocchi     stats = Stats(conf)
2017-11-14 09:48:24.451 454127 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/statsd.py", line 38, in __init__
2017-11-14 09:48:24.451 454127 ERROR gnocchi     self.storage = storage.get_driver(self.conf)
2017-11-14 09:48:24.451 454127 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/storage/__init__.py", line 144, in get_driver
2017-11-14 09:48:24.451 454127 ERROR gnocchi     conf.incoming)
2017-11-14 09:48:24.451 454127 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/storage/incoming/s3.py", line 39, in __init__
2017-11-14 09:48:24.451 454127 ERROR gnocchi     s3.get_connection(conf)
2017-11-14 09:48:24.451 454127 ERROR gnocchi   File "/usr/lib/python2.7/site-packages/gnocchi/storage/common/s3.py", line 38, in get_connection
2017-11-14 09:48:24.451 454127 ERROR gnocchi     raise RuntimeError("boto3 unavailable")
2017-11-14 09:48:24.451 454127 ERROR gnocchi RuntimeError: boto3 unavailable
2017-11-14 09:48:24.451 454127 ERROR gnocchi


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