Fix storage.hbase.util.prepare_key() for 32-bits system
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

Juniper/ceilometer,pkilambi/ceilometer,sileht/aodh,MisterPup/Ceilometer-Juno-Extension,cernops/ceilometer,isyippee/ceilometer,openstack/ceilometer,idegtiarov/ceilometer,mathslinux/ceilometer,chungg/aodh,r-mibu/ceilometer,chungg/aodh,maestro-hybrid-cloud/ceilometer,pczerkas/aodh,MisterPup/Ceilometer-Juno-Extension,pczerkas/aodh,cernops/ceilometer,openstack/ceilometer,maestro-hybrid-cloud/ceilometer,r-mibu/ceilometer,ityaptin/ceilometer,redhat-openstack/ceilometer,sileht/aodh,eayunstack/ceilometer,openstack/aodh,pkilambi/ceilometer,idegtiarov/ceilometer,openstack/aodh,redhat-openstack/ceilometer,eayunstack/ceilometer,fabian4/ceilometer,ityaptin/ceilometer,fabian4/ceilometer,mathslinux/ceilometer,isyippee/ceilometer,Juniper/ceilometer