48 Commits

Author SHA1 Message Date
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
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
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
chhagarw
0077c9d014 Translation changes
Add the required pot files for translation support

Change-Id: I036ddc3fc0656aec46e68886face53f59b1f35e9
2015-09-19 11:17:17 -04:00
Jenkins
411bbced03 Merge "Fix punctuation in messages" 2015-09-08 23:32:56 +00:00
Eric Fried
65c780f0f6 Fix punctuation in messages
Messages should end with a period.  Fixed several instances in the
project.

Change-Id: I76a2c93d4823e45f787ba350c9b52c8a77bed9a6
2015-09-08 10:08:19 -05:00
Drew Thorstensen
1885f85438 Handle unstarted instances
In the rare event that a VM is queried for CPU utilization before its
first boot, the entitled cycles may be 0.  This resulted in a divide by
zero error.  This change detects that scenario and removes the divide by
zero possibility.

Change-Id: If37422e7b501c60ad2b1cb610b8c7802e6543942
Closes-Bug: 1492831
2015-09-06 15:48:13 -04:00
Drew Thorstensen
b72165c66e Add babel config
The babel.cfg file identifies which files should be used for
translation.  This change set adds the file and identifies that only the
python files should be considered.

Change-Id: If578b625a82229d61d75f7c551c970edd04e1373
2015-09-03 10:18:13 -04:00
Jenkins
8d7cbb74b0 Merge "Account for live migrated VMs" 2015-08-25 21:14:18 +00:00
Jenkins
a143e27366 Merge "PowerVM Storage Inspector" 2015-08-25 21:00:49 +00:00
Drew Thorstensen
f7b17520a9 Account for live migrated VMs
In PowerVM, when a VM is migrated, the 'metrics come with it'.  That
means that the metrics are cumulative and you can be assured that when
it is on a new host, its metrics are still valid.

This presents some complications.  The metrics are pulled from the host.
To determine rates, we ask the host for the previous sample and the
current.  Previously we had assumed that if the previous sample was
None, it must be a new VM so all the traffic from the current is 'new'.

With live migration taken into account, we can not do that.  There may
be months of CPU, Network and Storage data in that VMs metrics.  This
really skews the metrics in undesirable ways.

This change set will skip instances (for a given inspection cycle) that
are in the current sample but not the previous.  This does lose a sample
cycle, but ensures that we maintain accurracy (which is more important).

Change-Id: Iba7f1287b3433acd8517947e01cbfa14fe93413c
2015-08-25 15:09:29 -04:00
Drew Thorstensen
736e30c8c0 PowerVM Storage Inspector
This change set provides base support for the PowerVM compute inspector
to collect the storage devices.

Since PowerVM monitors storage metrics on the 'buses' (rather than a per
device) the metrics are reported based on the bus.  This may be a
virtual SCSI bus or a virtual Fibre Channel bus.

Change-Id: I704c7e79e825b7d5f0f8924c28d502ccbfb9330d
2015-08-25 15:07:58 -04:00
adreznec
95b3be83b9 Support dynamic documentation versioning using pbr
- Add a version.py file to allow querying of the pbr version for the package
which is pulled from the git tags
- Use this when doing the sphinx docs generation

Change-Id: Ic892b131c9be2cc65a2b468c9cdb2ff23d1d8743
2015-08-25 13:56:02 +00:00
adreznec
c4cfffcc84 Update documentation framework, add base devref details
- Add oslosphinx requirement
- Add base support for devref generation to the project
- Add basic level of documentation, with TODOs for future updates

Change-Id: I6798a4fdf380a56112c3b65350bf61dc410b32bd
2015-08-24 13:36:40 -05:00
Drew Thorstensen
0d4109519e Remove cpu_sink as it does not pertain to powervm
The cpu_sink as defined in the default pipeline.yaml does not apply to
PowerVM.  This is because the PowerVM compute inspector has a CPU
Utilization inspector built in.

This change provides an updated default pipeline.yaml that is applicable
for operators wishing to make use of the powervm compute inspector.

This change also removes the network sink as that was also an issue as
network metrics came back.

Change-Id: I4e7cae715fc77c5e399bd3c6d33afdc8fa02d890
Closes-Bug: 1475362
2015-07-31 09:12:44 -04:00
Drew Thorstensen
c1b75d2575 Implement the network stats for PowerVM
This change set implements the network stats for the PowerVM hypervisor.
It provides both rate based and absolute stats.

Partially Implements: bp/powervm-compute-inspector

Change-Id: I7c07691e61c8f5a6d5cb28185c90cdecb5b47bf6
2015-07-24 10:41:37 -04:00
Drew Thorstensen
a0d328df08 Add helpers to the pypowervm adapter
Helpers are a utility within the pypowervm adapter that help with edge
scenarios that can occur when interacting with the API.  This change set
adds two of the more common helpers to the ceilometer-powervm adapter
creation.

