51 Commits

Author SHA1 Message Date
Jenkins
2dcfd62fb3 Merge "Allow a plugin specific interface_driver config in q-lbaas" 2013-04-02 11:42:21 +00: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
Akihiro MOTOKI
c07112a203 Allow a plugin specific interface_driver config in q-lbaas
Previously interface_driver for q-lbaas is hardcoded and q-lbaas does
not work when quantum plugin requires additional configuration (like
ovs_use_veth=True). This commit set up interface_driver using
quantum_plugin_setup_interface_driver function.

This commit also moves a script related Quantum service plugin to
lib/quantum_plugins/services/

Change-Id: Iad11c1b31071dfb580843be18be78c83feb91f10
2013-03-29 16:14:45 +09:00
Akihiro MOTOKI
3452f8eb86 Support Quantum security group
Adds Q_USE_SECGROUP flag for quantum security group

- Added has_quantum_plugin_security_group method for each plugin.
- Set NOVA_VIF_DRIVER to the hybrid VIF driver for plugins with
  iptables based security group support.
- Specifying device_owner type on debug port in lib/quantum and
  quantum-adv-test.sh. This change makes apply quantum security
  group fro debug port

Change-Id: Ifd155798912247d85a9765ef73a2186b929237b4
2013-03-21 18:34:14 +09:00
Jenkins
1a5d0339d0 Merge "Accept Quantums rootwrap.conf in etc/quantum/rootwrap.conf" 2013-03-21 08:51:44 +00:00
Jenkins
71404ed5a4 Merge "Mova nova configuration initialization" 2013-03-20 21:36:05 +00:00
Jenkins
d70346263c Merge "Enable multi-agent support" 2013-03-20 16:46:25 +00:00
mathieu-rohon
cf9c10d63a Enable multi-agent support
even when q-svc is disabled, i.e. on node without q-svc in multi-agent architecture,
state_path will be configured in quantum.conf so that agent doesn't crashs anymore

Bug 1156685

Change-Id: I28625e4b606fa61c35179248321632d3d797c547
2013-03-20 16:16:34 +01:00
Dean Troyer
58ab929de6 Force Quantum processes to run in a subshell
Force bash to evaluate the command line passed to screen_it so the
commands are executed in a subshell.  This seems to make a difference
when using run_service() when the server process is owned by init.

These Quantum services were the only ones in all of DevStack being
spawned in this manner.  This will allow the run_service() patch
https://review.openstack.org/#/c/23148/ to succesfully be merged
and the number of test failures due to screen should be reduced to 0.

Change-Id: I97d562adda51d39a5e7fa1dc4d945d4a396201cd
2013-03-19 16:46:33 -05:00
Dirk Mueller
13aab25d3d Accept Quantums rootwrap.conf in etc/quantum/rootwrap.conf
As part of the review request
https://review.openstack.org/#/c/24615/
the Quantum rootwrap.conf is moving to etc/quantum subdir.
Prefer the new location.

Change-Id: I2a893c7b21e252543372854ba511f61cd1fde02f
2013-03-18 18:57:55 +01:00
Dean Troyer
b3236914f1 Mova nova configuration initialization
* Move shared volume configuration from stack.sh to stackrc
* Move Nova network and vnc/spice configuration settings from stack.sh
  into lib/nova
* Rename NET_MAN to NETOWRK_MANAGER to match nova.conf attribute name

Change-Id: I9bd2955def553499aa832eda1f0959afe494206a
2013-03-18 11:16:38 -05: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
e632a5b549 Merge "Add policy_file option to quantum.conf" 2013-03-14 21:15:52 +00:00
Jenkins
820467f20f Merge "Simplify database_connection_url" 2013-03-14 21:12:18 +00:00
Salvatore Orlando
3de02e8b9a Add policy_file option to quantum.conf
Bug 1154102

Ensure /etc/quantum/policy.json is the one used by quantum when
deployed through devstack.

Change-Id: Ib4e324911d1ba631d411eb3be78355eee09c39f0
2013-03-12 15:20:05 +01:00
Salvatore Orlando
d1742febe8 Set allow_overlapping_ips to True by default
Bug 1152141

Change-Id: I36b3a91ac9c52ea8371df3adc7fcd0f55ad27a58
2013-03-07 13:34:57 +01:00
Eugene Nikanorov
b7d8284271 Implements blueprint quantum-lbaas-plugin-support
Add support for quantum lbaas plugin.
Configure service_plugins and lbaas agent
in case q-lbaas service is enabled in localrc

Change-Id: Iebaa1ed6a7209175504230faf802a94dc841392f
2013-03-06 18:05:23 +04:00
Jenkins
f90b2740f7 Merge "Refactor error logging" 2013-03-04 14:12:10 +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
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
Akihiro MOTOKI
3c6e9a5ac2 Set state_path to quantum.conf
This change is required to make quantum security groups support of
OVS/LinuxBridge plugins work.

Previously state_path was configured in each agent config files in
Quantum, but it is moved to quantum.conf. This change follows it.

