aodh/ceilometer
ZhiQiang Fan fa982d1bf5 Fix storage.hbase.util.prepare_key() for 32-bits system
storage.hbase.utils.timestamp() will return long type object on 32-bits
system, which will cause exception in ceilometer/alarm/storage/impl_hbase.py:
'long' object has no attribute 'encode'.
Then developers on 32-bits system will never get local test passed.

This patch changes type check in prepare_keys() from int to six.integer_types,
which will work for both 32-bits and 64-bits system, python2 and python3
environment.

Note: no test code is added, because jenkins runs on 64-bits system. Reviewers
can download code and verify it on 32-bits system.

Change-Id: I57729ff67efe6d6036fe698e3d86491f9ed4600c
Closes-Bug: #1388181
2014-11-01 14:43:29 +08:00
..
alarm Fix hacking rule H305 imports not grouped correctly 2014-10-30 01:31:43 +08:00
api Fix hacking rule H305 imports not grouped correctly 2014-10-30 01:31:43 +08:00
central Partition swift pollster resources by tenant 2014-09-15 08:34:39 -04:00
cmd create skeleton files for event storage backends 2014-10-02 13:43:51 -04:00
compute Fix hacking rule H305 imports not grouped correctly 2014-10-30 01:31:43 +08:00
data_processing Fix help strings 2014-09-02 19:59:16 +02:00
dispatcher Allow collector service database connection retry 2014-10-21 14:17:05 +00:00
energy switch to oslo-config-generator 2014-10-12 16:05:10 -04:00
event Fix hacking rule H305 imports not grouped correctly 2014-10-30 01:31:43 +08:00
hardware Fix hacking rule H305 imports not grouped correctly 2014-10-30 01:31:43 +08:00
identity Add role assignment notifications for identity 2014-10-09 11:24:11 -04:00
image switch to oslo-config-generator 2014-10-12 16:05:10 -04:00
ipmi Merge "Fix hacking rule H305 imports not grouped correctly" 2014-10-30 08:41:34 +00:00
locale Imported Translations from Transifex 2014-10-28 06:10:33 +00:00
network Enable to get service types from configuration file 2014-09-19 17:23:52 +09:00
objectstore switch to oslo-config-generator 2014-10-12 16:05:10 -04:00
openstack sync and clean up oslo 2014-10-14 07:31:06 -04:00
orchestration Remove redundant parentheses 2014-08-25 16:22:28 +04:00
profiler Fix help strings 2014-09-02 19:59:16 +02:00
publisher switch to oslo-config-generator 2014-10-12 16:05:10 -04:00
storage Fix storage.hbase.util.prepare_key() for 32-bits system 2014-11-01 14:43:29 +08:00
tests Merge "Add __repr__ method for sample.Sample" 2014-10-30 11:43:01 +00:00
transformer Merge "Remove redundant parentheses" 2014-08-26 10:51:20 +00:00
volume Handle Cinder attach and detach notifications 2014-08-06 12:38:47 -04:00
__init__.py Switch to a custom NotImplementedError 2014-09-15 18:16:10 +02:00
agent.py Partition static resources defined in pipeline.yaml 2014-09-29 06:16:34 +00:00
cli.py Switch to oslo.utils 2014-08-22 14:52:13 +02:00
collector.py Fix help strings 2014-09-02 19:59:16 +02:00
coordination.py Fix help strings 2014-09-02 19:59:16 +02:00
messaging.py Use oslo.msg retry API in rpc publisher 2014-09-25 11:11:24 +02:00
middleware.py Fix H405 violations and re-enable gating 2014-07-01 13:41:27 +03:00
neutron_client.py switch to oslo-config-generator 2014-10-12 16:05:10 -04:00
notification.py Don't keep a single global TRANSPORT object 2014-06-16 10:31:13 +02:00
notifier.py Fix H307 violations and re-enable gating 2014-07-01 13:34:54 +03:00
nova_client.py switch to oslo-config-generator 2014-10-12 16:05:10 -04:00
opts.py sync and clean up oslo 2014-10-14 07:31:06 -04:00
pipeline.py Use resource discovery for Network Services 2014-07-21 12:11:50 -07:00
plugin.py Clarify deprecation comment to be accurate 2014-10-14 17:37:59 +01:00
sample.py Add __repr__ method for sample.Sample 2014-10-30 00:07:53 +08:00
service.py switch to oslo-config-generator 2014-10-12 16:05:10 -04:00
utils.py Fix hacking rule H305 imports not grouped correctly 2014-10-30 01:31:43 +08:00