76 Commits

Author SHA1 Message Date
Flavio Percoco
f767164b9e Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

b'https://gist.github.com/a25aca0b551e6e7060c15c4fefd2af38\n'

Change-Id: Ic0662a0eddddbaf525821e9d76f4f5fae34b1bfa
2016-11-25 12:50:30 +01:00
Adam Reznechek
85ef946a09 Add tox_install.sh for pypowervm upper-constraints workaround
With the recent addition of pypowervm to upper-constraints, installs
of ceilometer-powervm are now by default enforcing the version set there.
Since the master branch of ceilometer-powervm depends on the develop
version of pypowervm, this causes installs to fail.

This changeset adds a wrapper script (tox_install.sh) that edits
the upper-constraints file and replaces the pypowervm version pin
then sets pypowervm to be installed from source instead.

Change-Id: Ib60ee84ecb168991439ac5d097ba07a62d2329a7
2016-11-16 19:59:51 +00:00
Drew Thorstensen
1c69b80258 Update the init of the collector to take in a conf
In the Ocata release, there is a new conf variable that is passed
into the collector.  This is generally used by the libvirt collector
at the moment.  It is not needed by the PowerVM collector, but the
__init__ signature needs to be updated to take it in.  This change
brings the PowerVM collector in line with the base requirements from
the core ceilometer project.

Change-Id: Ib5620f6830949f50939d07ba07be900a5451df56
2016-11-09 22:13:09 -05:00
Drew Thorstensen
95c7897367 Use upper constraints
This changes the tox command to use the upper constraints.  This will
avoid known issues with newer versions of the library.

Change-Id: I85a03fc40356ca1493d6dcf550f63f0deba8dd84
Closes-Bug: 1637938
2016-10-31 09:37:03 -04:00
Jenkins
89e1cefe1f Merge "clean up oslo-incubator related stuff" 2016-10-25 18:55:21 +00:00
xiaozhuangqing
52aa461aa3 clean up oslo-incubator related stuff
Oslo-incubator has retired, so don't keep oslo-incubator
related stuff here.

Change-Id: Ied36fc2f4a3d82c8f14b5f580e02b5ed84ce18eb
2016-10-25 12:35:02 +00:00
Ravi Kota
da742d283b Translation files for supported languages
Updated the po translation files for supported languages.

Change-Id: I717dc74703f9f1470a7b34125335c2900b6c7536
Closes-Bug: #1636140
2016-10-24 08:31:52 -04:00
Eric Fried
e1bcb2c3de Change devstack pypowervm branch to develop
Change the default pypowervm branch installed by devstack from 'master'
to 'develop'.  The master branch is not useful.

Change-Id: I38048dee34fb5a045b8aece756e9d3e2818ee0f2
2016-10-13 10:28:15 -05:00
Jenkins
315f176856 Merge "Remove discover from test-requirements" 2016-10-12 18:40:04 +00:00
Drew Thorstensen
793901ffc7 Support new InterfaceStats
The InterfaceStats API has been updated to include a new set of metrics.
PowerVM does not support all of the new drop/error types.  However, it
does have a total drop packets count.  Since we poll the client side
VEA, those are likely dropped on transmit.  Therefore the dropped
packets counter works against the client side NIC, and counts all drops
as transmit drops.

Change-Id: Id75757d886df4b859e86da8a498b75d36c267e39
Closes-Bug: #1632710
2016-10-12 14:00:19 -04:00
Ravi Kota
98bb94a9b4 Translation files for supported languages
Updated the po translation files for supported languages.

Change-Id: I2b9a30b7a4bdf377f6a8574851836e94b1a9e354
2016-09-27 12:26:40 -04:00
xiaozhuangqing
e63fb59de8 remove openstack/common from the exclude list of flake in tox.ini
The directory openstack/common was used to keep codes from oslo-incubator,
we have retired oslo-incubator, so don't use this directory any more.

Change-Id: I38abf7f3da42b36648535c2b63167a089c186e24
3.0.0.0b3 3.0.0.0rc1
2016-08-29 18:49:42 +08:00
Swapnil Kulkarni (coolsvap)
f8f8f059d7 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: Iee8ce443cfc50112634900d4c0e47973f01516bb
2016-07-21 07:36:40 +00:00
Drew Thorstensen
1614313e5f Update Requirements
This change set updates ceilometer-powervm to be in alignment with the
current global-requirements

Change-Id: If56e584c04e513db0a1f13cd57b06f20d815f343
3.0.0.0b2
2016-06-20 11:15:28 -04:00
Jenkins
f2c6f2c04a Merge "Fix package reference in version code" 3.0.0.0b1 2016-05-26 19:24:52 +00:00
Eric Fried
411bbb50b1 Fix package reference in version code
The package version file erroneously contained quotes here:

version_info = pbr.version.VersionInfo('__package__')

This caused docs builds using setuptools at or beyond 20.2 to fail with:

pkg_resources.RequirementParseError: Invalid requirement, parse error at
"'__packag'"

This change set remedies the line to refer to __package__ (a builtin
variable which resolves to the package name) rather than the literal
string '__package__':

