Retire repository

Fuel repositories are all retired in openstack namespace, retire
remaining fuel repos in x namespace since they are unused now.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011675.html

A related change is: https://review.opendev.org/699752 .

Change-Id: Ibc22ed7bd73d6d1a961d389696c137d033831b51
This commit is contained in:
Andreas Jaeger 2019-12-18 19:43:11 +01:00
parent 53eb163eef
commit 19fbfb3d19
43 changed files with 10 additions and 1617 deletions

202
LICENSE

@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
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.

121
README.md

@ -1,121 +0,0 @@
#ONOS Plugin for Fuel#
##Brief##
This plugin will install [ Open Network Operating System (ONOS) controller](https://wiki.onosproject.org/display/ONOS/Wiki+Home), which is a typical SDN controller, and set it as a manager of ovs.
##Notification##
* Fuel opentack version should be 9.0.
* Only supports the environment with network type: Neutron.
* Live migration is supported.
* L2 and L3 traffic are supported.
* Sfc is suppprted.
##Installation Guide##
###ONOS plugin installation###
1. Log in Fuel Master and clone GIT repository of fuel-plugin-onos from openstack:
git clone -b Mitaka https://git.openstack.org/openstack/fuel-plugin-onos
2. Preparing an environment for plugin development by three easy steps:
A. Install the standard Linux development tools.
For Ubuntu 14.04 LTS, run:
sudo apt-get install createrepo rpm dpkg-dev
For Centos 6.5, run:
yum install createrepo rpm rpm-build dpkg-devel
B. Install the Fuel Plugin Builder. To do that, you should first get pip:
easy_install pip
C. Then, install Fuel Plugin Builder (fpb) itself:
pip install fuel-plugin-builder
3. Build ONOS plugin for fuel:
fpb --build fuel-plugin-onos/
4. The onos rpm will be built in the folder of fuel-plugin-onos.
5. Install the onos plugin:
fuel plugins --install onos*.rpm
6. Check if you successfully install the plugin:
fuel plugins
id | name | version | package_version
---|--------|---------|----------------
1 | onos | 0.9.0 | 4.0.0
7. Check if the plugin is enabled on the settings table.
Notice: Step 1-4 aren't limitted with the environment of master, you can also make it everywhere, but after the rpm is made, you should copy it to the master. In addition, the info of a new plugin at settings table can only be ready when a new environment is created.
##User Guide##
###ONOS plugin configuration###
All described actions below are described from a Fuel GUI provisioning perspective.
1. Create a new environment.
2. Select 'onos plugin' on Settings tab. If you want to try sfc functions, select SFC features as well.
onos plugin
3. Select a node with role 'onos'
4. Click 'Deploy changes' to enable nodes with ONOSFW.
###Dependencies###
In order to run ONOS, the following are required:
- Java 8 JDK (Oracle Java recommended; OpenJDK is not as thoroughly tested)
- ONOS tarball( Newest version 1.6 recommended.)
Notice: In case of version problems, the onos rpm uses jdk and onos packages that have been tested.
###Testing###
1. Web UI is recommended for ONOS controller with tuitive information of topo, devices and etc.
For that purpose, IP address of horizon should be ready, which can be found in fuel master after successful deployment. The web will run into the log page after inputing the path, username and password are both 'karaf'. Now enjot ONOS!
Web UI: http://horizon_ip:8181/onos/ui
2. CLI is capable of more diverse functionality by running /opt/onos/bin/onos. More about CLI can be found in [The ONOS CLI](
https://wiki.onosproject.org/display/ONOS/The+ONOS+CLI).
##Getting Involved##
Interested in contributing? Follow [Fuel Plugins Development](
https://wiki.openstack.org/wiki/Fuel/Plugins).
##Contributors##
Wu Wenbin <wuwenbin2@huawei.com>

10
README.rst Normal file

@ -0,0 +1,10 @@
This project is no longer maintained.
The contents of this repository are still available in the Git
source code management system. To see the contents of this
repository before it reached its end of life, please check out the
previous commit with "git checkout HEAD^1".
For any further questions, please email
openstack-discuss@lists.openstack.org or join #openstack-dev on
Freenode.

@ -1,18 +0,0 @@
- name: 'network:neutron:onos:tun'
label: 'onos based on neutron tunneling segmentation'
description: 'Use Neutron with networking-onos driver'
bind: !!pairs
- "cluster:net_provider": "neutron"
- "cluster:net_segment_type": "tun"
compatible:
- name: 'hypervisor:kvm'
- name: 'hypervisor:qemu'
- name: 'network:neutron:onos:vlan'
label: 'onos based on neutron vlan segmentation'
description: 'Use Neutron with networking-onos driver'
bind: !!pairs
- "cluster:net_provider": "neutron"
- "cluster:net_segment_type": "vlan"
compatible:
- name: 'hypervisor:kvm'
- name: 'hypervisor:qemu'

@ -1,95 +0,0 @@
notice(' ONOS MODULAR: neutron-config.pp')
include onos
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
$onos_settings = hiera('onos')
service {'Stop neutron service':
name => "neutron-server",
ensure => stopped,
}->
neutron_plugin_ml2 {
'ml2/mechanism_drivers': value => 'onos_ml2';
'ml2/tenant_network_types': value => 'vxlan';
'ml2_type_vxlan/vni_ranges': value => '100:50000';
'onos/password': value => 'admin';
'onos/username': value => 'admin';
'onos/url_path': value => "http://${onos::manager_ip}:8181/onos/vtn";
}->
package { 'Install git':
ensure => installed,
name => "git",
}->
file { "/opt/networking-onos.tar":
source => "puppet:///modules/onos/networking-onos.tar",
}->
exec { 'Unpack onos driver':
command => "tar xf /opt/networking-onos.tar -C /opt",
}->
exec { 'Install onos driver':
command => "sh /opt/networking-onos/install_driver.sh;
rm -rf /opt/networking*;"
}
if $onos_settings['enable_sfc'] {
neutron_config { 'DEFAULT/service_plugins':
value => 'networking_sfc.services.sfc.plugin.SfcPlugin, networking_sfc.services.flowclassifier.plugin.FlowClassifierPlugin, onos_router,neutron.services.metering.metering_plugin.MeteringPlugin';
}
file{ "/opt/networking-sfc.tar":
source => "puppet:///modules/onos/networking-sfc.tar",
}->
exec{ 'Unpack onos sfc driver':
command => "tar xf /opt/networking-sfc.tar -C /opt",
}->
exec{ 'Install onos sfc driver':
command => "sh /opt/networking-sfc/install_driver.sh;
rm -rf /opt/networking*;"
}
}
else {
neutron_config { 'DEFAULT/service_plugins':
value => 'onos_router,neutron.services.metering.metering_plugin.MeteringPlugin';
}
}
if roles_include(['primary-controller']) {
exec { 'Disable neutron l3 agent':
command => "crm resource stop neutron-l3-agent",
require => Service['Stop neutron service'],
}->
exec { 'Drop_neutron_db':
command => "sudo mysql -e 'drop database if exists neutron;'",
}->
exec { 'Create_neutron_db':
command => "sudo mysql -e 'create database neutron character set utf8;'",
}->
exec { 'Grant_neutron_db':
command => "sudo mysql -e \"grant all on neutron.* to 'neutron'@'%';\"",
}->
exec { 'Neutron_db_sync':
command => 'neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini upgrade head',
}
if $onos_settings['enable_sfc'] {
exec { 'Neutron_db_sync for sfc':
command => 'neutron-db-manage --subproject networking-sfc upgrade head',
require => [Exec['Neutron_db_sync'], Exec['Install onos sfc driver']],
}
}
}

@ -1,25 +0,0 @@
notice(' ONOS MODULAR: neutron-start.pp')
include onos
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
service {'Start neutron service':
name => "neutron-server",
ensure => running
}
if roles_include(['primary-controller']) {
exec{ 'Sleep 20 to stablize neutron':
command => 'sleep 20;',
require => Service ['Start neutron service']
}->
class {'onos::network::create_network':
}->
class {'onos::network::create_router':}
}

@ -1,26 +0,0 @@
notice(' ONOS MODULAR: onos-dashboard.pp')
$cluster_id = hiera('deployment_id')
$master_ip = hiera('master_ip')
$network_metadata = hiera_hash('network_metadata', {})
$os_public_vip = $network_metadata['vips']['public']['ipaddr']
$onos = hiera('onos')
$port = '8181'
$user = 'karaf'
$password = 'karaf'
$dashboard_name = 'Onos Dashboard'
$dashboard_desc = "Onos dashboard interface. Default credentials are ${user}/${password}"
$dashboard_link = "http://${os_public_vip}:${port}/onos/ui"
$json_hash = { title => $dashboard_name,
description => $dashboard_desc,
url => $dashboard_link, }
$json_message = inline_template('<%= require "json"; JSON.dump(@json_hash) %>')
exec { 'create_dashboard_link':
command => "/usr/bin/curl -H 'Content-Type: application/json' -X POST \
-d '${json_message}' \
http://${master_ip}:8000/api/clusters/${cluster_id}/plugin_links",
}

@ -1,3 +0,0 @@
notice(' ONOS MODULAR: onos-ha.pp')
class {'onos::ha::haproxy':}

@ -1,4 +0,0 @@
notice(' ONOS MODULAR: onos-install.pp')
include onos
class{ 'onos::install':}

@ -1,8 +0,0 @@
notice(' ONOS MODULAR: onos-service.pp')
include onos
class {'onos::config':} ->
class {'onos::service':}

@ -1,17 +0,0 @@
notice(' ONOS MODULAR: onos-uploadvm.pp')
file { "/root/firewall_block_image.img":
source => "puppet:///modules/onos/firewall_block_image.img",
}->
file { '/root/upload_vm.sh':
source => "puppet:///modules/onos/upload_vm.sh",
}
exec {'source openrc':
command => "/bin/bash '/root/upload_vm.sh'",
path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
logoutput => true,
}

@ -1,72 +0,0 @@
notice(' ONOS MODULAR: ovs-compute.pp')
include onos
Exec {
path => "/usr/bin:/usr/sbin:/bin:/sbin",
timeout => 180,
logoutput => "true",
}
$neutron_ovs_agent='neutron-openvswitch-agent'
$ovs_service='openvswitch-switch'
$network_scheme=hiera(network_scheme)
$transformations=$network_scheme[transformations]
$add_port=filter_nodes($transformations,'bridge','br-ex')
$public_eth_hash=filter_hash($add_port,'name')
$public_eth=$public_eth_hash[0]
$network_metadata=hiera(network_metadata)
$vrouter=$network_metadata['vips']['vrouter']['ipaddr']
service {$neutron_ovs_agent:
ensure => stopped,
enable => false,
}->
firewall {'222 vxlan':
dport => [4789, 4790],
proto => 'udp',
action => 'accept',
}->
exec {'Delete manager':
command => "ovs-vsctl del-manager",
}->
exec {'Delete br-prv':
command => "ovs-vsctl del-br br-prv",
onlyif => "ovs-vsctl br-exists br-prv",
}->
exec {'Delete br-tun':
command => "ovs-vsctl del-br br-tun",
onlyif => "ovs-vsctl br-exists br-tun",
}->
exec {'Delete br-int':
command => "ovs-vsctl del-br br-int",
onlyif => "ovs-vsctl br-exists br-int",
}->
exec {'Delete br-floating':
command => "ovs-vsctl del-br br-floating",
onlyif => "ovs-vsctl br-exists br-floating",
}->
file { "/opt/portconfig.sh":
ensure => file,
content => template('onos/portconfig.sh.erb'),
}->
exec { 'Set port':
command => "sh /opt/portconfig.sh;
rm -rf /opt/portconfig.sh;",
}->
exec {'Set ONOS as the manager':
command => "ovs-vsctl set-manager tcp:${onos::manager_ip}:6640",
}

@ -1,73 +0,0 @@
notice(' ONOS MODULAR: ovs-controller.pp')
include onos
Exec {
path => "/usr/bin:/usr/sbin:/bin:/sbin",
timeout => 180,
logoutput => "true",
}
$neutron_ovs_agent='neutron-openvswitch-agent'
$ovs_service='openvswitch-switch'
if roles_include(['primary-controller']) {
exec {'Disable neutron openvswitch agent':
command => "crm resource stop neutron-openvswitch-agent",
before => Exec['Delete manager'],
}
}
else {
service {$neutron_ovs_agent:
ensure => stopped,
before => Exec['Delete manager'],
}
}
firewall {'222 vxlan':
dport => [4789, 4790],
proto => 'udp',
action => 'accept',
}->
exec {'Delete manager':
command => "ovs-vsctl del-manager",
}->
exec {'Delete br-prv':
command => "ovs-vsctl del-br br-prv",
onlyif => "ovs-vsctl br-exists br-prv",
}->
exec {'Delete br-tun':
command => "ovs-vsctl del-br br-tun",
onlyif => "ovs-vsctl br-exists br-tun",
}->
exec {'Delete br-int':
command => "ovs-vsctl del-br br-int",
onlyif => "ovs-vsctl br-exists br-int",
}->
exec {'Delete br-floating':
command => "ovs-vsctl del-br br-floating",
onlyif => "ovs-vsctl br-exists br-floating",
}->
exec {'Set ONOS as the manager':
command => "ovs-vsctl set-manager tcp:${onos::manager_ip}:6640",
}->
exec {"Sleep 5 for ovsconnect":
command => "sleep 5",
}->
exec {"Delete public port from ovs of controllers":
command => "ovs-vsctl del-port br-int onos_port2",
onlyif => "ovs-vsctl br-exists br-int",
}

@ -1,12 +0,0 @@
notice(' ONOS MODULAR: ovs-update.pp')
package { 'openvswitch-datapath-dkms':
ensure => '2.5.90-1',
}->
package { 'openvswitch-common':
ensure => '2.5.90-1',
}->
package { 'openvswitch-switch':
ensure => '2.5.90-1',
}

@ -1,21 +0,0 @@
[Unit]
Description=ONOS
After=
[Service]
User=root
Group=root
Type=simple
WorkingDirectory=/opt/onos/apache-karaf-3.0.5
PermissionsStartOnly=true
ExecStartPre=
ExecStart=/usr/lib/jvm/java-8-oracle/bin/java -server -Xms128M -Xmx512M -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dcom.sun.management.jmxremote -Djava.endorsed.dirs=/usr/lib/jvm/java-8-oracle/jre/lib/endorsed:/usr/lib/jvm/java-8-oracle/lib/endorsed:/opt/onos/apache-karaf-3.0.5/lib/endorsed -Djava.ext.dirs=/usr/lib/jvm/java-8-oracle/jre/lib/ext:/usr/lib/jvm/java-8-oracle/lib/ext:/opt/onos/apache-karaf-3.0.5/lib/ext -Dkaraf.instances=/opt/onos/apache-karaf-3.0.5/instances -Dkaraf.home=/opt/onos/apache-karaf-3.0.5 -Dkaraf.base=/opt/onos/apache-karaf-3.0.5 -Dkaraf.data=/opt/onos/apache-karaf-3.0.5/data -Dkaraf.etc=/opt/onos/apache-karaf-3.0.5/etc -Djava.io.tmpdir=/opt/onos/apache-karaf-3.0.5/data/tmp -Djava.util.logging.config.file=/opt/onos/apache-karaf-3.0.5/etc/java.util.logging.properties -Dkaraf.startLocalConsole=true -Dkaraf.startRemoteShell=true -classpath /opt/onos/apache-karaf-3.0.5/lib/karaf-jaas-boot.jar:/opt/onos/apache-karaf-3.0.5/lib/karaf-org.osgi.core.jar:/opt/onos/apache-karaf-3.0.5/lib/karaf.jar org.apache.karaf.main.Main
Restart=on-failure
LimitNOFILE=65535
TimeoutStopSec=15
[Install]
WantedBy=multi-user.target

@ -1,35 +0,0 @@
#!/bin/bash
set -eux
echo 'export ONOS_OPTS=debug' > /opt/onos/options;
echo 'export ONOS_USER=root' >> /opt/onos/options;
mkdir /opt/onos/var;
mkdir /opt/onos/config;
#jdk config
mkdir /usr/lib/jvm/
tar -xzf /opt/jdk-8u*-linux-x64.tar.gz -C /usr/lib/jvm/
mv /usr/lib/jvm/jdk1.8.0_* /usr/lib/jvm/java-8-oracle
touch /etc/profile.d/jdk.csh
cat <<EOT>> /etc/profile.d/jdk.csh
setenv J2SDKDIR /usr/lib/jvm/java-8-oracle
setenv J2REDIR /usr/lib/jvm/java-8-oracle/jre
setenv PATH ${PATH}:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
setenv JAVA_HOME /usr/lib/jvm/java-8-oracle
setenv DERBY_HOME /usr/lib/jvm/java-8-oracle/db
EOT
touch /etc/profile.d/jdk.sh
cat <<EOT>> /etc/profile.d/jdk.sh
export J2SDKDIR=/usr/lib/jvm/java-8-oracle
export J2REDIR=/usr/lib/jvm/java-8-oracle/jre
export PATH=$PATH:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export DERBY_HOME=/usr/lib/jvm/java-8-oracle/db
EOT
chmod +x /etc/profile.d/jdk*

@ -1,17 +0,0 @@
#!/bin/bash
set -eux
cd /opt
#git clone https://github.com/openstack/networking-onos.git
tar xf networking-onos.tar
cd networking-onos
python setup.py install
rm -rf /opt/networking-onos*
cd /opt
git clone https://github.com/openstack/networking-sfc.git
cd networking-sfc
python setup.py install
rm -rf /opt/networking-sfc*

@ -1,6 +0,0 @@
#!/bin/bash
set -ux
source /root/openrc
/usr/bin/glance image-create --name 'TestSfcVm' --visibility 'public' --container-format='bare' --disk-format='qcow2' --min-ram='64' --file '/root/firewall_block_image.img'

@ -1,9 +0,0 @@
module Puppet::Parser::Functions
newfunction(:filter_nodes, :type => :rvalue) do |args|
name = args[1]
value = args[2]
args[0].select do |it|
it[name] == value
end
end
end

@ -1,68 +0,0 @@
class onos::config{
$onos_home = $onos::onos_home
$karaf_dist = $onos::karaf_dist
$roles = $onos::roles
$public_vip = hiera('public_vip')
$management_vip = hiera('management_vip')
$manager_ip = $onos::manager_ip
$node = hiera('node')
$ip = $node['network_roles']['management']
$onos_pkg_name = $onos::onos_pkg_name
$jdk8_pkg_name = $onos::jdk8_pkg_name
Exec {
path => "/usr/bin:/usr/sbin:/bin:/sbin",
timeout => 180,
logoutput => "true",
}
file { '/opt/onos_config.sh':
source => "puppet:///modules/onos/onos_config.sh",
}->
exec { 'install onos config':
command => "sh /opt/onos_config.sh;
rm -rf /opt/onos_config.sh;",
}->
exec { "clean used files":
command => "rm -rf /opt/$onos_pkg_name;
rm -rf /opt/$jdk8_pkg_name;
rm -rf /root/.m2/*.tar;"
}->
file { "${onos_home}/config/cluster.json":
ensure => file,
content => template('onos/cluster.json.erb')
}
file { '/etc/systemd/system/onos.service':
source => "puppet:///modules/onos/onos.service",
}
exec { "Running ONOS as a service":
command => "sudo systemctl daemon-reload;
sudo systemctl enable onos;
sudo systemctl start onos.service;
sudo systemctl status onos.service;"
}
case $::operatingsystem {
ubuntu: {
file {'/etc/init/onos.conf':
ensure => file,
content => template('onos/debian/onos.conf.erb')
}
}
centos: {
file {'/etc/init.d/onos':
ensure => file,
content => template('onos/centos/onos.erb'),
mode => 0777
}
}
}
}

@ -1,64 +0,0 @@
#
# Copyright 2015 Mirantis, Inc.
#
# 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.
#
class onos::ha::haproxy {
Haproxy::Service { use_include => true }
Haproxy::Balancermember { use_include => true }
$public_vip = hiera('public_vip')
$management_vip = hiera('management_vip')
$nodes_hash = hiera('nodes')
$primary_controller_nodes = filter_nodes($nodes_hash,'role','primary-controller')
$onos_controllers = filter_nodes($nodes_hash,'role','onos')
# defaults for any haproxy_service within this class
Openstack::Ha::Haproxy_service {
internal_virtual_ip => $management_vip,
ipaddresses => filter_hash($onos_controllers, 'internal_address'),
public_virtual_ip => $public_vip,
server_names => filter_hash($onos_controllers, 'name'),
public => true,
internal => true,
}
openstack::ha::haproxy_service { 'onos':
order => '221',
listen_port => '8181',
haproxy_config_options => {
'option' => ['httpchk /onos/ui', 'httplog'],
'timeout client' => '2h',
'timeout server' => '2h',
'balance' => 'source',
'mode' => 'http'
},
balancermember_options => 'check inter 2000 fall 5',
}
exec { 'haproxy reload onos':
command => 'export OCF_ROOT="/usr/lib/ocf"; (ip netns list | grep haproxy) && ip netns exec haproxy /usr/lib/ocf/resource.d/fuel/ns_haproxy reload',
path => '/usr/bin:/usr/sbin:/bin:/sbin',
logoutput => true,
provider => 'shell',
tries => 10,
try_sleep => 10,
returns => [0, ''],
}
Haproxy::Listen <||> -> Exec['haproxy reload onos']
Haproxy::Balancermember <||> -> Exec['haproxy reload onos']
}

@ -1,13 +0,0 @@
class onos{
$nodes = hiera('nodes')
$primary_controller = filter_nodes( $nodes,'role','primary-controller')
$roles = node_roles( $nodes, hiera('uid'))
$onos_hash = filter_nodes( $nodes,'role','onos')
$manager_ip = filter_hash( $onos_hash, 'internal_address')
$onos_names = filter_hash( $onos_hash, 'name')
$onos_home = '/opt/onos'
$karaf_dist = 'apache-karaf-3.0.5'
$onos_pkg_name = 'onos-1.8.4.tar.gz'
$jdk8_pkg_name = 'jdk-8u51-linux-x64.tar.gz'
}

@ -1,57 +0,0 @@
class onos::install{
$onos_home = $onos::onos_home
$karaf_dist = $onos::karaf_dist
$onos_pkg_name = $onos::onos_pkg_name
$jdk8_pkg_name = $onos::jdk8_pkg_name
Exec {
path => "/usr/bin:/usr/sbin:/bin:/sbin",
logoutput => "true",
timeout => 180,
}
group { 'onos':
ensure => present,
before => [File['/opt/onos/'], User['onos']],
}
user { 'onos':
ensure => present,
home => '/opt/onos/',
membership => 'minimum',
groups => 'onos',
before => File['/opt/onos/'],
}
file { '/opt/onos/':
ensure => 'directory',
recurse => true,
owner => 'onos',
group => 'onos',
}->
file { "/opt/$onos_pkg_name":
source => "puppet:///modules/onos/$onos_pkg_name",
}->
file{ "/opt/$jdk8_pkg_name":
source => "puppet:///modules/onos/$jdk8_pkg_name",
}->
file{ '/root/.m2/':
ensure => 'directory',
recurse => true,
}->
file { '/root/.m2/repository.tar':
source => "puppet:///modules/onos/repository.tar",
}->
exec{ "unzip packages":
command => "tar -zvxf /opt/$onos_pkg_name -C $onos_home --strip-components 1 --no-overwrite-dir -k;
tar xf /root/.m2/repository.tar -C /root/.m2/",
}
}

@ -1,103 +0,0 @@
class onos::network::create_network {
if hiera('use_neutron', false) {
$access_hash = hiera_hash('access', {})
$keystone_admin_tenant = $access_hash['tenant']
$neutron_config = hiera_hash('neutron_config')
$floating_net = try_get_value($neutron_config, 'default_floating_net', 'net04_ext')
$private_net = try_get_value($neutron_config, 'default_private_net', 'net04')
$default_router = try_get_value($neutron_config, 'default_router', 'router04')
$segmentation_type = try_get_value($neutron_config, 'L2/segmentation_type')
$nets = $neutron_config['predefined_networks']
$network_type = 'vxlan'
$private_net_segment_id = '500'
$private_net_physnet = false
$private_net_shared = try_get_value($nets, "${private_net}/shared", false)
$private_net_router_external = false
$floating_net_type = 'vxlan'
$floating_net_physnet = false
$floating_net_segment_id = '10000'
$floating_net_router_external = try_get_value($nets, "${floating_net}/L2/router_ext")
$floating_net_floating_range = try_get_value($nets, "${floating_net}/L3/floating", '')
$floating_net_shared = try_get_value($nets, "${floating_net}/shared", false)
if !empty($floating_net_floating_range) {
$floating_cidr = try_get_value($nets, "${floating_net}/L3/subnet")
$floating_net_allocation_pool = format_allocation_pools($floating_net_floating_range, $floating_cidr)
}
$tenant_name = try_get_value($access_hash, 'tenant', 'admin')
neutron_network { $floating_net :
ensure => 'present',
provider_physical_network => $floating_net_physnet,
provider_network_type => $floating_net_type,
provider_segmentation_id => $floating_net_segment_id,
router_external => $floating_net_router_external,
tenant_name => $tenant_name,
shared => $floating_net_shared
}
neutron_subnet { "${floating_net}__subnet" :
ensure => 'present',
cidr => try_get_value($nets, "${floating_net}/L3/subnet"),
network_name => $floating_net,
tenant_name => $tenant_name,
gateway_ip => try_get_value($nets, "${floating_net}/L3/gateway"),
enable_dhcp => false,
allocation_pools => $floating_net_allocation_pool,
}
neutron_network { $private_net :
ensure => 'present',
provider_physical_network => $private_net_physnet,
provider_network_type => $network_type,
provider_segmentation_id => $private_net_segment_id,
router_external => $private_net_router_external,
tenant_name => $tenant_name,
shared => $private_net_shared
}
neutron_subnet { "${private_net}__subnet" :
ensure => 'present',
cidr => try_get_value($nets, "${private_net}/L3/subnet"),
network_name => $private_net,
tenant_name => $tenant_name,
gateway_ip => try_get_value($nets, "${private_net}/L3/gateway"),
enable_dhcp => true,
dns_nameservers => try_get_value($nets, "${private_net}/L3/nameservers"),
}
if has_key($nets, 'baremetal') {
$baremetal_physnet = try_get_value($nets, 'baremetal/L2/physnet', false)
$baremetal_segment_id = try_get_value($nets, 'baremetal/L2/segment_id')
$baremetal_router_external = try_get_value($nets, 'baremetal/L2/router_ext')
$baremetal_shared = try_get_value($nets, 'baremetal/shared', false)
neutron_network { 'baremetal' :
ensure => 'present',
provider_physical_network => 'false',
provider_network_type => 'vxlan',
provider_segmentation_id => '1000',
router_external => $baremetal_router_external,
tenant_name => $tenant_name,
shared => $baremetal_shared
}
neutron_subnet { 'baremetal__subnet' :
ensure => 'present',
cidr => try_get_value($nets, 'baremetal/L3/subnet'),
network_name => 'baremetal',
tenant_name => $tenant_name,
gateway_ip => try_get_value($nets, 'baremetal/L3/gateway'),
enable_dhcp => true,
dns_nameservers => try_get_value($nets, 'baremetal/L3/nameservers'),
allocation_pools => format_allocation_pools(try_get_value($nets, 'baremetal/L3/floating')),
}
}
}
}

@ -1,60 +0,0 @@
class onos::network::create_router {
$use_neutron = hiera('use_neutron', false)
$neutron_advanced_config = hiera_hash('neutron_advanced_configuration', { })
# In case of L3 HA enabled this task must be executed on a post-deployment stage.
# as HA routers can't be created when less then 2 L3 agents are available (Neutron limitation)
$l3_ha = pick($neutron_advanced_config['neutron_l3_ha'], false)
$dvr = pick($neutron_advanced_config['neutron_dvr'], false)
$neutron_controller_roles = hiera('neutron_controller_roles', ['controller', 'primary-controller'])
$controllers_num = size(get_nodes_hash_by_roles(hiera_hash('network_metadata'), $neutron_controller_roles))
if $use_neutron {
$access_hash = hiera_hash('access', {})
$keystone_admin_tenant = pick($access_hash['tenant'], 'admin')
$neutron_config = hiera_hash('neutron_config')
$floating_net = try_get_value($neutron_config, 'default_floating_net', 'net04_ext')
$private_net = try_get_value($neutron_config, 'default_private_net', 'net04')
$default_router = try_get_value($neutron_config, 'default_router', 'router04')
$baremetal_router = try_get_value($neutron_config, 'baremetal_router', 'baremetal')
$nets = $neutron_config['predefined_networks']
if ($l3_ha) and ($controllers_num < 2) {
warning ('Not enough controllers to create an HA router')
} else {
neutron_router { $default_router:
ensure => 'present',
gateway_network_name => $floating_net,
name => $default_router,
tenant_name => $keystone_admin_tenant,
} ->
neutron_router_interface { "${default_router}:${private_net}__subnet":
ensure => 'present',
}
if has_key($nets, 'baremetal') {
if $dvr {
neutron_router { $baremetal_router:
ensure => 'present',
gateway_network_name => $floating_net,
name => $baremetal_router,
tenant_name => $keystone_admin_tenant,
distributed => false,
} ->
neutron_router_interface { "${baremetal_router}:baremetal__subnet":
ensure => 'present',
require => Neutron_router[$baremetal_router]
}
} else {
neutron_router_interface { "${default_router}:baremetal__subnet":
ensure => 'present',
require => Neutron_router[$default_router]
}
}
}
}
}
}

@ -1,61 +0,0 @@
class onos::service{
$manager_ip = $onos::manager_ip
Exec {
path => "/usr/bin:/usr/sbin:/bin:/sbin",
timeout => 320,
logoutput => 'true',
}
firewall {'221 onos':
dport => [6633, 6640, 6653, 8181, 8101, 9876],
proto => 'tcp',
action => 'accept',
}->
service { 'onos':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
}->
exec { 'sleep 150 to stablize onos':
command => 'sleep 150;'
}->
exec { 'wait onos ready':
command => "curl -o /dev/null --fail --silent --head -u karaf:karaf http://$manager_ip:8181/onos/ui",
tries => 60,
try_sleep => 20,
}->
exec { 'install feature openflow':
command => "/opt/onos/bin/onos 'feature:install onos-optical-model';
/opt/onos/bin/onos 'feature:install onos-providers-openflow-base';
/opt/onos/bin/onos 'feature:install onos-providers-openflow-message'",
tries => 3,
try_sleep => 5,
}->
exec { 'install feature ovs':
command => "/opt/onos/bin/onos 'feature:install onos-ovsdatabase';
/opt/onos/bin/onos 'feature:install onos-providers-ovsdb-base';
/opt/onos/bin/onos 'feature:install onos-drivers-ovsdb';
/opt/onos/bin/onos 'feature:install onos-providers-ovsdb-host';",
tries => 3,
try_sleep => 2,
}->
exec { 'install feature onosfw':
command => "/opt/onos/bin/onos 'feature:install onos-apps-vtn';
/opt/onos/bin/onos 'externalportname-set -n onos_port2';",
tries => 3,
try_sleep => 2,
}->
exec { 'add onos auto start':
command => 'echo "onos">>/opt/service',
}
}

@ -1,52 +0,0 @@
#!/bin/bash
# chkconfig: 345 98 2
# description: Open Network Operating System
# onos Startup script for onos
# processname: onos
prog=onos
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export ONOS_APPS=<%= @onos_extra_features -%>
cd /opt/onos/bin/
start(){
echo $"Starting $prog..."
./onos-service &
}
stop(){
PID=`ps aux | grep java | grep karaf | awk '{print $2}'`
echo $"Stopping $prog $PID"
kill -9 $PID
sleep 10
}
status(){
PID=`ps aux | grep java | grep karaf | awk '{print $2}'`
if test -z $PID
then
echo "onos stop/waiting"
exit 1
else
echo "onos start/running, process $PID."
exit 0
fi
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
status)
status
;;
*)
echo "Please use: $0 {start|stop|status}"
exit 1
;;
esac

@ -1,25 +0,0 @@
{
"nodes": [
{
"ip": "<%= @ip %>",
"id": "<%= @ip %>",
"port": 9876
}
],
"name": "default",
"partitions": [
{
"id": 0,
"members": [
"<%= @ip %>"
]
},
{
"id": 1,
"members": [
"<%= @ip %>"
]
}
]
}

@ -1,30 +0,0 @@
description "Open Network Operating System"
author "ON.Lab"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
console output
kill timeout 60
respawn
env LANG=en_US.UTF-8
env JAVA_HOME=/usr/lib/jvm/java-8-oracle;
pre-stop script
/opt/onos/bin/onos halt 2>>/opt/onos/var/stderr.log
sleep 1
end script
script
export J2SDKDIR=/usr/lib/jvm/java-8-oracle;
export J2REDIR=/usr/lib/jvm/java-8-oracle/jre;
export PATH=$PATH:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin;
export JAVA_HOME=/usr/lib/jvm/java-8-oracle;
export DERBY_HOME=/usr/lib/jvm/java-8-oracle/db;
[ -f /opt/onos/options ] && . /opt/onos/options
start-stop-daemon --signal INT --start --chuid $ONOS_USER \
--exec /opt/onos/bin/onos-service -- $ONOS_OPTS \
>/opt/onos/var/stdout.log 2>/opt/onos/var/stderr.log
end script

@ -1,11 +0,0 @@
#!/bin/bash
# For onos 1.4 and 1.5, after external network is created, you need use cli to give gatewaymac to onos before you allocate floating ip.
# For onos 1.6, this part can be omitted.
set -ux
ping -c 5 <%= @gateway_ip %>
#gatewayMac=`arp -a <%= @gateway_ip -%> | awk '{print $4}'`
gatewayMac=$(arp -a <%= @gateway_ip -%> | grep -Eo "[0-9a-f\]+:[0-9a-f\]+:[0-9a-f\]+:[0-9a-f\]+:[0-9a-f\]+:[0-9a-f\]+")
/opt/onos/bin/onos "externalgateway-update -m $gatewayMac"

@ -1,42 +0,0 @@
#!/bin/bash
set -ux
ifconfig | grep br-ex
if [ $? -eq 1 ];then
echo "no br-ex exits"
else
echo "br-ex needs to remove"
ifconfig br-ex down
brctl delbr br-ex
fi
ifconfig <%= @public_eth -%> up
ovs-vsctl add-br br-public
ovs-vsctl add-port br-public <%= @public_eth %>
ifconfig br-public up
ip link add onos_port1 type veth peer name onos_port2
ifconfig onos_port1 up
ifconfig onos_port2 up
#externamMac=`ifconfig <%= @public_eth -%> | grep "HWaddr" | awk '{print $5}'`
externamMac=$(ifconfig <%= @public_eth -%> | \
grep -Eo "[0-9a-f\]+:[0-9a-f\]+:[0-9a-f\]+:[0-9a-f\]+:[0-9a-f\]+:[0-9a-f\]+")
ifconfig onos_port2 hw ether $externamMac
ovs-vsctl add-port br-public onos_port1
route | grep default
if [ $? -eq 1 ];then
echo "need to add default gw"
route add default gw <%= @vrouter -%>
else
echo "no need to add default gw"
fi

@ -1,69 +0,0 @@
{
"nodes": [
<%- index = 1 -%>
<%- @manager_ip.each do |ip| -%>
<%- if index == @manager_ip.size -%>
{
"ip": "<%= ip %>",
"id": "<%= ip %>",
"tcpPort": 9876
}
<%- else -%>
{
"ip": "<%= ip %>",
"id": "<%= ip %>",
"tcpPort": 9876
},
<%- end -%>
<%- index = index + 1 -%>
<%- end -%>
],
"partitions": {
<%- key = 1 -%>
<%- @manager_ip.each do |ip| -%>
<%- if key == @manager_ip.size -%>
"p<%= key -%>":[
<%- index = 1 -%>
<%- @manager_ip.each do |ip| -%>
<%- if index == @manager_ip.size -%>
{
"ip": "<%= ip %>",
"id": "<%= ip %>",
"tcpPort": 9876
}
<%- else -%>
{
"ip": "<%= ip %>",
"id": "<%= ip %>",
"tcpPort": 9876
},
<%- end -%>
<%- index = index + 1 -%>
<%- end -%>
]
<%- key = key + 1 -%>
<%- else -%>
"p<%= key -%>":[
<%- index = 1 -%>
<%- @manager_ip.each do |ip| -%>
<%- if index == @manager_ip.size -%>
{
"ip": "<%= ip %>",
"id": "<%= ip %>",
"tcpPort": 9876
}
<%- else -%>
{
"ip": "<%= ip %>",
"id": "<%= ip %>",
"tcpPort": 9876
},
<%- end -%>
<%- index = index + 1 -%>
<%- end -%>
],
<%- key = key + 1 -%>
<%- end -%>
<%- end -%>
}
}

@ -1,106 +0,0 @@
- id: onos
type: group
role: [onos]
requires: [deploy_start]
required_for: [deploy_end, primary-controller, controller]
tasks: [hiera, setup_repositories, fuel_pkgs, globals, tools, logging, onos_install, netconfig]
parameters:
strategy:
type: parallel
- id: ovs_update
type: puppet
version: 2.0.0
groups: [primary-controller,controller,compute]
requires: [deploy_start]
required_for: [netconfig, deploy_end]
parameters:
puppet_manifest: puppet/manifests/ovs-update.pp
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 720
- id: onos_install
type: puppet
version: 2.0.0
groups: [onos]
requires: [deploy_start, hosts, firewall, globals]
required_for: [deploy_end, openstack-network-start]
parameters:
puppet_manifest: puppet/manifests/onos-install.pp
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 720
- id: onos_service
type: puppet
version: 2.0.0
role: [onos]
requires: [post_deployment_start]
required_for: [post_deployment_end]
parameters:
puppet_manifest: puppet/manifests/onos-service.pp
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 1400
- id: onos_ha
type: puppet
version: 2.0.0
role: [primary-controller,controller]
cross-depends:
- name: onos_service
requires: [post_deployment_start]
required_for: [post_deployment_end]
parameters:
puppet_manifest: puppet/manifests/onos-ha.pp
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 1400
- id: onos_config_ovs_controller
type: puppet
version: 2.0.0
role: [primary-controller,controller]
requires: [onos_ha]
required_for: [post_deployment_end]
parameters:
puppet_manifest: puppet/manifests/ovs-controller.pp
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 600
- id: onos_config_ovs_compute
type: puppet
version: 2.0.0
role: [compute]
cross-depends:
- name: onos_ha
required_for: [post_deployment_end]
requires: [post_deployment_start]
parameters:
puppet_manifest: puppet/manifests/ovs-compute.pp
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 600
- id: onos_config_neutron
type: puppet
version: 2.0.0
role: [primary-controller,controller]
cross-depends:
- name: onos_config_ovs_compute
requires: [onos_config_ovs_controller]
required_for: [post_deployment_end]
parameters:
puppet_manifest: puppet/manifests/neutron-config.pp
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 1800
- id: onos_start_neutron
type: puppet
version: 2.0.0
role: [primary-controller,controller]
requires: [onos_config_neutron]
required_for: [post_deployment_end]
parameters:
puppet_manifest: puppet/manifests/neutron-start.pp
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 1800
timeout: 600
- id: onos_dashboard_registration
type: puppet
role: [primary-controller]
required_for: [post_deployment_end]
requires: [post_deployment_start]
version: 2.0.0
parameters:
puppet_manifest: puppet/manifests/onos-dashboard.pp
puppet_modules: puppet/modules:/etc/puppet/modules
timeout: 180

@ -1,10 +0,0 @@
attributes:
metadata:
restrictions:
- "cluster:net_provider != 'neutron'": "Neutron only"
- settings:public_network_assignment.assign_to_all_nodes.value == false: Assign public network to all nodes
enable_sfc:
weight: 13
type: "checkbox"
value: false
label: "SFC features"

@ -1,33 +0,0 @@
# Plugin name
name: onos
# Human-readable name for your plugin
title: onos plugin
# Plugin version
version: '0.10.0'
# Description
description: 'Open Network Operating System (ONOS) is a typical SDN controller. Web-ui: http://horizon_ip:8181/onos/ui'
# Required fuel version
fuel_version: ['10.0']
# Specify license of your plugin
licenses: ['Apache License Version 2.0']
# Specify author or company name
authors: ['Wu Wenbin, Huawei']
# A link to the plugin's page
homepage: 'https://git.openstack.org/openstack/fuel-plugin-onos'
# Specify a group which your plugin implements, possible options:
# network, storage, storage::cinder, storage::glance, hypervisor
groups: ['network']
# Change `false` to `true` if the plugin can be installed in the environment
# after the deployment.
is_hotpluggable: false
# The plugin is compatible with releases in the list
releases:
- os: ubuntu
version: newton-10.0
mode: ['ha']
deployment_scripts_path: deployment_scripts/
repository_path: repositories/ubuntu
# Version of plugin package
package_version: '4.0.0'

@ -1,9 +0,0 @@
onos:
name: "onos"
description: "sdn controller"
has_primary: false
public_ip_required: false
weight: 200
limits:
max: 1
min: 1

@ -1,32 +0,0 @@
#!/bin/bash
set -eux
DIR="$(dirname `readlink -f $0`)"
TARGET="${DIR}/deployment_scripts/puppet/modules/onos/files"
base_url=http://artifacts.opnfv.org/compass4nfv/package/master/onosfw
jdk_url=http://download.oracle.com/otn/java/jdk/8u51-b16/
repo_target="${DIR}/repositories/ubuntu"
onos=https://downloads.onosproject.org/release//onos-1.8.4.tar.gz
package=package_ovs_debian.tar.gz
jdk=jdk-8u51-linux-x64.tar.gz
repo=repository.tar
img=firewall_block_image.img
cd $TARGET
if [ ! -f $onos ]; then
wget $onos -P $TARGET
fi
if [ ! -f $jdk ]; then
wget $jdk_url/$jdk -P $TARGET
wget $base_url/$repo -P $TARGET
fi
cd $repo_target
rm -rf *.deb
if [ ! -f $package ]; then
wget $base_url/$package -P $repo_target
fi
tar zxf $repo_target/$package -C $repo_target
rm -rf $repo_target/$package

@ -1 +0,0 @@
[]

@ -1,7 +0,0 @@
volumes_roles_mapping:
# Default role mapping
onos:
- {allocate_size: "min", id: "os"}
# Set here new volumes for your role
volumes: []