51 Commits

Author SHA1 Message Date
Jenkins
b7c11a0f98 Merge "Fix some Markdown formatting issues" 2013-10-31 14:19:15 +00:00
Jenkins
8e285072c9 Merge "Fix shocco errors and warnings" 2013-10-31 14:18:32 +00:00
Jenkins
c8aca45ecc Merge "Ensure cm-api is ready before start cm-alarm" 2013-10-31 14:16:48 +00:00
Thomas Maddox
246d9bbd4a Add PostgreSQL option for Ceilometer backend
Adds the PostgreSQL case for a Ceilometer backend and
initializes Ceilometer accordingly.

Closes-Bug: #1244381
Change-Id: Iefc5bb7eea6e9efa1f2ad04f1f8dc714e3404c9c
2013-10-25 13:09:22 +00:00
Adam Spiers
6a5aa7c6a2 Fix some Markdown formatting issues
Address miscellaneous issues with Markdown formatting in comments which
are consumed by shocco when generating the online documentation.

Change-Id: I953075cdbddbf1f119c6c7e35f039e2e54b79078
2013-10-24 17:38:19 +01:00
Mehdi Abaakouk
1ed64cbbf0 Ensure cm-api is ready before start cm-alarm
The patch ensure that ceilometer-api is ready before
starting the ceilometer-alarm-evaluator service.

This ensure that ceilometer-alarm-evaluator doesn't log a error message
on startup due to not yet available ceilometer-api.

Closes bug: #1243249

Change-Id: Icff3e972ec485f26c014071f68079593a14b7240
2013-10-24 17:32:20 +02:00
Adam Spiers
cb961597cc Fix shocco errors and warnings
A few Markdown-oriented issues were causing Docutils errors to
leak into the end-user docs on http://devstack.org

Change-Id: I51fa9698afb1bfb48596478d83bd1fdcd84ac52e
2013-10-24 15:43:05 +01:00
Mehdi Abaakouk
6d4a9a87b7 Don't kill ceilometer prematurally in devstackgate
This change ensure that 'ceilometer' processes are not killed
by stack.sh when USE_SCREEN=False

Fixes bug #1234254

Change-Id: I48dbf18ea0b169cdb5295a709d82c025f6fb8930
2013-10-17 19:20:15 +02:00
Eoghan Glynn
19eed74422 Modified ceilometer alarm evaluator console script
Take account of the modification to the alarm evaluator
console script naming in the following commit:

  https://github.com/openstack/ceilometer/commit/bad5f18e

Change-Id: Ic7fc3b8ad7be9dd2a5b5ed3c07e169691229bb4d
2013-09-23 11:36:00 +01:00
Jenkins
8a67fec119 Merge "Rename ceilometer alarm service name" 2013-09-06 16:32:51 +00:00
Julien Danjou
69f745748d Switch Ceilometer default backend to MySQL
MongoDB 2.4 not being available in Ubuntu cloud archive for a while now,
and the catch up done by this driver allows me to think it might be a
good idea to switch by default on SQL for now on devstack.

We can add another job to have Ceilometer tested on MongoDB too later.

Change-Id: I74c3c436d009fed898c5ae4ffb82763e9a337d90
2013-09-05 13:53:28 +00:00
fujioka yuuichi
b53bce1c26 Rename ceilometer alarm service name
Rename service name "ceilometer-alarm-eval" to
"ceilometer-alarm-singleton" and "ceilometer-alarm-notify" to
ceilometer-alarm-notifier" in this patch.

Change-Id: I6619cc02874f6f59c43ba2952325e9d0533e395d
2013-09-05 19:43:03 +09:00
Jenkins
bc522d87f8 Merge "Launch ceilometer-alarm-* services." 2013-08-01 11:51:45 +00:00
Eoghan Glynn
8d13703437 Launch ceilometer-alarm-* services.
Add ceilometer-alarm-notify and ceilometer-alarm-eval to the set
of ceilometer services launchable by devstack when explicitly
enabled in the localrc.