Change-Id: I290dc98878661375cf8a31a53d857433de0e5462
2013-02-26 14:56:19 +09:00
Dan Wendlandt
555ecd07b0 Devstack support for nicira plugin
Bug 1116847

Includes slight refactoring of L3 logic in main lib/quantum as previous
logic treated l3-agent as only way to do L3, whereas NVP has its own L3
support.

Change-Id: Ifd8c6864add5939432b544285cf027e52329dea2
2013-02-25 23:33:25 +01:00
Aaron Rosen
0ae742c3b9 Fix hard coded quantum url and port
Fixes bug 1131384

Change-Id: I88804808e9b2c2d181a3c74af82bd3fad05f63cc
2013-02-23 14:32:31 -08:00
Stephen Ma
8396d4f27c Added option Q_FLOATING_ALLOCATION_POOL to define an allocation-pool for floating IPs.
Change-Id: If31b34ebb8095aa260c19292cf63826522908db9
2013-02-18 05:36:41 -08:00
Jenkins
7bbeb2857c Merge "Move auth_token configurations to quantum.conf" 2013-02-14 07:27:01 +00:00
Akihiro MOTOKI
712feb663c Move auth_token configurations to quantum.conf
keystone auth_token middleware now allows quantum to have auth_token
configuration in quantum.conf. auth_token middleware supports
auth_token configuration both in api-paste.ini and quantum.conf,
so we can apply this change at any timing.

Change-Id: Ie5dd63e6c6938d2c8118e0f6090ef057c21a772a
2013-02-12 02:45:50 +09:00
Devananda van der Veen
37a8d157a1 Add quantum support for baremetal virtual env.
Add quantum networking support when nova-baremetal is active.
This creates a ctlplane network and br-ctlplane bridge, and moves IPs
from PHYSICAL_INTERFACE to OVS_PHYSICAL_BRIDGE.

Change-Id: If2026c01b93de0ccc7c3f9112de07b3a9c01ac20
2013-02-10 09:15:12 -08:00
Gary Kotton
d9ca2b2fd6 Ensure that debug agent has root_helper in [AGENT] section
This is a temporary fix until the Quantum patch lands. Then
devstack will be updated to remove all of the root_helper
settings in the DEFAULT section.
The Quantum patch in Question is:
https://review.openstack.org/#/c/20603/

Change-Id: Ie17ae76e8b525481e1002bd941812390cf2e2afc
2013-01-30 13:52:43 +00:00
Gary Kotton
98e18e99d1 Quantum root_helper update
We are currently moving root_helper to the [AGENT] section. This patch
is intended to enable the transition for that process.

Change-Id: Iff8144f74a1a5f8b0fc9af44bccf0213f4bfad7e
2013-01-28 16:39:16 +00:00
Isaku Yamahata
0dd34df455 lib/quantum: refactor quantum plugins and third party
As quantum plugin support is coming like floodlight, nvp and nec,
it's worth while to refactor quantum plugin logic so that each plugin can
be modified/enhanced intervening with other quantum plugin.
And new plugin support can be added easily (hopefully) without modifying
core logic.

Change-Id: Ic5ab5b993272fdd3b4e779823323777a845ee681
2013-01-21 11:33:24 +09:00
Jenkins
1d86679685 Merge "Add limited support for Quantum+OVS on XS/XCP." 2013-01-15 21:10:19 +00:00
Jenkins
1b3a97c684 Merge "Refactor rpc backend configuration logic" 2013-01-15 11:43:01 +00:00
Maru Newby
2298ca4f70 Add limited support for Quantum+OVS on XS/XCP.
* Add priliminary support for running the OVS L2 and DHCP agents
   in domU:
   * Configure Nova to use the correct vif driver and integration
     bridge.
   * Configure the ovs agent to target the dom0 integration bridge.
   * Install a xapi plugin supporting dom0 execution of ovs agent
     commands.
 * Config doc: http://wiki.openstack.org/QuantumDevstackOvsXcp
 * Supports blueprint xenapi-ovs

Change-Id: If5ab07daab1dc3918004eb4bfb6fed6cab0a71fd
2013-01-14 21:33:49 +00:00
Maru Newby
31c94ab510 Improve quantum l3 and tempest config.
* Previously, configuration for the q-l3 agent was creating a
   tenant-owned router.  This change maintains that behaviour if
   namespaces are enabled, but creates a public (not tenant-owned)
   router if namespaces are disabled.  Since the L3 agent can only
   manage a single router if namespaces are disabled, the change
   ensures that the single router can be shared by multiple tenants.
 * Add tempest configuration for the public router.

Change-Id: I2878a7eb9797bfd71082a55d4773519dc5198abc
2013-01-14 21:30:31 +00: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
Jenkins
fec9355fd2 Merge "Fix "sudo: sorry, you must have a tty to run sudo"" 2013-01-12 20:35:13 +00:00
Sumit Naiksatam
4b26d3191e Quantum FloodLight/BigSwitch Plugin Support
The patch introduces devstack support for the Quantum FloodLight/BigSwitch
RESTProxy Plugin.