version_info = pbr.version.VersionInfo(__package__)

...and updates the requirements file to use a setuptools version at or
beyond 16.0 to align with openstack's global requirements.

Change-Id: I9ba12bb256c5d3213eb07ddf13351178bf06114b
Closes-Bug: 1585027
2016-05-26 10:07:27 -05:00
adreznec
45809e9418 Add ceilometer-powervm spec dir and template
Add a specs directory structure for ceilometer-powervm and add in a
base spec template for creating new ceilometer-powervm specs

Change-Id: Ic07ebdf0dcdb26b4e6c76e1c45dc8bdb28d0d0ad
2016-05-26 08:54:51 -05:00
Ravi Kota
e904cd0e50 Correct Translation files permissions
Change-Id 'Ib3616fbc2713329a174793634e680f7208049c86'
inadvertantly changed the file permissions from 644 to 755.
This fixes that problem.

Change-Id: I2cae47af11108a68d1aeb7078c5da50ec02839df
2016-05-17 12:54:54 -04:00
Ravi Kota
2e12e1ecc1 Translation files for supported languages
Updated the po translation files for supported languages

Change-Id: Ib3616fbc2713329a174793634e680f7208049c86
2016-05-16 10:47:57 -04:00
Drew Thorstensen
9af4c1f241 Allow multiple session connection attempts
We have seen scenarios where users have rebooted their systems and the
ceilometer-powervm process has started before the backing PowerVM REST
server. This generally indicates a packaging issue (where the
ceilometer-powervm package should depend on the others).  However,
there is the ability in the PowerVM Session to make multiple attempts.

This change set takes advantage of the multiple attempts provided by the
pypowervm session.  That means that if the REST server is booting, the
ceilometer-powervm will wait up to 10 minutes for the REST server to
finish starting.  The REST server should start much faster than that,
and this is just an upper limit timeout.

Change-Id: If9569eccbdb9107e5892f03a91a035e1d5943e5e
Closes-Bug: 1570404
2016-04-19 17:39:48 -04:00
Michelle Mandel
2cc735ebe6 Update comments to accurately describe actions
There were 2 comments that referred to "PowerVM SEA agent" when they
should actually refer to "PowerVM ceilometer compute agent". Updated
them to be accurate.

Change-Id: Ib3c2ab6f142e5e40d9cf9ae3f5875216cec9f03f
2.0.0.0b3 2.0.0 2.0.0.0rc1
2016-03-03 02:09:31 +00:00
Drew Thorstensen
c2a7ec707a Include setuptools version
This includes a workaround to avoid a version of setuptools that affects
the docs build.

Change-Id: Ia065a2f8c9d1365f630ce7ada573e04437e19e92
2016-03-02 19:54:51 -05:00
Steven Royer
5d5f7ac02d Fix typos in inspector
Change-Id: Iee89a2f9197aff3e1f96890128e356baf020bee9
2016-02-18 19:59:52 -06:00
Jenkins
a241affa54 Merge "Replace deprecated library function os.popen() with subprocess" 2016-02-11 13:34:59 +00:00
Ondřej Nový
dafcfb78d7 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: I5c2fedbdb26f2617b99cc15c3f82c89263745977
2016-02-10 23:05:19 +01:00
Jenkins
7dc5bfdf94 Merge "Ignoring .idea workdir used by PyCharm IDE" 2016-02-10 21:46:24 +00:00
kairoaraujo
a3bc6df171 Ignoring .idea workdir used by PyCharm IDE
The .idea is a workdir used by PyCharm IDE from JetBrains and
some files are created on this directory, but aren't necessary
for ceilometer-powervm project.

Change-Id: I0558c8e87058eeafab7a66f29c55c45abcdf0d66
2016-02-10 16:19:24 -02:00
kairoaraujo
2bb305dd39 Port over pretty_tox.sh from nova-powervm
nova-powervm has a bash script that uses the ostestr package to
format the output from tox in a 'pretty' format. It makes it
much more readable. pretty_tox.sh is pulled from Nova and
nova-powervm as-is and enabled in tox.ini.

Change-Id: I9e90c4d595b95ae02be244163f27d87409e3a078
2016-02-10 15:35:29 -02:00
Jenkins
1d895f4b6f Merge "Update requirements" 2016-02-08 22:57:04 +00:00
Drew Thorstensen
c44c1e98ee Update requirements
Updates the projects requirements to match the new global requirements
from OpenStack.

Change-Id: I052575c2752f5b33ff68db07aa4cc52ec6d30aa8
2016-02-08 13:29:15 -05:00
Matt Rabe
bab0d28802 Mock pypowervm out of test_inspector
Replace direct calls into pypowervm with mocks to decouple this
project from pypowervm

Change-Id: I7a2982f1aacd61b42d188e1ba2f3acf05acce225
2016-02-05 21:20:34 +01:00
Drew Thorstensen
77724acfe9 Update flake8 rules
Remove all the flake8 ignore rules.  The core ceilometer project is no
longer ignoring any, and as such the ceilometer-powervm project should
not either.

