Change-Id: Idcd46ce2d50c8d3d135e52153f9da4250c5b5ae7
fix ci errors
Change-Id: I2c75fdb1698a6e87f04951dcbe7b0dc5e2bd95e5
update unit test to create test directory
Change-Id: Ie650de50421be2a5ffc12114a72184b2d88c3972
fix use user home if cannot write to /var/lib/ceilometer
Change-Id: I3083c8004a325506e00fe6d57c3be47f589126f2
revise path handling for mock
Change-Id: I9f072383c954b962ce6ca9daec879832f37672be
* Enable upload-git-mirror job to replicate to github.ibm.com
* Enable python3 job and drop py2 job
* Fixed the UT errors on python3
* Fixed the pep8: E501 line too long (83 > 79 characters)
Change-Id: I6a15ff396282032e91732eaad632ea65db7c18e0
If a zvm virtual machine did a resize once, its userid changed.
Right now, when inspecting nic data, two different userid will
have two resource IDs generated which will make consumer confused.
Fix this bug by remove vswitch and userid from nic_id.
Change-Id: I9cedf71be5702d4f31b80bc91fbc23267dfed5a9
CA file is a new added config introduced to be used by
Ceilometer-zvm. When zvm inspector needs to communicate with xcat,
it will add the CA file into https communication so it can verify
the xcat is the one that zvm inspector wants to communicate with.
See following link for more info:
https://bugs.launchpad.net/ossn/+bug/1188189
Change-Id: Ib7f1ce2d621f6dd2b5d3b9a63a004abffbc3f223
Add quiet option in xdsh call to ignore warnings and ssh banner message.
To fix the defect that xdsh call failed when ssh banner enabled.
Change-Id: Ifbc13e9868a968afe6f66ed7383eee9961a9201d
There's no performance data return from zvm management tool if the
virtual machine in shutdown stat.
In current implementation, InstanceNotFoundException would be
raised in this case.
With this change integrated, zvm inspector will check instance's
power_state at first, then try to get the data.
Also did some change to ignore invalid data format exception that
in case of all virtual machines on the compute node are in shutdow
state.
Change-Id: I02b69adc6e818a69d1e6887a3344f6bf0b344aa7
Replace assertEqual(None, *) with assertIsNone in tests to have
more clear messages in case of failure.
Change-Id: I86fc4a80bf853e76374f7d6a06f954bad614c795
Closes-bug: #1280522
inspector method _update_inst_nic_stats is used to get nic data
from zvmutils.virtual_network_vswitch_query_iuo_stats, and deal
with the data then update the nic data into inspector cache.
Change-Id: I7ff6f273535442a5dd5f50db7b5f9f36dd5d3fd9
The new function virtual_network_vswitch_query_iuo_stats is used
to get all nic stats that connected to all vswitches.
Change-Id: Ic1536f379f1c16dfcb21fd2c37c9d1d889aa8a90
In _get_inst_stat, would check cache data expir or not, then update
cache if needed, at last, return instance data per latest cache.
Change-Id: Iaa499622f1f4e38182a50249f8c63b02e7a36465
if instances is {}, then update all instance cache data, else
update instance performance cache data.
Change-Id: I52cdc82878749bf08077aab3be8f5db6007903aa
_update_inst_cpu_mem_stat will call zvm utils.image_performance_
query to get instance performance data and deal with the data,
then update it in inspector cache.
Change-Id: I448dcee055b52a5a4e7194fd94eae7670ec5a525
The function image_performance_query call zvm SMAPI to get instance
performance data, includes cpu number, cpu times and memory usage.
The function will be used to inspect instance cpu and memory usage.
Change-Id: Iba99caf845498f5f794736a003c5f8cff6bb0730
utils.list_instances is used to get instance list from the zvm
host that same with ceilometer compute agent.
This method query all nodes from zvm table in xcat database, then
exclude xcat master, zhcp and zvm host nodes.
Change-Id: I7b4dd17d4bcb60d9ba272cb474c9c5baf37e1391
CacheData class is used in zvm inspector to cache instance data
when getting instance performance info.
Change-Id: Icc3422d8322d7246840841fbde7bb3abb6ce7213
import zvm utils.py from nova-zvm-virt-driver.
utils.py in ceilometer-zvm is a subset of utils.py in
nova-zvm-virt-driver. Mainly includes xcaturl, xcatconnection and
other utilities.
Change-Id: I3487762f73e3f9cbf025856ba94a4a90bc2d83ee
Add ceilometer_zvm/compute/virt/zvm/inspector.py, ZVMInspector
is inherit from ceilometer.compute.virt.inspector:Inspector.
Change-Id: I413b7d0ef2adb3f5e7851dbe27608826d3a24e0d