Change-Id: I1575437c588cf9079f1e3a6c855123eae09c5dac
2013-07-30 18:41:54 +01:00
Jay Lau
73bd1233a7 Do not set os_aut_url for ceilometer
When install ceilometer with devstack, if do not set environment
variable OS_AUTH_URL, then devstack will set os_aut_url as empty
in /etc/ceilometer/ceilometer.conf, this will cause both
ceilometer-agent-central and ceilometer-agent-compute cannot start.

Fix bug 1205776

Change-Id: I32c77c92dc2e9d03c86e703f170e0216dd829a61
2013-07-28 18:02:58 +08:00
Guangyu Suo
9778b3cb68 Add mysql support for ceilometer storage backend in devstack
Currently, devstack only support mongodb as ceilometer storage backend,
this patch is to add mysql storage support for ceilometer.
If you want to use mysql as backend during developing, you can specify
CEILOMETER_BACKEND=mysql in localrc file.
If you use mongodb, just ignore the parameter.

Change-Id: Ic2f475a9baa6d71a43cd29a6ca777ac972e47b0a
Implements: blueprint ceilometer-mysql-support
2013-07-18 11:14:44 +08:00
Gordon Chung
5ecfd48c51 ceilometer switch to setuptools console scripts
ceilometer has dropped bin scripts and switched to console scripts

blueprint setuptools-console-scripts

Change-Id: If6dff10471e351fe3640a60cc45fef719f671997
2013-06-06 00:25:16 -04:00
Gordon Chung
8f3af42f56 ceilometer does not set db in conf file
Set [database]connection option to mongodb rather than sqlite as mongodb
is the only fully supported db.

Change-Id: I2b9fbc65de4476593d456a782dbc7e6540a75141
Fixes: bug #1186240
2013-05-31 09:02:41 -04:00
Jenkins
26f7a5ae4e Merge "fix ceilometer ENABLE_SERVICES comment" 2013-05-15 16:45:48 +00:00
Shengjie Min
eda5579e1c fix ceilometer ENABLE_SERVICES comment
- keep it aligned with the Ceilometer doc

Change-Id: Ib1ca0cfbeafc61723e5d4fe79da6355db7d76f0c
Fixes: bug #1179590
2013-05-14 15:42:22 +01:00
Gordon Chung
701eb61931 ceilometer setup incorrectly sets notification_topics
drop glance_notifications from notification_topics in ceilometer setup

Change-Id: Ib18b4193af9df925b4ce4dbe3faf4c6a756ed03f
Fixes:Bug #1178704
2013-05-10 10:47:50 -04:00
Émilien Macchi
b2ef890db3 Add Debian OS support in DevStack
Fix bug #1176216

Change-Id: Ia94c332f02a921a936db249dc3b4a7ae4eff0400
2013-05-09 00:18:37 +02:00
Dean Troyer
cc6b443545 Formatting cleanups, doc updates and whatnot
Change-Id: Ica8298353be22f947c8e8a03d8dc29ded9cb26dd
2013-04-09 14:05:32 -05:00
Lianhao Lu
bd461a3692 Remove unused option for ceilometer.
This fixed the bug #1163158.

Change-Id: Ib93e5b26d1f1309edf2baa5c147337db1411eee5
2013-04-02 16:00:36 +08:00
Sean Dague
584d90ec56 add emacs shell-script tagging
for files that don't start with a #! or end in .sh, the added tags
are nice for emacs users to automatically switch to the right mode.

Change-Id: If4b93e106191bc744ccad8420cef20e751cdf902
2013-03-29 14:36:49 -04:00
Jenkins
820467f20f Merge "Simplify database_connection_url" 2013-03-14 21:12:18 +00:00
Eoghan Glynn
285c75e7a4 Allow mongod service to launch on Fedora
Fixes bug 1144907

Previously, the mongod service may fail to launch, if the eager
filesystem freespace check trips over an SELinux AVC or finds
a lack of freespace (depending on the up-to-datedness of the
selinux-policy-targeted package and the disk size/usage in the
hosting instance).

We work around these issues by ensuring the selinux-policy-targeted
package is up-to-date when ceilometer is enabled on Fedora, and
also setting the --smallfiles option.