Change-Id: Ibb10aa723a3a8700c28f58265480e7143d4969b8
2016-01-23 20:59:05 +00:00
adreznec
528675cde9 Do not error if NovaLink not installed
Instead of throwing a fatal error if NovaLink is not installed,
simply warn the user instead.

Change-Id: Ib9d626432a216ade8ca2bc04a4f14d34c8b3989b
2016-01-21 12:47:28 -06:00
Harshada Mangesh Kakad
8e1651bba3 Replace deprecated library function os.popen() with subprocess
os.popen() is deprecated since version 2.6. Resolved with use of
subprocess module.

Change-Id: Ibdcfdf156f03588b152b86401809adcb433e4699
Closes-Bug: #1529836
2016-01-14 06:48:22 -08:00
Jenkins
7cbdf8dcc3 Merge "Change LOG.warn to LOG.warning" 2016-01-04 14:29:33 +00:00
zhangguoqing
936773daa1 Change LOG.warn to LOG.warning
Python 3 deprecated the logger.warn method, see:
https://docs.python.org/3/library/logging.html#logging.warning
so we prefer to use warning to avoid DeprecationWarning.

Change-Id: I2d71a52f6c86bc2def2c3abd0750236a86ccc6cf
Closes-Bug: #1530742
2016-01-04 12:53:50 +00:00
adreznec
c330518f43 Disable installing pypowervm by default
Add a configurable option to choose to install pypowervm from source,
otherwise default to relying on it already being installed

Change-Id: Ie9a9da4caa81d971f11c4c134f3c12552e18dae3
2015-12-19 16:24:46 -06:00
adreznec
7f05a9745f Add compute monitors config to devstack plugins
Make sure the compute monitors for nova are getting set to use the
powervm virt driver.

Change-Id: Ia821225a5e0225c94d5937aa3dc28a2a454eb0da
2015-12-07 11:06:46 -06:00
adreznec
f565a2b64d Add ceilometer-powervm devstack multi-node support
Support running ceilometer-powervm devstack plugins in a multi-node
environment, add README link to examples

Change-Id: Id45fd1dd8974bdf282883866b6fb63b70411c24c
2015-11-30 16:39:44 -06:00
adreznec
dda22a657b Change pypowervm repo location
Update the pypowervm repo location in code and docs
for the pypowervm->powervm github org rename

Change-Id: Ic1f3ea5139a56213fc2ade7127870d3c72557c15
2015-11-18 15:03:45 -06:00
Drew Thorstensen
a5c8f66e18 Switch to develop branch for pypowervm
The master branch of ceilometer-powervm should be paired to the
'develop' branch of pypowervm.

Other stable branches (or release candidates) will eventually point to
version levels that are published to PyPi (or to stable branches).

Change-Id: I4ba962acb322851b982689bb50958769be21c53c
2015-11-04 09:15:29 -05:00
Adam Reznechek
24dfec6c4b Add base devstack plugins support
Add support for installing ceilometer powervm through the devstack
plugins infrastructure. This allows you to simply enable the plugin
in a devstack localrc, provide any non-default config, and run
stack.sh to configure/install it.
- Added plugin files
- Added README
- Added bashate to tox test environments for scripts

Change-Id: I4f95b710026a418bda07767f1e04ddb3fd855316
2015-10-29 21:55:18 -04:00
Jenkins
867eeda4f0 Merge "Translation changes for drop2" 2015-10-30 01:42:16 +00:00
Kyle L. Henderson
21ba3de882 Add ceilometer-powervm translation domain
Since ceilometer-powervm is not in tree with ceilometer, it can't
use ceilometer's translation domain.  This change introduces i18n.py
and the ceilometer-powervm domain.

Change-Id: If8825892d506a1e0344dce888b8357910e3b7da7
2015-10-29 14:51:32 -05:00
Chhavi Agarwal
a94aad7bfa Translation changes for drop2
Change-Id: Ib26bb8172796d7676e8c2aa98e60c18ac100a980
2015-10-29 14:27:24 -05:00
Jenkins
9303d2e1d4 Merge "Translation changes for other languages" 2015-10-21 13:52:26 +00:00
Jeremy Stanley
449564cecb Update .gitreview for new namespace
Change-Id: I4a63f5bab13bcd1aa5d6377be69ff5277c004005
1.0.0rc1
2015-10-17 21:56:01 +00:00
Drew Thorstensen
2bc7031087 Provide dev-ref update
This change set updates the dev-ref documentation for
Ceilometer-PowerVM.

Change-Id: Id6f1a181c3b134488d500f2e04f4690c9d2536df
2015-10-15 14:15:27 -05:00
Chhavi Agarwal
54d9cf1bf4 Translation changes for other languages
Added the translated po files for supported languages

Change-Id: I393ba3ad1ccc7dca9a2dd408d191afebfdf10808
2015-10-05 07:59:28 -05:00
adreznec
475f10ef9b Fixes for python3.4 support
- Removed yasfb from requirements (no longer needed, not py3 compat)
- Changed iops calculation to be compatible with py3 division changes

Change-Id: Ic8a53562be401deaa391d21b5ff6f92ffa7d07d3
2015-09-21 09:03:11 -05:00