From: Thomas Goirand Date: Sun, 28 Jul 2013 02:53:15 +0000 (+0800) Subject: Added initial Debian folder. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b8fe2fec8524e218c233f80c8f5e96b6bf18da2e;p=openstack-build%2Fneutron-build.git Added initial Debian folder. --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..21ca557d4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +neutron (2013.2~b2-1) unstable; urgency=low + + * Initial release. (Closes: #718037) + + -- Thomas Goirand Sat, 27 Jul 2013 13:11:22 +0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..c1b4b0a2d --- /dev/null +++ b/debian/control @@ -0,0 +1,497 @@ +Source: neutron +Section: net +Priority: optional +Maintainer: PKG OpenStack +Uploaders: Loic Dachary (OuoU) , + Julien Danjou , + Thomas Goirand , + Ghe Rivero , + Mehdi Abaakouk +Build-Depends: debhelper (>= 9), + openstack-pkg-tools (>= 4), + po-debconf, + python-all (>= 2.6), + python-d2to1 (>= 0.2.10), + python-pbr, +Build-Depends-Indep: alembic (>= 0.4.1), + bridge-utils, + pep8 (>= 1.3.3), + python-amqplib, + python-anyjson (>= 0.2.4), + python-argparse, + python-babel, + python-cliff, + python-configobj, + python-coverage, + python-eventlet (>= 0.9.17), + python-fixtures (>= 0.3.12), + python-gflags, + python-greenlet, + python-hacking, + python-httplib2, + python-iso8601, + python-keystoneclient (>= 1:0.2.0), + python-kombu, + python-lxml, + python-mock (>= 1.0b1), + python-mox, + python-netaddr, + python-netifaces, + python-nose, + python-nosexcover, + python-novaclient, + python-oslo.config, + python-paste, + python-pastedeploy, + python-pyudev, + python-neutronclient (>= 2.2.0), + python-routes, + python-setuptools, + python-setuptools-git, + python-simplejson, + python-six, + python-sphinx, + python-sqlalchemy, + python-stevedore, + python-subunit, + python-testrepository (>= 0.0.13), + python-testtools (>= 0.9.27), + python-unittest2, + python-webob (>= 1.2.3), + python-webtest, + testrepository (>= 0.0.13) +Standards-Version: 3.9.4 +Homepage: http://neutron.openstack.org/ +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/neutron.git;a=summary +Vcs-Git: git://anonscm.debian.org/openstack/neutron.git + +Package: python-neutron +Architecture: all +Section: python +Pre-Depends: dpkg (>= 1.15.6~) +Replaces: quantum-common (<< 2013), + quantum-dhcp-agent (<< 2013), + quantum-l3-agent (<< 2013), + quantum-plugin-cisco (<< 2013), + quantum-plugin-linuxbridge (<< 2013), + quantum-plugin-linuxbridge-agent (<< 2013), + quantum-plugin-metaplugin (<< 2013), + quantum-plugin-nec (<< 2013), + quantum-plugin-nec-agent (<< 2013), + quantum-plugin-nicira (<< 2013), + quantum-plugin-openvswitch (<< 2013), + quantum-plugin-openvswitch-agent (<< 2013), + quantum-plugin-ryu (<< 2013), + quantum-plugin-ryu-agent (<< 2013) +Breaks: quantum-common (<< 2013), + quantum-dhcp-agent (<< 2013), + quantum-l3-agent (<< 2013), + quantum-plugin-cisco (<< 2013), + quantum-plugin-linuxbridge (<< 2013), + quantum-plugin-linuxbridge-agent (<< 2013), + quantum-plugin-metaplugin (<< 2013), + quantum-plugin-nec (<< 2013), + quantum-plugin-nec-agent (<< 2013), + quantum-plugin-nicira (<< 2013), + quantum-plugin-openvswitch (<< 2013), + quantum-plugin-openvswitch-agent (<< 2013), + quantum-plugin-ryu (<< 2013), + quantum-plugin-ryu-agent (<< 2013) +Depends: alembic (>= 0.4.1), + python-amqplib, + python-anyjson (>= 0.2.4), + python-argparse, + python-configobj, + python-eventlet (>= 0.9.17), + python-gflags, + python-greenlet, + python-httplib2, + python-iso8601, + python-keystoneclient (>= 1:0.2.0), + python-kombu, + python-lxml, + python-migrate, + python-netaddr, + python-novaclient, + python-oslo.config, + python-paste, + python-pastedeploy, + python-pbr, + python-pyudev, + python-neutronclient (>= 1:2.2.0), + python-routes, + python-simplejson, + python-six, + python-sqlalchemy, + python-stevedore, + python-webob (>= 1.2.3), + ${misc:Depends}, + ${python:Depends} +Provides: ${python:Provides} +Description: OpenStack virtual network service - Python library + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the Python library. + +Package: neutron-server +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: adduser, + debconf, + lsb-base, + neutron-common (= ${source:Version}), + neutron-plugin-openvswitch | neutron-plugin, + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Description: OpenStack virtual network service - server + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the Neutron server. + +Package: neutron-common +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: adduser, + debconf, + python-cliff, + python-mysqldb, + python-pyparsing (>=1.5.7), + python-neutron (= ${source:Version}), + python-sqlalchemy, + ${misc:Depends}, + ${python:Depends} +Breaks: quantum-plugin-linuxbridge-agent, + quantum-plugin-openvswitch-agent, + quantum-server (<= 2013.1) +Replaces: quantum-plugin-linuxbridge-agent, + quantum-plugin-openvswitch-agent, + quantum-server (<< 2013.1) +Description: OpenStack virtual network service - common files + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the common files. + +Package: neutron-plugin-cisco +Architecture: all +Provides: neutron-plugin +Pre-Depends: dpkg (>= 1.15.6~) +Depends: neutron-common (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Breaks: python-quantum +Replaces: python-quantum +Description: OpenStack virtual network service - Cisco plugin + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the plugin to use with Cisco hardware. + +Package: neutron-plugin-nec +Architecture: all +Provides: neutron-plugin +Pre-Depends: dpkg (>= 1.15.6~) +Depends: neutron-common (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Breaks: python-quantum +Replaces: python-quantum +Description: OpenStack virtual network service - NEC plugin + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the NEC plugin. + +Package: neutron-plugin-nec-agent +Architecture: all +Provides: neutron-plugin +Pre-Depends: dpkg (>= 1.15.6~) +Depends: neutron-common (= ${source:Version}), + neutron-plugin-nec, + sudo, + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Breaks: python-quantum +Replaces: python-quantum +Description: OpenStack virtual network service - NEC agent + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the NEC plugin agent. + +Package: neutron-plugin-bigswitch +Architecture: all +Provides: neutron-plugin +Pre-Depends: dpkg (>= 1.15.6~) +Depends: neutron-common (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Description: Neutron virtual network service - BigSwitch plugin + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the BigSwitch plugin. + +Package: neutron-plugin-hyperv +Architecture: all +Provides: neutron-plugin +Pre-Depends: dpkg (>= 1.15.6~) +Depends: neutron-common (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Description: Neutron virtual network service - Hyper-V plugin + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the Hyper-V plugin. + +Package: neutron-plugin-brocade +Architecture: all +Provides: neutron-plugin +Pre-Depends: dpkg (>= 1.15.6~) +Depends: neutron-common (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Description: Neutron is a virtual network service for Openstack - Brocade plugin + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the Brocade plugin. + +Package: neutron-plugin-plumgrid +Architecture: all +Provides: neutron-plugin +Pre-Depends: dpkg (>= 1.15.6~) +Depends: neutron-common (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Description: Neutron virtual network service - PLUMgrid plugin + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the PLUMgrid plugin. + +Package: neutron-plugin-metaplugin +Architecture: all +Provides: neutron-plugin +Pre-Depends: dpkg (>= 1.15.6~) +Depends: adduser, + neutron-common (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Description: Neutron virtual network service - metaplugin plugin + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the Metaplugin plugin. + +Package: neutron-plugin-nicira +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: neutron-common (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Breaks: python-quantum +Replaces: python-quantum +Description: OpenStack virtual network service - Nicira NVP plugin + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the plugin to use with Nicira Network Virtualization + Platform (NVP) controllers. + +Package: neutron-l3-agent +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: adduser, + debconf, + iputils-arping, + neutron-common (= ${source:Version}), + sudo, + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Recommends: openvswitch-switch +Description: OpenStack virtual network service - l3 agent + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the l3 agent. + +Package: neutron-dhcp-agent +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: adduser, + dnsmasq-base, + dnsmasq-utils, + neutron-common (= ${source:Version}), + sudo, + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Description: OpenStack virtual network service - DHCP agent + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the DHCP agent. + +Package: neutron-metadata-agent +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: adduser, + neutron-common (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Breaks: quantum-l3-agent +Replaces: quantum-l3-agent +Description: OpenStack virtual network service - metadata agent + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the metadata proxy agent. + +Package: neutron-lbaas-agent +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: haproxy, + neutron-common (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Breaks: quantum-common +Replaces: quantum-common +Description: OpenStack virtual network service - LBaaS agent + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the Load Balancing as a Service (LBaaS) agent. + +Package: neutron-plugin-openvswitch +Architecture: all +Provides: neutron-plugin +Pre-Depends: dpkg (>= 1.15.6~) +Depends: adduser, + dbconfig-common, + debconf, + neutron-common (= ${source:Version}), + sqlite3, + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Breaks: python-quantum +Replaces: python-quantum +Recommends: openvswitch-datapath-dkms +Description: OpenStack virtual network service - Open vSwitch plugin + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the plugin to use with Open vSwitch. + +Package: neutron-plugin-openvswitch-agent +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~), openvswitch-switch +Depends: openvswitch-switch, + neutron-common (= ${source:Version}), + neutron-plugin-openvswitch, + sudo, + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Breaks: python-quantum +Replaces: python-quantum +Recommends: openvswitch-datapath-dkms +Description: OpenStack virtual network service - Open vSwitch agent + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the Open vSwitch agent. If you choose to use the Open + vSwitch plugin on neutron-server, this agent should run on each compute node. + +Package: neutron-plugin-linuxbridge +Architecture: all +Provides: neutron-plugin +Pre-Depends: dpkg (>= 1.15.6~) +Depends: bridge-utils, + neutron-common (= ${source:Version}), + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Breaks: python-quantum +Replaces: python-quantum +Description: OpenStack virtual network service - Linux bridge plugin + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the Linux bridge plugin. + +Package: neutron-plugin-linuxbridge-agent +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: bridge-utils, + neutron-common (= ${source:Version}), + neutron-plugin-linuxbridge, + sudo, + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Breaks: python-quantum +Replaces: python-quantum +Description: OpenStack virtual network service - Linux bridge agent + Neutron provides an API to dynamically request and configure virtual networks. + These networks connect "interfaces" from other OpenStack services (such as + vNICs from Nova VMs). The Neutron API supports extensions to provide advanced + network capabilities, including QoS, ACLs, and network monitoring. + . + This package provides the Linux bridge agent. If you choose to use the Linux + bridge plugin on neutron-server, this agent should run on each compute node. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..6f52bfd18 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,50 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Neutron +Source: git://github.com/openstack/neutron.git + +Files: debian/* +Copyright: 2012-2013, Thomas Goirand + (c) 2012, Mehdi Abaakouk + (c) 2011-2012, Ghe Rivero + (c) 2012, Loic Dachary (OuoU) + (c) 2012, Ola Lundqvist +License: Apache-2 + +Files: * +Copyright: 2011 OpenStack, LLC. + 2011 Cisco Systems + 2011 Nicira Networks + 2011 Citrix Systems +License: Apache-2 + + +Files: tools/rfc.sh +Copyright: Copyright (c) 2010-2011 Gluster, Inc +License: GPL-v3 + +License: GPL-v3 + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + . + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + . + On Debian-based systems the full text of the Apache version 2.0 license + can be found in `/usr/share/common-licenses/GPL-3' + +License: Apache-2 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian-based systems the full text of the Apache version 2.0 license + can be found in `/usr/share/common-licenses/Apache-2.0'. diff --git a/debian/cron.d/neutron-dhcp-agent-netns-cleanup b/debian/cron.d/neutron-dhcp-agent-netns-cleanup new file mode 100644 index 000000000..8be4ff35d --- /dev/null +++ b/debian/cron.d/neutron-dhcp-agent-netns-cleanup @@ -0,0 +1,6 @@ +# Periodically cleans Neutron's network namespaces on behalf of the Quantum +# DHCP agent. +30 * * * * neutron if [ -x /usr/bin/neutron-netns-cleanup ] ; then \ + /usr/bin/neutron-netns-cleanup \ + --config-file=/etc/neutron/neutron.conf \ + --config-file=/etc/neutron/dhcp_agent.ini >/dev/null 2>&1; fi diff --git a/debian/cron.d/neutron-l3-agent-netns-cleanup b/debian/cron.d/neutron-l3-agent-netns-cleanup new file mode 100644 index 000000000..56806a6cc --- /dev/null +++ b/debian/cron.d/neutron-l3-agent-netns-cleanup @@ -0,0 +1,6 @@ +# Periodically cleans Quantum's network namespaces on behalf of the Quantum +# L3 agent. +0 * * * * neutron if [ -x /usr/bin/neutron-netns-cleanup ] ; then \ + /usr/bin/neutron-netns-cleanup \ + --config-file=/etc/neutron/neutron.conf \ + --config-file=/etc/neutron/l3_agent.ini >/dev/null 2>&1; fi diff --git a/debian/cron.d/neutron-lbaas-agent-netns-cleanup b/debian/cron.d/neutron-lbaas-agent-netns-cleanup new file mode 100644 index 000000000..b93dd4b35 --- /dev/null +++ b/debian/cron.d/neutron-lbaas-agent-netns-cleanup @@ -0,0 +1,5 @@ +# Periodically cleans Quantum's network namespaces on behalf of the Quantum LBaaS agent. +0 * * * * neutron if [ -x /usr/bin/neutron-netns-cleanup ] ; then \ + /usr/bin/neutron-netns-cleanup \ + --config-file=/etc/neutron/neutron.conf \ + --config-file=/etc/neutron/lbaas_agent.ini >/dev/null 2>&1; fi diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 000000000..058362e0b --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,8 @@ +[DEFAULT] +upstream-branch = master +debian-branch = debian/havana +upstream-tag = %(version)s +compression = xz + +[git-buildpackage] +export-dir = ../build-area/ diff --git a/debian/mans/neutron-linuxbridge-agent.8 b/debian/mans/neutron-linuxbridge-agent.8 new file mode 100644 index 000000000..4d9ed2e84 --- /dev/null +++ b/debian/mans/neutron-linuxbridge-agent.8 @@ -0,0 +1,11 @@ +.TH neutron\-linuxbridge\-agent 8 +.SH NAME +neutron\-linuxbridge\-agent \- OpenStack Virtual network service \- linuxbridge agent + +.SH SYNOPSIS +.B neutron\-linuxbridge\-agent + +.SH DESCRIPTION +.B neutron\-linuxbridge\-agent + +This man page is a stub. Please contribute. diff --git a/debian/mans/neutron-nec-agent.8 b/debian/mans/neutron-nec-agent.8 new file mode 100644 index 000000000..be78cd805 --- /dev/null +++ b/debian/mans/neutron-nec-agent.8 @@ -0,0 +1,11 @@ +.TH neutron\-nec\-agent 8 +.SH NAME +neutron\-nec\-agent \- OpenStack Virtual network service \- nec agent + +.SH SYNOPSIS +.B neutron\-nec\-agent + +.SH DESCRIPTION +.B neutron\-nec\-agent + +This man page is a stub. Please contribute. diff --git a/debian/mans/neutron-openvswitch-agent.8 b/debian/mans/neutron-openvswitch-agent.8 new file mode 100644 index 000000000..7fd851948 --- /dev/null +++ b/debian/mans/neutron-openvswitch-agent.8 @@ -0,0 +1,11 @@ +.TH neutron\-openvswitch\-agent 8 +.SH NAME +neutron\-openvswitch\-agent \- OpenStack Virtual network service \- openvswitch agent + +.SH SYNOPSIS +.B neutron\-openvswitch\-agent + +.SH DESCRIPTION +.B neutron\-openvswitch\-agent + +This man page is a stub. Please contribute. diff --git a/debian/mans/neutron-rootwrap.8 b/debian/mans/neutron-rootwrap.8 new file mode 100644 index 000000000..bd95929f7 --- /dev/null +++ b/debian/mans/neutron-rootwrap.8 @@ -0,0 +1,11 @@ +.TH neutron-rootwrap 8 +.SH NAME +neutron-rootwrap \- OpenStack Virtual network service \- sudo helper + +.SH SYNOPSIS +.B neutron-rootwrap + +.SH DESCRIPTION +.B neutron-rootwrap + +This man page is a stub. Please contribute. diff --git a/debian/mans/neutron-ryu-agent.8 b/debian/mans/neutron-ryu-agent.8 new file mode 100644 index 000000000..8823f9d56 --- /dev/null +++ b/debian/mans/neutron-ryu-agent.8 @@ -0,0 +1,11 @@ +.TH neutron\-ryu\-agent 8 +.SH NAME +neutron\-ryu\-agent \- OpenStack Virtual network service \- ryu agent + +.SH SYNOPSIS +.B neutron\-ryu\-agent + +.SH DESCRIPTION +.B neutron\-ryu\-agent + +This man page is a stub. Please contribute. diff --git a/debian/mans/neutron-server.8 b/debian/mans/neutron-server.8 new file mode 100644 index 000000000..3ea198983 --- /dev/null +++ b/debian/mans/neutron-server.8 @@ -0,0 +1,11 @@ +.TH neutron-server 8 +.SH NAME +neutron-server \- OpenStack Virtual network service \- server + +.SH SYNOPSIS +.B neutron-server + +.SH DESCRIPTION +.B neutron-server + +This man page is a stub. Please contribute. diff --git a/debian/neutron-common.config.in b/debian/neutron-common.config.in new file mode 100644 index 000000000..f19a73fb3 --- /dev/null +++ b/debian/neutron-common.config.in @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +QAPI_CONF=/etc/neutron/api-paste.ini +Q_CONF=/etc/neutron/neutron.conf + +#PKGOS-INCLUDE# + +pkgos_var_user_group neutron +chmod 755 /var/lib/neutron +pkgos_read_admin_creds ${Q_CONF} keystone_authtoken neutron + +exit 0 diff --git a/debian/neutron-common.dirs b/debian/neutron-common.dirs new file mode 100644 index 000000000..72cd82b4d --- /dev/null +++ b/debian/neutron-common.dirs @@ -0,0 +1,2 @@ +etc/neutron/rootwrap.d +etc/neutron/plugins diff --git a/debian/neutron-common.install b/debian/neutron-common.install new file mode 100644 index 000000000..f67d93fae --- /dev/null +++ b/debian/neutron-common.install @@ -0,0 +1,7 @@ +bin/* usr/bin +debian/neutron_sudoers /etc/sudoers.d +etc/api-paste.ini /usr/share/neutron-common +etc/policy.json /etc/neutron +etc/neutron.conf /usr/share/neutron-common +etc/neutron/rootwrap.d/* /etc/neutron/rootwrap.d +etc/rootwrap.conf /etc/neutron diff --git a/debian/neutron-common.logrotate b/debian/neutron-common.logrotate new file mode 100644 index 000000000..a322f10b3 --- /dev/null +++ b/debian/neutron-common.logrotate @@ -0,0 +1,6 @@ +/var/log/neutron/neutron-ns-metadata-proxy*.log { + daily + missingok + compress + delaycompress +} diff --git a/debian/neutron-common.postinst.in b/debian/neutron-common.postinst.in new file mode 100644 index 000000000..9427b4a82 --- /dev/null +++ b/debian/neutron-common.postinst.in @@ -0,0 +1,32 @@ +#!/bin/sh + +set -e + +QAPI_CONF=/etc/neutron/api-paste.ini +Q_CONF=/etc/neutron/neutron.conf + +#PKGOS-INCLUDE# + +if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then + . /usr/share/debconf/confmodule + + pkgos_var_user_group neutron + chmod 755 /var/lib/neutron + pkgos_write_new_conf neutron api-paste.ini + pkgos_write_new_conf neutron neutron.conf + pkgos_write_admin_creds ${Q_CONF} keystone_authtoken neutron + db_stop + + chown -R neutron:adm /var/log/neutron/ + chmod 0700 /etc/neutron + chmod 0750 /var/log/neutron/ + chown root:root /etc/neutron/rootwrap.conf + chown root:root /etc/neutron/rootwrap.d + chmod 0755 /etc/neutron/rootwrap.d + + if [ -f /etc/sudoers.d/neutron_sudoers ] ; then + chmod 0440 /etc/sudoers.d/neutron_sudoers + fi +fi + +#DEBHELPER# diff --git a/debian/neutron-common.postrm b/debian/neutron-common.postrm new file mode 100644 index 000000000..4c1d429ec --- /dev/null +++ b/debian/neutron-common.postrm @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +if [ "${1}" = "purge" ] ; then + rm -rf /etc/neutron/api-paste.ini /etc/neutron/neutron.conf + [ -d /etc/neutron ] && rmdir --ignore-fail-on-non-empty /etc/neutron + rm -rf /var/lib/neutron + rm -rf /var/log/neutron +fi + +#DEBHELPER# diff --git a/debian/neutron-common.templates b/debian/neutron-common.templates new file mode 100644 index 000000000..33534f65d --- /dev/null +++ b/debian/neutron-common.templates @@ -0,0 +1,32 @@ +# These templates have been reviewed by the debian-l10n-english +# team +# +# If modifications/additions/rewording are needed, please ask +# debian-l10n-english@lists.debian.org for advice. +# +# Even minor modifications require translation updates and such +# changes should be coordinated with translators and reviewers. + +Template: neutron/auth-host +Type: string +Default: 127.0.0.1 +_Description: Authentication server hostname: + Please specify the hostname of your Neutron authentication server. Typically + this is also the hostname of your OpenStack Identity Service (Keystone). + +Template: neutron/admin-tenant-name +Type: string +Default: admin +_Description: Authentication server tenant name: + Please specify the authentication server tenant name. + +Template: neutron/admin-user +Type: string +Default: admin +_Description: Authentication server username: + Please specify the username to use with the authentication server. + +Template: neutron/admin-password +Type: password +_Description: Authentication server password: + Please specify the password to use with the authentication server. diff --git a/debian/neutron-dhcp-agent.init b/debian/neutron-dhcp-agent.init new file mode 100644 index 000000000..a2d45bd09 --- /dev/null +++ b/debian/neutron-dhcp-agent.init @@ -0,0 +1,90 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: neutron-dhcp-agent +# Required-Start: $network $local_fs $remote_fs $syslog +# Required-Stop: $remote_fs +# Should-Start: mysql postgresql rabbitmq-server keystone +# Should-Stop: mysql postgresql rabbitmq-server keystone +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Neutron DHCP agent +# Description: Provide DHCP agent for neutron +### END INIT INFO + +# Author: Mehdi Abaakouk + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="OpenStack Neutron DHCP agent" +NAME=neutron-dhcp-agent +DAEMON=/usr/bin/neutron-dhcp-agent +DAEMON_ARGS="--config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/dhcp_agent.ini --log-file=/var/log/neutron/dhcp-agent.log" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x $DAEMON ] || exit 0 + +. /lib/lsb/init-functions + +do_start() +{ + start-stop-daemon --start --quiet --background --chuid neutron:neutron --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --background --chuid neutron:neutron --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 +} + +do_stop() +{ + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE + RETVAL="$?" + rm -f $PIDFILE + return "$RETVAL" +} + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + + *) + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 + exit 3 + ;; +esac diff --git a/debian/neutron-dhcp-agent.install b/debian/neutron-dhcp-agent.install new file mode 100644 index 000000000..131644060 --- /dev/null +++ b/debian/neutron-dhcp-agent.install @@ -0,0 +1,2 @@ +debian/cron.d/neutron-dhcp-agent-netns-cleanup etc/cron.d +etc/dhcp_agent.ini etc/neutron diff --git a/debian/neutron-dhcp-agent.logrotate b/debian/neutron-dhcp-agent.logrotate new file mode 100644 index 000000000..c7527e5e5 --- /dev/null +++ b/debian/neutron-dhcp-agent.logrotate @@ -0,0 +1,7 @@ +/var/log/neutron/dhcp-agent.log { + daily + missingok + compress + delaycompress + notifempty +} diff --git a/debian/neutron-dhcp-agent.postinst.in b/debian/neutron-dhcp-agent.postinst.in new file mode 100644 index 000000000..0bf58fbbe --- /dev/null +++ b/debian/neutron-dhcp-agent.postinst.in @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +#PKGOS-INCLUDE# + +if [ "$1" = "configure" ]; then + pkgos_var_user_group neutron + chmod 755 /var/lib/neutron + + chown root:root /etc/neutron/rootwrap.d/dhcp.filters +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/neutron-dhcp-agent.upstart.in b/debian/neutron-dhcp-agent.upstart.in new file mode 100644 index 000000000..9e5504abd --- /dev/null +++ b/debian/neutron-dhcp-agent.upstart.in @@ -0,0 +1,14 @@ +description "Neutron l3 agent" +author "Chuck Short " + +start on runlevel [2345] +stop on runlevel [016] + +chdir /var/run + +pre-start script + mkdir -p /var/run/neutron + chown neutron:root /var/run/neutron +end script + +exec start-stop-daemon --start --chuid neutron:neutron --exec /usr/bin/neutron-dhcp-agent -- --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/dhcp_agent.ini --log-file=/var/log/neutron/dhcp-agent.log diff --git a/debian/neutron-l3-agent.init b/debian/neutron-l3-agent.init new file mode 100644 index 000000000..948f38697 --- /dev/null +++ b/debian/neutron-l3-agent.init @@ -0,0 +1,91 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: neutron-l3-agent +# Required-Start: $network $local_fs $remote_fs $syslog +# Required-Stop: $remote_fs +# Should-Start: mysql postgresql rabbitmq-server keystone openvswitch-switch +# Should-Stop: mysql postgresql rabbitmq-server keystone openvswitch-switch +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Neutron L3 agent +# Description: Provide L3 agent for neutron +### END INIT INFO + +# Authors: Mehdi Abaakouk +# Thomas Goirand + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="OpenStack Neutron L3 agent" +NAME=neutron-l3-agent +DAEMON=/usr/bin/neutron-l3-agent +DAEMON_ARGS="--config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/l3_agent.ini --log-file=/var/log/neutron/l3-agent.log" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x $DAEMON ] || exit 0 + +. /lib/lsb/init-functions + +do_start() +{ + start-stop-daemon --start --quiet --background --chuid neutron:neutron --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --background --chuid neutron:neutron --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 +} + +do_stop() +{ + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE + RETVAL="$?" + rm -f $PIDFILE + return "$RETVAL" +} + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + + *) + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 + exit 3 + ;; +esac diff --git a/debian/neutron-l3-agent.install b/debian/neutron-l3-agent.install new file mode 100644 index 000000000..5134363b1 --- /dev/null +++ b/debian/neutron-l3-agent.install @@ -0,0 +1,2 @@ +debian/cron.d/neutron-l3-agent-netns-cleanup etc/cron.d +etc/l3_agent.ini etc/neutron diff --git a/debian/neutron-l3-agent.logrotate b/debian/neutron-l3-agent.logrotate new file mode 100644 index 000000000..4420fbf89 --- /dev/null +++ b/debian/neutron-l3-agent.logrotate @@ -0,0 +1,7 @@ +/var/log/neutron/l3-agent.log { + daily + missingok + compress + delaycompress + notifempty +} diff --git a/debian/neutron-l3-agent.upstart.in b/debian/neutron-l3-agent.upstart.in new file mode 100644 index 000000000..780e6b645 --- /dev/null +++ b/debian/neutron-l3-agent.upstart.in @@ -0,0 +1,14 @@ +description "Quantum l3 plugin agent" +author "Chuck Short " + +start on runlevel [2345] +stop on runlevel [016] + +chdir /var/run + +pre-start script + mkdir -p /var/run/neutron + chown neutron:root /var/run/neutron +end script + +exec start-stop-daemon --start --chuid neutron:neutron --exec /usr/bin/neutron-l3-agent -- --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/l3_agent.ini --log-file=/var/log/neutron/l3-agent.log diff --git a/debian/neutron-lbaas-agent.init b/debian/neutron-lbaas-agent.init new file mode 100644 index 000000000..78b4d9133 --- /dev/null +++ b/debian/neutron-lbaas-agent.init @@ -0,0 +1,90 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: neutron-lbaas-agent +# Required-Start: $network $local_fs $remote_fs $syslog +# Required-Stop: $remote_fs +# Should-Start: mysql postgresql rabbitmq-server keystone +# Should-Stop: mysql postgresql rabbitmq-server keystone +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Neutron LBaaS agent +# Description: Provide LBaaS agent for neutron +### END INIT INFO + +# Author: Thomas Goirand + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="OpenStack Neutron LBaaS agent" +NAME=neutron-lbaas-agent +DAEMON=/usr/bin/${NAME} +DAEMON_ARGS="--config-file=/etc/neutron/lbaas_agent.ini --config-file=/etc/neutron/neutron.conf --log-file=/var/log/neutron/lbaas-agent.log" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x $DAEMON ] || exit 0 + +. /lib/lsb/init-functions + +do_start() +{ + start-stop-daemon --start --quiet --background --chuid neutron:neutron --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --background --chuid neutron:neutron --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 +} + +do_stop() +{ + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE + RETVAL="$?" + rm -f $PIDFILE + return "$RETVAL" +} + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + + *) + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 + exit 3 + ;; +esac diff --git a/debian/neutron-lbaas-agent.install b/debian/neutron-lbaas-agent.install new file mode 100644 index 000000000..fe9d2633c --- /dev/null +++ b/debian/neutron-lbaas-agent.install @@ -0,0 +1,2 @@ +debian/cron.d/neutron-lbaas-agent-netns-cleanup etc/cron.d +etc/lbaas_agent.ini etc/neutron diff --git a/debian/neutron-lbaas-agent.logrotate b/debian/neutron-lbaas-agent.logrotate new file mode 100644 index 000000000..5efb4dcd9 --- /dev/null +++ b/debian/neutron-lbaas-agent.logrotate @@ -0,0 +1,7 @@ +/var/log/neutron/lbaas-agent.log { + daily + missingok + compress + delaycompress + notifempty +} diff --git a/debian/neutron-lbaas-agent.upstart.in b/debian/neutron-lbaas-agent.upstart.in new file mode 100644 index 000000000..feed3e4f6 --- /dev/null +++ b/debian/neutron-lbaas-agent.upstart.in @@ -0,0 +1,14 @@ +description "Quantum LBaaS agent" +author "Chuck Short " + +start on runlevel [2345] +stop on runlevel [!2345] + +chdir /var/run + +pre-start script + mkdir -p /var/run/neutron + chown neutron:root /var/run/neutron +end script + +exec start-stop-daemon --start --chuid neutron:neutron --exec /usr/bin/neutron-lbaas-agent -- --config-file=/etc/neutron/lbaas_agent.ini --config-file=/etc/neutron/neutron.conf --log-file=/var/log/neutron/lbaas-agent.log diff --git a/debian/neutron-metadata-agent.config.in b/debian/neutron-metadata-agent.config.in new file mode 100644 index 000000000..04896a6cf --- /dev/null +++ b/debian/neutron-metadata-agent.config.in @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +META_AGNT_CONF=/etc/neutron/metadata_agent.ini + +#PKGOS-INCLUDE# + +pkgos_var_user_group neutron +chmod 755 /var/lib/neutron +pkgos_read_admin_creds ${META_AGNT_CONF} DEFAULT neutron +pkgos_read_config ${META_AGNT_CONF} DEFAULT auth_region neutron/region-name + +exit 0 diff --git a/debian/neutron-metadata-agent.init b/debian/neutron-metadata-agent.init new file mode 100644 index 000000000..8168e52e4 --- /dev/null +++ b/debian/neutron-metadata-agent.init @@ -0,0 +1,90 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: neutron-metadata-agent +# Required-Start: $network $local_fs $remote_fs $syslog +# Required-Stop: $remote_fs +# Should-Start: mysql postgresql rabbitmq-server keystone openvswitch-switch +# Should-Stop: mysql postgresql rabbitmq-server keystone openvswitch-switch +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Neutron Metadata Agent agent +# Description: Provide Metadata agent for neutron +### END INIT INFO + +# Author: Thomas Goirand + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="OpenStack Neutron Metadata Agent" +NAME=neutron-metadata-agent +DAEMON=/usr/bin/${NAME} +DAEMON_ARGS="--config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/metadata_agent.ini --log-file=/var/log/neutron/metadata-agent.log" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME + +# Exit if the package is not installed +[ -x $DAEMON ] || exit 0 + +. /lib/lsb/init-functions + +do_start() +{ + start-stop-daemon --start --quiet --background --chuid neutron:neutron --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --background --chuid neutron:neutron --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 +} + +do_stop() +{ + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE + RETVAL="$?" + rm -f $PIDFILE + return "$RETVAL" +} + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + + *) + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 + exit 3 + ;; +esac diff --git a/debian/neutron-metadata-agent.install b/debian/neutron-metadata-agent.install new file mode 100644 index 000000000..32d783fec --- /dev/null +++ b/debian/neutron-metadata-agent.install @@ -0,0 +1 @@ +etc/metadata_agent.ini /usr/share/neutron-metadata-agent diff --git a/debian/neutron-metadata-agent.logrotate b/debian/neutron-metadata-agent.logrotate new file mode 100644 index 000000000..986234563 --- /dev/null +++ b/debian/neutron-metadata-agent.logrotate @@ -0,0 +1,7 @@ +/var/log/neutron/metadata-agent.log { + daily + missingok + compress + delaycompress + notifempty +} diff --git a/debian/neutron-metadata-agent.postinst.in b/debian/neutron-metadata-agent.postinst.in new file mode 100644 index 000000000..59d5e4b54 --- /dev/null +++ b/debian/neutron-metadata-agent.postinst.in @@ -0,0 +1,30 @@ +#!/bin/sh + +set -e + +CONF_FILE=/etc/neutron/metadata_agent.ini + +#PKGOS-INCLUDE# + +manage_metadata_region () { + db_get neutron/region-name + if [ -n "${RET}" ] ; then + pkgos_inifile set ${CONF_FILE} DEFAULT auth_region ${RET} + fi +} + +if [ "${1}" = "configure" ] ; then + . /usr/share/debconf/confmodule + pkgos_var_user_group neutron + + if [ ! -e ${CONF_FILE} ] ; then + install -D -m 0640 -o neutron -g neutron /usr/share/neutron-metadata-agent/metadata_agent.ini ${CONF_FILE} + fi + pkgos_write_admin_creds ${CONF_FILE} DEFAULT neutron + manage_metadata_region + db_stop +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/neutron-metadata-agent.postrm b/debian/neutron-metadata-agent.postrm new file mode 100644 index 000000000..45f37ab27 --- /dev/null +++ b/debian/neutron-metadata-agent.postrm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if [ "${1}" = "purge" ] ; then + rm -f /etc/neutron/metadata_agent.ini +fi + +#DEBHELPER# diff --git a/debian/neutron-metadata-agent.templates b/debian/neutron-metadata-agent.templates new file mode 100644 index 000000000..98a49cf57 --- /dev/null +++ b/debian/neutron-metadata-agent.templates @@ -0,0 +1,36 @@ +# These templates have been reviewed by the debian-l10n-english +# team +# +# If modifications/additions/rewording are needed, please ask +# debian-l10n-english@lists.debian.org for advice. +# +# Even minor modifications require translation updates and such +# changes should be coordinated with translators and reviewers. + +Template: neutron/auth-host +Type: string +Default: 127.0.0.1 +_Description: Auth server hostname: + Please specify the URL of your Neutron authentication server. Typically + this is also the URL of your OpenStack Identity Service (Keystone). + +Template: neutron/admin-tenant-name +Type: string +Default: admin +_Description: Auth server tenant name: + +Template: neutron/admin-user +Type: string +Default: admin +_Description: Auth server username: + +Template: neutron/admin-password +Type: password +_Description: Auth server password: + +Template: neutron/region-name +Type: string +Default: regionOne +_Description: Name of the region to be used by the metadata server: + Openstack can be used using availability zones, with each region representing + a location. Please enter the zone that the metadata server should use. diff --git a/debian/neutron-metadata-agent.upstart.in b/debian/neutron-metadata-agent.upstart.in new file mode 100644 index 000000000..98311453f --- /dev/null +++ b/debian/neutron-metadata-agent.upstart.in @@ -0,0 +1,16 @@ +description "Neutron metadata plugin agent" +author "Yolanda Robla " + +start on runlevel [2345] +stop on runlevel [016] + +chdir /var/run + +pre-start script + mkdir -p /var/run/neutron + chown neutron:root /var/run/neutron +end script + +exec start-stop-daemon --start --chuid neutron:neutron --exec /usr/bin/neutron-metadata-agent -- \ + --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/metadata_agent.ini \ + --log-file=/var/log/neutron/metadata-agent.log diff --git a/debian/neutron-plugin-bigswitch.install b/debian/neutron-plugin-bigswitch.install new file mode 100644 index 000000000..73e8451d6 --- /dev/null +++ b/debian/neutron-plugin-bigswitch.install @@ -0,0 +1 @@ +etc/neutron/plugins/bigswitch/* etc/neutron/plugins/bigswitch diff --git a/debian/neutron-plugin-brocade.install b/debian/neutron-plugin-brocade.install new file mode 100644 index 000000000..ef68dc882 --- /dev/null +++ b/debian/neutron-plugin-brocade.install @@ -0,0 +1 @@ +etc/neutron/plugins/brocade/* etc/neutron/plugins/brocade diff --git a/debian/neutron-plugin-cisco.install b/debian/neutron-plugin-cisco.install new file mode 100644 index 000000000..0c4968fb4 --- /dev/null +++ b/debian/neutron-plugin-cisco.install @@ -0,0 +1 @@ +etc/neutron/plugins/cisco/* etc/neutron/plugins/cisco diff --git a/debian/neutron-plugin-hyperv.install b/debian/neutron-plugin-hyperv.install new file mode 100644 index 000000000..2d8f762cf --- /dev/null +++ b/debian/neutron-plugin-hyperv.install @@ -0,0 +1 @@ +etc/neutron/plugins/hyperv/* etc/neutron/plugins/hyperv diff --git a/debian/neutron-plugin-linuxbridge-agent.init b/debian/neutron-plugin-linuxbridge-agent.init new file mode 100644 index 000000000..e330521ef --- /dev/null +++ b/debian/neutron-plugin-linuxbridge-agent.init @@ -0,0 +1,94 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: neutron-plugin-linuxbridge-agent +# Required-Start: $network $local_fs $remote_fs $syslog +# Required-Stop: $remote_fs +# Should-Start: mysql postgresql rabbitmq-server keystone +# Should-Stop: mysql postgresql rabbitmq-server keystone +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Neutron LinuxBridge Agent +# Description: Agent to use within neutron linuxbridge client +### END INIT INFO + +# Author: Ghe Rivero + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="Openstack Neutron LinuxBridge Plugin Agent" +NAME=neutron-linuxbridge-agent +DAEMON=/usr/bin/neutron-linuxbridge-agent +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME +CONF_FILE=/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini + +# Exit if the package is not installed +[ -x $DAEMON ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +. /lib/lsb/init-functions + +do_start() +{ + start-stop-daemon --start --background --quiet --chuid neutron:neutron --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --background --quiet --chuid neutron:neutron --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \ + $CONF_FILE \ + || return 2 +} + +do_stop() +{ + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE + RETVAL="$?" + rm -f $PIDFILE + return "$RETVAL" +} + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/debian/neutron-plugin-linuxbridge-agent.logrotate b/debian/neutron-plugin-linuxbridge-agent.logrotate new file mode 100644 index 000000000..5ad23eabb --- /dev/null +++ b/debian/neutron-plugin-linuxbridge-agent.logrotate @@ -0,0 +1,7 @@ +/var/log/neutron/linuxbridge-agent.log { + daily + missingok + compress + delaycompress + notifempty +} diff --git a/debian/neutron-plugin-linuxbridge-agent.manpages b/debian/neutron-plugin-linuxbridge-agent.manpages new file mode 100644 index 000000000..d1e40a2ae --- /dev/null +++ b/debian/neutron-plugin-linuxbridge-agent.manpages @@ -0,0 +1 @@ +debian/mans/neutron-linuxbridge-agent.8 diff --git a/debian/neutron-plugin-linuxbridge-agent.upstart.in b/debian/neutron-plugin-linuxbridge-agent.upstart.in new file mode 100644 index 000000000..1f0b67fae --- /dev/null +++ b/debian/neutron-plugin-linuxbridge-agent.upstart.in @@ -0,0 +1,14 @@ +description "Quantum server" +author "Chuck Short " + +start on runlevel [2345] +stop on runlevel [016] + +chdir /var/run + +pre-start script + mkdir -p /var/run/neutron + chown neutron:root /var/run/neutron +end script + +exec start-stop-daemon --start --chuid neutron:neutron --exec /usr/bin/neutron-linuxbridge-agent -- --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini --log-file=/var/log/neutron/linuxbridge-agent.log diff --git a/debian/neutron-plugin-linuxbridge.install b/debian/neutron-plugin-linuxbridge.install new file mode 100644 index 000000000..4ea480748 --- /dev/null +++ b/debian/neutron-plugin-linuxbridge.install @@ -0,0 +1 @@ +etc/neutron/plugins/linuxbridge/* etc/neutron/plugins/linuxbridge diff --git a/debian/neutron-plugin-metaplugin.config.in b/debian/neutron-plugin-metaplugin.config.in new file mode 100644 index 000000000..c8874cfa2 --- /dev/null +++ b/debian/neutron-plugin-metaplugin.config.in @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +META_CONF=/etc/neutron/metadata_agent.ini + +#PKGOS-INCLUDE# + +pkgos_var_user_group neutron +chmod 755 /var/lib/neutron +pkgos_read_admin_creds ${META_CONF} DEFAULT neutron-plugin-metaplugin + +exit 0 diff --git a/debian/neutron-plugin-metaplugin.install b/debian/neutron-plugin-metaplugin.install new file mode 100644 index 000000000..b2cde8d0a --- /dev/null +++ b/debian/neutron-plugin-metaplugin.install @@ -0,0 +1,2 @@ +etc/metadata_agent.ini usr/share/neutron-plugin-metaplugin +etc/neutron/plugins/metaplugin/* etc/neutron/plugins/metaplugin diff --git a/debian/neutron-plugin-metaplugin.postinst.in b/debian/neutron-plugin-metaplugin.postinst.in new file mode 100644 index 000000000..674aeb403 --- /dev/null +++ b/debian/neutron-plugin-metaplugin.postinst.in @@ -0,0 +1,25 @@ +#!/bin/sh + +set -e + +META_CONF="/etc/neutron/metadata_agent.ini" + +#PKGOS-INCLUDE# + +if [ "$1" = "configure" ]; then + . /usr/share/debconf/confmodule + + pkgos_var_user_group neutron + chmod 755 /var/lib/neutron + if [ ! -d /etc/neutron ] ; then + mkdir -p /etc/neutron + fi + if [ ! -e "${META_CONF}" ] ; then + install -D -m 640 -o neutron -g neutron /usr/share/neutron-plugin-metaplugin/metadata_agent.ini ${META_CONF} + fi + pkgos_write_admin_creds ${META_CONF} DEFAULT neutron-plugin-metaplugin +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/neutron-plugin-metaplugin.postrm b/debian/neutron-plugin-metaplugin.postrm new file mode 100644 index 000000000..583d59ebd --- /dev/null +++ b/debian/neutron-plugin-metaplugin.postrm @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +if [ "${1}" = "purge" ] ; then + if [ -e /etc/neutron/metadata_agent.ini ] ; then + rm -f /etc/neutron/metadata_agent.ini + fi + if [ -d /etc/neutron ] ; then + rmdir --ignore-fail-on-non-empty /etc/neutron || true + fi +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/neutron-plugin-metaplugin.templates b/debian/neutron-plugin-metaplugin.templates new file mode 100644 index 000000000..ced188fb1 --- /dev/null +++ b/debian/neutron-plugin-metaplugin.templates @@ -0,0 +1,32 @@ +# These templates have been reviewed by the debian-l10n-english +# team +# +# If modifications/additions/rewording are needed, please ask +# debian-l10n-english@lists.debian.org for advice. +# +# Even minor modifications require translation updates and such +# changes should be coordinated with translators and reviewers. + +Template: neutron-plugin-metaplugin/auth-host +Type: string +Default: 127.0.0.1 +_Description: Authentication server hostname: + Please specify the hostname of the authentication server. Typically + this is also the hostname of the OpenStack Identity Service (Keystone). + +Template: neutron-plugin-metaplugin/admin-tenant-name +Type: string +Default: admin +_Description: Authentication server tenant name: + Please specify the authentication server tenant name. + +Template: neutron-plugin-metaplugin/admin-user +Type: string +Default: admin +_Description: Authentication server username: + Please specify the username to use with the authentication server. + +Template: neutron-plugin-metaplugin/admin-password +Type: password +_Description: Authentication server password: + Please specify the password to use with the authentication server. diff --git a/debian/neutron-plugin-nec-agent.logrotate b/debian/neutron-plugin-nec-agent.logrotate new file mode 100644 index 000000000..a2595afcb --- /dev/null +++ b/debian/neutron-plugin-nec-agent.logrotate @@ -0,0 +1,7 @@ +/var/log/neutron/nec-agent.log { + daily + missingok + compress + delaycompress + notifempty +} diff --git a/debian/neutron-plugin-nec-agent.manpages b/debian/neutron-plugin-nec-agent.manpages new file mode 100644 index 000000000..a9a0ac4ee --- /dev/null +++ b/debian/neutron-plugin-nec-agent.manpages @@ -0,0 +1 @@ +debian/mans/neutron-nec-agent.8 diff --git a/debian/neutron-plugin-nec-agent.upstart.in b/debian/neutron-plugin-nec-agent.upstart.in new file mode 100644 index 000000000..c7ba3ea1b --- /dev/null +++ b/debian/neutron-plugin-nec-agent.upstart.in @@ -0,0 +1,14 @@ +description "Quantum plugin NEC agent" +author "Chuck Short " + +start on runlevel [2345] +stop on runlevel [!2345] + +chdir /var/run + +pre-start script + mkdir -p /var/run/neutron + chown neutron:root /var/run/neutron +end script + +exec start-stop-daemon --start --chuid neutron:neutron --exec /usr/bin/neutron-nec-agent -- --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/plugins/nec/nec.ini --log-file=/var/log/neutron/nec-agent.log diff --git a/debian/neutron-plugin-nec.install b/debian/neutron-plugin-nec.install new file mode 100644 index 000000000..b8903f6f7 --- /dev/null +++ b/debian/neutron-plugin-nec.install @@ -0,0 +1 @@ +etc/neutron/plugins/nec/* etc/neutron/plugins/nec diff --git a/debian/neutron-plugin-nicira.install b/debian/neutron-plugin-nicira.install new file mode 100644 index 000000000..cfee84e05 --- /dev/null +++ b/debian/neutron-plugin-nicira.install @@ -0,0 +1 @@ +etc/neutron/plugins/nicira/* etc/neutron/plugins/nicira diff --git a/debian/neutron-plugin-openvswitch-agent.init b/debian/neutron-plugin-openvswitch-agent.init new file mode 100644 index 000000000..76cce5ca2 --- /dev/null +++ b/debian/neutron-plugin-openvswitch-agent.init @@ -0,0 +1,102 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: neutron-plugin-openvswitch-agent +# Required-Start: $network $local_fs $remote_fs $syslog openvswitch-switch +# Required-Stop: $remote_fs openvswitch-switch +# Should-Start: mysql postgresql rabbitmq-server keystone +# Should-Stop: mysql postgresql rabbitmq-server keystone +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Neutron OpenVSwitch Agent +# Description: Agent to use within neutron openswitch client +### END INIT INFO + +# Authors: Julien Danjou , Thomas Goirand + +# PATH should only include /usr/* if it runs after the mountnfs.sh script +PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="Openstack Neutron OpenVSwitch Plugin Agent" +NAME=neutron-openvswitch-agent +DAEMON=/usr/bin/neutron-openvswitch-agent +DAEMON_ARGS="--config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini --log-file=/var/log/neutron/ovs-agent.log" +PIDFILE=/var/run/$NAME.pid +SCRIPTNAME=/etc/init.d/$NAME +CONF_FILE=/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini + +# Exit if the package is not installed +[ -x $DAEMON ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +. /lib/lsb/init-functions + + +do_start() +{ + if [ -x /usr/bin/neutron-ovs-cleanup ] ; then + if [ ! -e /var/run/neutron-ovs-cleanup-performed ] ; then + /usr/bin/neutron-ovs-cleanup + touch /var/run/neutron-ovs-cleanup-performed + fi + fi + start-stop-daemon --start --background --quiet --chuid neutron:neutron --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --background --quiet --chuid neutron:neutron --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 +} + +do_stop() +{ + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE + RETVAL="$?" + rm -f $PIDFILE + return "$RETVAL" +} + +case "$1" in + start) + log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + stop) + log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: diff --git a/debian/neutron-plugin-openvswitch-agent.logrotate b/debian/neutron-plugin-openvswitch-agent.logrotate new file mode 100644 index 000000000..4d8471070 --- /dev/null +++ b/debian/neutron-plugin-openvswitch-agent.logrotate @@ -0,0 +1,7 @@ +/var/log/neutron/ovs-agent.log { + daily + missingok + compress + delaycompress + notifempty +} diff --git a/debian/neutron-plugin-openvswitch-agent.manpages b/debian/neutron-plugin-openvswitch-agent.manpages new file mode 100644 index 000000000..7cc4efedf --- /dev/null +++ b/debian/neutron-plugin-openvswitch-agent.manpages @@ -0,0 +1 @@ +debian/mans/neutron-openvswitch-agent.8 diff --git a/debian/neutron-plugin-openvswitch-agent.upstart.in b/debian/neutron-plugin-openvswitch-agent.upstart.in new file mode 100644 index 000000000..ff741afc1 --- /dev/null +++ b/debian/neutron-plugin-openvswitch-agent.upstart.in @@ -0,0 +1,14 @@ +description "Quantum openvswitch plugin agent" +author "Chuck Short " + +start on runlevel [2345] +stop on runlevel [016] + +chdir /var/run + +pre-start script + mkdir -p /var/run/neutron + chown neutron:root /var/run/neutron +end script + +exec start-stop-daemon --start --chuid neutron:neutron --exec /usr/bin/neutron-openvswitch-agent -- --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini --log-file=/var/log/neutron/openvswitch-agent.log diff --git a/debian/neutron-plugin-openvswitch.README.Debian b/debian/neutron-plugin-openvswitch.README.Debian new file mode 100644 index 000000000..c5d8c2c67 --- /dev/null +++ b/debian/neutron-plugin-openvswitch.README.Debian @@ -0,0 +1,27 @@ +Debian packages are set to use OpenVSwitch by default, since that is the most +universal option. To have a correct setup, you should do the following on +your node: + +ovs-vsctl add-br br-int +ovs-vsctl add-br br-ex +ovs-vsctl br-set-external-id br-ex bridge-id br-ex +ovs-vsctl add-port br-ex eth0 + +Then your br-ex IP address is handled by your network config in your +/etc/network/interfaces configuration file: + +auto br-ex +iface br-ex inet static + address 192.168.1.10 + netmask 255.255.255.0 + +This will bring up a bridge "br-int" for the internal network, and "br-ex" for +the network connected to the public internet. Here, 192.168.1.10 is then of +course your public IP address of the router which will deliver network to your +virtual machines. + +With this setup, using tenant_network_type = gre and enable_tunneling = True +in /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini, which is the +default in this package, should work. + + -- Thomas Goirand Sat, 03 Nov 2012 14:01:32 +0000 diff --git a/debian/neutron-plugin-openvswitch.config.in b/debian/neutron-plugin-openvswitch.config.in new file mode 100644 index 000000000..d6d41b104 --- /dev/null +++ b/debian/neutron-plugin-openvswitch.config.in @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +OVS_CONF=/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini + +#PKGOS-INCLUDE# + +# Various network config... +pkgos_read_config ${OVS_CONF} OVS tenant_network_type neutron-plugin-openvswitch/tenant_network_type +pkgos_read_config ${OVS_CONF} OVS enable_tunneling neutron-plugin-openvswitch/enable_tunneling +pkgos_read_config ${OVS_CONF} OVS tunnel_id_ranges neutron-plugin-openvswitch/tunnel_id_ranges + +# Guess values to put in the local_ip directive +IF=`LC_ALL=C route | grep default |awk -- '{ print $8 }'` +guessed_ip_addr=`LC_ALL=C ifconfig ${IF} | grep 'inet addr' | sed 's/.\+inet addr:\([0-9.]\+\).\+/\1/'` +if [ -z "${guessed_ip_addr}" ] ; then + guessed_ip_addr=`LC_ALL=C ifconfig ${IF} | grep 'inet adr' | sed 's/.\+inet adr:\([0-9.]\+\).\+/\1/'` +fi +db_set neutron-plugin-openvswitch/local_ip ${guessed_ip_addr} +pkgos_read_config ${OVS_CONF} OVS local_ip neutron-plugin-openvswitch/local_ip + +# Configure the SQL connection +pkgos_dbc_read_conf -pkg neutron-plugin-openvswitch ${OVS_CONF} DATABASE sql_connection neutron-plugin-openvswitch $@ + +exit 0 diff --git a/debian/neutron-plugin-openvswitch.postinst.in b/debian/neutron-plugin-openvswitch.postinst.in new file mode 100644 index 000000000..d21a5722d --- /dev/null +++ b/debian/neutron-plugin-openvswitch.postinst.in @@ -0,0 +1,35 @@ +#!/bin/sh + +set -e + +OVS_CONF=/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini + +#PKGOS-INCLUDE# + +if [ "$1" = "configure" ] ; then + . /usr/share/debconf/confmodule + . /usr/share/dbconfig-common/dpkg/postinst + + pkgos_var_user_group neutron + chmod 755 /var/lib/neutron + + if [ ! -e ${OVS_CONF} ] ; then + install -D -m 0640 -o neutron -g neutron /usr/share/neutron-plugin-openvswitch/ovs_neutron_plugin.ini ${OVS_CONF} + fi + pkgos_dbc_postinst --suite neutron ${OVS_CONF} DATABASE sql_connection neutron-plugin-openvswitch $@ + + db_get neutron-plugin-openvswitch/tenant_network_type + pkgos_inifile set ${OVS_CONF} OVS tenant_network_type "${RET}" + db_get neutron-plugin-openvswitch/enable_tunneling + pkgos_inifile set ${OVS_CONF} OVS enable_tunneling "${RET}" + db_get neutron-plugin-openvswitch/tunnel_id_ranges + pkgos_inifile set ${OVS_CONF} OVS tunnel_id_ranges "${RET}" + db_get neutron-plugin-openvswitch/local_ip + pkgos_inifile set ${OVS_CONF} OVS local_ip "${RET}" + + db_stop +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/neutron-plugin-openvswitch.postrm b/debian/neutron-plugin-openvswitch.postrm new file mode 100644 index 000000000..b206631f0 --- /dev/null +++ b/debian/neutron-plugin-openvswitch.postrm @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +if [ "${1}" = "purge" ] ; then + if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_get neutron-plugin-openvswitch/configure_db + if [ "$RET" = "true" ]; then + if [ -f /usr/share/dbconfig-common/dpkg/postrm ] ; then + . /usr/share/dbconfig-common/dpkg/postrm + dbc_go neutron-plugin-openvswitch $@ + else + rm -f /etc/dbconfig-common/neutron-plugin-openvswitch.conf + if which ucf >/dev/null 2>&1; then + ucf --purge /etc/dbconfig-common/neutron-plugin-openvswitch.conf + ucfr --purge neutron-plugin-openvswitch /etc/dbconfig-common/neutron-plugin-openvswitch.conf + fi + fi + fi + fi + [ -w /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini ] && rm -f /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini + [ -d /etc/neutron/plugins/openvswitch ] && rmdir --ignore-fail-on-non-empty /etc/neutron/plugins/openvswitch + [ -d /etc/neutron/plugins ] && rmdir --ignore-fail-on-non-empty /etc/neutron/plugins + [ -d /etc/neutron ] && rmdir --ignore-fail-on-non-empty /etc/neutron + rm -rf /var/lib/neutron-plugin-openvswitch +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/neutron-plugin-openvswitch.prerm b/debian/neutron-plugin-openvswitch.prerm new file mode 100644 index 000000000..5562a458c --- /dev/null +++ b/debian/neutron-plugin-openvswitch.prerm @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_get neutron-plugin-openvswitch/configure_db +if [ "$RET" = "true" ]; then + . /usr/share/dbconfig-common/dpkg/prerm + dbc_go neutron-plugin-openvswitch $@ +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/neutron-plugin-openvswitch.templates b/debian/neutron-plugin-openvswitch.templates new file mode 100644 index 000000000..21848d423 --- /dev/null +++ b/debian/neutron-plugin-openvswitch.templates @@ -0,0 +1,67 @@ +# These templates have been reviewed by the debian-l10n-english +# team +# +# If modifications/additions/rewording are needed, please ask +# debian-l10n-english@lists.debian.org for advice. +# +# Even minor modifications require translation updates and such +# changes should be coordinated with translators and reviewers. + +Template: neutron-plugin-openvswitch/configure_db +Type: boolean +Default: true +_Description: Set up a database for neutron-plugin-openvswitch? + No database has been set up for neutron-plugin-openvswitch to use. Before + continuing, you should make sure you have the following information: + . + * the type of database that you want to use; + * the database server hostname (that server must allow TCP connections from this + machine); + * a username and password to access the database. + . + If some of these requirements are missing, do not choose this option and run with + regular SQLite support. + . + You can change this setting later on by running "dpkg-reconfigure -plow + neutron-plugin-openvswitch". + +Template: neutron-plugin-openvswitch/tenant_network_type +Type: select +__Choices: local, gre, vlan, none +Choices-C: local, gre, vlan, none +Default: gre +# Translators: a "tenant" in OpenStack world is +# an entity that contains one or more username/password couples. +# It's typically the tenant that will be used for billing. Having more than one +# username/password is very helpful in larger organization. +# You're advised to either keep "tenant" without translating it +# or keep it parenthezised. Example for French: +# locataire ("tenant") +_Description: Type of network to allocate for tenant networks: + The value "local" is useful only for single-box testing. In order for + tenant networks to provide connectivity between hosts, it is necessary + to either choose "vlan" and then configure "network_vlan_ranges" or to + choose "gre" and then configure "tunnel_id_ranges". Choose "none" to + disable creation of tenant networks. + +Template: neutron-plugin-openvswitch/enable_tunneling +Type: boolean +Default: true +_Description: Enable tunneling? + Please choose whether support should be activated for GRE networks on the + server and agents. This requires kernel support for OVS patch ports and + GRE tunneling. + +Template: neutron-plugin-openvswitch/tunnel_id_ranges +Type: string +Default: 1:1000 +_Description: Tunnel id ranges: + Please enter a comma-separated list of : tuples enumerating + ranges of GRE tunnel IDs that are available for tenant network allocation + if tenant_network_type is "gre". + +Template: neutron-plugin-openvswitch/local_ip +Type: string +_Description: Local IP address of this hypervisor: + Please enter the local IP address for this hypervisor. + diff --git a/debian/neutron-plugin-plumgrid.install b/debian/neutron-plugin-plumgrid.install new file mode 100644 index 000000000..bed2da117 --- /dev/null +++ b/debian/neutron-plugin-plumgrid.install @@ -0,0 +1 @@ +etc/neutron/plugins/plumgrid/* etc/neutron/plugins/plumgrid diff --git a/debian/neutron-plugin-ryu-agent.upstart.in b/debian/neutron-plugin-ryu-agent.upstart.in new file mode 100644 index 000000000..39e14911f --- /dev/null +++ b/debian/neutron-plugin-ryu-agent.upstart.in @@ -0,0 +1,14 @@ +description "Neutron plugin ryu agent" +author "Chuck Short " + +start on runlevel [2345] +stop on runlevel [016] + +chdir /var/run + +pre-start script + mkdir -p /var/run/neutron + chown neutron:root /var/run/neutron +end script + +exec start-stop-daemon --start --chuid neutron:neutron --exec /usr/bin/neutron-ryu-agent -- --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/plugins/ryu/ryu.ini --log-file=/var/log/neutron/ryu-agent.log diff --git a/debian/neutron-server.config.in b/debian/neutron-server.config.in new file mode 100644 index 000000000..768be1d00 --- /dev/null +++ b/debian/neutron-server.config.in @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +#PKGOS-INCLUDE# + +pkgos_register_endpoint_config neutron + +exit 0 diff --git a/debian/neutron-server.default b/debian/neutron-server.default new file mode 100644 index 000000000..fa5030be0 --- /dev/null +++ b/debian/neutron-server.default @@ -0,0 +1,9 @@ +# You should choose one of this configuration file accord the installed backend + +# NEUTRON_PLUGIN_CONFIG="/etc/neutron/plugins/nicira/nvp.ini" +# NEUTRON_PLUGIN_CONFIG="/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini" +# NEUTRON_PLUGIN_CONFIG="/etc/neutron/plugins/nec/nec.ini" +# NEUTRON_PLUGIN_CONFIG="/etc/neutron/plugins/ryu/ryu.ini" +# NEUTRON_PLUGIN_CONFIG="/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini" + +NEUTRON_PLUGIN_CONFIG="/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini" diff --git a/debian/neutron-server.init b/debian/neutron-server.init new file mode 100644 index 000000000..447621438 --- /dev/null +++ b/debian/neutron-server.init @@ -0,0 +1,110 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: neutron-server +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: mysql postgresql rabbitmq-server keystone +# Should-Stop: mysql postgresql rabbitmq-server keystone +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: neutron-server +# Description: Provides the Neutron networking service +### END INIT INFO + +export PATH=/sbin:/usr/sbin:/bin:/usr/bin +DESC="OpenStack Neutron Server" +NAME=neutron-server +DAEMON=/usr/bin/${NAME} +PIDFILE=/var/run/neutron/${NAME}.pid +SCRIPTNAME=/etc/init.d/${NAME} +LOGFILE=/var/log/neutron/neutron-server.log +DAEMON_DIR=/var/run +DAEMON_ARGS="--config-file=/etc/neutron/neutron.conf --log-file=$LOGFILE" + +# Exit if the package is not installed +[ -x $DAEMON ] || exit 0 + +. /lib/lsb/init-functions + +if [ -r /etc/default/neutron-server ] ; then + . /etc/default/neutron-server + if [ -n "${QUANTUM_PLUGIN_CONFIG}" ] ; then + DAEMON_ARGS="${DAEMON_ARGS} --config-file=${QUANTUM_PLUGIN_CONFIG}" + fi +fi + +make_neutron_folder () { + if [ ! -e ${1} ] ; then + mkdir -p ${1} + if [ ! -d ${1} ] ; then + echo "${1} folder cannot be created: exiting!" + exit 1 + fi + chown neutron:neutron ${1} + fi +} +for i in /var/run/neutron /var/log/neutron /var/lib/neutron/tmp ; do + make_neutron_folder ${i} +done +export TMPDIR=/var/lib/neutron/tmp + +do_start () { + start-stop-daemon --start --quiet --background --chuid neutron:neutron --chdir $DAEMON_DIR --make-pidfile --pidfile $PIDFILE --startas $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --background --chuid neutron:neutron --chdir $DAEMON_DIR --make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 +} + +do_stop () { + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE + RETVAL="$?" + rm -f $PIDFILE + return "$RETVAL" +} + +case "$1" in +start) + log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) log_end_msg 0 ;; + 2) log_end_msg 1 ;; + esac +;; +stop) + log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) log_end_msg 0 ;; + *) log_end_msg 1 ;; + esac +;; +restart|force-reload) + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac +;; +status) + status_of_proc -p $PIDFILE $DAEMON neutron-server && exit 0 || exit $? +;; +*) + log_action_msg "Usage: /etc/init.d/neutron-server {start|stop|restart|force-reload|status}" + exit 1 +;; +esac + +exit 0 diff --git a/debian/neutron-server.logrotate b/debian/neutron-server.logrotate new file mode 100644 index 000000000..3b1817af8 --- /dev/null +++ b/debian/neutron-server.logrotate @@ -0,0 +1,7 @@ +/var/log/neutron/neutron-server.log { + daily + missingok + compress + delaycompress + notifempty +} \ No newline at end of file diff --git a/debian/neutron-server.manpages b/debian/neutron-server.manpages new file mode 100644 index 000000000..6d556fbdb --- /dev/null +++ b/debian/neutron-server.manpages @@ -0,0 +1,2 @@ +debian/mans/neutron-server.8 +debian/mans/neutron-rootwrap.8 diff --git a/debian/neutron-server.postinst.in b/debian/neutron-server.postinst.in new file mode 100644 index 000000000..b556e50e3 --- /dev/null +++ b/debian/neutron-server.postinst.in @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +#PKGOS-INCLUDE# + +if [ "$1" = "configure" ] ; then + . /usr/share/debconf/confmodule + pkgos_register_endpoint_postinst neutron neutron network "Neutron networking service" 9696 "" + db_stop +fi + +#DEBHELPER# + +exit 0 diff --git a/debian/neutron-server.prerm b/debian/neutron-server.prerm new file mode 100644 index 000000000..8800b3595 --- /dev/null +++ b/debian/neutron-server.prerm @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +case $1 in + remove|purge) + invoke-rc.d neutron-server stop +esac + +#DEBHELPER# diff --git a/debian/neutron-server.templates b/debian/neutron-server.templates new file mode 100644 index 000000000..5d4e59234 --- /dev/null +++ b/debian/neutron-server.templates @@ -0,0 +1,48 @@ +# These templates have been reviewed by the debian-l10n-english +# team +# +# If modifications/additions/rewording are needed, please ask +# debian-l10n-english@lists.debian.org for advice. +# +# Even minor modifications require translation updates and such +# changes should be coordinated with translators and reviewers. + +Template: neutron/register-endpoint +Type: boolean +Default: false +_Description: Register Neutron in the Keystone endpoint catalog? + Each OpenStack service (each API) should be registered in order to be + accessible. This is done using "keystone service-create" and "keystone + endpoint-create". This can be done automatically now. + . + Note that you will need to have an up and running Keystone server on which to + connect using the Keystone authentication token. + +Template: neutron/keystone-ip +Type: string +_Description: Keystone server IP address: + Please enter the IP address of the Keystone server, so that neutron-api can + contact Keystone to do the Neutron service and endpoint creation. + +Template: neutron/keystone-auth-token +Type: password +_Description: Keystone authentication token: + To configure its endpoint in Keystone, neutron-server needs the Keystone auth + token. + +Template: neutron/endpoint-ip +Type: string +_Description: Neutron endpoint IP address: + Please enter the IP address that will be used to contact Neutron. + . + This IP address should be accessible from the clients that will use this + service, so if you are installing a public cloud, this should be a public + IP address. + +Template: neutron/region-name +Type: string +Default: regionOne +_Description: Name of the region to register: + OpenStack supports using availability zones, with each region representing + a location. Please enter the zone that you wish to use when registering the + endpoint. diff --git a/debian/neutron-server.upstart.in b/debian/neutron-server.upstart.in new file mode 100644 index 000000000..ba86aec91 --- /dev/null +++ b/debian/neutron-server.upstart.in @@ -0,0 +1,20 @@ +description "Neutron server" +author "Chuck Short " + +start on runlevel [2345] +stop on runlevel [016] + +chdir /var/run + +pre-start script + mkdir -p /var/run/neutron + chown neutron:root /var/run/neutron +end script + +script + [ -r /etc/default/neutron-server ] && . /etc/default/neutron-server + [ -r "$QUANTUM_PLUGIN_CONFIG" ] && CONF_ARG="--config-file $QUANTUM_PLUGIN_CONFIG" + exec start-stop-daemon --start --chuid neutron:neutron --exec /usr/bin/neutron-server -- \ + --config-file /etc/neutron/neutron.conf \ + --log-file /var/log/neutron/server.log $CONF_ARG +end script diff --git a/debian/neutron_sudoers b/debian/neutron_sudoers new file mode 100644 index 000000000..b5448c895 --- /dev/null +++ b/debian/neutron_sudoers @@ -0,0 +1,3 @@ +Defaults:neutron !requiretty + +neutron ALL = (root) NOPASSWD: /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf * diff --git a/debian/patches/better-config-default.patch b/debian/patches/better-config-default.patch new file mode 100644 index 000000000..800c54aab --- /dev/null +++ b/debian/patches/better-config-default.patch @@ -0,0 +1,79 @@ +Description: A configuration that should work by default +Author: Thomas Goirand +Forwarded: not-needed +Last-Update: 2013-07-28 + +--- neutron-2013.2~b2.orig/etc/neutron.conf ++++ neutron-2013.2~b2/etc/neutron.conf +@@ -46,6 +46,7 @@ bind_port = 9696 + + # Quantum plugin provider module + # core_plugin = ++core_plugin = neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2 + + # Advanced service modules + # service_plugins = +@@ -301,6 +302,7 @@ notification_topics = notifications + # root filter facility. + # Change to "sudo" to skip the filtering and just run the comand directly + # root_helper = sudo ++root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf + + # =========== items for agent management extension ============= + # seconds between nodes reporting state to server, should be less than +--- neutron-2013.2~b2.orig/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini ++++ neutron-2013.2~b2/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini +@@ -1,3 +1,6 @@ ++[database] ++connection = sqlite:///var/lib/neutron/neutronplugovsdb ++ + [ovs] + # (StrOpt) Type of network to allocate for tenant networks. The + # default value 'local' is useful only for single-box testing and +@@ -7,9 +10,9 @@ + # tenant networks to provide connectivity between hosts. Set to 'none' + # to disable creation of tenant networks. + # +-# tenant_network_type = local + # Example: tenant_network_type = gre + # Example: tenant_network_type = vxlan ++tenant_network_type = gre + + # (ListOpt) Comma-separated list of + # [::] tuples enumerating ranges +@@ -29,23 +32,22 @@ + # WARNING: This option will be deprecated in the Icehouse release, at which + # point setting tunnel_type below will be required to enable + # tunneling. +-# +-# enable_tunneling = False ++enable_tunneling = True + + # (StrOpt) The type of tunnel network, if any, supported by the plugin. If + # this is set, it will cause tunneling to be enabled. If this is not set and + # the option enable_tunneling is set, this will default to 'gre'. + # +-# tunnel_type = + # Example: tunnel_type = gre + # Example: tunnel_type = vxlan ++tunnel_type = gre + + # (ListOpt) Comma-separated list of : tuples + # enumerating ranges of GRE or VXLAN tunnel IDs that are available for + # tenant network allocation if tenant_network_type is 'gre' or 'vxlan'. + # +-# tunnel_id_ranges = + # Example: tunnel_id_ranges = 1:1000 ++tunnel_id_ranges 1:1000 + + # Do not change this parameter unless you have a good reason to. + # This is the name of the OVS integration bridge. There is one per hypervisor. +@@ -70,7 +72,7 @@ + # empty for the server. Set local-ip to be the local IP address of + # this hypervisor. + # +-# local_ip = ++#local_ip = 192.168.2.99 + + # (ListOpt) Comma-separated list of : tuples + # mapping physical network names to the agent's node-specific OVS diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 000000000..385c8b781 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +better-config-default.patch diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in new file mode 100644 index 000000000..33071e069 --- /dev/null +++ b/debian/po/POTFILES.in @@ -0,0 +1,5 @@ +[type: gettext/rfc822deb] neutron-common.templates +[type: gettext/rfc822deb] neutron-plugin-openvswitch.templates +[type: gettext/rfc822deb] neutron-server.templates +[type: gettext/rfc822deb] neutron-plugin-metaplugin.templates +[type: gettext/rfc822deb] neutron-metadata-agent.templates diff --git a/debian/po/templates.pot b/debian/po/templates.pot new file mode 100644 index 000000000..eed28434a --- /dev/null +++ b/debian/po/templates.pot @@ -0,0 +1,355 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: neutron\n" +"Report-Msgid-Bugs-To: neutron@packages.debian.org\n" +"POT-Creation-Date: 2013-07-27 16:15+0800\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../neutron-common.templates:2001 +#: ../neutron-plugin-metaplugin.templates:2001 +msgid "Authentication server hostname:" +msgstr "" + +#. Type: string +#. Description +#: ../neutron-common.templates:2001 +msgid "" +"Please specify the hostname of your Neutron authentication server. Typically " +"this is also the hostname of your OpenStack Identity Service (Keystone)." +msgstr "" + +#. Type: string +#. Description +#: ../neutron-common.templates:3001 +#: ../neutron-plugin-metaplugin.templates:3001 +msgid "Authentication server tenant name:" +msgstr "" + +#. Type: string +#. Description +#: ../neutron-common.templates:3001 +#: ../neutron-plugin-metaplugin.templates:3001 +msgid "Please specify the authentication server tenant name." +msgstr "" + +#. Type: string +#. Description +#: ../neutron-common.templates:4001 +#: ../neutron-plugin-metaplugin.templates:4001 +msgid "Authentication server username:" +msgstr "" + +#. Type: string +#. Description +#: ../neutron-common.templates:4001 +#: ../neutron-plugin-metaplugin.templates:4001 +msgid "Please specify the username to use with the authentication server." +msgstr "" + +#. Type: password +#. Description +#: ../neutron-common.templates:5001 +#: ../neutron-plugin-metaplugin.templates:5001 +msgid "Authentication server password:" +msgstr "" + +#. Type: password +#. Description +#: ../neutron-common.templates:5001 +#: ../neutron-plugin-metaplugin.templates:5001 +msgid "Please specify the password to use with the authentication server." +msgstr "" + +#. Type: boolean +#. Description +#: ../neutron-plugin-openvswitch.templates:2001 +msgid "Set up a database for neutron-plugin-openvswitch?" +msgstr "" + +#. Type: boolean +#. Description +#: ../neutron-plugin-openvswitch.templates:2001 +msgid "" +"No database has been set up for neutron-plugin-openvswitch to use. Before " +"continuing, you should make sure you have the following information:" +msgstr "" + +#. Type: boolean +#. Description +#: ../neutron-plugin-openvswitch.templates:2001 +msgid "" +" * the type of database that you want to use;\n" +" * the database server hostname (that server must allow TCP connections from " +"this\n" +" machine);\n" +" * a username and password to access the database." +msgstr "" + +#. Type: boolean +#. Description +#: ../neutron-plugin-openvswitch.templates:2001 +msgid "" +"If some of these requirements are missing, do not choose this option and run " +"with regular SQLite support." +msgstr "" + +#. Type: boolean +#. Description +#: ../neutron-plugin-openvswitch.templates:2001 +msgid "" +"You can change this setting later on by running \"dpkg-reconfigure -plow " +"neutron-plugin-openvswitch\"." +msgstr "" + +#. Type: select +#. Choices +#: ../neutron-plugin-openvswitch.templates:3001 +msgid "local" +msgstr "" + +#. Type: select +#. Choices +#: ../neutron-plugin-openvswitch.templates:3001 +msgid "gre" +msgstr "" + +#. Type: select +#. Choices +#: ../neutron-plugin-openvswitch.templates:3001 +msgid "vlan" +msgstr "" + +#. Type: select +#. Choices +#: ../neutron-plugin-openvswitch.templates:3001 +msgid "none" +msgstr "" + +#. Type: select +#. Description +#. Translators: a "tenant" in OpenStack world is +#. an entity that contains one or more username/password couples. +#. It's typically the tenant that will be used for billing. Having more than one +#. username/password is very helpful in larger organization. +#. You're advised to either keep "tenant" without translating it +#. or keep it parenthezised. Example for French: +#. locataire ("tenant") +#: ../neutron-plugin-openvswitch.templates:3002 +msgid "Type of network to allocate for tenant networks:" +msgstr "" + +#. Type: select +#. Description +#. Translators: a "tenant" in OpenStack world is +#. an entity that contains one or more username/password couples. +#. It's typically the tenant that will be used for billing. Having more than one +#. username/password is very helpful in larger organization. +#. You're advised to either keep "tenant" without translating it +#. or keep it parenthezised. Example for French: +#. locataire ("tenant") +#: ../neutron-plugin-openvswitch.templates:3002 +msgid "" +"The value \"local\" is useful only for single-box testing. In order for " +"tenant networks to provide connectivity between hosts, it is necessary to " +"either choose \"vlan\" and then configure \"network_vlan_ranges\" or to " +"choose \"gre\" and then configure \"tunnel_id_ranges\". Choose \"none\" to " +"disable creation of tenant networks." +msgstr "" + +#. Type: boolean +#. Description +#: ../neutron-plugin-openvswitch.templates:4001 +msgid "Enable tunneling?" +msgstr "" + +#. Type: boolean +#. Description +#: ../neutron-plugin-openvswitch.templates:4001 +msgid "" +"Please choose whether support should be activated for GRE networks on the " +"server and agents. This requires kernel support for OVS patch ports and GRE " +"tunneling." +msgstr "" + +#. Type: string +#. Description +#: ../neutron-plugin-openvswitch.templates:5001 +msgid "Tunnel id ranges:" +msgstr "" + +#. Type: string +#. Description +#: ../neutron-plugin-openvswitch.templates:5001 +msgid "" +"Please enter a comma-separated list of : tuples " +"enumerating ranges of GRE tunnel IDs that are available for tenant network " +"allocation if tenant_network_type is \"gre\"." +msgstr "" + +#. Type: string +#. Description +#: ../neutron-plugin-openvswitch.templates:6001 +msgid "Local IP address of this hypervisor:" +msgstr "" + +#. Type: string +#. Description +#: ../neutron-plugin-openvswitch.templates:6001 +msgid "Please enter the local IP address for this hypervisor." +msgstr "" + +#. Type: boolean +#. Description +#: ../neutron-server.templates:2001 +msgid "Register Neutron in the Keystone endpoint catalog?" +msgstr "" + +#. Type: boolean +#. Description +#: ../neutron-server.templates:2001 +msgid "" +"Each OpenStack service (each API) should be registered in order to be " +"accessible. This is done using \"keystone service-create\" and \"keystone " +"endpoint-create\". This can be done automatically now." +msgstr "" + +#. Type: boolean +#. Description +#: ../neutron-server.templates:2001 +msgid "" +"Note that you will need to have an up and running Keystone server on which " +"to connect using the Keystone authentication token." +msgstr "" + +#. Type: string +#. Description +#: ../neutron-server.templates:3001 +msgid "Keystone server IP address:" +msgstr "" + +#. Type: string +#. Description +#: ../neutron-server.templates:3001 +msgid "" +"Please enter the IP address of the Keystone server, so that neutron-api can " +"contact Keystone to do the Neutron service and endpoint creation." +msgstr "" + +#. Type: password +#. Description +#: ../neutron-server.templates:4001 +msgid "Keystone authentication token:" +msgstr "" + +#. Type: password +#. Description +#: ../neutron-server.templates:4001 +msgid "" +"To configure its endpoint in Keystone, neutron-server needs the Keystone " +"auth token." +msgstr "" + +#. Type: string +#. Description +#: ../neutron-server.templates:5001 +msgid "Neutron endpoint IP address:" +msgstr "" + +#. Type: string +#. Description +#: ../neutron-server.templates:5001 +msgid "Please enter the IP address that will be used to contact Neutron." +msgstr "" + +#. Type: string +#. Description +#: ../neutron-server.templates:5001 +msgid "" +"This IP address should be accessible from the clients that will use this " +"service, so if you are installing a public cloud, this should be a public IP " +"address." +msgstr "" + +#. Type: string +#. Description +#: ../neutron-server.templates:6001 +msgid "Name of the region to register:" +msgstr "" + +#. Type: string +#. Description +#: ../neutron-server.templates:6001 +msgid "" +"OpenStack supports using availability zones, with each region representing a " +"location. Please enter the zone that you wish to use when registering the " +"endpoint." +msgstr "" + +#. Type: string +#. Description +#: ../neutron-plugin-metaplugin.templates:2001 +msgid "" +"Please specify the hostname of the authentication server. Typically this is " +"also the hostname of the OpenStack Identity Service (Keystone)." +msgstr "" + +#. Type: string +#. Description +#: ../neutron-metadata-agent.templates:2001 +msgid "Auth server hostname:" +msgstr "" + +#. Type: string +#. Description +#: ../neutron-metadata-agent.templates:2001 +msgid "" +"Please specify the URL of your Neutron authentication server. Typically this " +"is also the URL of your OpenStack Identity Service (Keystone)." +msgstr "" + +#. Type: string +#. Description +#: ../neutron-metadata-agent.templates:3001 +msgid "Auth server tenant name:" +msgstr "" + +#. Type: string +#. Description +#: ../neutron-metadata-agent.templates:4001 +msgid "Auth server username:" +msgstr "" + +#. Type: password +#. Description +#: ../neutron-metadata-agent.templates:5001 +msgid "Auth server password:" +msgstr "" + +#. Type: string +#. Description +#: ../neutron-metadata-agent.templates:6001 +msgid "Name of the region to be used by the metadata server:" +msgstr "" + +#. Type: string +#. Description +#: ../neutron-metadata-agent.templates:6001 +msgid "" +"Openstack can be used using availability zones, with each region " +"representing a location. Please enter the zone that the metadata server " +"should use." +msgstr "" diff --git a/debian/pydist-overrides b/debian/pydist-overrides new file mode 100644 index 000000000..8b68c1ed2 --- /dev/null +++ b/debian/pydist-overrides @@ -0,0 +1,4 @@ +neutron_server neutron-server +neutron_common neutron-common +setuptools-git +alembic alembic diff --git a/debian/python-neutron.install b/debian/python-neutron.install new file mode 100644 index 000000000..036c6b9db --- /dev/null +++ b/debian/python-neutron.install @@ -0,0 +1 @@ +usr/lib/python*/dist-packages/* diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..f834bba3e --- /dev/null +++ b/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +include /usr/share/openstack-pkg-tools/pkgos.make + +export OSLO_PACKAGE_VERSION=$(VERSION) + +%: + dh $@ --with python2 + +override_dh_auto_install: + dh_auto_install + find . -type d -name tests | xargs rm -fr + for i in neutron/db/migration/alembic_migrations/versions/*.py ; do \ + install -D -m 0664 $$i debian/tmp/usr/lib/python2.6/dist-packages/$$i ; \ + install -D -m 0664 $$i debian/tmp/usr/lib/python2.7/dist-packages/$$i ; \ + done + +override_dh_install: + dh_install --fail-missing -X/usr/etc -X/usr/bin + + install -D -m 0640 etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini $(CURDIR)/debian/neutron-plugin-openvswitch/usr/share/neutron-plugin-openvswitch/ovs_neutron_plugin.ini + sed -i -e 's|^# Example: tenant_network_type = gre|tenant_network_type = gre|' $(CURDIR)/debian/neutron-plugin-openvswitch/usr/share/neutron-plugin-openvswitch/ovs_neutron_plugin.ini + sed -i -e 's|^# Default: enable_tunneling = False|enable_tunneling = True|' $(CURDIR)/debian/neutron-plugin-openvswitch/usr/share/neutron-plugin-openvswitch/ovs_neutron_plugin.ini + sed -i -e 's|^# Example: tunnel_id_ranges = 1:1000|tunnel_id_ranges = 1:1000|' $(CURDIR)/debian/neutron-plugin-openvswitch/usr/share/neutron-plugin-openvswitch/ovs_neutron_plugin.ini + sed -i -e 's|^# Default: local_ip = 10.0.0.3|local_ip = 192.168.1.10|' $(CURDIR)/debian/neutron-plugin-openvswitch/usr/share/neutron-plugin-openvswitch/ovs_neutron_plugin.ini + + install -D -m 0640 etc/metadata_agent.ini $(CURDIR)/debian/neutron-metadata-agent/usr/share/neutron-metadata-agent/metadata_agent.ini + sed -i -e 's|^# nova_metadata_ip = 127.0.0.1|nova_metadata_ip = 127.0.0.1|' $(CURDIR)/debian/neutron-metadata-agent/usr/share/neutron-metadata-agent/metadata_agent.ini + +override_dh_auto_clean: + dh_auto_clean + rm -f neutron/vcsversion.py + find . -type f -name "*.pyc" | xargs rm -fr + rm -rf build neutron.egg-info + rm -rf setuptools_git-*-py*.egg/ + rm -f debian/neutron-common.config \ + debian/neutron-common.postinst \ + debian/neutron-plugin-openvswitch.config \ + debian/neutron-plugin-openvswitch.postinst \ + debian/neutron-server.config \ + debian/neutron-server.postinst \ + debian/neutron-plugin-metaplugin.config \ + debian/neutron-plugin-metaplugin.postinst \ + debian/neutron-dhcp-agent.postinst \ + debian/neutron-metadata-agent.config \ + debian/neutron-metadata-agent.postinst + +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) +override_dh_auto_test: + ./run_tests.sh -N -P || true +endif + +override_dh_auto_build: + dh_auto_build + + /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func neutron-common.config + /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func neutron-common.postinst + /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func neutron-plugin-openvswitch.config + /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func neutron-plugin-openvswitch.postinst + /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func neutron-server.config + /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func neutron-server.postinst + /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func neutron-plugin-metaplugin.config + /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func neutron-plugin-metaplugin.postinst + /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func neutron-dhcp-agent.postinst + /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func neutron-metadata-agent.postinst + /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func neutron-metadata-agent.config diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 000000000..fdb4071c8 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://github.com/openstack/nova/tags .*/(\d[\d\.]+)\.tar\.gz