The first is the log helper.  In the event of error scenarios, this
helper will log the error.  The second is the helper for the vio busy.
In the case of a Virtual I/O Server being busy, this will retry the
requests after a short period of time.

Change-Id: I65634f394416714c452fbd9fdc48db87b9c8ed61
2015-07-21 09:46:09 -04:00
Jenkins
7db154ac92 Merge "Implement the CPU stats for PowerVM" 2015-07-16 12:52:43 +00:00
Drew Thorstensen
3c671dc1cd Implement the CPU stats for PowerVM
This change set implements (and adds unit tests) for the PowerVM CPU
stats.  The stats included are the CPUStats and the CPUUtilStats.

Partially Implements: bp/powervm-compute-inspector

Change-Id: I050ad3af38171bd9fb990264a921b013e2791a93
2015-07-16 08:12:45 -04:00
Drew Thorstensen
efb6388d87 Update the entry point to be correctly formed
The entry point for the PowerVM Compute Inspector was ill formed.  This
change set fixes the format in the setup.cfg so that the agent can
install properly.

Change-Id: Iae71b85b8f59f38a7017ed6c5bba9a68fe649eb9
Closes-Bug: 1475017
2015-07-15 16:35:16 -04:00
Drew Thorstensen
38bda20d72 Initial PowerVM Inspector Framework
Provides the initial structure for the inclusion of PowerVM as a plugin
based compute inspector.  Also includes a fixture for upcoming unit
tests.  Implementation of the inspector functions are to be included in
upcoming change sets.

Partially Implements: bp/powervm-compute-inspector

Change-Id: I613161f2fe368b926bd679685b9beeff27a52896
2015-07-06 16:19:49 -04:00
Adam Reznechek
27ef4d0a4c Adding base infrastructure to project for tests and docs
Added base framework for agents and tests
Added base docs infratstructure for Sphinx with links back to
readme and contributing files

Change-Id: I8ed56fb60e73456bc8c44fef4bd6089e1793a520
2015-02-04 10:11:09 -06:00
Adam Reznechek
ff24e565f7 HEAD cleanup of repository before open sourcing
Removal of sensitive data from the HEAD before cleaning history

Change-Id: I483eb1de0798d929ffe64eba30ea6840dbd7f9ca
2015-01-26 13:54:29 -06:00
Dominique Clain
f03e593bc3 Adding sonar property file
Change-Id: Iad02435f677b01ff9296f22297ce0032e887d2c5
2014-11-11 16:26:55 -06:00
Drew Thorstensen
badf05a969 Import python-powervm into ceilometer-powervm
This change set supports bringing in the python powervm REST API
library for initial use within ceilometer-powervm.

This change also fixes pep8 issues, mainly around the copyright rules
that are needed (do not copyright empty files).

Also updates the tox file such that we run the new oslo concurrency
as ceilometer removed the integrated package.

Change-Id: I12739ca702e004cd048067ad25e9e07d1ef106e6
2014-10-31 10:16:25 -05:00
Eric Fried
3682214b7d Fix title underline
System Message: WARNING/2 (HACKING.rst, line 2)

Title underline too short.

Change-Id: Id2052f3ac35a2867ec707e18365a595d6002d8e1
2014-10-23 14:24:28 -05:00
Adam Reznechek
0aa9e2033e Fix ceilometer-powervm setup.cfg for renaming
After renaming from ceilometer-powervm to ceilometer_powervm some
instances in setup.cfg were incorrectly changed to
ceilometer_powervm. This changeset fixes those instances.

Change-Id: Id495869c37678525a25e74758991edd58adf703e
2014-10-23 09:57:17 -05:00
Adam Reznechek
a540907f32 Initial Load of Ceilometer PowerVM Project
Initial work to enable the Ceilometer PowerVM project in git.

The work done here provides:
 - .gitignore - Indicate which files not to track within Git.
 - .gitreview - Input to the git-review command on how to send to
                Gerrit.
 - .testr.conf - Conf file input for the testr command (UT)
 - CONTRIBUTING.rst - Information on how to contribute.
 - HACKING.rst - Information on what needs to be done for updates.
 - LICENSE - The license for the project
 - README.rst - Information on what this project is.  Currently this is
                the blueprint.
 - openstack-common.conf - Required openstack configuration for all
                           projects
 - setup.cfg - Input to the setup.py on how to execute certain actions.
 - setup.py - Used for build of the project.
 - requirements.txt - Required packages (and levels) to run the code.
 - test-requirements.txt - Required packages (and levels) in addition
                           to the requirements, that indicates what is
                           needed to run the UT.
 - tox.ini - The input for the tox commands.

In addition, a base set of packages for the agent and unit tests were
loaded in.

Change-Id: I49f23751b8694f6e3595fe8b4f39822737e68f31
2014-10-23 09:41:37 -05:00
Clain, Dominique (DOMINIQUE)
49b1b0b0bc Initial empty repository 2014-10-17 12:52:56 -05:00