Change-Id: I74f21662aedf9cc07b9a335d22b833a8a80dfce2
2013-03-07 12:58:34 +00:00
Attila Fazekas
7e79d9139f Simplify database_connection_url
* does not expects dynamic scoping.
* does not uses eval.

Change-Id: I5ba4e5b7ffaabbb3c2bddadf9e53a2875de8b7c0
2013-03-03 13:13:36 +01:00
Eoghan Glynn
8c11f5612b Allow qpid to be selected as AMQP provider on precise
Fixes bug 1137667

Previously the auth/sasl config for qpidd was broken, and the
openstack services using RPC were not properly configured.

Now we ensure that:

- the admin qpid_username/password are configured for all services
  (as the qpidd ACL config denies all access to non-admin users)

- the PLAIN sasl mechanism is configured for qpidd (otherwise the
  qpid_password is not propogated)

- the qpidd process has read permission on the sasl DB (otherwise
  thw admin user/apss cannot be verified even if set)

Change-Id: Id6bd675841884451b78f257afe786f494a03c0f7
2013-03-01 12:35:35 +00:00
Eoghan Glynn
d36268af07 Support qpid as message provider for ceilometer
Previously, the RPC backend was hardcoded to the appropriate
dirver for rabbitMQ only.

Now we allow qpid to be used as an alternative.

Note that ZeroMQ is not tested or supported as yet.

Change-Id: If9a69a4c52f046fc6e3530b47542d55438787cea
2013-02-22 22:02:31 +00:00
Yunhong, Jiang
8407b2de2a Copy the pipeline configuration file
Update the pipeline configuration file for ceilometer

Change-Id: I7a46f61391b76447d7973be5c43b7d0360c56da0
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
2013-02-07 13:48:33 +08:00
Jakub Ruzicka
4196d5565e Introduce get_python_exec_prefix function.
get_python_exec_prefix returns the path to the direcotry where python
executables are installed, that is /usr/bin on Fedora and /usr/local/bin
everywhere else.

It is used to properly locate OpenStack executables.

Fixes: bug #1068386

Change-Id: I228498ebe2762568d00757d065e37377ee2c8fb3
2013-01-30 16:33:43 +01:00
Attila Fazekas
91b8d13eda Fix "sudo: sorry, you must have a tty to run sudo"
On many systems the requiretty sudoers option is turned on by default.
With "requiretty" option the sudo ensures the user have real tty access.

Just several "su" variant has an option for skipping the new session creation step.

Only one session can posses a tty, so after a "su -c" the sudo will not
work.

We will use sudo instead of su, when we create the stack account.

This change adds new variable the STACK_USER for
 service username.

Change-Id: I1b3fbd903686884e74a5a22d82c0c0890e1be03c
2013-01-11 09:15:30 +01:00
Jenkins
5e266052df Merge "Create signing_dir for ceilometer." 2013-01-10 09:23:51 +00:00
Lianhao Lu
8c54849d79 Create signing_dir for ceilometer.
Create and initialize the signing_dir for ceilometer keystone
authentication. This ensures the ceilometer to use its own PKI cache
directory for authentication and avoids the authentication error due to
the invalid cached certifications.

Change-Id: I6fbc364695ae9be800245d14fd8945d531679550
2013-01-10 08:26:42 +08:00
Yunhong, Jiang
e583d9b8f9 Add ceilometer client in devstack
Ceilometer client CLI is helpful to develop ceilometer related code. Add
it to devstack also involve more developer to use it.

Change-Id: I4147e50c00cb520ec15d63a0c34524ba8cb6654f
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
2013-01-09 10:33:41 +08:00
Dean Troyer
6d04fd7ba5 Holiday docs and comment formatting cleanup
Change-Id: Ia4ca88c67d3b94e306a79a669805a2fa1b0dc069
2012-12-28 18:03:10 -06:00
Eoghan Glynn
14246ac16b Provide credentials via ceilometer config file
Fixes bug 1076831

Previously we passed these credentials to the ceilometer central
agent via the OS_* environment variables.

Since these credentials are now needed by the compute agent also,
and have already leaked into the config file to enable the keystone
auth token middleware, we now switch over to using the config file
only and drop the environment variable usage.

