31 Commits

Author SHA1 Message Date
Nicolas Simonds
8f084c6b85 use "rabbit_hosts" config option instead of "rabbit_host"
This allows for easy client configuration against clustered RabbitMQ
setups.  Does not break existing configs.

Change-Id: I2b180f8860a727e35d7b465253689e5e8c44eb98
Closes-Bug: 1286411
2014-02-28 17:03:34 -08:00
Ian Wienand
aee18c749b Enforce function declaration format in bash8
Check that function calls look like ^function foo {$ in bash8, and fix
all existing failures of that check.  Add a note to HACKING.rst

Change-Id: Ic19eecb39e0b20273d1bcd551a42fe400d54e938
2014-02-28 07:59:03 +11:00
Sahid Orentino Ferdjaoui
e9648276a6 Removes the dependence with aptitude
Removes the dependence with aptitude by replacing
the call of:
  aptitude purge -y ~npackage by apt_get purge -y package*

Change-Id: I08875ffad9dc6293047827666f02453a355b16ea
Closes-Bug: 1281410
2014-02-24 09:41:07 +01:00
Ben Nemec
ec5918f2f6 Retry rabbitmq password change
Due to the bug referenced below, on Fedora it is possible for
the rabbitmq password change to fail the first time rabbitmq is
started.  This change adds a retry loop to avoid the problem in
devstack.  One retry should be enough in most (all?) cases, but
this will retry up to ten times just to be safe.

Note that just retrying the password change is not enough.  The
rabbitmq-server service must be restarted as well.

Change-Id: I403dcd503aa8e74e2ba6312a0decf0d4fd0d8795
bz: https://bugzilla.redhat.com/show_bug.cgi?id=1059028
2014-01-30 18:53:19 +00:00
Sean Dague
2bb483d32e clean up ubuntu versions
oneiric is long dead, remove references to it whenever possible
(one more subtle issue in cinder should be a seperate patch). This
includes removing the oneiric only tool build_uec.sh.

also remove the bulk of references to quantal, which is 8 months
out of support. note: raring only has support for the rest of the
month.

Change-Id: Ib17502be7572af76dc95560615221b48b970a547
2014-01-11 19:13:47 -05: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
Sean Dague
101b424842 fix whitespace in the rest of lib/*
this brings this in line with bash8 checker

Change-Id: Ib34a2292dd5bc259069457461041ec9cd4fd2957
2013-10-22 13:02:23 -04:00
Jenkins
677f225091 Merge "remove useless step in cleanup_rpc_backend" 2013-10-18 05:01:08 +00:00
Jenkins
f31efd89c7 Merge "refine rabbit cleanup" 2013-10-18 04:43:39 +00:00
DennyZhang
557744faec refine rabbit cleanup
Beside it's good to killall -9 epmd,
if killall epmd fails

Change-Id: Ide90ef8ac3339bd70d991666ce0d3550a088670b
2013-10-14 12:21:29 -05:00
DennyZhang
c7a92800c9 remove useless step in cleanup_rpc_backend
It shall not make dir of /var/run/openstack for the cleanup operation.

install_rpc_backend will make the directory, which is covered by another
take care of this.

Change-Id: I2bf1bfb4a6b409cc04f2d7b94dd58627e0134b71
2013-10-14 00:51:19 -05:00
Vincent Hou
93a7a50c1d Add the creation of /var/run/openstack when zeromq is chosen
Fixed Bug 1200539.

Change-Id: I270623da7026e94d9ece4d5f510cad5a6c4d79ff
2013-09-27 06:19:31 -04:00
Attila Fazekas
a3dc399965 QPID default host
Using SERVICE_HOST as a default QPID_HOST.

Change-Id: I65df0ea4be7df37d4d6f22591b175870808a5c84
2013-07-12 19:29:41 +02:00
Jason Dillaman
056df827ff Set QPID_HOST parameter to better support multi-node mode
When deploying OpenStack in a multi-node configuration,
the Qpid clients need the hostname of the potentially
remote Qpid server in order to permit the necessary RPC
communication between components.

Fixes bug #1196521

Change-Id: Iee3c3747cedea9488ec345e78f8eddbc6e850573
2013-07-01 08:52:50 -04:00
Jenkins
3721657b27 Merge "ZeroMQ driver to default to redis matchmaker" 2013-05-28 20:56:06 +00:00
Eric Windisch
800bf387b3 ZeroMQ driver to default to redis matchmaker
Switching to the redis matchmaker.

The localhost matchmaker does not presently work.
Also, the localhost matchmaker could not work for
multi-host setups.

Change-Id: I81a26b9af78328e360a18b87371c619e194365d2
2013-05-24 12:41:38 -04:00
Eric Windisch
767c6dfa0e Create usable IPC directory for ZeroMQ
By default, the zeromq driver looks for
/var/run/openstack which needs to be created and
given the right permissions.

It is easier and just as safe in the case of devstack
to just use mktemp to establish a temporary working
directory.

Change-Id: I4cec33e49d2b042a244420fb40d83d476e4971cd
2013-05-24 12:04:10 -04:00
Jenkins
ad573f8543 Merge "Only search the lib dir for rpc_backend" 2013-05-13 20:37:27 +00:00
Vishvananda Ishaya
78a53d92c7 Only search the lib dir for rpc_backend
The grep in rpc_backend uses . to search all files. Unfortunately
the current directory when the command is called is not the lib
directory, so change it to search the lib directory instead.
Without this fix the command is forced to grep all files under
devstack which could be very slow if one has downloaded large
images.

Fixes bug 1174718

Change-Id: Ic8a59885cd07e5d6f2e734e80824762f9ac12996
2013-05-13 10:34:53 -07:00
Kieran Spear
fb2a3ae3ca Basic cells support
Adds support for running a region and child cell within a single
devstack environment.

README.md has been updated with some info on getting started.

Rebased/updated from initial work by Andrew Laski <andrew.laski@rackspace.com>.

Change-Id: Ic181da2180ccaa51df7efc9d66f7ccb820aac19b
2013-05-13 11:16:40 +10:00
zhhuabj
5595fdc2ac Update the package name of qpid in the fedora platform
The package name of qpid in default yum repository
is qpid-cpp-server, not qpid-cpp-server-daemon.

Fix bug 1177731

Change-Id: I4412029966583f5ef5a5a4cc80e7fdc4771c8eca
2013-05-09 13:12:01 +08:00
Matthieu Huin
7a7a466738 Removes "RPC not enabled" error message when no backend is needed
When no service needing a RPC backend is activated, no error message
should appear if a RPC backend is not installed. A simple check is
done on the services installation files to see which services need to
initialize a RPC backend at some point; if none of these services
are in ENABLED_SERVICES then the error message is skipped.

Change-Id: I4e47e0c675c74775b4ea53a00848ac1d777f0125
Fixes: bug #1167338
2013-04-26 10:36:32 +02:00
Ian Wienand
64dd03dd78 Modify RPM lists for RHEL6
Modifications to the RPM list to make devstack work on RHEL6.  Makes
various packages only install on Fedora distros; generally letting pip
install the missing dependencies on RHEL.

Additionally the Qpid package name is different in RHEL6 to Fedora.
Also a small re-write of the config file is required to avoid
authenication issues.

Change-Id: If497099d27aa9cd80e1c1cee1aff2ed6b076d309
2013-04-23 08:47:36 +10:00
Dean Troyer
cc6b443545 Formatting cleanups, doc updates and whatnot
Change-Id: Ica8298353be22f947c8e8a03d8dc29ded9cb26dd
2013-04-09 14:05:32 -05: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
Dean Troyer
995eb927f7 Add clean.sh
clean.sh gets rid of all residue of running DevStack except installed
packages and pip modules.

And it eradicates rabbitmq-server and ts erlang dependencies as well as
the other RPC backends and databases.

Change-Id: I2b9a251a0a151c012bae85a5a2f9c2f72e7700be
2013-03-15 10:30:37 -05:00
Jenkins
f90b2740f7 Merge "Refactor error logging" 2013-03-04 14:12:10 +00: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
Nachi Ueno
07115eb5c0 Refactor error logging
It is hard to grep errors in current log. so in this patch,
I'm updating die function which also writes log for
screen_log_dir/error.log.
In future, we may categolize negative fault by using
this error.log.

Change-Id: I70a8cfe67ed408284f5c88c762c6bb8acb8ecdb2
2013-02-28 11:54:24 -08:00
jiajun xu
4a30b849ec Add check for RABBIT_HOST and RABBIT_PASSWORD in iniset_rpc_backend
In multi-node environment, RABBIT_HOST and RABBIT_PASSWORD are used to
indicate the server running rabbitmq service. We should check the
variables in iniset_rpc_backend.

Change-Id: Iaea8cc87315be91429a8747254310d6474930eec
2013-01-22 11:49:03 +08:00
Akihiro MOTOKI
b0f1c38bdc Refactor rpc backend configuration logic
This commit also changes the following:
- Fixes Nova QPID module path
- Fixes a bug Cinder ZeroMQ RPC points to nova module
- Adds ZeroMQ setting for Heat RPC

qpid_is_supported is moved from functions to lib/rpc_backend.

This work is based on the work by Isaku Yamahata <yamahata@valinux.co.jp>
in https://review.openstack.org/#/c/19074/.

Change-Id: I45e21b1fb85e539213f5243764132a37906d7455
2013-01-14 16:12:06 +09:00