stestr is recommended by OpenStack Project Testing Interface for running tests
[1]. This change migrates to stestr for running unit tests and coverage
job. Modified `cover` env allows running it as Zuul job and visualising
its results in Gerrit.
[1] https://governance.openstack.org/tc/reference/pti/python.html#python-test-running
Change-Id: I9e8b79d7a18cd36946daff10abb1a2f43b1aa3a1
Those tests do not work on systems that are able to create AF_INET6 socket for
IPv4 addresses (e.g. Darwin). They also don't test anything since they're just
mocking stuff to check the logic.
Change-Id: I2205b969db09760dd96cfbc0fd701896ef944cf4
Ceilometer creates metrics that will never get measures (service not
polled, notification not configured).
This is because we create all metrics during resource creation. That was
done sometimes ago because Gnocchi was not provide metrics creating
during batching process.
But since a while now, we also create metrics (if missing) during the
batch processing.
This change removes the creation of metrics during resource creation.
All metrics with measures got created during the batch call.
This stops to have metric without measures in Gnocchi.
Change-Id: I3f3b805722b11029aefdb76bae93413cb32ecff6
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I6f1df527590d7b9ffdf7dd97c0fedf27f11b9e21
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Since kernel v4.6, virtio balloon driver commit 5057dcd0f
introduced metric VIRTIO_BALLOON_S_AVAIL,
corresponding to 'Available' in /proc/meminfo.
Libvirt exposed this metric as 'usable'.
As 'Available' of meminfo is an estimate of how much memory
is available for starting new applications, without swapping.
It's a better metric for calculating memory_usage.
Change-Id: I3b935f1fc2ed74ca45b26990c4f2bd5996e1dfea
Signed-off-by: Chen Hanxiao <chenhx@certusnet.com.cn>
Curly quotes(Chinese punctuation) usually input from Chinese input method.
When read from english context, it makes some confusion.
Change-Id: I76f9d6102dbf72f234e10ba2ff426682011a5e79
Theses features doesn't work well, rate-of-change metrics can still
wrongly be computed even with Pipeline partioning enabled. Also backend
like Gnocchi offers a better alternative to compute them.
This deprecates these two features, to be able to remove them in a couple
of releases.
Change-Id: I52362c69b7d500bfe6dba76f78403a9d376deb80
This metric has been removed in 2015 when the Ceilometer WSGI middleware has
been removed from this repository. The new ceilometermiddleware package does
not provide it.
Change-Id: Ib0aa454f3f14efa034491a0f113998cb598f9628
since it is ceilometer's devstack plugin who enables/starts gnocchi
services, it is appropriate to also stop them during unstack phase.
Change-Id: I97747a98ddb139a6f89fa54b4d17e0ca1d1bdf62
It was mentioned "7 different transports", but there just shows 5
transports. I supplement 2 missing transports "zakar" and "https".
Change-Id: If5db5e31f7c7d1101ccf4d285cfb67b5af1944cb