Change-Id: I0298d711905a99aa5355fe034bb0e51e53b3be21
2012-11-14 16:27:52 +00:00
Doug Hellmann
4a2b1c6611 Finish configuring ceilometer authentication
Copy the policy.json file for ceilometer into place
and configure the API service to find it.

Create a service user for ceilometer when the service
is enabled.

Use the service user for the admin_user and admin_password
in the ceilometer config file so the middleware can
verify tokens.

Change-Id: I39be13da0c86704d35e0ce3dc3d27fd38d787058
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2012-11-05 06:54:36 -05:00
David Kranz
867cf42ebd Clean database when configuring ceilmeter.
Change-Id: If9e35f645b35fbe2e2550930da6b909a40f309b1
2012-10-26 13:32:22 -04:00
Julien Danjou
4b3e4e529f ceilometer: build the configuration file from scratch
Stop using the one from nova. Fix the keystone_authtoken default
auth_protocol.

Change-Id: Id9b30a4105a7187966c3953958477967cf58fe9b
2012-10-24 17:57:15 +02:00
Dean Troyer
3cf1ffbcdd Fix NOVA_CONF usage
NOVA_CONF now includes NOVA_CONF_DIR, fix remaining usage in lib/nova

Change-Id: I750d6e3ad73bed5c8a911f6dfe61770bbc804704
2012-10-03 10:49:15 -05:00
Doug Hellmann
53a5f42e78 Fix ceilometer configuration
Correct the use of NOVA_CONF to find the source file
for the ceilometer configuration files.

Set up notifications and RPC to use the classes from
ceilometer.openstack.common instead of nova.openstack.common.

Run the ceilometer compute agent under "sg libvirtd"
so it has permission to talk to libvirt.

Change-Id: I75b2e563d654f4f89b182e146e54572618f25261
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2012-10-02 22:26:39 -04:00
Eoghan Glynn
ad80eadb08 Config for ceilometer gathering from glance
Some changes are required so that ceilometer can gather usage data
from glance (notification & polling) out-of-the-box in devstack:

 - configure glance to emit notifications if rabbitmq or qpid
   is enabled

 - configure the ceilometer collector to consume notifications
   on the default glance topic (glance_notifications.*)

 - pass credentials to ceilometer central agent so that it
   authtenticate polling calls to glance

Change-Id: I0eac223eddb615266e28447b18fcaaadcd40dddf
2012-09-27 17:55:37 +01:00
Jenkins
8ca43bacc4 Merge "Implement screen process stop() function" 2012-09-24 20:33:17 +00:00
Doug Hellmann
c5259b4ab5 Fix test for creating ceilometer conf dir
Fix the test run before the ceilometer configuration
directory is created so that the dir is made if
it does not exist.

Change-Id: I2d6acd4fe7959f976ce99582aed69a49fc3f212e
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2012-09-22 10:52:31 -04:00
Dean Troyer
699a29f72d Implement screen process stop() function
Implements screen process stop in ceilometer, cinder, glance, heat, n-vol

Change-Id: Ic5e02926f026d0e6f4b39846bfe77634dd414c60
2012-09-21 14:02:38 -05:00
Dean Troyer
7903b795dd Add non-verbose output mode
Set VERBOSE=False to turn off the noise of stack.sh output.  All
output still is written to the logfile if LOGFILE is set.

Rebased

Change-Id: I316bc4d68c997ec907a48e720e2f7778428d935b
2012-09-17 19:38:23 +00:00
Surya Prabhakar
31d31855fe Adding ceilometer-api for devstack
unable to use ubuntu repos(apt) since they were having previous
Flask version. Adding it in files/pips/ceilometer-api

Change-Id: Ia397468eacd3cd2b4233617e1ffeb763ac207478
2012-09-17 20:25:41 +05:30
Monty Taylor
9fbeeddc3b Support the possibility of using entry-points.
If console scripts are generated via entry-points, they will go into
/usr/local/bin on python setup.py develop and they will not be found in
/opt/stack/$PROJECT/bin any more. This patch supports a transition to
entry-points console scripts, but should still allow the old thing too.

Change-Id: I816f5f796ad00ac55a8352743ba01723df140072
2012-08-17 19:04:54 -04:00