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: I192eaf7e04bcea364fb2004d27ab32ddec046586
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.
|
||||
|
61
README.md
@ -1,61 +0,0 @@
|
||||
PLUMgrid plugin for Mirantis Fuel
|
||||
=================================
|
||||
|
||||
License
|
||||
-------
|
||||
Copyright 2016 PLUMgrid 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.
|
||||
|
||||
PLUMgrid Plugin
|
||||
---------------
|
||||
PLUMgrid is a core neutron networking plugin that has been a part of OpenStack
|
||||
neutron since Grizzly. It offers a Network Virtualization Platform that uses
|
||||
direct communication with the Hypervisor layer to provide all the networking
|
||||
functionality requested through Neutron APIs. It implements Neutron v2 APIs
|
||||
and helps configure L2/L3 virtual networks created through the PLUMgrid Platform.
|
||||
It also implements External Networks and Port Binding Extensions.
|
||||
|
||||
Building the plugin
|
||||
-------------------
|
||||
1. Clone the PLUMgrid Fuel plugin repository:
|
||||
|
||||
``# git clone https://github.com/openstack/fuel-plugin-plumgrid``
|
||||
|
||||
2. Install Fuel Plugin Builder:
|
||||
|
||||
``pip install fuel-plugin-builder``
|
||||
|
||||
3. Navigate to the cloned PLUMgrid Fuel plugin folder and build the plugin:
|
||||
|
||||
``cd fuel-plugin-plumgrid/``
|
||||
|
||||
``fpb --build .``
|
||||
|
||||
3. The plumgrid-<x.x.x>.rpm plugin file will be created.
|
||||
|
||||
4. Copy this file to the Fuel Master node with secure copy (scp):
|
||||
|
||||
``scp plumgrid-<x.x.x>.rpm root@:<the_Fuel_Master_node_IP address>:/tmp``
|
||||
|
||||
5. On the Fuel Master node, Install the PLUMgrid plugin with:
|
||||
|
||||
``cd /tmp``
|
||||
``fuel plugins --install plumgrid-<x.x.x>.rpm``
|
||||
|
||||
6. The plugin is now ready for use and can be enabled on the Settings tab, PLUMgrid Plugin section
|
||||
of the Fuel web UI.
|
||||
|
||||
Note: Contact PLUMgrid for an Installation Pack info@plumgrid.com
|
||||
(includes full/trial license, packages and deployment documentation)
|
||||
|
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,69 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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.
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p /var/log/plumgrid
|
||||
exec > /var/log/plumgrid/post_license.log
|
||||
exec 2>&1
|
||||
|
||||
set -x
|
||||
|
||||
. /tmp/plumgrid_config
|
||||
|
||||
if [[ ! -f "/root/post_director" ]];then
|
||||
|
||||
#Restart plumgrid service before posting license
|
||||
service plumgrid restart
|
||||
|
||||
#Wait for the platform to come up
|
||||
sleep 5
|
||||
retry_cnt=0
|
||||
http_status=""
|
||||
|
||||
while [[ "$http_status" != "200" ]]; do
|
||||
if [[ $retry_cnt -ge 150 ]]; then
|
||||
echo "Failed to login to platform for 5 minutes, exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#Login to PLUMgrid
|
||||
http_status=$(curl -H "Accept: application/json" -H "Content-Type: application/json" -k -X \
|
||||
POST https://$vip/0/login -d '{"userName":"'$plumgrid_username'","password":"'$plumgrid_password'"}' \
|
||||
-c /tmp/cookie -i | grep HTTP | awk '{print $2}')
|
||||
|
||||
echo $http_status
|
||||
|
||||
let "retry_cnt= $retry_cnt + 1"
|
||||
sleep 2
|
||||
done
|
||||
|
||||
#Install License
|
||||
install_status=$(curl -H "Accept: application/json" -H "Content-Type: application/json" -X PUT \
|
||||
-d '{"user_name":"'$plumgrid_username'","password":"'$plumgrid_password'","license":"'$license'"}' \
|
||||
http://$pg_repo:8099/v1/zones/$zone_name/pgLicense)
|
||||
|
||||
echo $install_status
|
||||
|
||||
if [[ $install_status != "{\"status\": \"success\",\"message\":\"Successfully installed PLUMgrid license\",\"data\":}" ]]; then
|
||||
echo "Error installing license, exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
touch /root/post_director
|
||||
|
||||
else
|
||||
echo "This Director has already been configured, skipping."
|
||||
fi
|
@ -1,191 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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.
|
||||
|
||||
notice('MODULAR: plumgrid/director.pp')
|
||||
|
||||
# Fuel settings
|
||||
$fuel_hash = hiera_hash('public_ssl', {})
|
||||
$fuel_hostname = pick($fuel_hash['hostname'])
|
||||
|
||||
# PLUMgrid settings
|
||||
$plumgrid_hash = hiera_hash('plumgrid', {})
|
||||
$plumgrid_pkg_repo = pick($plumgrid_hash['plumgrid_package_repo'])
|
||||
$plumgrid_lic = pick($plumgrid_hash['plumgrid_license'])
|
||||
$plumgrid_vip = pick($plumgrid_hash['plumgrid_virtual_ip'])
|
||||
$plumgrid_zone = pick($plumgrid_hash['plumgrid_zone'])
|
||||
$plumgrid_username = pick($plumgrid_hash['plumgrid_username'])
|
||||
$plumgrid_password = pick($plumgrid_hash['plumgrid_password'])
|
||||
|
||||
# PLUMgrid Zone settings
|
||||
$network_metadata = hiera_hash('network_metadata')
|
||||
$haproxy_vip = pick($network_metadata['vips']['public']['ipaddr'])
|
||||
$controller_nodes = get_nodes_hash_by_roles($network_metadata, ['primary-controller', 'controller'])
|
||||
$controller_address_map = get_node_to_ipaddr_map_by_network_role($controller_nodes, 'mgmt/vip')
|
||||
$controller_ipaddresses = join(hiera_array('controller_ipaddresses', values($controller_address_map)), ',')
|
||||
$mgmt_net = hiera('management_network_range')
|
||||
$fabric_dev = 'br-100000'
|
||||
$md_ip = pick($plumgrid_hash['plumgrid_opsvm'])
|
||||
|
||||
# Neutron settings
|
||||
$neutron_config = hiera_hash('quantum_settings', {})
|
||||
$metadata_secret = pick($neutron_config['metadata']['metadata_proxy_shared_secret'], 'root')
|
||||
$service_endpoint = hiera('service_endpoint')
|
||||
|
||||
# Neutron DB settings
|
||||
$neutron_db_password = $neutron_config['database']['passwd']
|
||||
$neutron_db_user = pick($neutron_config['database']['user'], 'neutron')
|
||||
$neutron_db_name = pick($neutron_config['database']['name'], 'neutron')
|
||||
$neutron_db_host = pick($neutron_config['database']['host'], hiera('database_vip'))
|
||||
|
||||
$neutron_db_uri = "mysql://${neutron_db_user}:${neutron_db_password}@${neutron_db_host}/${neutron_db_name}?&read_timeout=60"
|
||||
|
||||
# OpenStack Access settings
|
||||
$access_hash = hiera_hash('access', {})
|
||||
$admin_username = pick($access_hash['user'])
|
||||
$admin_tenant = pick($access_hash['tenant'])
|
||||
$admin_password = pick($access_hash['password'])
|
||||
|
||||
# Add fuel node fqdn to /etc/hosts
|
||||
host { 'fuel':
|
||||
ip => $haproxy_vip,
|
||||
host_aliases => $fuel_hostname,
|
||||
}
|
||||
|
||||
class { 'plumgrid':
|
||||
plumgrid_ip => $controller_ipaddresses,
|
||||
mgmt_dev => 'br-mgmt',
|
||||
fabric_dev => $fabric_dev,
|
||||
lvm_keypath => "/var/lib/plumgrid/zones/$plumgrid_zone/id_rsa.pub",
|
||||
md_ip => $md_ip,
|
||||
source_net => $mgmt_net,
|
||||
dest_net => $mgmt_net,
|
||||
}->
|
||||
exec { 'Setup plumgrid-sigmund service':
|
||||
command => "/opt/local/bin/nsenter -t \$(ps ho pid --ppid \$(cat /var/run/libvirt/lxc/plumgrid.pid)) -m -n -u -i -p /usr/bin/sigmund-configure --ip $md_ip --start --autoboot",
|
||||
returns => [0, 1],
|
||||
}
|
||||
|
||||
class { 'sal':
|
||||
plumgrid_ip => $controller_ipaddresses,
|
||||
virtual_ip => $plumgrid_vip,
|
||||
md_ip => $md_ip,
|
||||
source_net => $mgmt_net,
|
||||
}
|
||||
|
||||
# Setup Neutron PLUMgrid Configurations
|
||||
|
||||
package { 'neutron-server':
|
||||
ensure => 'present',
|
||||
name => 'neutron-server',
|
||||
}
|
||||
|
||||
service { 'neutron-server':
|
||||
ensure => 'running',
|
||||
name => 'neutron-server',
|
||||
enable => true,
|
||||
}
|
||||
|
||||
file { '/etc/neutron/neutron.conf':
|
||||
ensure => present,
|
||||
notify => Service['neutron-server'],
|
||||
}
|
||||
|
||||
file_line { 'Enable PLUMgrid core plugin':
|
||||
path => '/etc/neutron/neutron.conf',
|
||||
line => 'core_plugin=networking_plumgrid.neutron.plugins.plugin.NeutronPluginPLUMgridV2',
|
||||
match => '^core_plugin.*$',
|
||||
require => File['/etc/neutron/neutron.conf'],
|
||||
}
|
||||
|
||||
file_line { 'Disable service plugins':
|
||||
path => '/etc/neutron/neutron.conf',
|
||||
line => 'service_plugins = ""',
|
||||
match => '^service_plugins.*$',
|
||||
require => File['/etc/neutron/neutron.conf'],
|
||||
}
|
||||
|
||||
file { '/etc/nova/nova.conf':
|
||||
ensure => present,
|
||||
notify => Service['neutron-server'],
|
||||
}
|
||||
|
||||
file_line { 'Set libvirt vif':
|
||||
path => '/etc/nova/nova.conf',
|
||||
line => 'libvirt_vif_type=ethernet',
|
||||
match => '^libvirt_vif_type.*$',
|
||||
require => File['/etc/nova/nova.conf']
|
||||
}
|
||||
|
||||
file_line { 'Set libvirt cpu mode':
|
||||
path => '/etc/nova/nova.conf',
|
||||
line => 'libvirt_cpu_mode=none',
|
||||
match => '^libvirt_cpu_mode.*$',
|
||||
require => File['/etc/nova/nova.conf']
|
||||
}
|
||||
|
||||
# MOS8 uses the outdated PLUMgrid plugin string in the plugin guess function
|
||||
|
||||
file_line { 'Replace plugin name in guess function':
|
||||
path => '/usr/share/neutron-common/plugin_guess_func',
|
||||
match => '"neutron.plugins.plumgrid.plumgrid_nos_plugin.plumgrid_plugin.NeutronPluginPLUMgridV2"',
|
||||
line => "\t\"networking_plumgrid.neutron.plugins.plugin.NeutronPluginPLUMgridV2\")",
|
||||
multiple => true
|
||||
}
|
||||
|
||||
# Setting PLUMgrid Config Files
|
||||
|
||||
class { '::neutron::plugins::plumgrid':
|
||||
director_server => $plumgrid_vip,
|
||||
username => $plumgrid_username,
|
||||
password => $plumgrid_password,
|
||||
admin_password => $admin_password,
|
||||
controller_priv_host => $service_endpoint,
|
||||
connection => $neutron_db_uri,
|
||||
nova_metadata_ip => '169.254.169.254',
|
||||
nova_metadata_subnet => '169.254.169.252/30',
|
||||
nova_metadata_port => '8775',
|
||||
metadata_proxy_shared_secret => $metadata_secret,
|
||||
package_ensure => 'latest',
|
||||
identity_version => 'v3',
|
||||
user_domain_name => 'Default'
|
||||
}
|
||||
|
||||
exec { "neutron-db-manage upgrade heads":
|
||||
command => "/usr/bin/neutron-db-manage upgrade heads",
|
||||
notify => Service["$::neutron::params::server_service"],
|
||||
require => Package['networking-plumgrid']
|
||||
}
|
||||
|
||||
# Update PLUMgrid pgrc file
|
||||
|
||||
file { 'pgrc':
|
||||
ensure => present,
|
||||
path => '/etc/neutron/plugins/plumgrid/pgrc',
|
||||
content => "export os_auth_url=http://$service_endpoint:35357/v2.0\nexport os_admin_user=$admin_username\nexport os_admin_tenant=$admin_tenant\nexport os_admin_password=$admin_password\nexport pg_virtual_ip=$plumgrid_vip\nexport pg_username=$plumgrid_username\nexport pg_password=$plumgrid_password",
|
||||
}
|
||||
|
||||
firewall { '990 Add iptables rule for metadata':
|
||||
chain => 'INPUT',
|
||||
port => '8775',
|
||||
proto => 'tcp',
|
||||
action => 'accept',
|
||||
}->
|
||||
firewall { '991 Add iptables rule for solutions API':
|
||||
chain => 'INPUT',
|
||||
port => '8099',
|
||||
state => ['NEW','ESTABLISHED'],
|
||||
proto => 'tcp',
|
||||
action => 'accept',
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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.
|
||||
|
||||
notice('MODULAR: plumgrid/director_fixes.pp')
|
||||
|
||||
file { '/etc/apache2/ports.conf':
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
file_line { 'ensure no port conflict between apache and keystone':
|
||||
path => '/etc/apache2/ports.conf',
|
||||
line => 'NameVirtualHost *:35357',
|
||||
ensure => 'absent',
|
||||
require => File['/etc/apache2/ports.conf']
|
||||
}
|
||||
|
||||
file_line { 'ensure no port conflict between apache-keystone':
|
||||
path => '/etc/apache2/ports.conf',
|
||||
line => 'NameVirtualHost *:5000',
|
||||
ensure => 'absent',
|
||||
require => File['/etc/apache2/ports.conf']
|
||||
}
|
||||
|
||||
ini_setting { 'Add Project domain name variable to plumlib.ini':
|
||||
ensure => 'present',
|
||||
path => '/etc/neutron/plugins/plumgrid/plumlib.ini',
|
||||
section => 'keystone_authtoken',
|
||||
setting => 'user_domain_name',
|
||||
value => 'Default',
|
||||
}
|
||||
|
||||
ini_setting { 'Add enable_reverse_flow paramater in plumlib.ini':
|
||||
ensure => 'present',
|
||||
path => '/etc/neutron/plugins/plumgrid/plumlib.ini',
|
||||
section => 'PLUMgridLibrary',
|
||||
setting => 'enable_reverse_flow_tap',
|
||||
value => 'True',
|
||||
}
|
||||
|
||||
ini_setting { 'Add nova_metaconfig paramater in plumlib.ini':
|
||||
ensure => 'present',
|
||||
path => '/etc/neutron/plugins/plumgrid/plumlib.ini',
|
||||
section => 'PLUMgridLibrary',
|
||||
setting => 'nova_metaconfig',
|
||||
value => 'True',
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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.
|
||||
|
||||
notice('MODULAR: plumgrid/disable_ovs.pp')
|
||||
|
||||
file { '/etc/hiera/plugins/plumgrid.yaml':
|
||||
ensure => file,
|
||||
content => 'use_ovs: false',
|
||||
}
|
||||
|
||||
file_line { 'Replace provider ovs with lnx':
|
||||
path => '/etc/astute.yaml',
|
||||
line => ' provider: lnx',
|
||||
match => ' provider: ovs',
|
||||
multiple => true,
|
||||
}
|
@ -1,179 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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.
|
||||
|
||||
notice('MODULAR: plumgrid/edge.pp')
|
||||
|
||||
# Metadata settings
|
||||
$metadata_hash = hiera_hash('quantum_settings', {})
|
||||
$metadata_secret = pick($metadata_hash['metadata']['metadata_proxy_shared_secret'], 'root')
|
||||
$nova_hash = hiera_hash('nova', {})
|
||||
$nova_sql_password = pick($nova_hash['db_password'])
|
||||
$mgmt_vip = hiera('management_vip')
|
||||
|
||||
# PLUMgrid settings
|
||||
$plumgrid_hash = hiera_hash('plumgrid', {})
|
||||
$plumgrid_pkg_repo = pick($plumgrid_hash['plumgrid_package_repo'])
|
||||
$plumgrid_vip = pick($plumgrid_hash['plumgrid_virtual_ip'])
|
||||
|
||||
# PLUMgrid Zone settings
|
||||
$network_metadata = hiera_hash('network_metadata')
|
||||
$controller_nodes = get_nodes_hash_by_roles($network_metadata, ['primary-controller', 'controller'])
|
||||
$controller_address_map = get_node_to_ipaddr_map_by_network_role($controller_nodes, 'mgmt/vip')
|
||||
$controller_ipaddresses = join(hiera_array('controller_ipaddresses', values($controller_address_map)), ',')
|
||||
$mgmt_net = hiera('management_network_range')
|
||||
$fabric_dev = 'br-100000'
|
||||
$plumgrid_zone = pick($plumgrid_hash['plumgrid_zone'])
|
||||
$md_ip = pick($plumgrid_hash['plumgrid_opsvm'])
|
||||
|
||||
class { 'plumgrid':
|
||||
plumgrid_ip => $controller_ipaddresses,
|
||||
mgmt_dev => 'br-mgmt',
|
||||
fabric_dev => $fabric_dev,
|
||||
lvm_keypath => "/var/lib/plumgrid/zones/$plumgrid_zone/id_rsa.pub",
|
||||
md_ip => $md_ip,
|
||||
source_net => $mgmt_net,
|
||||
dest_net => $mgmt_net,
|
||||
}->
|
||||
exec { 'Setup plumgrid-sigmund service':
|
||||
command => "/opt/local/bin/nsenter -t \$(ps ho pid --ppid \$(cat /var/run/libvirt/lxc/plumgrid.pid)) -m -n -u -i -p /usr/bin/sigmund-configure --ip $md_ip --start --autoboot",
|
||||
returns => [0, 1],
|
||||
}
|
||||
|
||||
package { 'nova-api':
|
||||
ensure => present,
|
||||
name => 'nova-api',
|
||||
}
|
||||
|
||||
package { 'nova-compute':
|
||||
ensure => present,
|
||||
name => 'nova-compute',
|
||||
}
|
||||
|
||||
file { '/etc/nova/nova.conf':
|
||||
ensure => present,
|
||||
notify => [ Service['nova-compute'], Service['nova-api'] ]
|
||||
}
|
||||
|
||||
file_line { 'Set libvirt vif':
|
||||
path => '/etc/nova/nova.conf',
|
||||
line => 'libvirt_vif_type=ethernet',
|
||||
match => '^libvirt_vif_type.*$',
|
||||
require => File['/etc/nova/nova.conf']
|
||||
}
|
||||
|
||||
file_line { 'Set libvirt cpu mode':
|
||||
path => '/etc/nova/nova.conf',
|
||||
line => 'libvirt_cpu_mode=none',
|
||||
match => '^libvirt_cpu_mode.*$',
|
||||
require => File['/etc/nova/nova.conf']
|
||||
}
|
||||
|
||||
# Enabling Metadata on Computes
|
||||
file_line { 'Enable Metadata Proxy':
|
||||
path => '/etc/nova/nova.conf',
|
||||
line => 'service_metadata_proxy=True',
|
||||
match => '^#service_metadata_proxy=false',
|
||||
require => File['/etc/nova/nova.conf']
|
||||
}
|
||||
|
||||
file_line { 'Set Metadata Shared Secret':
|
||||
path => '/etc/nova/nova.conf',
|
||||
line => "metadata_proxy_shared_secret=$metadata_secret",
|
||||
match => '^#metadata_proxy_shared_secret=',
|
||||
require => File['/etc/nova/nova.conf']
|
||||
}
|
||||
|
||||
file_line { 'Copy nova sql url on computes':
|
||||
path => '/etc/nova/nova.conf',
|
||||
line => "connection = mysql://nova:$nova_sql_password@$mgmt_vip/nova?read_timeout=60",
|
||||
after => '^#connection = <None>',
|
||||
require => File['/etc/nova/nova.conf']
|
||||
}
|
||||
|
||||
service { 'libvirt-bin':
|
||||
ensure => running,
|
||||
name => 'libvirt-bin',
|
||||
enable => true,
|
||||
}
|
||||
|
||||
service { 'nova-api':
|
||||
ensure => running,
|
||||
name => 'nova-api',
|
||||
require => Package['nova-api'],
|
||||
enable => true,
|
||||
}
|
||||
|
||||
service { 'nova-compute':
|
||||
ensure => running,
|
||||
name => 'nova-compute',
|
||||
require => Package['nova-compute'],
|
||||
enable => true,
|
||||
}
|
||||
|
||||
file { '/etc/libvirt/qemu.conf':
|
||||
ensure => present,
|
||||
notify => Service['libvirt-bin'],
|
||||
}
|
||||
|
||||
file_line { 'Libvirt QEMU settings':
|
||||
path => '/etc/libvirt/qemu.conf',
|
||||
line => 'cgroup_device_acl = ["/dev/null", "/dev/full", "/dev/zero", "/dev/random", "/dev/urandom", "/dev/ptmx", "/dev/kvm", "/dev/kqemu", "/dev/rtc", "/dev/hpet", "/dev/net/tun"]',
|
||||
require => File['/etc/libvirt/qemu.conf'],
|
||||
}
|
||||
|
||||
# Enable packet forwarding for IPv4
|
||||
exec { 'sysctl -w net.ipv4.ip_forward=1':
|
||||
command => '/sbin/sysctl -w net.ipv4.ip_forward=1'
|
||||
}
|
||||
|
||||
file { '/etc/sysctl.conf':
|
||||
ensure => present
|
||||
}
|
||||
|
||||
file_line { 'Enable IP4 packet forwarding':
|
||||
path => '/etc/sysctl.conf',
|
||||
line => 'net.ipv4.ip_forward=1',
|
||||
match => '^#net.ipv4.ip_forward=1',
|
||||
require => File['/etc/sysctl.conf']
|
||||
}
|
||||
|
||||
Package['nova-api'] -> File['/etc/nova/rootwrap.d/network.filters'] ~> Service['nova-compute']
|
||||
|
||||
file { '/etc/nova/rootwrap.d/network.filters':
|
||||
ensure => present,
|
||||
mode => '0644',
|
||||
source => 'puppet:///modules/plumgrid/network.filters'
|
||||
}
|
||||
|
||||
file_line { 'unmount plumgrid.fuse post-stop':
|
||||
path => '/etc/init/plumgrid.conf',
|
||||
line => ' umount --fake /run/libvirt/lxc/plumgrid.fuse',
|
||||
after => 'virsh -c lxc: destroy plumgrid',
|
||||
require => Package[$plumgrid::params::plumgrid_package]
|
||||
}
|
||||
|
||||
file_line { 'unmount plumgrid.fuse pre-start':
|
||||
path => '/etc/init/plumgrid.conf',
|
||||
line => ' umount --fake /run/libvirt/lxc/plumgrid.fuse',
|
||||
after => '/opt/pg/scripts/systemd_pre_start.sh',
|
||||
require => Package[$plumgrid::params::plumgrid_package]
|
||||
}
|
||||
|
||||
firewall { '990 Add iptables rule for metadata':
|
||||
chain => 'INPUT',
|
||||
port => '8775',
|
||||
proto => 'tcp',
|
||||
action => 'accept',
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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.
|
||||
|
||||
notice('MODULAR: plumgrid/gateway.pp')
|
||||
|
||||
# PLUMgrid settings
|
||||
$plumgrid_hash = hiera_hash('plumgrid', {})
|
||||
$plumgrid_gw_devs = pick($plumgrid_hash['gateway_devs'])
|
||||
|
||||
# PLUMgrid Zone settings
|
||||
$network_metadata = hiera_hash('network_metadata')
|
||||
$controller_nodes = get_nodes_hash_by_roles($network_metadata, ['primary-controller', 'controller'])
|
||||
$controller_address_map = get_node_to_ipaddr_map_by_network_role($controller_nodes, 'mgmt/vip')
|
||||
$controller_ipaddresses = join(hiera_array('controller_ipaddresses', values($controller_address_map)), ',')
|
||||
$mgmt_net = hiera('management_network_range')
|
||||
$fabric_dev = 'br-100000'
|
||||
$plumgrid_zone = pick($plumgrid_hash['plumgrid_zone'])
|
||||
$md_ip = pick($plumgrid_hash['plumgrid_opsvm'])
|
||||
|
||||
class { 'plumgrid':
|
||||
plumgrid_ip => $controller_ipaddresses,
|
||||
mgmt_dev => 'br-mgmt',
|
||||
fabric_dev => $fabric_dev,
|
||||
gateway_devs => split($plumgrid_gw_devs, ','),
|
||||
lvm_keypath => "/var/lib/plumgrid/zones/$plumgrid_zone/id_rsa.pub",
|
||||
md_ip => $md_ip,
|
||||
source_net => $mgmt_net,
|
||||
dest_net => $mgmt_net,
|
||||
}->
|
||||
exec { 'Setup plumgrid-sigmund service':
|
||||
command => "/opt/local/bin/nsenter -t \$(ps ho pid --ppid \$(cat /var/run/libvirt/lxc/plumgrid.pid)) -m -n -u -i -p /usr/bin/sigmund-configure --ip $md_ip --start --autoboot",
|
||||
returns => [0, 1],
|
||||
}
|
||||
|
||||
package { 'iptables-persistent':
|
||||
ensure => present,
|
||||
name => 'iptables-persistent'
|
||||
}
|
||||
|
||||
# Enable packet forwarding for IPv4
|
||||
exec { 'sysctl -w net.ipv4.ip_forward=1':
|
||||
command => '/sbin/sysctl -w net.ipv4.ip_forward=1'
|
||||
}
|
||||
|
||||
file { '/etc/sysctl.conf':
|
||||
ensure => present
|
||||
}
|
||||
|
||||
file_line { 'Enable IP4 packet forwarding':
|
||||
path => '/etc/sysctl.conf',
|
||||
line => 'net.ipv4.ip_forward=1',
|
||||
match => '^#net.ipv4.ip_forward=1',
|
||||
require => File['/etc/sysctl.conf']
|
||||
}
|
@ -1,85 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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.
|
||||
|
||||
notice('MODULAR: plumgrid/pre_node.pp')
|
||||
|
||||
$fuel_hash = hiera_hash('public_ssl', {})
|
||||
$fuel_hostname = pick($fuel_hash['hostname'])
|
||||
|
||||
$metadata_hash = hiera_hash('quantum_settings', {})
|
||||
$metadata = pick($metadata_hash['metadata']['metadata_proxy_shared_secret'], 'root')
|
||||
|
||||
$plumgrid_hash = hiera_hash('plumgrid', {})
|
||||
$plumgrid_username = pick($plumgrid_hash['plumgrid_username'])
|
||||
$plumgrid_password = pick($plumgrid_hash['plumgrid_password'])
|
||||
$plumgrid_pkg_repo = pick($plumgrid_hash['plumgrid_package_repo'])
|
||||
$plumgrid_lic = pick($plumgrid_hash['plumgrid_license'])
|
||||
$plumgrid_vip = pick($plumgrid_hash['plumgrid_virtual_ip'])
|
||||
$plumgrid_zone = pick($plumgrid_hash['plumgrid_zone'])
|
||||
$fabric_network = pick($plumgrid_hash['plumgrid_fabric_network'])
|
||||
$opsvm_ip = pick($plumgrid_hash['plumgrid_opsvm'])
|
||||
$fuel_version = hiera('fuel_version')
|
||||
|
||||
$network_metadata = hiera_hash('network_metadata')
|
||||
$haproxy_vip = pick($network_metadata['vips']['public']['ipaddr'])
|
||||
$controller_nodes = get_nodes_hash_by_roles($network_metadata, ['primary-controller', 'controller'])
|
||||
$controller_address_map = get_node_to_ipaddr_map_by_network_role($controller_nodes, 'mgmt/vip')
|
||||
$controller_ipaddresses = join(hiera_array('controller_ipaddresses', values($controller_address_map)), ',')
|
||||
$compute_nodes = get_nodes_hash_by_roles($network_metadata, ['compute'])
|
||||
$compute_address_map = get_node_to_ipaddr_map_by_network_role($compute_nodes, 'mgmt/vip')
|
||||
$compute_ipaddresses = join(hiera_array('compute_ipaddresses', values($compute_address_map)), ',')
|
||||
$gateway_nodes = get_nodes_hash_by_roles($network_metadata, ['PLUMgrid-Gateway'])
|
||||
$gateway_address_map = get_node_to_ipaddr_map_by_network_role($gateway_nodes, 'mgmt/vip')
|
||||
$gateway_ipaddresses = join(hiera_array('gateway_ipaddresses', values($gateway_address_map)), ',')
|
||||
|
||||
$pg_packages = [ 'python-pip', 'apparmor-utils' ]
|
||||
|
||||
package { $pg_packages:
|
||||
ensure => present,
|
||||
require => Exec['apt-get update']
|
||||
}
|
||||
|
||||
exec { 'aa-disable':
|
||||
command => 'aa-disable /sbin/dhclient',
|
||||
path => ['/usr/sbin', '/bin/'],
|
||||
onlyif => 'aa-status | grep /sbin/dhclient',
|
||||
subscribe => Package['apparmor-utils']
|
||||
}
|
||||
|
||||
exec { "apt-get update":
|
||||
command => "/usr/bin/apt-get update"
|
||||
}
|
||||
|
||||
file { '/tmp/plumgrid_config':
|
||||
ensure => file,
|
||||
content => "fuel_hostname=$fuel_hostname\nplumgrid_username=$plumgrid_username\nplumgrid_password=$plumgrid_password\nhaproxy_vip=$haproxy_vip\ndirector_ip=$controller_ipaddresses\nedge_ip=$compute_ipaddresses\ngateway_ip=$gateway_ipaddresses\nmetadata_secret=$metadata\nvip=$plumgrid_vip\nopsvm_ip=$opsvm_ip\npg_repo=$plumgrid_pkg_repo\nzone_name=$plumgrid_zone\nfabric_network=$fabric_network\nfuel_version=$fuel_version\nlicense=$plumgrid_lic",
|
||||
}
|
||||
|
||||
file { ['/var/lib/plumgrid', '/var/lib/plumgrid/zones', "/var/lib/plumgrid/zones/$plumgrid_zone"]:
|
||||
ensure => directory,
|
||||
mode => 0755,
|
||||
}->
|
||||
exec { "lcm_key":
|
||||
command => "/usr/bin/curl -Lks http://$plumgrid_pkg_repo:81/files/ssh_keys/zones/$plumgrid_zone/id_rsa.pub -o /var/lib/plumgrid/zones/$plumgrid_zone/id_rsa.pub",
|
||||
}
|
||||
|
||||
exec { "get_GPG":
|
||||
command => "/usr/bin/curl -Lks http://$plumgrid_pkg_repo:81/plumgrid/GPG-KEY -o /tmp/GPG-KEY",
|
||||
}->
|
||||
exec { "apt-key":
|
||||
path => '/bin:/usr/bin',
|
||||
environment => 'HOME=/root',
|
||||
command => 'apt-key add /tmp/GPG-KEY',
|
||||
}
|
@ -1,131 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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.
|
||||
|
||||
notice('MODULAR: neutron-compute-nova.pp')
|
||||
|
||||
$network_scheme = hiera_hash('network_scheme', {})
|
||||
prepare_network_config($network_scheme)
|
||||
|
||||
$use_neutron = hiera('use_neutron', false)
|
||||
|
||||
include nova::params
|
||||
$neutron_config = hiera_hash('neutron_config', {})
|
||||
$neutron_integration_bridge = 'br-int'
|
||||
$nova_hash = hiera_hash('nova', {})
|
||||
$libvirt_vif_driver = pick($nova_hash['libvirt_vif_driver'], 'nova.virt.libvirt.vif.LibvirtGenericVIFDriver')
|
||||
|
||||
$management_vip = hiera('management_vip')
|
||||
$service_endpoint = hiera('service_endpoint', $management_vip)
|
||||
$admin_password = try_get_value($neutron_config, 'keystone/admin_password')
|
||||
$admin_tenant_name = try_get_value($neutron_config, 'keystone/admin_tenant', 'services')
|
||||
$admin_username = try_get_value($neutron_config, 'keystone/admin_user', 'neutron')
|
||||
$region_name = hiera('region', 'RegionOne')
|
||||
$auth_api_version = 'v2.0'
|
||||
$ssl_hash = hiera_hash('use_ssl', {})
|
||||
|
||||
$admin_identity_protocol = get_ssl_property($ssl_hash, {}, 'keystone', 'admin', 'protocol', 'http')
|
||||
$admin_identity_address = get_ssl_property($ssl_hash, {}, 'keystone', 'admin', 'hostname', [$service_endpoint, $management_vip])
|
||||
|
||||
$neutron_internal_protocol = get_ssl_property($ssl_hash, {}, 'neutron', 'internal', 'protocol', 'http')
|
||||
$neutron_endpoint = get_ssl_property($ssl_hash, {}, 'neutron', 'internal', 'hostname', [hiera('neutron_endpoint', ''), $management_vip])
|
||||
|
||||
$admin_identity_uri = "${admin_identity_protocol}://${admin_identity_address}:35357"
|
||||
$admin_auth_url = "${admin_identity_uri}/${auth_api_version}"
|
||||
$neutron_url = "${neutron_internal_protocol}://${neutron_endpoint}:9696"
|
||||
|
||||
$nova_migration_ip = get_network_role_property('nova/migration', 'ipaddr')
|
||||
|
||||
service { 'libvirt' :
|
||||
ensure => 'running',
|
||||
enable => true,
|
||||
# Workaround for bug LP #1469308
|
||||
# also service name for Ubuntu and Centos is the same.
|
||||
name => 'libvirtd',
|
||||
provider => $nova::params::special_service_provider,
|
||||
}
|
||||
|
||||
exec { 'destroy_libvirt_default_network':
|
||||
command => 'virsh net-destroy default',
|
||||
onlyif => 'virsh net-info default | grep -qE "Active:.* yes"',
|
||||
path => [ '/bin', '/sbin', '/usr/bin', '/usr/sbin' ],
|
||||
tries => 3,
|
||||
require => Service['libvirt'],
|
||||
}
|
||||
|
||||
exec { 'undefine_libvirt_default_network':
|
||||
command => 'virsh net-undefine default',
|
||||
onlyif => 'virsh net-info default 2>&1 > /dev/null',
|
||||
path => [ '/bin', '/sbin', '/usr/bin', '/usr/sbin' ],
|
||||
tries => 3,
|
||||
require => Exec['destroy_libvirt_default_network'],
|
||||
}
|
||||
|
||||
Service['libvirt'] ~> Exec['destroy_libvirt_default_network']
|
||||
|
||||
# script called by qemu needs to manipulate the tap device
|
||||
file_line { 'clear_emulator_capabilities':
|
||||
path => '/etc/libvirt/qemu.conf',
|
||||
line => 'clear_emulator_capabilities = 0',
|
||||
notify => Service['libvirt']
|
||||
}
|
||||
|
||||
class { 'nova::compute::neutron':
|
||||
libvirt_vif_driver => $libvirt_vif_driver,
|
||||
}
|
||||
|
||||
nova_config {
|
||||
'DEFAULT/linuxnet_interface_driver': value => 'nova.network.linux_net.LinuxOVSInterfaceDriver';
|
||||
'DEFAULT/linuxnet_ovs_integration_bridge': value => $neutron_integration_bridge;
|
||||
'DEFAULT/network_device_mtu': value => '65000';
|
||||
'DEFAULT/my_ip': value => $nova_migration_ip;
|
||||
}
|
||||
|
||||
class { 'nova::network::neutron' :
|
||||
neutron_admin_password => $admin_password,
|
||||
neutron_admin_tenant_name => $admin_tenant_name,
|
||||
neutron_region_name => $region_name,
|
||||
neutron_admin_username => $admin_username,
|
||||
neutron_admin_auth_url => $admin_auth_url,
|
||||
neutron_url => $neutron_url,
|
||||
neutron_ovs_bridge => $neutron_integration_bridge,
|
||||
}
|
||||
|
||||
augeas { 'sysctl-net.bridge.bridge-nf-call-arptables':
|
||||
context => '/files/etc/sysctl.conf',
|
||||
changes => "set net.bridge.bridge-nf-call-arptables '1'",
|
||||
before => Service['libvirt'],
|
||||
}
|
||||
augeas { 'sysctl-net.bridge.bridge-nf-call-iptables':
|
||||
context => '/files/etc/sysctl.conf',
|
||||
changes => "set net.bridge.bridge-nf-call-iptables '1'",
|
||||
before => Service['libvirt'],
|
||||
}
|
||||
augeas { 'sysctl-net.bridge.bridge-nf-call-ip6tables':
|
||||
context => '/files/etc/sysctl.conf',
|
||||
changes => "set net.bridge.bridge-nf-call-ip6tables '1'",
|
||||
before => Service['libvirt'],
|
||||
}
|
||||
|
||||
service { 'nova-compute':
|
||||
ensure => 'running',
|
||||
name => $::nova::params::compute_service_name,
|
||||
}
|
||||
Nova_config<| |> ~> Service['nova-compute']
|
||||
|
||||
if($::operatingsystem == 'Ubuntu') {
|
||||
tweaks::ubuntu_service_override { 'nova-network':
|
||||
package_name => 'nova-network',
|
||||
}
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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.
|
||||
|
||||
notice('MODULAR: plumgrid/pre_deployment.pp')
|
||||
|
||||
package { 'libvirt0' :
|
||||
ensure => '1.2.2-0ubuntu13.1.16',
|
||||
} ->
|
||||
package { 'libvirt-bin' :
|
||||
ensure => '1.2.2-0ubuntu13.1.16',
|
||||
}
|
||||
package { 'networking-plumgrid':
|
||||
ensure => 'absent',
|
||||
}
|
||||
|
||||
# MOS8 was tagged with the older version of puppet neutron which contains outdated PLUMgrid plugin name
|
||||
|
||||
file_line { 'Replace outdated plugin package name in puppet neutron':
|
||||
path => '/etc/puppet/modules/neutron/manifests/params.pp',
|
||||
line => " \$plumgrid_plugin_package = \'networking-plumgrid\'",
|
||||
match => "plumgrid_plugin_package",
|
||||
multiple => true
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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.
|
||||
|
||||
notice('MODULAR: plumgrid/tools.pp')
|
||||
|
||||
# PLUMgrid settings
|
||||
$metadata_hash = hiera_hash('quantum_settings', {})
|
||||
$metadata = pick($metadata_hash['metadata']['metadata_proxy_shared_secret'], 'root')
|
||||
$plumgrid_hash = hiera_hash('plumgrid', {})
|
||||
$plumgrid_pkg_repo = pick($plumgrid_hash['plumgrid_package_repo'])
|
||||
$plumgrid_vip = pick($plumgrid_hash['plumgrid_virtual_ip'])
|
||||
$plumgrid_gw_devs = pick($plumgrid_hash['gateway_devs'])
|
||||
$plumgrid_zone = pick($plumgrid_hash['plumgrid_zone'])
|
||||
$fabric_network = pick($plumgrid_hash['plumgrid_fabric_network'])
|
||||
|
||||
# PLUMgrid Zone settings
|
||||
$network_metadata = hiera_hash('network_metadata')
|
||||
$controller_nodes = get_nodes_hash_by_roles($network_metadata, ['primary-controller', 'controller'])
|
||||
$controller_address_map = get_node_to_ipaddr_map_by_network_role($controller_nodes, 'mgmt/vip')
|
||||
$controller_ipaddresses = join(hiera_array('controller_ipaddresses', values($controller_address_map)), ' ')
|
||||
|
||||
$compute_nodes = get_nodes_hash_by_roles($network_metadata, ['compute'])
|
||||
$compute_address_map = get_node_to_ipaddr_map_by_network_role($compute_nodes, 'mgmt/vip')
|
||||
$compute_ipaddresses = join(hiera_array('compute_ipaddresses', values($compute_address_map)), ' ')
|
||||
|
||||
$gateway_nodes = get_nodes_hash_by_roles($network_metadata, ['PLUMgrid-Gateway'])
|
||||
$gateway_address_map = get_node_to_ipaddr_map_by_network_role($gateway_nodes, 'mgmt/vip')
|
||||
$gateway_ipaddresses = join(hiera_array('gateway_ipaddresses', values($gateway_address_map)), ' ')
|
||||
|
||||
file { '/etc/plumgrid':
|
||||
ensure => directory,
|
||||
mode => 0755,
|
||||
}
|
||||
|
||||
file { '/etc/plumgrid/plumgrid.conf':
|
||||
ensure => file,
|
||||
mode => 0755,
|
||||
content => "zone_name=\"$plumgrid_zone\"\npg_director_ips=\"$controller_ipaddresses\"\npg_virt_ip=\"$plumgrid_vip\"\nplumgrid_repo_url=\"$plumgrid_pkg_repo\"\ncontrollers=\"$controller_ipaddresses\"\ncomputes=\"$compute_ipaddresses\"\nfabric_net=\"$fabric_network\"\nadd_gateway=\"yes\"\ngateway_devs=\"$plumgrid_gw_devs\"\ngateway_ips=\"$gateway_ipaddresses\""
|
||||
}
|
@ -1,92 +0,0 @@
|
||||
# nova-rootwrap command filters for network nodes
|
||||
# This file should be owned by (and only-writeable by) the root user
|
||||
|
||||
[Filters]
|
||||
# nova/virt/libvirt/vif.py: 'ip', 'tuntap', 'add', dev, 'mode', 'tap'
|
||||
# nova/virt/libvirt/vif.py: 'ip', 'link', 'set', dev, 'up'
|
||||
# nova/virt/libvirt/vif.py: 'ip', 'link', 'delete', dev
|
||||
# nova/network/linux_net.py: 'ip', 'addr', 'add', str(floating_ip)+'/32'i..
|
||||
# nova/network/linux_net.py: 'ip', 'addr', 'del', str(floating_ip)+'/32'..
|
||||
# nova/network/linux_net.py: 'ip', 'addr', 'add', '169.254.169.254/32',..
|
||||
# nova/network/linux_net.py: 'ip', 'addr', 'show', 'dev', dev, 'scope',..
|
||||
# nova/network/linux_net.py: 'ip', 'addr', 'del/add', ip_params, dev)
|
||||
# nova/network/linux_net.py: 'ip', 'addr', 'del', params, fields[-1]
|
||||
# nova/network/linux_net.py: 'ip', 'addr', 'add', params, bridge
|
||||
# nova/network/linux_net.py: 'ip', '-f', 'inet6', 'addr', 'change', ..
|
||||
# nova/network/linux_net.py: 'ip', 'link', 'set', 'dev', dev, 'promisc',..
|
||||
# nova/network/linux_net.py: 'ip', 'link', 'add', 'link', bridge_if ...
|
||||
# nova/network/linux_net.py: 'ip', 'link', 'set', interface, address,..
|
||||
# nova/network/linux_net.py: 'ip', 'link', 'set', interface, 'up'
|
||||
# nova/network/linux_net.py: 'ip', 'link', 'set', bridge, 'up'
|
||||
# nova/network/linux_net.py: 'ip', 'addr', 'show', 'dev', interface, ..
|
||||
# nova/network/linux_net.py: 'ip', 'link', 'set', dev, address, ..
|
||||
# nova/network/linux_net.py: 'ip', 'link', 'set', dev, 'up'
|
||||
# nova/network/linux_net.py: 'ip', 'route', 'add', ..
|
||||
# nova/network/linux_net.py: 'ip', 'route', 'del', .
|
||||
# nova/network/linux_net.py: 'ip', 'route', 'show', 'dev', dev
|
||||
ip: CommandFilter, ip, root
|
||||
|
||||
# nova/virt/libvirt/vif.py: 'ovs-vsctl', ...
|
||||
# nova/virt/libvirt/vif.py: 'ovs-vsctl', 'del-port', ...
|
||||
# nova/network/linux_net.py: 'ovs-vsctl', ....
|
||||
ovs-vsctl: CommandFilter, ovs-vsctl, root
|
||||
|
||||
# nova/network/linux_net.py: 'ovs-ofctl', ....
|
||||
ovs-ofctl: CommandFilter, ovs-ofctl, root
|
||||
|
||||
# nova/virt/libvirt/vif.py: 'ivs-ctl', ...
|
||||
# nova/virt/libvirt/vif.py: 'ivs-ctl', 'del-port', ...
|
||||
# nova/network/linux_net.py: 'ivs-ctl', ....
|
||||
ivs-ctl: CommandFilter, ivs-ctl, root
|
||||
|
||||
# nova/virt/libvirt/vif.py: 'ifc_ctl', ...
|
||||
ifc_ctl: CommandFilter, /opt/pg/bin/ifc_ctl, root
|
||||
ifc_ctl_pp: CommandFilter, /opt/pg/bin/ifc_ctl_pp, root
|
||||
|
||||
# nova/virt/libvirt/vif.py: 'mm-ctl', ...
|
||||
mm-ctl: CommandFilter, mm-ctl, root
|
||||
|
||||
# nova/network/linux_net.py: 'ebtables', '-D' ...
|
||||
# nova/network/linux_net.py: 'ebtables', '-I' ...
|
||||
ebtables: CommandFilter, ebtables, root
|
||||
ebtables_usr: CommandFilter, ebtables, root
|
||||
|
||||
# nova/network/linux_net.py: 'ip[6]tables-save' % (cmd, '-t', ...
|
||||
iptables-save: CommandFilter, iptables-save, root
|
||||
ip6tables-save: CommandFilter, ip6tables-save, root
|
||||
|
||||
# nova/network/linux_net.py: 'ip[6]tables-restore' % (cmd,)
|
||||
iptables-restore: CommandFilter, iptables-restore, root
|
||||
ip6tables-restore: CommandFilter, ip6tables-restore, root
|
||||
|
||||
# nova/network/linux_net.py: 'arping', '-U', floating_ip, '-A', '-I', ...
|
||||
# nova/network/linux_net.py: 'arping', '-U', network_ref['dhcp_server'],..
|
||||
arping: CommandFilter, arping, root
|
||||
|
||||
# nova/network/linux_net.py: 'dhcp_release', dev, address, mac_address
|
||||
dhcp_release: CommandFilter, dhcp_release, root
|
||||
|
||||
# nova/network/linux_net.py: 'kill', '-9', pid
|
||||
# nova/network/linux_net.py: 'kill', '-HUP', pid
|
||||
kill_dnsmasq: KillFilter, root, /usr/sbin/dnsmasq, -9, -HUP
|
||||
|
||||
# nova/network/linux_net.py: 'kill', pid
|
||||
kill_radvd: KillFilter, root, /usr/sbin/radvd
|
||||
|
||||
# nova/network/linux_net.py: dnsmasq call
|
||||
dnsmasq: EnvFilter, env, root, CONFIG_FILE=, NETWORK_ID=, dnsmasq
|
||||
|
||||
# nova/network/linux_net.py: 'radvd', '-C', '%s' % _ra_file(dev, 'conf'..
|
||||
radvd: CommandFilter, radvd, root
|
||||
|
||||
# nova/network/linux_net.py: 'brctl', 'addbr', bridge
|
||||
# nova/network/linux_net.py: 'brctl', 'setfd', bridge, 0
|
||||
# nova/network/linux_net.py: 'brctl', 'stp', bridge, 'off'
|
||||
# nova/network/linux_net.py: 'brctl', 'addif', bridge, interface
|
||||
brctl: CommandFilter, brctl, root
|
||||
|
||||
# nova/network/linux_net.py: 'sysctl', ....
|
||||
sysctl: CommandFilter, sysctl, root
|
||||
|
||||
# nova/network/linux_net.py: 'conntrack'
|
||||
conntrack: CommandFilter, conntrack, root
|
@ -1,26 +0,0 @@
|
||||
# Copyright 2016 PLUMgrid, Inc. All Rights Reserved.
|
||||
#
|
||||
# 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.
|
||||
|
||||
from networking_plumgrid.neutron.plugins import plugin
|
||||
|
||||
|
||||
class NeutronPluginPLUMgridV2(plugin.NeutronPluginPLUMgridV2):
|
||||
|
||||
vndr_exts = plugin.NeutronPluginPLUMgridV2.supported_extension_aliases
|
||||
supported_extension_aliases = ["binding", "external-net", "extraroute",
|
||||
"provider", "quotas", "router",
|
||||
"security-group"] + vndr_exts
|
||||
|
||||
def __init__(self):
|
||||
super(NeutronPluginPLUMgridV2, self).__init__()
|
@ -1,134 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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 plumgrid (
|
||||
$plumgrid_ip = '',
|
||||
$plumgrid_port = 8001,
|
||||
$rest_ip = '0.0.0.0',
|
||||
$rest_port = '9180',
|
||||
$mgmt_dev = 'br-mgmt',
|
||||
$fabric_dev = 'bond0',
|
||||
$fabric_mode = 'host',
|
||||
$gateway_devs = [],
|
||||
$demux_devs = [],
|
||||
$license = '',
|
||||
$lvm_keypath = '',
|
||||
$mcollective = false,
|
||||
$manage_repo = $plumgrid::params::manage_repo,
|
||||
$md_ip = '127.0.0.1',
|
||||
$repo_baseurl = '',
|
||||
$repo_component = '',
|
||||
$physical_location = '',
|
||||
$source_net = undef,
|
||||
$dest_net = undef,
|
||||
) inherits plumgrid::params {
|
||||
Exec { path => [ '/bin', '/sbin' , '/usr/bin', '/usr/sbin', '/usr/local/bin', ] }
|
||||
|
||||
$pg_package = $plumgrid::params::plumgrid_package
|
||||
$lxc_root_path = '/var/lib/libvirt/filesystems/plumgrid'
|
||||
$lxc_data_path = '/var/lib/libvirt/filesystems/plumgrid-data'
|
||||
|
||||
$ips = split($plumgrid_ip, ',')
|
||||
$firstip = $ips[0]
|
||||
$ips_awk = join($ips, '|')
|
||||
|
||||
package { "iovisor-dkms":
|
||||
ensure => "latest",
|
||||
}->
|
||||
package { $pg_package:
|
||||
ensure => "latest",
|
||||
}
|
||||
if $lvm_keypath != '' {
|
||||
ssh_authorized_key { "root@lvm":
|
||||
key => regsubst(chomp(file($lvm_keypath)), '^\S* (\S*) \S*$', '\1'),
|
||||
type => 'ssh-rsa',
|
||||
user => 'root',
|
||||
target => "${lxc_data_path}/root/.ssh/authorized_keys",
|
||||
require => Package[$pg_package],
|
||||
before => Service['plumgrid'],
|
||||
}
|
||||
}
|
||||
if $md_ip != '127.0.0.1' {
|
||||
file { "${lxc_data_path}/conf/etc/00-pg.conf":
|
||||
content => template('plumgrid/00-pg.conf.erb'),
|
||||
require => Package[$pg_package],
|
||||
notify => Service['plumgrid'],
|
||||
}
|
||||
}
|
||||
file { "${lxc_data_path}/conf/etc/hostname":
|
||||
content => $hostname,
|
||||
require => Package[$pg_package],
|
||||
before => Service['plumgrid'],
|
||||
}
|
||||
file { "${lxc_data_path}/conf/etc/hosts":
|
||||
content => template('plumgrid/hosts.erb'),
|
||||
require => Package[$pg_package],
|
||||
before => Service['plumgrid'],
|
||||
}
|
||||
exec { 'pick-fabric_dev-by-route':
|
||||
creates => "${lxc_data_path}/conf/pg/.auto_dev-fabric",
|
||||
command => "ip route get ${firstip} | awk 'NR==1 && \$2==\"dev\" {print \$3; exit 0} NR==1 && \$2==\"via\" {print \$5; exit 0} NR>1 { exit 1 }' > ${lxc_data_path}/conf/pg/.auto_dev-fabric || ip addr show | awk '/(${ips_awk})\\// {print \$NF}' > ${lxc_data_path}/conf/pg/.auto_dev-fabric",
|
||||
require => Package[$pg_package],
|
||||
}->
|
||||
exec { 'check-fabric_dev-by-route':
|
||||
command => 'echo "Please provide \"mgmt_dev\" and \"fabric_dev\" parameters for \"plumgrid\" class using foreman UI" && exit 1',
|
||||
unless => "test -s ${lxc_data_path}/conf/pg/.auto_dev-fabric",
|
||||
}
|
||||
file { "${lxc_data_path}/conf/pg/.plumgrid.conf":
|
||||
ensure => file,
|
||||
content => template('plumgrid/plumgrid.conf.erb'),
|
||||
require => Package[$pg_package],
|
||||
}~>
|
||||
exec { 'generate-plumgrid.conf':
|
||||
refreshonly => true,
|
||||
command => "sed \"s/%AUTO_DEV%/`head -n1 ${lxc_data_path}/conf/pg/.auto_dev-fabric`/g\" ${lxc_data_path}/conf/pg/.plumgrid.conf > ${lxc_data_path}/conf/pg/plumgrid.conf",
|
||||
subscribe => Exec['pick-fabric_dev-by-route'],
|
||||
notify => Service['plumgrid'],
|
||||
}
|
||||
file { "${lxc_data_path}/conf/pg/.ifcs.conf":
|
||||
content => template("${module_name}/ifcs.conf.erb"),
|
||||
require => Package[$pg_package],
|
||||
}~>
|
||||
exec { 'generate-ifcs.conf':
|
||||
refreshonly => true,
|
||||
command => "sed \"s/%AUTO_DEV%/`head -n1 ${lxc_data_path}/conf/pg/.auto_dev-fabric`/g\" ${lxc_data_path}/conf/pg/.ifcs.conf > ${lxc_data_path}/conf/pg/ifcs.conf",
|
||||
subscribe => Exec['pick-fabric_dev-by-route'],
|
||||
notify => Service['plumgrid'],
|
||||
}
|
||||
|
||||
if $source_net != undef {
|
||||
firewall { '001 plumgrid udp':
|
||||
proto => 'udp',
|
||||
action => 'accept',
|
||||
state => ['NEW'],
|
||||
destination => $dest_net,
|
||||
source => $source_net,
|
||||
before => Service['plumgrid'],
|
||||
}
|
||||
firewall { '001 plumgrid rpc':
|
||||
proto => 'tcp',
|
||||
action => 'accept',
|
||||
state => ['NEW'],
|
||||
destination => $dest_net,
|
||||
source => $source_net,
|
||||
before => Service['plumgrid'],
|
||||
}
|
||||
}
|
||||
|
||||
service { 'plumgrid':
|
||||
ensure => running,
|
||||
enable => true,
|
||||
}
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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 plumgrid::params {
|
||||
$plumgrid_package = 'plumgrid-lxc'
|
||||
case $::osfamily {
|
||||
'RedHat', 'Linux': {
|
||||
$manage_repo = false
|
||||
$libvirt_package = 'libvirt-daemon-driver-lxc'
|
||||
$libvirt_service = 'libvirtd'
|
||||
$kernel_header_package = 'kernel-devel'
|
||||
}
|
||||
'Debian': {
|
||||
$manage_repo = true
|
||||
$libvirt_package = 'libvirt-bin'
|
||||
$libvirt_service = 'libvirt-bin'
|
||||
$kernel_header_package = "linux-headers-${kernelrelease}"
|
||||
}
|
||||
}
|
||||
$fabric_dev = '%AUTO_DEV%'
|
||||
$mgmt_dev = '%AUTO_DEV%'
|
||||
}
|
@ -1,62 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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 plumgrid::repo (
|
||||
$ensure = 'present',
|
||||
$os_release = 'icehouse',
|
||||
$repo_baseurl,
|
||||
$repo_component,
|
||||
) {
|
||||
if $ensure == 'present' {
|
||||
case $::osfamily {
|
||||
'RedHat', 'Linux': {
|
||||
if $repo_baseurl and $repo_baseurl != '' {
|
||||
yumrepo { 'plumgrid':
|
||||
baseurl => "${repo_baseurl}/${repo_component}/el${operatingsystemmajrelease}/${architecture}",
|
||||
descr => "PLUMgrid Repo",
|
||||
enabled => 1,
|
||||
gpgcheck => 1,
|
||||
gpgkey => "${repo_baseurl}/GPG-KEY",
|
||||
}
|
||||
}
|
||||
}
|
||||
'Debian': {
|
||||
apt::source { 'openstack':
|
||||
location => 'http://ubuntu-cloud.archive.canonical.com/ubuntu',
|
||||
release => "${::lsbdistcodename}-updates/${os_release}",
|
||||
repos => 'main',
|
||||
key => 'ECD76E3E',
|
||||
key_server => 'keyserver.ubuntu.com',
|
||||
include_src => false,
|
||||
}
|
||||
Apt::Source['openstack'] -> Package['plumgrid-lxc']
|
||||
}
|
||||
default: {
|
||||
fail("Unsupported repository for osfamily: ${::osfamily}, OS: ${::operatingsystem}, module ${module_name}")
|
||||
}
|
||||
}
|
||||
} else {
|
||||
case $::osfamily {
|
||||
'RedHat', 'Linux': {
|
||||
if $repo_baseurl and $repo_baseurl != '' {
|
||||
yumrepo { 'plumgrid': ensure => absent, }
|
||||
}
|
||||
}
|
||||
'Debian': {
|
||||
apt::source { 'openstack': ensure => absent, }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
$template ls_json,"{%timestamp:::date-rfc3339,jsonf:@timestamp%,%source:::jsonf:@source_host%,%msg:::json%}"
|
||||
:syslogtag,isequal,"pg:" @<%= @md_ip %>:6000;ls_json
|
@ -1,10 +0,0 @@
|
||||
# File created by puppet
|
||||
127.0.0.1 localhost
|
||||
127.0.1.1 <%= @fqdn %> <%= @hostname %>
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 ip6-localhost ip6-loopback
|
||||
fe00::0 ip6-localnet
|
||||
ff00::0 ip6-mcastprefix
|
||||
ff02::1 ip6-allnodes
|
||||
ff02::2 ip6-allrouters
|
@ -1,7 +0,0 @@
|
||||
<%= @fabric_dev %> = fabric_core host
|
||||
<%- @gateway_devs.uniq.each do |entry| -%>
|
||||
<%= entry %> = access_phys
|
||||
<%- end -%>
|
||||
<%- @demux_devs.uniq.each do |entry| -%>
|
||||
<%= entry %> = trunk_ifc
|
||||
<%- end -%>
|
@ -1,13 +0,0 @@
|
||||
plumgrid_ip=<%= @plumgrid_ip %>
|
||||
plumgrid_port=<%= @plumgrid_port %>
|
||||
mgmt_dev=<%= @mgmt_dev %>
|
||||
label=<%= @hostname %>
|
||||
plumgrid_rsync_port=2222
|
||||
plumgrid_rest_addr=<%= @rest_ip %>:<%= @rest_port %>
|
||||
fabric_mode=<%= @fabric_mode %>
|
||||
plumgrid_syslog_ng_ip=<%= @plumgrid_syslog_ng_ip %>
|
||||
plumgrid_syslog_ng_port=<%= @plumgrid_syslog_ng_port %>
|
||||
plumgrid_monitor_interval=<%= @plumgrid_monitor_interval %>
|
||||
start_plumgrid_iovisor=yes
|
||||
start_plumgrid=`/opt/pg/scripts/pg_is_director.sh $plumgrid_ip`
|
||||
location=<%= @physical_location %>
|
@ -1,58 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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 sal ($plumgrid_ip = '',
|
||||
$virtual_ip = '',
|
||||
$rest_port = '9180',
|
||||
$mgmt_dev = '%AUTO_DEV%',
|
||||
$source_net = undef,
|
||||
$md_ip = '127.0.0.1',
|
||||
) {
|
||||
$lxc_root_path = '/var/lib/libvirt/filesystems/plumgrid'
|
||||
$lxc_data_path = '/var/lib/libvirt/filesystems/plumgrid-data'
|
||||
|
||||
firewall { '001 allow PG Console access':
|
||||
destination => $virtual_ip,
|
||||
dport => 443,
|
||||
proto => tcp,
|
||||
action => accept,
|
||||
before => [ Class['sal::nginx'], Class['sal::keepalived'] ],
|
||||
}
|
||||
|
||||
if $source_net != undef {
|
||||
firewall { '040 allow vrrp':
|
||||
proto => 'vrrp',
|
||||
action => 'accept',
|
||||
before => [ Class['sal::nginx'], Class['sal::keepalived'] ],
|
||||
}
|
||||
firewall { '040 keepalived':
|
||||
proto => 'all',
|
||||
action => 'accept',
|
||||
destination => '224.0.0.18/32',
|
||||
source => $source_net,
|
||||
before => [ Class['sal::nginx'], Class['sal::keepalived'] ],
|
||||
}
|
||||
}
|
||||
|
||||
class { 'sal::nginx':
|
||||
plumgrid_ip => $plumgrid_ip,
|
||||
md_ip => $md_ip,
|
||||
virtual_ip => $virtual_ip,
|
||||
}
|
||||
class { 'sal::keepalived':
|
||||
virtual_ip => $virtual_ip,
|
||||
mgmt_dev => $mgmt_dev,
|
||||
}
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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 sal::keepalived ($virtual_ip,
|
||||
$mgmt_dev,
|
||||
$keepalived_password = 'keepaliv',
|
||||
) {
|
||||
Exec { path => [ '/bin', '/sbin' , '/usr/bin', '/usr/sbin', '/usr/local/bin', ] }
|
||||
|
||||
$keepalived_priority = 100
|
||||
$keepalived_router_id = regsubst($virtual_ip, '^\d+\.\d+\.\d+\.(\d+)$', '\1')
|
||||
|
||||
if $keepalived_router_id == '' {
|
||||
fail('invalid virtual_ip, use x.x.x.x notation')
|
||||
}
|
||||
|
||||
exec { 'pick-vip_dev-by-route':
|
||||
creates => "${::sal::lxc_data_path}/conf/pg/.auto_dev-vip",
|
||||
command => "ip route get ${virtual_ip} | awk 'NR==1 && \$2==\"dev\" {print \$3; exit 0} NR==1 && \$2==\"via\" {print \$5; exit 0} NR>1 { exit 1 }' > ${::sal::lxc_data_path}/conf/pg/.auto_dev-vip || ip addr show | awk '/(${virtual_ip})\\// {print \$NF}' > ${::sal::lxc_data_path}/conf/pg/.auto_dev-vip",
|
||||
require => Package['plumgrid-lxc'],
|
||||
}->
|
||||
exec { 'check-vip_dev-by-route':
|
||||
command => 'echo "Please provide \"mgmt_dev\" parameter for \"sal\" class using foreman UI" && exit 1',
|
||||
unless => "test -s ${::sal::lxc_data_path}/conf/pg/.auto_dev-vip",
|
||||
}
|
||||
|
||||
file { "${::sal::lxc_data_path}/conf/etc/.keepalived.conf":
|
||||
ensure => file,
|
||||
content => template('sal/keepalived.conf.erb'),
|
||||
require => Package['plumgrid-lxc'],
|
||||
}~>
|
||||
exec { 'generate-keepalived.conf':
|
||||
refreshonly => true,
|
||||
command => "sed \"s/%AUTO_DEV%/`head -n1 ${::sal::lxc_data_path}/conf/pg/.auto_dev-vip`/g\" ${::sal::lxc_data_path}/conf/etc/.keepalived.conf > ${::sal::lxc_data_path}/conf/etc/keepalived.conf",
|
||||
subscribe => Exec['pick-vip_dev-by-route'],
|
||||
notify => Service['plumgrid'],
|
||||
}
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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 sal::nginx ($plumgrid_ip = '',
|
||||
$md_ip = '127.0.0.1',
|
||||
$virtual_ip = '',
|
||||
$use_default_cert = true,
|
||||
) {
|
||||
if ($use_default_cert) {
|
||||
$nginx_cert = "${::sal::lxc_data_path}/ssl/nginx/default.crt"
|
||||
$nginx_key = "${::sal::lxc_data_path}/ssl/nginx/default.key"
|
||||
} else {
|
||||
# update with your parameters to generate a self-signed certificate
|
||||
$location = "Sunnyvale"
|
||||
$country = "US"
|
||||
$state = "CA"
|
||||
$organization = "ACME"
|
||||
$unit = "IT"
|
||||
$commonname = "www.example.com"
|
||||
$keyname = "www_example_com"
|
||||
|
||||
$nginx_cert = "${::sal::lxc_data_path}/ssl/nginx/${keyname}.crt"
|
||||
$nginx_key = "${::sal::lxc_data_path}/ssl/nginx/${keyname}.key"
|
||||
|
||||
$subject = "/C=${country}/ST=${state}/L=${location}/O=${organization}/OU=${unit}/CN=${commonname}"
|
||||
$createcertificate = "/usr/bin/openssl req -new -newkey rsa:2048 -x509 -days 3650 -nodes -out ${nginx_cert} -keyout ${nginx_key} -subj \"${subject}\""
|
||||
|
||||
exec { "openssl-csr":
|
||||
command => $createcertificate,
|
||||
creates => [$nginx_cert, $nginx_key],
|
||||
require => Package['plumgrid-lxc'],
|
||||
}
|
||||
}
|
||||
|
||||
$nginx_virtual_ip = regsubst($virtual_ip, '^(\d+\.\d+\.\d+\.\d+)$', '\1')
|
||||
if $nginx_virtual_ip == '' {
|
||||
fail('invalid virtual_ip, use x.x.x.x notation')
|
||||
}
|
||||
$nginx_real_ips = split($plumgrid_ip, ',')
|
||||
file { "${::sal::lxc_data_path}/conf/pg/nginx.conf":
|
||||
ensure => file,
|
||||
content => template('sal/default.conf.erb'),
|
||||
require => Package['plumgrid-lxc'],
|
||||
}
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
upstream sal {
|
||||
server unix:/opt/pg/tmp/sal-web.socket;
|
||||
keepalive 16;
|
||||
}
|
||||
|
||||
upstream websocket {
|
||||
server unix:/opt/pg/tmp/sal-ws.socket;
|
||||
keepalive 16;
|
||||
}
|
||||
|
||||
upstream pgCli {
|
||||
server <%= @nginx_virtual_ip %>:3000;
|
||||
}
|
||||
|
||||
upstream pgMW {
|
||||
server <%= @md_ip %>:4000;
|
||||
}
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
lua_socket_log_errors off;
|
||||
#lua_code_cache off;
|
||||
lua_shared_dict rest_servers 16K;
|
||||
lua_shared_dict apache_servers 16K;
|
||||
lua_shared_dict tc_servers 16K;
|
||||
init_by_lua 'lb = require "lb"
|
||||
init_servers = {
|
||||
<%- @nginx_real_ips.each do |real| -%>
|
||||
["<%= real %>"] = true,
|
||||
<%- end -%>
|
||||
}';
|
||||
|
||||
# Redirect http to https
|
||||
server {
|
||||
listen <%= @nginx_virtual_ip %>:9080;
|
||||
server_name $hostname;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen <%= @nginx_virtual_ip %>:443 ssl;
|
||||
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers AES128-SHA:AES256-SHA:RC4-SHA:DES-CBC3-SHA:RC4-MD5;
|
||||
ssl_certificate /opt/pg/sal/nginx/ssl/default.crt;
|
||||
ssl_certificate_key /opt/pg/sal/nginx/ssl/default.key;
|
||||
#ssl_session_cache shared:SSL:10m;
|
||||
#ssl_session_timeout 10m;
|
||||
|
||||
server_name $hostname;
|
||||
root /opt/pg/web;
|
||||
index login.html;
|
||||
|
||||
location /cli/ {
|
||||
proxy_pass http://pgCli/;
|
||||
proxy_redirect off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
location /mwv0 {
|
||||
proxy_pass http://pgMW;
|
||||
proxy_redirect off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
|
||||
location ~ /cloudApex {
|
||||
index index.html;
|
||||
}
|
||||
|
||||
location ~* /cloudapex {
|
||||
rewrite (?i)/cloudapex(.*)$ /cloudApex$1 last;
|
||||
}
|
||||
|
||||
location /vtap/ {
|
||||
alias /opt/pg/vtap;
|
||||
}
|
||||
|
||||
# REST API calls start with /v[0-9]/, a keyword, or a capital letter.
|
||||
# Note: Regular expressions have higher precedence than prefix matches
|
||||
# so don't combine with /0/...
|
||||
location ~ ^/(v[0-9]/|pg/|docs|api-docs|[A-Z]) {
|
||||
set $active_upstream "http://sal";
|
||||
access_by_lua 'if ngx.req.get_uri_args()["server"]~=nil then
|
||||
if ngx.req.get_uri_args()["server"]~=ngx.var.host then
|
||||
ngx.var.active_upstream = "https://"..ngx.req.get_uri_args()["server"]..ngx.var.request_uri
|
||||
end
|
||||
end';
|
||||
|
||||
proxy_pass $active_upstream;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /0/ {
|
||||
set $active_upstream "http://sal";
|
||||
access_by_lua 'if ngx.req.get_uri_args()["server"]~=nil then
|
||||
if ngx.req.get_uri_args()["server"]~=ngx.var.host then
|
||||
ngx.var.active_upstream = "https://"..ngx.req.get_uri_args()["server"]..ngx.var.request_uri
|
||||
end
|
||||
end';
|
||||
|
||||
proxy_pass $active_upstream;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /0/websocket {
|
||||
set $active_upstream "http://websocket";
|
||||
access_by_lua 'if ngx.req.get_uri_args()["server"]~=nil then
|
||||
if ngx.req.get_uri_args()["server"]~=ngx.var.host then
|
||||
ngx.var.active_upstream = "https://"..ngx.req.get_uri_args()["server"]..ngx.var.request_uri
|
||||
end
|
||||
end';
|
||||
proxy_pass $active_upstream;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen unix:/opt/pg/tmp/sal-rest.socket;
|
||||
|
||||
# debug socket
|
||||
listen 127.0.0.1:9080;
|
||||
|
||||
location / {
|
||||
set $active_upstream "";
|
||||
access_by_lua 'ngx.var.active_upstream = find_next(ngx.shared.rest_servers, <%= @rest_port %>)';
|
||||
proxy_pass http://$active_upstream:<%= @rest_port %>;
|
||||
}
|
||||
|
||||
location /_debug/rest_servers {
|
||||
access_by_lua 'find_next(ngx.shared.rest_servers, <%= @rest_port %>)';
|
||||
content_by_lua '
|
||||
for _, ip in pairs(ngx.shared.rest_servers:get_keys()) do
|
||||
ngx.say(ip.."="..ngx.shared.rest_servers:get(ip))
|
||||
end
|
||||
';
|
||||
}
|
||||
|
||||
location /_debug/tc_servers {
|
||||
access_by_lua 'find_next(ngx.shared.tc_servers, 12349)';
|
||||
content_by_lua '
|
||||
for _, ip in pairs(ngx.shared.tc_servers:get_keys()) do
|
||||
ngx.say(ip.."="..ngx.shared.tc_servers:get(ip))
|
||||
end
|
||||
';
|
||||
}
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
global_defs {
|
||||
router_id <%= @hostname %>
|
||||
}
|
||||
|
||||
vrrp_script chk_nginx {
|
||||
script "killall -0 nginx"
|
||||
interval 2
|
||||
}
|
||||
|
||||
vrrp_instance nos {
|
||||
virtual_router_id <%= @keepalived_router_id %>
|
||||
|
||||
# for electing MASTER, highest priority wins.
|
||||
priority <%= @keepalived_priority %>
|
||||
state BACKUP
|
||||
nopreempt
|
||||
|
||||
interface <%= @mgmt_dev %>
|
||||
|
||||
virtual_ipaddress {
|
||||
<%= @virtual_ip %> dev <%= @mgmt_dev %> label <%= @mgmt_dev %>:1
|
||||
}
|
||||
track_script {
|
||||
chk_nginx
|
||||
}
|
||||
authentication {
|
||||
auth_type PASS
|
||||
auth_pass <%= @keepalived_password %>
|
||||
}
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
#
|
||||
# Copyright (c) 2016, PLUMgrid Inc, http://plumgrid.com
|
||||
#
|
||||
# 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.
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p /var/log/plumgrid
|
||||
exec > /var/log/plumgrid/solution_api.log
|
||||
exec 2>&1
|
||||
|
||||
set -x
|
||||
|
||||
. /tmp/plumgrid_config
|
||||
|
||||
# Get required additional parameters
|
||||
kernel_version=$(uname -r)
|
||||
hypervisor_type=$(echo $(lsb_release -i) | cut -d' ' -f3)
|
||||
hypervisor_version=$(echo $(lsb_release -r) | cut -d' ' -f2)
|
||||
plumgrid_version=$(dpkg -l | awk '$2=="plumgrid-lxc" { print $3 }' | cut -d'-' -f1 )
|
||||
|
||||
# Get version of cloudApex
|
||||
if [ -d /var/lib/libvirt/filesystems/plumgrid/opt/pg/web/cloudApex/modules/appCloudApex/ ]; then
|
||||
cloudapex_version=$(cat /var/lib/libvirt/filesystems/plumgrid/opt/pg/web/cloudApex/modules/appCloudApex/appCloudApex.js | grep -i appVersion | awk '{print $2; exit}' | cut -d ',' -f 1 | cut -d "'" -f 2)
|
||||
else
|
||||
cloudapex_version="0.0"
|
||||
fi
|
||||
|
||||
# Push all IPs info to Solution API server
|
||||
curl -H 'Content-Type: application/json' -X PUT -d '{"director_ips":"'$director_ip'","edge_ips":"'$edge_ip'","gateway_ips":"'$gateway_ip'","virtual_ip":"'$vip'","opsvm_ip":"'$opsvm_ip'"}' http://$pg_repo:8099/v1/zones/$zone_name/ALLIPS
|
||||
|
||||
# Push zone info to Solution API server
|
||||
curl -H "Content-Type: application/json" -X PUT -d '{"solution_name":"Mirantis","solution_version":"'$fuel_version'","pg_ons_version":"'$plumgrid_version'","hypervisor":"'$hypervisor_type'","hypervisor_version":"'$hypervisor_version'", "kernel_version":"'$kernel_version'","pg_cloudapex_version":"'$cloudapex_version'"}' http://$pg_repo:8099/v1/zones/$zone_name/zoneInfo
|
@ -1,160 +0,0 @@
|
||||
- id: PLUMgrid-Gateway
|
||||
version: 2.0.0
|
||||
type: group
|
||||
role: [PLUMgrid-Gateway]
|
||||
tasks: [hiera, globals, logging, tools, netconfig]
|
||||
required_for: [deploy_end]
|
||||
requires: [deploy_start]
|
||||
parameters:
|
||||
strategy:
|
||||
type: parallel
|
||||
|
||||
# Skip default neutron plugins
|
||||
- id: primary-openstack-network-plugins-l2
|
||||
version: 2.0.0
|
||||
type: skipped
|
||||
- id: openstack-network-plugins-l2
|
||||
version: 2.0.0
|
||||
type: skipped
|
||||
- id: openstack-network-routers-ha
|
||||
version: 2.0.0
|
||||
type: skipped
|
||||
# Skip Neutron agents
|
||||
- id: primary-openstack-network-agents-l3
|
||||
version: 2.0.0
|
||||
type: skipped
|
||||
- id: openstack-network-agents-l3
|
||||
version: 2.0.0
|
||||
type: skipped
|
||||
- id: primary-openstack-network-agents-dhcp
|
||||
version: 2.0.0
|
||||
type: skipped
|
||||
- id: openstack-network-agents-dhcp
|
||||
version: 2.0.0
|
||||
type: skipped
|
||||
- id: primary-openstack-network-agents-metadata
|
||||
version: 2.0.0
|
||||
type: skipped
|
||||
- id: openstack-network-agents-metadata
|
||||
version: 2.0.0
|
||||
type: skipped
|
||||
- id: openstack-network-agents-sriov
|
||||
version: 2.0.0
|
||||
type: skipped
|
||||
# Skip default fuel networks and routers
|
||||
- id: openstack-network-networks
|
||||
version: 2.0.0
|
||||
type: skipped
|
||||
- id: openstack-network-routers
|
||||
version: 2.0.0
|
||||
type: skipped
|
||||
|
||||
- id: disable-openvswitch
|
||||
version: 2.0.0
|
||||
groups: ['controller', 'compute', 'PLUMgrid-Gateway', 'primary-controller']
|
||||
required_for: [netconfig, deploy_end]
|
||||
requires: [deploy_start, globals]
|
||||
type: puppet
|
||||
reexecute_on:
|
||||
- deploy_changes
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/disable_openvswitch.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 120
|
||||
|
||||
- id: pgtools-support
|
||||
version: 2.0.0
|
||||
groups: ['controller', 'primary-controller']
|
||||
required_for: [post_deployment_end]
|
||||
requires: [post_deployment_start]
|
||||
type: puppet
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/tools.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3000
|
||||
|
||||
- id: check-pgzone
|
||||
version: 2.0.0
|
||||
groups: ['controller', 'compute', 'PLUMgrid-Gateway', 'primary-controller']
|
||||
required_for: [post_deployment_end, pg_common]
|
||||
requires: [post_deployment_start]
|
||||
type: puppet
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/pre_deployment.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 720
|
||||
|
||||
- id: pg_common
|
||||
version: 2.0.0
|
||||
groups: ['controller', 'compute', 'PLUMgrid-Gateway', 'primary-controller']
|
||||
required_for: [post_deployment_end, setup-director]
|
||||
requires: [post_deployment_start, check-pgzone, configure_default_route]
|
||||
type: puppet
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/pg_common.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3000
|
||||
|
||||
- id: setup-director
|
||||
version: 2.0.0
|
||||
groups: ['controller', 'primary-controller']
|
||||
required_for: [post_deployment_end, director-fixes]
|
||||
requires: [post_deployment_start, pg_common]
|
||||
type: puppet
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/director.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3000
|
||||
|
||||
- id: director-fixes
|
||||
version: 2.0.0
|
||||
groups: ['controller', 'primary-controller']
|
||||
required_for: [post_deployment_end, post_pg_license]
|
||||
requires: [post_deployment_start, setup-director]
|
||||
type: puppet
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/director_fixes.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3000
|
||||
|
||||
- id: solution-api
|
||||
version: 2.0.0
|
||||
role: ['primary-controller']
|
||||
required_for: [post_deployment_end, post_pg_license]
|
||||
requires: [post_deployment_start, director-fixes]
|
||||
type: shell
|
||||
parameters:
|
||||
cmd: bash solution_api.sh
|
||||
timeout: 3000
|
||||
|
||||
- id: post_pg_license
|
||||
version: 2.0.0
|
||||
role: ['primary-controller']
|
||||
required_for: [post_deployment_end, setup-edge]
|
||||
requires: [post_deployment_start, solution-api]
|
||||
type: shell
|
||||
parameters:
|
||||
cmd: bash post_pg_license.sh
|
||||
timeout: 3000
|
||||
|
||||
- id: setup-edge
|
||||
version: 2.0.0
|
||||
groups: ['compute']
|
||||
required_for: [post_deployment_end]
|
||||
requires: [post_deployment_start, solution-api, pg_common]
|
||||
type: puppet
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/edge.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3000
|
||||
|
||||
- id: setup-gateway
|
||||
version: 2.0.0
|
||||
groups: ['PLUMgrid-Gateway']
|
||||
required_for: [post_deployment_end]
|
||||
requires: [post_deployment_start, solution-api, pg_common]
|
||||
type: puppet
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/gateway.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3000
|
@ -1,216 +0,0 @@
|
||||
# Makefile for Sphinx documentation
|
||||
#
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS =
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
|
||||
# User-friendly check for sphinx-build
|
||||
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
|
||||
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
|
||||
endif
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
|
||||
# the i18n builder cannot share the environment and doctrees with the others
|
||||
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
|
||||
|
||||
.PHONY: help
|
||||
help:
|
||||
@echo "Please use \`make <target>' where <target> is one of"
|
||||
@echo " html to make standalone HTML files"
|
||||
@echo " dirhtml to make HTML files named index.html in directories"
|
||||
@echo " singlehtml to make a single large HTML file"
|
||||
@echo " pickle to make pickle files"
|
||||
@echo " json to make JSON files"
|
||||
@echo " htmlhelp to make HTML files and a HTML help project"
|
||||
@echo " qthelp to make HTML files and a qthelp project"
|
||||
@echo " applehelp to make an Apple Help Book"
|
||||
@echo " devhelp to make HTML files and a Devhelp project"
|
||||
@echo " epub to make an epub"
|
||||
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
||||
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
||||
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
|
||||
@echo " text to make text files"
|
||||
@echo " man to make manual pages"
|
||||
@echo " texinfo to make Texinfo files"
|
||||
@echo " info to make Texinfo files and run them through makeinfo"
|
||||
@echo " gettext to make PO message catalogs"
|
||||
@echo " changes to make an overview of all changed/added/deprecated items"
|
||||
@echo " xml to make Docutils-native XML files"
|
||||
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
|
||||
@echo " linkcheck to check all external links for integrity"
|
||||
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
||||
@echo " coverage to run coverage check of the documentation (if enabled)"
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(BUILDDIR)/*
|
||||
|
||||
.PHONY: html
|
||||
html:
|
||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
||||
|
||||
.PHONY: dirhtml
|
||||
dirhtml:
|
||||
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
||||
|
||||
.PHONY: singlehtml
|
||||
singlehtml:
|
||||
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
||||
|
||||
.PHONY: pickle
|
||||
pickle:
|
||||
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
||||
@echo
|
||||
@echo "Build finished; now you can process the pickle files."
|
||||
|
||||
.PHONY: json
|
||||
json:
|
||||
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
||||
@echo
|
||||
@echo "Build finished; now you can process the JSON files."
|
||||
|
||||
.PHONY: htmlhelp
|
||||
htmlhelp:
|
||||
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
||||
".hhp project file in $(BUILDDIR)/htmlhelp."
|
||||
|
||||
.PHONY: qthelp
|
||||
qthelp:
|
||||
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
||||
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
||||
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/plumgrid_plugin_guide.qhcp"
|
||||
@echo "To view the help file:"
|
||||
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/plumgrid_plugin_guide.qhc"
|
||||
|
||||
.PHONY: applehelp
|
||||
applehelp:
|
||||
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
|
||||
@echo
|
||||
@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
|
||||
@echo "N.B. You won't be able to view it unless you put it in" \
|
||||
"~/Library/Documentation/Help or install it in your application" \
|
||||
"bundle."
|
||||
|
||||
.PHONY: devhelp
|
||||
devhelp:
|
||||
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
||||
@echo
|
||||
@echo "Build finished."
|
||||
@echo "To view the help file:"
|
||||
@echo "# mkdir -p $$HOME/.local/share/devhelp/plumgrid_plugin_guide"
|
||||
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/plumgrid_plugin_guide"
|
||||
@echo "# devhelp"
|
||||
|
||||
.PHONY: epub
|
||||
epub:
|
||||
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
||||
@echo
|
||||
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
||||
|
||||
.PHONY: latex
|
||||
latex:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo
|
||||
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
||||
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
||||
"(use \`make latexpdf' here to do that automatically)."
|
||||
|
||||
.PHONY: latexpdf
|
||||
latexpdf:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo "Running LaTeX files through pdflatex..."
|
||||
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||
|
||||
.PHONY: latexpdfja
|
||||
latexpdfja:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo "Running LaTeX files through platex and dvipdfmx..."
|
||||
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
|
||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||
|
||||
.PHONY: text
|
||||
text:
|
||||
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
||||
@echo
|
||||
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
||||
|
||||
.PHONY: man
|
||||
man:
|
||||
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
||||
@echo
|
||||
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
||||
|
||||
.PHONY: texinfo
|
||||
texinfo:
|
||||
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
||||
@echo
|
||||
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
|
||||
@echo "Run \`make' in that directory to run these through makeinfo" \
|
||||
"(use \`make info' here to do that automatically)."
|
||||
|
||||
.PHONY: info
|
||||
info:
|
||||
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
||||
@echo "Running Texinfo files through makeinfo..."
|
||||
make -C $(BUILDDIR)/texinfo info
|
||||
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
||||
|
||||
.PHONY: gettext
|
||||
gettext:
|
||||
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
||||
@echo
|
||||
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
||||
|
||||
.PHONY: changes
|
||||
changes:
|
||||
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
||||
@echo
|
||||
@echo "The overview file is in $(BUILDDIR)/changes."
|
||||
|
||||
.PHONY: linkcheck
|
||||
linkcheck:
|
||||
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
||||
@echo
|
||||
@echo "Link check complete; look for any errors in the above output " \
|
||||
"or in $(BUILDDIR)/linkcheck/output.txt."
|
||||
|
||||
.PHONY: doctest
|
||||
doctest:
|
||||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
||||
@echo "Testing of doctests in the sources finished, look at the " \
|
||||
"results in $(BUILDDIR)/doctest/output.txt."
|
||||
|
||||
.PHONY: coverage
|
||||
coverage:
|
||||
$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
|
||||
@echo "Testing of coverage in the sources finished, look at the " \
|
||||
"results in $(BUILDDIR)/coverage/python.txt."
|
||||
|
||||
.PHONY: xml
|
||||
xml:
|
||||
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
|
||||
@echo
|
||||
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
|
||||
|
||||
.PHONY: pseudoxml
|
||||
pseudoxml:
|
||||
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
|
||||
@echo
|
||||
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
|
@ -1,299 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# plumgrid_plugin_guide documentation build configuration file, created by
|
||||
# sphinx-quickstart on Fri Mar 18 05:25:02 2016.
|
||||
#
|
||||
# This file is execfile()d with the current directory set to its
|
||||
# containing dir.
|
||||
#
|
||||
# Note that not all possible configuration values are present in this
|
||||
# autogenerated file.
|
||||
#
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
#needs_sphinx = '1.0'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = [
|
||||
'sphinx.ext.autodoc',
|
||||
'sphinx.ext.intersphinx',
|
||||
'sphinx.ext.ifconfig',
|
||||
'sphinx.ext.viewcode',
|
||||
]
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# The suffix(es) of source filenames.
|
||||
# You can specify multiple suffix as a list of string:
|
||||
# source_suffix = ['.rst', '.md']
|
||||
source_suffix = '.rst'
|
||||
|
||||
# The encoding of source files.
|
||||
#source_encoding = 'utf-8-sig'
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'plumgrid_plugin_guide'
|
||||
copyright = u'2016, Javeria Khan'
|
||||
author = u'Javeria Khan'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = u'3.0'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = u'3.0-0.0.1-1'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#
|
||||
# This is also used if you do content translation via gettext catalogs.
|
||||
# Usually you set "language" from the command line for these cases.
|
||||
language = None
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
#today = ''
|
||||
# Else, today_fmt is used as the format for a strftime call.
|
||||
#today_fmt = '%B %d, %Y'
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
exclude_patterns = []
|
||||
|
||||
# The reST default role (used for this markup: `text`) to use for all
|
||||
# documents.
|
||||
#default_role = None
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
#add_function_parentheses = True
|
||||
|
||||
# If true, the current module name will be prepended to all description
|
||||
# unit titles (such as .. function::).
|
||||
#add_module_names = True
|
||||
|
||||
# If true, sectionauthor and moduleauthor directives will be shown in the
|
||||
# output. They are ignored by default.
|
||||
#show_authors = False
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
|
||||
# A list of ignored prefixes for module index sorting.
|
||||
#modindex_common_prefix = []
|
||||
|
||||
# If true, keep warnings as "system message" paragraphs in the built documents.
|
||||
#keep_warnings = False
|
||||
|
||||
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
||||
todo_include_todos = False
|
||||
|
||||
|
||||
# -- Options for HTML output ----------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
html_theme = 'alabaster'
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
#html_theme_options = {}
|
||||
|
||||
# Add any paths that contain custom themes here, relative to this directory.
|
||||
#html_theme_path = []
|
||||
|
||||
# The name for this set of Sphinx documents. If None, it defaults to
|
||||
# "<project> v<release> documentation".
|
||||
#html_title = None
|
||||
|
||||
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||
#html_short_title = None
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top
|
||||
# of the sidebar.
|
||||
#html_logo = None
|
||||
|
||||
# The name of an image file (relative to this directory) to use as a favicon of
|
||||
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||
# pixels large.
|
||||
#html_favicon = None
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
|
||||
# Add any extra paths that contain custom files (such as robots.txt or
|
||||
# .htaccess) here, relative to this directory. These files are copied
|
||||
# directly to the root of the documentation.
|
||||
#html_extra_path = []
|
||||
|
||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||
# using the given strftime format.
|
||||
#html_last_updated_fmt = '%b %d, %Y'
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
#html_use_smartypants = True
|
||||
|
||||
# Custom sidebar templates, maps document names to template names.
|
||||
#html_sidebars = {}
|
||||
|
||||
# Additional templates that should be rendered to pages, maps page names to
|
||||
# template names.
|
||||
#html_additional_pages = {}
|
||||
|
||||
# If false, no module index is generated.
|
||||
#html_domain_indices = True
|
||||
|
||||
# If false, no index is generated.
|
||||
#html_use_index = True
|
||||
|
||||
# If true, the index is split into individual pages for each letter.
|
||||
#html_split_index = False
|
||||
|
||||
# If true, links to the reST sources are added to the pages.
|
||||
#html_show_sourcelink = True
|
||||
|
||||
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
||||
#html_show_sphinx = True
|
||||
|
||||
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
||||
#html_show_copyright = True
|
||||
|
||||
# If true, an OpenSearch description file will be output, and all pages will
|
||||
# contain a <link> tag referring to it. The value of this option must be the
|
||||
# base URL from which the finished HTML is served.
|
||||
#html_use_opensearch = ''
|
||||
|
||||
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
||||
#html_file_suffix = None
|
||||
|
||||
# Language to be used for generating the HTML full-text search index.
|
||||
# Sphinx supports the following languages:
|
||||
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
|
||||
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
|
||||
#html_search_language = 'en'
|
||||
|
||||
# A dictionary with options for the search language support, empty by default.
|
||||
# Now only 'ja' uses this config value
|
||||
#html_search_options = {'type': 'default'}
|
||||
|
||||
# The name of a javascript file (relative to the configuration directory) that
|
||||
# implements a search results scorer. If empty, the default will be used.
|
||||
#html_search_scorer = 'scorer.js'
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'plumgrid_plugin_guidedoc'
|
||||
|
||||
# -- Options for LaTeX output ---------------------------------------------
|
||||
|
||||
latex_elements = {
|
||||
# The paper size ('letterpaper' or 'a4paper').
|
||||
#'papersize': 'letterpaper',
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#'pointsize': '10pt',
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#'preamble': '',
|
||||
|
||||
# Latex figure (float) alignment
|
||||
#'figure_align': 'htbp',
|
||||
}
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title,
|
||||
# author, documentclass [howto, manual, or own class]).
|
||||
latex_documents = [
|
||||
(master_doc, 'plumgrid_plugin_guide.tex', u'plumgrid\\_plugin\\_guide Documentation',
|
||||
u'Javeria Khan', 'manual'),
|
||||
]
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top of
|
||||
# the title page.
|
||||
#latex_logo = None
|
||||
|
||||
# For "manual" documents, if this is true, then toplevel headings are parts,
|
||||
# not chapters.
|
||||
#latex_use_parts = False
|
||||
|
||||
# If true, show page references after internal links.
|
||||
#latex_show_pagerefs = False
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#latex_show_urls = False
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#latex_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#latex_domain_indices = True
|
||||
|
||||
# make latex stop printing blank pages between sections
|
||||
# http://stackoverflow.com/questions/5422997/sphinx-docs-remove-blank-pages-from-generated-pdfs
|
||||
latex_elements = { 'classoptions': ',openany,oneside', 'babel' : '\\usepackage[english]{babel}' }
|
||||
|
||||
|
||||
# -- Options for manual page output ---------------------------------------
|
||||
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
(master_doc, 'plumgrid_plugin_guide', u'plumgrid_plugin_guide Documentation',
|
||||
[author], 1)
|
||||
]
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#man_show_urls = False
|
||||
|
||||
|
||||
# -- Options for Texinfo output -------------------------------------------
|
||||
|
||||
# Grouping the document tree into Texinfo files. List of tuples
|
||||
# (source start file, target name, title, author,
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
(master_doc, 'plumgrid_plugin_guide', u'plumgrid_plugin_guide Documentation',
|
||||
author, 'plumgrid_plugin_guide', 'One line description of project.',
|
||||
'Miscellaneous'),
|
||||
]
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#texinfo_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#texinfo_domain_indices = True
|
||||
|
||||
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
||||
#texinfo_show_urls = 'footnote'
|
||||
|
||||
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
||||
#texinfo_no_detailmenu = False
|
||||
|
||||
# Insert footnotes where they are defined instead of
|
||||
# at the end.
|
||||
pdf_inline_footnotes = True
|
||||
|
||||
# Example configuration for intersphinx: refer to the Python standard library.
|
||||
intersphinx_mapping = {'https://docs.python.org/': None}
|
Before Width: | Height: | Size: 221 KiB |
Before Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 204 KiB |
Before Width: | Height: | Size: 150 KiB |
Before Width: | Height: | Size: 163 KiB |
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 155 KiB |
Before Width: | Height: | Size: 259 KiB |
Before Width: | Height: | Size: 184 KiB |
@ -1,17 +0,0 @@
|
||||
.. plumgrid_plugin_guide documentation master file, created by
|
||||
sphinx-quickstart on Fri Mar 18 05:25:02 2016.
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
=======================================================
|
||||
Guide to PLUMgrid Plugin ver. 1.0-1.0.1-1 for Fuel 7.0
|
||||
=======================================================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:numbered:
|
||||
|
||||
intro
|
||||
requirements
|
||||
install_guide
|
||||
troubleshooting
|
@ -1,141 +0,0 @@
|
||||
Installation Guide
|
||||
==================
|
||||
|
||||
Prerequisites
|
||||
-------------
|
||||
|
||||
This document assumes that you have `installed Fuel <http://docs.openstack.org/developer/fuel-docs/userdocs/fuel-install-guide.html>`_
|
||||
and setup the target hosts with appropriate networking for the pxe, management, public and plumgrid-fabric networks. The nodes
|
||||
must be discovered and functional prior to performing the following steps.
|
||||
|
||||
Obtain a PLUMgrid ONS license and access to packages or LCM image by emailing PLUMgrid Support at info@plumgrid.com.
|
||||
|
||||
Installing Fuel PLUMgrid Plugin
|
||||
-------------------------------
|
||||
|
||||
#. Download the PLUMgrid plugin from the `Fuel Plugins Catalog <https://www.mirantis.com/software/fuel-plugins/>`_.
|
||||
#. Copy this file to the Fuel Master node with secure copy (scp):
|
||||
::
|
||||
|
||||
scp plumgrid-<x.x.x>.rpm root@<Fuel_Master_node_IP address>:/tmp
|
||||
|
||||
#. On the Fuel Master node, install the PLUMgrid plugin with:
|
||||
::
|
||||
|
||||
cd /tmp
|
||||
fuel plugins --install plumgrid-<x.x.x>.rpm
|
||||
|
||||
You should get the following output:
|
||||
::
|
||||
|
||||
Plugin <plugin-name-version>.rpm was successfully installed
|
||||
|
||||
#. Check that the correct version of the PLUMgrid plugin is installed in Fuel with:
|
||||
::
|
||||
|
||||
fuel plugins --list
|
||||
|
||||
#. The plugin is now ready for use and can be enabled in the Settings → Other PLUMgrid Plugin section of an OpenStack environment on the Fuel UI as explained next.
|
||||
This part is visible after a new environment is created.
|
||||
|
||||
Configuring a New Environment
|
||||
-----------------------------
|
||||
|
||||
#. In Fuel UI `create a new environment <http://docs.openstack.org/developer/fuel-docs/userdocs/fuel-user-guide/create-environment/start-create-env.html>`_.
|
||||
|
||||
.. image:: images/create_env.png
|
||||
:width: 80%
|
||||
|
||||
|
||||
#. Select the QEMU-KVM hypervisor type for your environment.
|
||||
|
||||
.. image:: images/compute.png
|
||||
:width: 80%
|
||||
|
||||
|
||||
#. Select Neutron with VLAN segmentation as Networking Setup.
|
||||
|
||||
.. image:: images/networking_setup.png
|
||||
:width: 80%
|
||||
|
||||
Configuring PLUMgrid Plugin
|
||||
---------------------------
|
||||
|
||||
#. After creating the environment, navigate to Settings → Other. Check the PLUMgrid Plugin box and fill in the appropriate values for the environment.
|
||||
|
||||
.. image:: images/plumgrid_ui_setup.png
|
||||
:width: 80%
|
||||
|
||||
|
||||
* **Enter the username for PLUMgrid:** default is *plumgrid*
|
||||
|
||||
* **Enter the password for PLUMgrid:** default is *plumgrid*
|
||||
|
||||
* **PLUMgrid VIP on the management network to access the PLUMgrid console:** The IP address for PLUMgrid console. Make sure to select an unassigned IP on the management network.
|
||||
|
||||
* **Enter the OPSVM IP:** Enter the IP for the OPSVM.
|
||||
|
||||
* **Enter the PLUMgrid Fabric Network:** Enter the network that will be used by PLUMgrid Fabric (without subnet mask).
|
||||
|
||||
* **Repository for PLUMgrid packages:** Enter IP address of a repo hosting PLUMgrid packages, for example the LCM.
|
||||
|
||||
* **Enter the zone name for PLUMgrid LCM:** If using an LCM enter the zone name specified during its configuration.
|
||||
|
||||
* **Enter the license for PLUMgrid:** Enter the PLUMgrid license string provided by PLUMgrid Support.
|
||||
|
||||
* **Enter the interface(s) to be used by GW:** Enter the interfaces that will be used for external connectivity by the PLUMgrid Gateway. Comma separated for more than one.
|
||||
|
||||
Deployment Settings
|
||||
-------------------
|
||||
|
||||
#. Navigate to Settings → General tab, Repositories Section and click Add Extra Repo and provide the following PLUMgrid repositories:
|
||||
::
|
||||
|
||||
plumgrid deb http://<LCM-IP>:81/plumgrid plumgrid <component> 1200
|
||||
plumgrid-images deb http://<LCM-IP>:81/plumgrid-images plumgrid <component> 1250
|
||||
openstack-mitaka deb http://<LCM-IP>:81/openstack/deb/mitaka openstack-mitaka <component> 1300
|
||||
|
||||
.. image:: images/plumgrid_repos.png
|
||||
:width: 80%
|
||||
|
||||
#. Navigate to the Nodes tab and click on Add Nodes:
|
||||
|
||||
.. image:: images/add_nodes.png
|
||||
:width: 80%
|
||||
|
||||
|
||||
Assign the unallocated nodes their respective roles. Select the role i.e. Controller/Compute/PLUMgrid-Gateway and select the node which will assume that role. This process must be repeated for every node individually:
|
||||
|
||||
.. image:: images/add_controllers.png
|
||||
:width: 80%
|
||||
|
||||
#. As described in the Requirements section, configure interfaces on nodes as shown in figure below by clicking on the gear icon:
|
||||
|
||||
.. image:: images/network_config.png
|
||||
:width: 80%
|
||||
|
||||
#. Navigate to Networks tab and set the appropriate Network Settings for the Public, Storage and Management Networks. Click Verify Networks to verify correct configuration.
|
||||
|
||||
.. image:: images/verify_network.png
|
||||
:width: 80%
|
||||
|
||||
|
||||
#. Press **Deploy changes** in the Dashboard tab to `deploy the environment <http://docs.openstack.org/developer/fuel-docs/userdocs/fuel-user-guide/deploy-environment/deploy-changes.html>`_.
|
||||
|
||||
#. After a successful deployment, the PLUMgrid UI will be accessible on the VIP entered in the PLUMgrid Settings.
|
||||
::
|
||||
https://<PG-VIP>
|
||||
|
||||
.. image:: images/pg_ui.png
|
||||
:width: 80%
|
||||
|
||||
#. As PLUMgrid provides the network backend; all standard neutron operations (create/delete networks, routers etc) can be performed to check the status of the plugin. SSH into any Controller node and run the following:
|
||||
::
|
||||
|
||||
source /root/openrc
|
||||
neutron net-create net1
|
||||
neutron router-create router1
|
||||
|
||||
The newly created network and router should be visible in Horizon and the PLUMgrid UI.
|
||||
|
||||
#. For further details on usability & features, and to obtain official documentation, contact PLUMgrid at info@plumgrid.com.
|
@ -1,87 +0,0 @@
|
||||
Introduction
|
||||
============
|
||||
|
||||
This document contains instructions for installing and configuring the PLUMgrid plugin for Fuel.
|
||||
In order to use the PLUMgrid ONS Virtual Network Infrastructure for a Mirantis OpenStack Cloud, follow the Installation Guide.
|
||||
|
||||
Key terms, acronyms and abbreviations
|
||||
-------------------------------------
|
||||
|
||||
Given below are some commonly used terms across this document:
|
||||
|
||||
+--------------------+-------------------------------------------------------------------+
|
||||
| PLUMgrid ONS | PLUMgrid Open Networking Suite (ONS) is a comprehensive software |
|
||||
| | suite that provides a virtual network infrastructure based on |
|
||||
| | IO Visor technology. |
|
||||
+--------------------+-------------------------------------------------------------------+
|
||||
| VNI | Virtual Network Infrastructure |
|
||||
+--------------------+-------------------------------------------------------------------+
|
||||
| Virtual Domain | A Virtual Domain is a logical data center. It can be created on |
|
||||
| | demand to provide all the networking services (e.g. Routers, |
|
||||
| | Switches, IPAM, DHCP, NAT, etc.) necessary to build a virtual |
|
||||
| | network for a project in OpenStack. Typically, each OpenStack |
|
||||
| | project will map to a unique Virtual Domain in the PLUMgrid. |
|
||||
+--------------------+-------------------------------------------------------------------+
|
||||
| Zone | Represents the physical deployment of PLUMgrid ONS. A Zone is |
|
||||
| | primarily a collection of Edges & Gateways that are dependent on |
|
||||
| | the same cluster of Directors in a single physical location. A |
|
||||
| | data center can have multiple Zones. |
|
||||
+--------------------+-------------------------------------------------------------------+
|
||||
| Director | The control plane of PLUMgrid ONS. The configuration of the VNI |
|
||||
| | for tenants is done through the Director. The PLUMgrid Directors |
|
||||
| | are typically deployed in a cluster of three nodes to provide high|
|
||||
| | availability and scale. Directors are co-located on the OpenStack |
|
||||
| | Controller nodes. |
|
||||
+--------------------+-------------------------------------------------------------------+
|
||||
| Edge | An OpenStack Compute node running PLUMgrid IO Visor as a kernel |
|
||||
| | module. It provides the data plane and network connectivity for |
|
||||
| | the VMs of OpenStack tenants. Communication for VMs between Edges |
|
||||
| | is enabled by creating overlay tunnels using VXLAN encapsulation |
|
||||
+--------------------+-------------------------------------------------------------------+
|
||||
| Gateway | Provides connectivity from virtual fabric (VXLAN based) to |
|
||||
| | external IP networks (such as for internet access). Gateway(s) |
|
||||
| | can be deployed as a pair in Active/Active mode for load balancing|
|
||||
| | of traffic and high availability of external connectivity. |
|
||||
+--------------------+-------------------------------------------------------------------+
|
||||
| LCM | The Life Cycle Manager is a VM that is used to host the necessary |
|
||||
| | PLUMgrid packages needed to install (or update) a PLUMgrid Zone. |
|
||||
+--------------------+-------------------------------------------------------------------+
|
||||
|
||||
The figure below depicts how all these components fit in a PLUMgrid Zone.
|
||||
|
||||
.. image:: images/pg_zone.png
|
||||
:width: 80%
|
||||
|
||||
|
||||
Overview
|
||||
--------
|
||||
|
||||
The PLUMgrid plugin for Fuel provides the capability to use PLUMgrid ONS for Mirantis OpenStack as the entire networking backend.
|
||||
It is configured through the Fuel UI.
|
||||
|
||||
PLUMgrid Open Networking Suite (ONS) is a comprehensive software suite that provides terabits of scale out performance, production
|
||||
grade resiliency, and secure multi-tenancy for hybrid data centers. Built on PLUMgrid Platform and IO Visor technology, the software
|
||||
suite lets users create private Virtual Domains to provide isolation, security, and policy enforcement across tenants.
|
||||
|
||||
PLUMgrid ONS features:
|
||||
|
||||
* Performance: Up to 40 Gbps per server; hardware offload; terabytes of aggregate performance.
|
||||
|
||||
* Scalable: across virtual domains, workloads and multiple racks, geographies.
|
||||
|
||||
* Supports both hardware and software gateways in highly available configurations.
|
||||
|
||||
* Secure: end-to-end encryption within Virtual Domains and isolation across tenants.
|
||||
|
||||
* Operational tools: includes a comprehensive suite of powerful networking, monitoring and troubleshooting tools.
|
||||
|
||||
Licensing information
|
||||
---------------------
|
||||
|
||||
+----------------------+-----------------+
|
||||
| PLUMgrid ONS | Commercial |
|
||||
+----------------------+-----------------+
|
||||
| Fuel PLUMgrid Plugin | Apache 2.0 |
|
||||
+----------------------+-----------------+
|
||||
|
||||
Contact PLUMgrid for an Installation pack (including Full/Trial License, PLUMgrid Packages, deployment documentation): info@plumgrid.com
|
@ -1,39 +0,0 @@
|
||||
Requirements
|
||||
============
|
||||
|
||||
In addition to the requirements set by a Mirantis 9.0 Installation. The PLUMgrid plugin also has the following software and hardware requirements:
|
||||
|
||||
Network Requirements
|
||||
--------------------
|
||||
|
||||
Nodes within the PLUMgrid Zone are connected using the following two networks:
|
||||
|
||||
#. **Management:** This network is mapped onto the Management network (br-mgmt) deployed within a Mirantis OpenStack Environment.
|
||||
|
||||
#. **Fabric:** This network is mapped directly onto the tagged/untagged interface deployed within the Mirantis OpenStack Environment. The network cidr is specified through the Fuel UI, as explained later. MTU for the fabric network is set to 1580 (this is the minimum value for PLUMgrid to work correctly, it will also function for higher values).
|
||||
|
||||
Node Interface Requirements
|
||||
+++++++++++++++++++++++++++
|
||||
|
||||
Physical servers with two network interfaces are used as Controllers, Computes and A PLUMgrid-Gateways. A PLUMgrid-Gateway node must also have an additional 1-2 interfaces for external connectivity (these are specified in the PLUMgrid Settings given in the install section). The interfaces configuration is the following:
|
||||
|
||||
* First interface is used for PXE network.
|
||||
* Second interface is used for Public, Management and Storage networks using tagged VLANs. The PLUMgrid fabric network is also created here.
|
||||
|
||||
.. image:: images/network_config.png
|
||||
:width: 80%
|
||||
|
||||
|
||||
PLUMgrid Repository
|
||||
-------------------
|
||||
|
||||
Access to a url hosting PLUMgrid packages is required before deployment. A common way to obtain this is to use a LCM image to create the LCM VM, which will host the required packages. This VM then becomes the source repo for installing and upgrading PLUMgrid. The VM can typically be created on the Infrastructure Server hosting the Fuel VM. It needs to be provided with management and fabric connectivity. Contact PLUMgrid to obtain an LCM image with pre-baked PLUMgrid packages and a license [info@plumgrid.com].
|
||||
|
||||
Node Requirements
|
||||
-----------------
|
||||
|
||||
You must have atleast the following nodes present to set up a minimal deployment:
|
||||
|
||||
* 3 Controllers (or 1 Controller for non-HA deployment)
|
||||
* 1 Compute
|
||||
* 1 PLUMgrid-Gateway
|
@ -1,31 +0,0 @@
|
||||
Troubleshooting
|
||||
===============
|
||||
|
||||
|
||||
#. When PLUMgrid tasks fail during deployment.
|
||||
|
||||
**Solution**
|
||||
|
||||
Determine what node it failed on from the Fuel Astute Logs. Login to that node (SSH through the Fuel Master node),
|
||||
and check the logs under /var/log/plumgrid .
|
||||
|
||||
#. A node is not visible in the PLUMgrid UI, Zone View > Zone Inventory.
|
||||
|
||||
**Solution**
|
||||
|
||||
Login to that node (SSH through the Fuel Master node) and check PLUMgrid services. Start if stopped:
|
||||
::
|
||||
|
||||
service plumgrid status
|
||||
service plumgrid start
|
||||
|
||||
Expected Failures
|
||||
-----------------
|
||||
|
||||
#. Some health checks are expected to fail due to the default networks and routers created during the deployment being deleted, after PLUMgrid plugin is installed. These are created before PLUMgrid is enabled as the network backend, hence the PLUMgrid ONS platform has no knowledge of these previously created routers/networks and they are therefore removed.
|
||||
|
||||
#. *Check pacemaker status* will also fail on OVS checks, as OVS is not used in a PLUMgrid based environment.
|
||||
|
||||
#. Using *fuel createmirror* is not supported since the PLUMgrid plugin requires a specific version of certain packages on trusty that are not hosted by the partial mirror created by this tool. Furthermore, for an enviroment with the PLUMgrid plugin enabled, it will fail to set repositories as defaults for new environments; however it will update the current ones in the Fuel UI Settings --> Repositories to the local links.
|
||||
|
||||
#. Removing / Adding Controller nodes are not supported in this plugin version, as they will fail on Create_network task.
|
@ -1,87 +0,0 @@
|
||||
attributes:
|
||||
metadata:
|
||||
restrictions:
|
||||
- condition: "not (cluster:net_provider == 'neutron' and networking_parameters:segmentation_type == 'vlan')"
|
||||
message: "Please use Neutron with VLAN segmentation, the only network type supported with PLUMgrid plugin."
|
||||
group: 'other'
|
||||
plumgrid_username:
|
||||
value: "plumgrid"
|
||||
label: "Enter the username for PLUMgrid"
|
||||
description: "Enter the default username for accessing PLUMgrid"
|
||||
weight: 25
|
||||
type: "text"
|
||||
regex:
|
||||
source: '^\S+$'
|
||||
error: "username cannot be empty or contain spaces"
|
||||
plumgrid_password:
|
||||
value: "plumgrid"
|
||||
label: "Enter the password for PLUMgrid"
|
||||
description: "Enter the default password for accessing PLUMgrid"
|
||||
weight: 26
|
||||
type: "password"
|
||||
regex:
|
||||
source: '^\S+$'
|
||||
error: "password cannot be empty or contain spaces"
|
||||
plumgrid_package_repo:
|
||||
value: ''
|
||||
label: 'Repository for PLUMgrid packages'
|
||||
description: 'The IP address for PLUMgrid LCM'
|
||||
weight: 45
|
||||
type: "text"
|
||||
regex:
|
||||
source: '^((?:\d|1?\d\d|2[0-4]\d|25[0-5])(?:\.(?:\d|1?\d\d|2[0-4]\d|25[0-5])){3})|(?:^)$'
|
||||
error: "Invalid IP address"
|
||||
plumgrid_zone:
|
||||
value: ""
|
||||
label: "Enter the zone name for PLUMgrid LCM"
|
||||
description: "Enter the zone name configured on the PLUMgrid LCM"
|
||||
weight: 55
|
||||
type: "text"
|
||||
regex:
|
||||
source: '^\S+$'
|
||||
error: "Zone name cannot be empty or contain spaces"
|
||||
plumgrid_license:
|
||||
value: ""
|
||||
label: "Enter the license for PLUMgrid"
|
||||
description: "Enter the license that will be used by the PLUMgrid platform"
|
||||
weight: 65
|
||||
type: "text"
|
||||
regex:
|
||||
source: '^\S+$'
|
||||
error: "License field cannot be empty or contain spaces"
|
||||
gateway_devs:
|
||||
value: ""
|
||||
label: "Enter the interface(s) to be used by GW"
|
||||
description: "Provide comma separated interfaces that will be used for external connectivity by the PLUMgrid gateway (eg. eth3,eth4)"
|
||||
weight: 75
|
||||
type: "text"
|
||||
regex:
|
||||
source: '^(\S+,?\s*)+$'
|
||||
error: "One or more comma seperated gateway interfaces must be entered (eg. eth3,eth4)"
|
||||
plumgrid_virtual_ip:
|
||||
value: ''
|
||||
label: 'PLUMgrid VIP to access the PLUMgrid console'
|
||||
description: 'The IP address for PLUMgrid console'
|
||||
weight: 30
|
||||
type: "text"
|
||||
regex:
|
||||
source: '^((?:\d|1?\d\d|2[0-4]\d|25[0-5])(?:\.(?:\d|1?\d\d|2[0-4]\d|25[0-5])){3})|(?:^)$'
|
||||
error: "Invalid IP address"
|
||||
plumgrid_fabric_network:
|
||||
value: ''
|
||||
label: 'Enter the PLUMgrid Fabric Network'
|
||||
description: 'Enter the network that will be used by PLUMgrid Fabric (no need to enter subnet mask)'
|
||||
weight: 32
|
||||
type: "text"
|
||||
regex:
|
||||
source: '^((?:\d|1?\d\d|2[0-4]\d|25[0-5])(?:\.(?:\d|1?\d\d|2[0-4]\d|25[0-5])){3})|(?:^)$'
|
||||
error: "Invalid IP address"
|
||||
plumgrid_opsvm:
|
||||
value: '127.0.0.0'
|
||||
label: 'Enter the OPSVM IP'
|
||||
description: 'Enter the IP for the OPSVM'
|
||||
weight: 32
|
||||
type: "text"
|
||||
regex:
|
||||
source: '^((?:\d|1?\d\d|2[0-4]\d|25[0-5])(?:\.(?:\d|1?\d\d|2[0-4]\d|25[0-5])){3})|(?:^)$'
|
||||
error: "Invalid IP address"
|
@ -1,26 +0,0 @@
|
||||
# Plugin name
|
||||
name: plumgrid
|
||||
# Human-readable name for your plugin
|
||||
title: PLUMgrid plugin
|
||||
# Plugin version
|
||||
version: '3.0.0'
|
||||
# Description
|
||||
description: This plugin enables the usage of PLUMgrid ONS as the network backend.
|
||||
# Required fuel version
|
||||
fuel_version: ['9.0']
|
||||
# Specify license of your plugin
|
||||
licenses: ['Apache License Version 2.0']
|
||||
authors: ['javeriak@plumgrid.com', 'abdullah.khan@plumgrid.com']
|
||||
homepage: 'https://github.com/openstack/fuel-plugin-plumgrid'
|
||||
groups: ['network']
|
||||
|
||||
# The plugin is compatible with releases in the list
|
||||
releases:
|
||||
- os: ubuntu
|
||||
version: mitaka-9.0
|
||||
mode: ['ha', 'multinode']
|
||||
deployment_scripts_path: deployment_scripts/
|
||||
repository_path: repositories/ubuntu
|
||||
|
||||
# Version of plugin package
|
||||
package_version: '3.0.0'
|
@ -1,6 +0,0 @@
|
||||
- id: "fabric"
|
||||
default_mapping: "Fabric"
|
||||
properties:
|
||||
subnet: true
|
||||
gateway: false
|
||||
vip: []
|
@ -1,5 +0,0 @@
|
||||
PLUMgrid-Gateway:
|
||||
name: "PLUMgrid-Gateway"
|
||||
description: "External Connectivity using PLUMgrid"
|
||||
conflicts:
|
||||
- compute
|
@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Add here any the actions which are required before plugin build
|
||||
# like packages building, packages downloading from mirrors and so on.
|
||||
# The script should return 0 if there were no errors.
|
@ -1,156 +0,0 @@
|
||||
..
|
||||
|
||||
Copyright 2016 PLUMgrid Inc.
|
||||
|
||||
=====================
|
||||
PLUMgrid Fuel Plugin
|
||||
=====================
|
||||
|
||||
The PLUMgrid plugin for Fuel provides the capability to use PLUMgrid
|
||||
ONS as the entire network backend for Mirantis OpenStack. This installs
|
||||
the PLUMgrid core neutron plugin in collaboration with PLUMgrid Director,
|
||||
Edge and Gateway components to provide a virtual network infrastructure
|
||||
for the Cloud.
|
||||
|
||||
--------------------
|
||||
Problem description
|
||||
--------------------
|
||||
|
||||
PLUMgrid is a core neutron networking plugin that has been a part of OpenStack
|
||||
neutron since Grizzly. It offers a Network Virtualization Platform that uses
|
||||
direct communication with the Hypervisor layer to provide all the networking
|
||||
functionality requested through Neutron APIs. The PLUMgrid Neutron Plugin
|
||||
implements Neutron v2 APIs and helps configure L2/L3 virtual networks
|
||||
created through the PLUMgrid Platform. It also implements External Networks
|
||||
and Port Binding Extensions.
|
||||
|
||||
APIs supported by the PLUMgrid plugin:
|
||||
- Networks
|
||||
- Subnets
|
||||
- Ports
|
||||
- External Networks
|
||||
- Routers
|
||||
- Security Groups
|
||||
- Quotas
|
||||
- Port Binding
|
||||
- Provider Networks
|
||||
|
||||
----------------
|
||||
Proposed changes
|
||||
----------------
|
||||
|
||||
Implement a Fuel plugin that deploys PLUMgrid as the core neutron
|
||||
plugin and configure Mirantis OpenStack to use PLUMgrid as the networking
|
||||
backend.
|
||||
|
||||
The plugin deployment will also include deploying PLUMgrid Zone components
|
||||
which reside on the controller and compute nodes to interact with the cluster.
|
||||
A new role will also be created to deploy PLUMgrid Gateway nodes. These
|
||||
Gateway nodes reside outside of the OpenStack cluster and are deployed
|
||||
over standard Ubuntu servers.
|
||||
|
||||
------------
|
||||
Alternatives
|
||||
------------
|
||||
|
||||
None.
|
||||
|
||||
--------------
|
||||
Upgrade impact
|
||||
--------------
|
||||
|
||||
Upgrading the Fuel PLUMgrid plugin will be possible through the standard
|
||||
fuel cli. Also upgrading the PLUMgrid ONS version will be possible through
|
||||
re-running post_deployment tasks after pointing to a repository with newer
|
||||
PLUMgrid packages.
|
||||
|
||||
---------------
|
||||
Security impact
|
||||
---------------
|
||||
|
||||
None.
|
||||
|
||||
--------------------
|
||||
Notifications impact
|
||||
--------------------
|
||||
|
||||
None.
|
||||
|
||||
---------------
|
||||
End user impact
|
||||
---------------
|
||||
|
||||
End users will be able to leverage the enhanced scale and operational
|
||||
capabilities provided by the PLUMgrid plugin when choosing to install
|
||||
this plugin. Further details can be found in the References section below.
|
||||
|
||||
------------------
|
||||
Performance impact
|
||||
------------------
|
||||
|
||||
Same as End user impact.
|
||||
|
||||
-----------------
|
||||
Deployment impact
|
||||
-----------------
|
||||
|
||||
The PLUMgrid plugin tasks all run in post_deployment stage.
|
||||
|
||||
----------------
|
||||
Developer impact
|
||||
----------------
|
||||
|
||||
None.
|
||||
|
||||
--------------------
|
||||
Documentation impact
|
||||
--------------------
|
||||
|
||||
Documentation describing how to configure the Fuel UI PLUMgrid plugin
|
||||
parameters to install PLUMgrid, will be provided with the plugin. This
|
||||
will be deployer documentation.
|
||||
|
||||
|
||||
Implementation
|
||||
--------------
|
||||
|
||||
Assignee(s)
|
||||
===========
|
||||
|
||||
Primary assignee:
|
||||
|
||||
* Javeria Khan <javeriak@plumgrid.com> https://launchpad.net/~javeria-ak
|
||||
|
||||
Other contributors:
|
||||
|
||||
* Abdullah Khan <abdullah.khan@plumgrid.com>
|
||||
|
||||
Work Items
|
||||
==========
|
||||
|
||||
* Implement the Fuel plugin.
|
||||
* Implement the Puppet manifests.
|
||||
* Testing (automatic and manual tests).
|
||||
* Write the documentation.
|
||||
|
||||
Dependencies
|
||||
============
|
||||
|
||||
* Fuel 7.0 or higher.
|
||||
* PLUMgrid-Gateway node must be deployed.
|
||||
|
||||
------------
|
||||
Testing, QA
|
||||
------------
|
||||
|
||||
* Functional, Tempest & Rally suites will be run on deployment.
|
||||
* Test the plugin upgrades on a running enviroment.
|
||||
* Test PLUMgrid ONS upgrades on a running enviroment.
|
||||
* Test HA functionality of deployed environment.
|
||||
|
||||
----------
|
||||
References
|
||||
----------
|
||||
|
||||
* http://www.plumgrid.com/
|
||||
* https://wiki.openstack.org/wiki/PLUMgrid-Neutron
|
@ -1,5 +0,0 @@
|
||||
volumes_roles_mapping:
|
||||
PG-GW:
|
||||
- {allocate_size: "min", id: "os"}
|
||||
- {allocate_size: "all", id: "vm"}
|
||||
volumes: []
|