Change-Id: I8c032fd16723ed6055821de0860fae508df371b7
Implements: blueprint quantum-floodlight-bigswitch-plugin-support
2013-01-12 01:04:57 -08: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
Devananda van der Veen
9bc47db29c convert add_nova_opt to iniset
Convert all calls to add_nova_opt to use
   iniset $NOVA_CONF DEFAULT

Convert baremetal options to use
   iniset $NOVA_CONF baremetal

Change-Id: I03ce2149e1f3abc2feb40c156c50de7dabaf47a2
2013-01-09 15:26:18 -08:00
Akihiro MOTOKI
66afb47cb9 Refactor quantum installation
* Move quantum installation to lib/quantum
* Refactor quantum configuration
* Move Quantum service account creation from keystone_data.sh to lib/quantum
* Define generic functions to install third party programs

* Minor cleanups related to Quantum
  * Kill dnsmasq which watches an interface 'ns-XXXXXX' in unstack.sh
  * Set default_floating_pool in nova.conf to make default flaoting pool
    work when PUBLIC_NETWORK_NAME is other than 'nova'
  * Make tempest work even when PRIVATE_NETWORK_NAME is other than 'private'

Change-Id: I4a6e7fcebfb11556968f53ab6a0e862ce16bb139
2012-12-26 23:41:38 +09:00
Vishvananda Ishaya
23431f3526 Clear out the keystone pki data for each run
This prevents old invalid tokens from working after a rerun of stack.sh
and potentially providing users and tenants that don't exist.

Fixes bug 1089700

Change-Id: Icfc22978e41e459d51b50bc7ad2e6d98d766e402
2012-12-17 08:44:01 -08:00
Jenkins
e0195ed8ab Merge "Always create signing_dir regardless of token format" 2012-12-12 18:19:42 +00:00
Akihiro MOTOKI
5e3deb678e Always create signing_dir regardless of token format
Fixes bug 1088801

devstack does not create signing_dir when keystone token format is UUID.
If the default value of signing_dir is read-only, OpenStack services
such as Quantum server failed to start due to permission denied.

On the keystone client cannot know which token_format is used in keystone
in advance, so signing_dir should be created regardless of the token format.

Change-Id: I1b0d25c1ac4d22d9fb2c5443d15b96fdaa5a4c81
2012-12-11 18:16:05 +09:00
Dean Troyer
60e9c0ab22 Quantum cleanups
* Set base default env vars in lib/quantum
* Rename common dirs to match devstack conventions
  Q_CONF_FILE -> QUANTUM_CONF
  QUANTUM_CLIENT_* -> QUANTUMCLIENT_*

Change-Id: I7a2a92b50ef953195f078ac62cb975f28892c05c
2012-12-10 11:29:56 -06:00
Nachi Ueno
eb1aa3d5ed setup quantum-rootrwapper
Add quantum-rootwrapper for /etc/sudoers.d
This is needed to run quantum in CI env

Change-Id: Ib59351c106f0a45bb45476edf032c97744873923
2012-12-07 12:13:12 -08:00
Nachi Ueno
8bc21f6476 move setup_quantum to stack.sh
sudo is only allowed in stack.sh on the CI, so move setup_quantum code
to the stack.sh.
also fixes quantum debug command setup for linuxbridge and ryu

Change-Id: I11bc0aa242a690e25acc088b3e9f483ceab38f26
2012-12-05 17:55:08 -08:00
Gary Kotton
9343df160e Ensures that Quantum sets the correct signing directory
Change-Id: I4f01a171f0ced73ba6b6000d225c8f5811f1874a
2012-11-29 07:40:39 +00:00
Nachi Ueno
5db5bfa28f Make exercise.sh with quantum work
- added support for quantum-debug command
- added ping and ssh method for quantum

Change-Id: Iebf8a0e9e2ed2bb56bee6533e69827e6caa2bc82
2012-11-13 10:40:59 -08:00
Dean Troyer
5a4148d33a Fix quantum typo
Change-Id: Ib6343f5c6b7dedb8bda33110460372bc52b6c6a7
2012-10-23 15:47:01 -05:00
Yoshihiro Kaneko
602cf9bd68 Add support for the Quantum Ryu plugin.
This patch allows using the Quantum Ryu plugin.
Ryu plugin lets Quantum link Open vSwitch and Ryu OpenFlow controller[1].

Ryu OpenFlow controller is not Openstack component, but I added some
processing that is related with Ryu to stack.sh for the convenience of
the person who intend to try the plugin.

Instructions for using Ryu plugin:
1. Enable services: "q-svc", "q-agt", "q-dhcp", "q-l3", "quantum", "ryu"
2. Set Q_PLUGIN to "ryu"
3. Set an internal network interface name to connect br-int on plural
   hosts to RYU_INTERNAL_INTERFACE (optional)

Example localrc:
  disable_service n-net
  enable_service q-svc q-agt q-dhcp q-l3 quantum ryu
  Q_PLUGIN=ryu
  RYU_INTERNAL_INTERFACE=eth1

[1] http://osrg.github.com/ryu/

Change-Id: Ic1da132fa421f1c70c10a319ee3239831b0f956f
2012-10-19 07:00:32 +00:00