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
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
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
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
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
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
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
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>
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
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>
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>
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
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>
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
unable to use ubuntu repos(apt) since they were having previous
Flask version. Adding it in files/pips/ceilometer-api
Change-Id: Ia397468eacd3cd2b4233617e1ffeb763ac207478
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