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: I7db9b15e2c4c8b19dd8d70fe94b33576c033eef6
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.
|
||||
|
76
README.md
|
@ -1,76 +0,0 @@
|
|||
Fuel Plugin for Virtual Accelerator description
|
||||
------------------
|
||||
|
||||
6WIND Virtual Accelerator is available for 1, 2 and 4 socket Intel x86-based
|
||||
servers and supports major Linux distributions.
|
||||
|
||||
- See more at: http://www.6wind.com/products/6wind-virtual-accelerator/
|
||||
|
||||
User Guide
|
||||
----------
|
||||
As first step clone this repository.
|
||||
When this step is done, the plugin can be correctly built with the following
|
||||
command:
|
||||
fpb --build fuel-plugin-6wind-virtual-accelerator
|
||||
|
||||
Copy the generated plugin rpm package to the Fuel master and install it as
|
||||
usual:
|
||||
fuel plugins --install {package}.rpm
|
||||
|
||||
When this step is finished proceed with fuel environment creation as
|
||||
detailed here:
|
||||
|
||||
1. Create a new environment with the Fuel Web UI wizard.
|
||||
2. Click on the Settings tab of the Fuel Web UI.
|
||||
3. In Compute section select the plugin checkbox and edit options
|
||||
(if desired).
|
||||
In particular it is mandatory to provide the 6WIND base64 credentials
|
||||
package for software download.
|
||||
Contact 6WIND support team for more information.
|
||||
4. Associate both 6WIND Virtual Accelerator and Compute roles with nodes
|
||||
you want to accelerate
|
||||
5. Start deployment
|
||||
|
||||
At the end of this whole process the Virtual Accelerator should be correctly
|
||||
installed and running on the selected node.
|
||||
|
||||
Support
|
||||
-------
|
||||
|
||||
This software is provided as-is without support from 6WIND. In order to
|
||||
get a proper support, you should contact 6WIND.
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
None.
|
||||
|
||||
Known issues
|
||||
------------
|
||||
|
||||
The plugin does not create nova flavors with huge page support. End users are
|
||||
responsible to create those flavors.
|
||||
|
||||
Release Notes
|
||||
-------------
|
||||
|
||||
**1.0.0**
|
||||
|
||||
* Initial release of the plugin. This is a beta version.
|
||||
|
||||
|
||||
Bugs Reporting
|
||||
--------------
|
||||
|
||||
Bugs should be filled on the [Launchpad fuel-plugins project]
|
||||
(https://bugs.launchpad.net/fuel-plugins) with the tag `virtual-accelerator`.
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* karim.mchirki@6wind.com
|
||||
* samuel.gauthier@6wind.com
|
||||
* maxime.leroy@6wind.com
|
||||
* francesco.santoro@6wind.com
|
||||
* vincent.jardin@6wind.com
|
||||
* jean-mickael.guerin@6wind.com
|
|
@ -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,45 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
notice('MODULAR: virtual_accelerator/6wind_repo.pp')
|
||||
|
||||
$settings = hiera('6wind-virtual-accelerator', {})
|
||||
|
||||
$va_version = $settings['va_version']
|
||||
|
||||
$cred_package_content = $settings['credentials_package'][content]
|
||||
$cred_package_name = $settings['credentials_package'][name]
|
||||
|
||||
if $cred_package_name !~ /.+[.]deb[.]b64?/ {
|
||||
fail('The given credentials package has wrong format')
|
||||
}
|
||||
|
||||
if $va_version !~ /1[.](\d+)/ {
|
||||
if $va_version != 'stable' {
|
||||
$va_version = 'stable'
|
||||
}
|
||||
}
|
||||
|
||||
file {"/tmp/${cred_package_name}":
|
||||
ensure => file,
|
||||
content => $cred_package_content,
|
||||
} ->
|
||||
exec { 'decode_credentials':
|
||||
command => "/usr/bin/base64 --decode /tmp/${cred_package_name} > /tmp/6wind-authentication-credentials.deb",
|
||||
} ->
|
||||
package { "6wind-authentication-credentials":
|
||||
provider => 'dpkg',
|
||||
ensure => 'installed',
|
||||
source => "/tmp/6wind-authentication-credentials.deb"
|
||||
} ->
|
||||
exec { 'retrieve_va_repo':
|
||||
command => "/usr/bin/curl --cacert /usr/local/etc/certs/6wind_ca.crt --key /usr/local/etc/certs/6wind_client.key --cert /usr/local/etc/certs/6wind_client.crt -o /tmp/6wind-virtual-accelerator-repository.deb https://repo.6wind.com/virtual-accelerator/ubuntu-14.04/$(dpkg --print-architecture)/${va_version}/6wind-virtual-accelerator-ubuntu-14.04-repository_${va_version}-1_$(dpkg --print-architecture).deb",
|
||||
} ->
|
||||
package { "6wind-virtual-accelerator-repository":
|
||||
provider => 'dpkg',
|
||||
ensure => 'installed',
|
||||
source => "/tmp/6wind-virtual-accelerator-repository.deb"
|
||||
} ->
|
||||
exec { 'increase_repo_priority':
|
||||
command => "/bin/sed -i 's#Pin-Priority: .*#Pin-Priority: 1100##' /etc/apt/preferences.d/6wind-virtual-accelerator",
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
notice('MODULAR: virtual_accelerator/configure_va.pp')
|
||||
|
||||
include virtual_accelerator
|
||||
class { 'virtual_accelerator::config': }
|
|
@ -1,55 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
notice('MODULAR: virtual_accelerator/external_repo.pp')
|
||||
|
||||
$settings = hiera('6wind-virtual-accelerator', {})
|
||||
$ext_pack = $settings['ext_pack']
|
||||
|
||||
if $ext_pack == true {
|
||||
|
||||
exec { 'add_6wind_ppa':
|
||||
command => '/usr/bin/add-apt-repository -y ppa:6wind/virt-mq-current',
|
||||
} ->
|
||||
file { '/etc/apt/preferences.d/6wind-ppa.pref':
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => 0644,
|
||||
source => 'puppet:///modules/virtual_accelerator/6wind-ppa.pref',
|
||||
} ->
|
||||
exec { 'update_repos':
|
||||
command => '/usr/bin/apt-get -y update',
|
||||
} ->
|
||||
package { 'libvirt-bin':
|
||||
ensure => 'latest',
|
||||
} ->
|
||||
file { '/etc/default/libvirtd':
|
||||
ensure => 'link',
|
||||
target => '/etc/default/libvirt-bin',
|
||||
} ->
|
||||
file { '/etc/init/libvirtd.conf':
|
||||
ensure => 'link',
|
||||
target => '/etc/init/libvirt-bin.conf',
|
||||
} ->
|
||||
file { '/etc/init.d/libvirtd':
|
||||
ensure => 'link',
|
||||
target => '/etc/init.d/libvirt-bin',
|
||||
} ->
|
||||
exec { 'libvirt_bin_manual':
|
||||
command => '/bin/echo manual > /etc/init/libvirt-bin.override',
|
||||
} ->
|
||||
package { 'python-libvirt':
|
||||
ensure => 'latest',
|
||||
} ->
|
||||
package { 'qemu':
|
||||
ensure => 'latest',
|
||||
} ->
|
||||
package { 'qemu-system-x86':
|
||||
ensure => 'latest',
|
||||
} ->
|
||||
# workaround for bug https://bugs.launchpad.net/fuel/+bug/1603446 in Fuel 8
|
||||
group { 'libvirt':
|
||||
ensure => 'present',
|
||||
}
|
||||
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
notice('MODULAR: virtual_accelerator/install_va.pp')
|
||||
|
||||
include virtual_accelerator
|
||||
class { 'virtual_accelerator::install': }
|
|
@ -1,7 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
notice('MODULAR: virtual_accelerator/neutron_conf_compute.pp')
|
||||
|
||||
include virtual_accelerator
|
||||
class { 'virtual_accelerator::neutron_conf_compute': }
|
|
@ -1,7 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
notice('MODULAR: virtual_accelerator/neutron_conf_controller.pp')
|
||||
|
||||
include virtual_accelerator
|
||||
class { 'virtual_accelerator::neutron_conf_controller': }
|
|
@ -1,7 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
notice('MODULAR: virtual_accelerator/nova_conf.pp')
|
||||
|
||||
include virtual_accelerator
|
||||
class { 'virtual_accelerator::nova_conf': }
|
|
@ -1,7 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
notice('MODULAR: virtual_accelerator/start_va.pp')
|
||||
|
||||
include virtual_accelerator
|
||||
class { 'virtual_accelerator::service': }
|
|
@ -1,3 +0,0 @@
|
|||
Package: *
|
||||
Pin: release o=LP-PPA-6wind-virt-mq-current
|
||||
Pin-Priority: 1100
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
fpconf="/usr/local/etc/fast-path.env"
|
||||
|
||||
function set_fp_opt() {
|
||||
if grep -q '^#\?: \${'"$1"':=.*}' "$3"; then
|
||||
sed -i -- 's@^#\?: \${'"$1"':=.*@: ${'"$1"':='"$2"'}@' "$3";
|
||||
else
|
||||
echo >> $3;
|
||||
echo '# Config added by VA Fuel plugin' >> $3;
|
||||
echo ': ${'"$1"':='"$2"'}' >> $3;
|
||||
fi
|
||||
}
|
||||
|
||||
set_fp_opt "$1" "$2" $fpconf
|
|
@ -1,11 +0,0 @@
|
|||
description "Mount cpu cgroup"
|
||||
|
||||
start on started dbus
|
||||
stop on runlevel [!2345]
|
||||
|
||||
pre-start script
|
||||
if ! mountpoint -q /sys/fs/cgroup/cpu; then
|
||||
mkdir -p /sys/fs/cgroup/cpu
|
||||
mount -t cgroup -ocpu none /sys/fs/cgroup/cpu
|
||||
fi
|
||||
end script
|
|
@ -1,65 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
class virtual_accelerator::config inherits virtual_accelerator {
|
||||
|
||||
$advanced_params = $virtual_accelerator::advanced_params
|
||||
|
||||
file { '/etc/init/cpu-cgroup.conf':
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => 0644,
|
||||
source => 'puppet:///modules/virtual_accelerator/cpu-cgroup.conf',
|
||||
} ->
|
||||
service { 'cpu-cgroup':
|
||||
ensure => 'running',
|
||||
}
|
||||
|
||||
$fp_conf_file = "/usr/local/etc/fast-path.env"
|
||||
$hugepages_dir = "/dev/hugepages"
|
||||
$license_file = $virtual_accelerator::va_license_file
|
||||
|
||||
exec { 'copy_template':
|
||||
command => "cp /usr/local/etc/fast-path.env.tmpl ${fp_conf_file}",
|
||||
} ->
|
||||
exec { 'set_hugepages_dir':
|
||||
command => "config_va.sh HUGEPAGES_DIR ${hugepages_dir}",
|
||||
path => '/usr/local/bin/',
|
||||
}
|
||||
|
||||
if $license_file != '' and $license_file != undef {
|
||||
file {"/usr/local/etc/6wind_va.lic":
|
||||
ensure => file,
|
||||
content => $license_file,
|
||||
}
|
||||
}
|
||||
|
||||
if $advanced_params == true {
|
||||
$custom_conf_file = $virtual_accelerator::va_conf_file
|
||||
|
||||
if $custom_conf_file != '' and $custom_conf_file != undef {
|
||||
exec {'remove_old_conf':
|
||||
command => "rm ${fp_conf_file}",
|
||||
require => Exec['set_fp_mem'],
|
||||
} ->
|
||||
file {"${fp_conf_file}":
|
||||
ensure => file,
|
||||
content => $custom_conf_file,
|
||||
}
|
||||
}
|
||||
else {
|
||||
$vm_mem = $virtual_accelerator::vm_mem
|
||||
$fp_mem = $virtual_accelerator::fp_mem
|
||||
|
||||
exec { 'set_vm_mem':
|
||||
command => "config_va.sh VM_MEMORY ${vm_mem}",
|
||||
path => '/usr/local/bin/',
|
||||
} ->
|
||||
exec { 'set_fp_mem':
|
||||
command => "config_va.sh FP_MEMORY ${fp_mem}",
|
||||
path => '/usr/local/bin/',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
class virtual_accelerator {
|
||||
|
||||
# Export exec path
|
||||
Exec { path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ] }
|
||||
|
||||
# General configuration
|
||||
$settings = hiera('6wind-virtual-accelerator', {})
|
||||
|
||||
# 6WIND Virtual Accelerator settings
|
||||
$advanced_params = $settings['advanced_params_enabled']
|
||||
$fp_mem = $settings['fp_mem']
|
||||
$vm_mem = $settings['vm_mem']
|
||||
$va_conf_file = ''
|
||||
$disable_secgroup = $settings['disable_secgroup']
|
||||
$enable_host_cpu = $settings['enable_host_cpu']
|
||||
$va_version = $settings['va_version']
|
||||
$mellanox_support = $settings['mellanox_support']
|
||||
|
||||
if $settings['va_conf_file'] {
|
||||
$va_conf_file = $settings['va_conf_file'][content]
|
||||
}
|
||||
|
||||
if $settings['va_license_file'] {
|
||||
$va_license_file = $settings['va_license_file'][content]
|
||||
}
|
||||
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
class virtual_accelerator::install inherits virtual_accelerator {
|
||||
|
||||
$mellanox_support = $virtual_accelerator::mellanox_support
|
||||
|
||||
exec { 'update_repos':
|
||||
command => '/usr/bin/apt-get -y update',
|
||||
} ->
|
||||
package { 'virtual-accelerator':
|
||||
ensure => 'installed',
|
||||
install_options => ['--allow-unauthenticated'],
|
||||
}
|
||||
|
||||
if $mellanox_support == true {
|
||||
package { 'virtual-accelerator-addon-mellanox':
|
||||
ensure => 'installed',
|
||||
install_options => ['--allow-unauthenticated'],
|
||||
}
|
||||
}
|
||||
|
||||
file { '/usr/local/bin/config_va.sh':
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => 0777,
|
||||
source => 'puppet:///modules/virtual_accelerator/config_va.sh',
|
||||
}
|
||||
|
||||
exec { 'install_linux_headers':
|
||||
command => 'apt-get install -y linux-headers-$(uname -r)',
|
||||
} ->
|
||||
package { 'crudini':
|
||||
ensure => 'installed',
|
||||
}
|
||||
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
class virtual_accelerator::neutron_conf_compute inherits virtual_accelerator {
|
||||
|
||||
$disable_secgroup = $virtual_accelerator::disable_secgroup
|
||||
|
||||
if $disable_secgroup == true {
|
||||
$OVS_CONF_FILE = "/etc/neutron/plugins/ml2/openvswitch_agent.ini"
|
||||
|
||||
package { 'crudini':
|
||||
ensure => 'latest',
|
||||
}
|
||||
|
||||
exec { 'disable_secgroup':
|
||||
command => "crudini --set ${OVS_CONF_FILE} securitygroup enable_security_group False",
|
||||
} ->
|
||||
exec { 'disable_firewall':
|
||||
command => "crudini --set ${OVS_CONF_FILE} securitygroup firewall_driver noop",
|
||||
notify => Service['openvswitch-switch'],
|
||||
}
|
||||
|
||||
service { 'openvswitch-switch':
|
||||
ensure => 'running',
|
||||
notify => Service['neutron-openvswitch-agent'],
|
||||
}
|
||||
|
||||
service { 'neutron-openvswitch-agent':
|
||||
ensure => 'running',
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
class virtual_accelerator::neutron_conf_controller inherits virtual_accelerator {
|
||||
|
||||
$disable_secgroup = $virtual_accelerator::disable_secgroup
|
||||
|
||||
if $disable_secgroup == true {
|
||||
$OVS_CONF_FILE = "/etc/neutron/plugins/ml2/ml2_conf.ini"
|
||||
|
||||
package { 'crudini':
|
||||
ensure => 'latest',
|
||||
notify => Exec['disable_firewall'],
|
||||
}
|
||||
|
||||
exec { 'disable_firewall':
|
||||
command => "crudini --set ${OVS_CONF_FILE} securitygroup firewall_driver noop",
|
||||
notify => Service['neutron-server'],
|
||||
}
|
||||
|
||||
service { 'neutron-server':
|
||||
ensure => 'running',
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
class virtual_accelerator::nova_conf inherits virtual_accelerator {
|
||||
|
||||
$NOVA_CONF_FILE = "/etc/nova/nova.conf"
|
||||
$enable_host_cpu = $virtual_accelerator::enable_host_cpu
|
||||
$disable_secgroup = $virtual_accelerator::disable_secgroup
|
||||
|
||||
if $enable_host_cpu == true {
|
||||
exec { 'cpu_host':
|
||||
command => "crudini --set ${NOVA_CONF_FILE} libvirt cpu_mode host-passthrough",
|
||||
notify => Package['6wind-openstack-extensions'],
|
||||
}
|
||||
}
|
||||
|
||||
package { "6wind-openstack-extensions":
|
||||
ensure => 'installed',
|
||||
install_options => ['--allow-unauthenticated'],
|
||||
}
|
||||
|
||||
if $disable_secgroup == true {
|
||||
exec { 'disable_secgroup':
|
||||
command => "crudini --del ${NOVA_CONF_FILE} DEFAULT security_group_api",
|
||||
notify => Exec['vcpu_pin'],
|
||||
}
|
||||
}
|
||||
|
||||
exec { 'vcpu_pin':
|
||||
command => "crudini --set ${NOVA_CONF_FILE} DEFAULT vcpu_pin_set $(python /usr/local/bin/get_vcpu_pin_set.py)",
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
class virtual_accelerator::service inherits virtual_accelerator {
|
||||
|
||||
service { 'virtual-accelerator':
|
||||
ensure => 'running',
|
||||
notify => Service['openvswitch-switch'],
|
||||
}
|
||||
|
||||
service { 'openvswitch-switch':
|
||||
ensure => 'running',
|
||||
notify => Service['neutron-openvswitch-agent'],
|
||||
}
|
||||
|
||||
service { 'neutron-openvswitch-agent':
|
||||
ensure => 'running',
|
||||
}
|
||||
|
||||
# Let's make sure to use the default hugetlbfs mount point (that could have
|
||||
# been modified by Fuel)
|
||||
exec { 'disable_custom_hugepages_dir_qemu':
|
||||
command => "sed -i 's~^hugetlbfs_mount =~#hugetlbfs_mount =~' /etc/libvirt/qemu.conf",
|
||||
notify => Service['libvirt-bin'],
|
||||
}
|
||||
|
||||
service { 'libvirt-bin':
|
||||
ensure => 'stopped',
|
||||
notify => Service['libvirtd'],
|
||||
}
|
||||
|
||||
service { 'libvirtd':
|
||||
ensure => 'running',
|
||||
notify => Service['nova-compute'],
|
||||
}
|
||||
|
||||
service { 'nova-compute':
|
||||
ensure => 'running',
|
||||
}
|
||||
|
||||
}
|
|
@ -1,88 +0,0 @@
|
|||
- id: 6wind-virtual-accelerator
|
||||
type: group
|
||||
role: [6wind-virtual-accelerator]
|
||||
requires: [post_deployment_start]
|
||||
required_for: [post_deployment_stop]
|
||||
parameters:
|
||||
strategy:
|
||||
type: one_by_one
|
||||
|
||||
- id: 6wind-virtual-accelerator-update-packages
|
||||
type: puppet
|
||||
groups: [compute]
|
||||
required_for: [fuel_pkgs]
|
||||
requires: [setup_repositories]
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/external_repo.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3600
|
||||
|
||||
- id: 6wind-virtual-accelerator-setup-repo
|
||||
type: puppet
|
||||
groups: [6wind-virtual-accelerator]
|
||||
required_for: [6wind-virtual-accelerator-install]
|
||||
requires: [post_deployment_start]
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/6wind_repo.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3600
|
||||
|
||||
- id: 6wind-virtual-accelerator-install
|
||||
type: puppet
|
||||
groups: [6wind-virtual-accelerator]
|
||||
required_for: [6wind-virtual-accelerator-configure]
|
||||
requires: [6wind-virtual-accelerator-setup-repo]
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/install_va.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3600
|
||||
|
||||
- id: 6wind-virtual-accelerator-configure
|
||||
type: puppet
|
||||
groups: [6wind-virtual-accelerator]
|
||||
required_for: [6wind-virtual-accelerator]
|
||||
requires: [6wind-virtual-accelerator-install]
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/configure_va.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 240
|
||||
|
||||
- id: 6wind-virtual-accelerator-start
|
||||
type: puppet
|
||||
role: [6wind-virtual-accelerator]
|
||||
required_for: [post_deployment_end]
|
||||
requires: [6wind-virtual-accelerator-nova-conf]
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/start_va.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3600
|
||||
|
||||
- id: 6wind-virtual-accelerator-neutron-conf-compute
|
||||
type: puppet
|
||||
role: [6wind-virtual-accelerator]
|
||||
required_for: [6wind-virtual-accelerator-start]
|
||||
requires: [post_deployment_start]
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/neutron_conf_compute.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3600
|
||||
|
||||
- id: 6wind-virtual-accelerator-neutron-conf-controller
|
||||
type: puppet
|
||||
role: [primary-controller]
|
||||
required_for: [post_deployment_end]
|
||||
requires: [post_deployment_start]
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/neutron_conf_controller.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3600
|
||||
|
||||
- id: 6wind-virtual-accelerator-nova-conf
|
||||
type: puppet
|
||||
role: [6wind-virtual-accelerator]
|
||||
required_for: [6wind-virtual-accelerator-start]
|
||||
requires: [enable_nova_compute_service, 6wind-virtual-accelerator-configure]
|
||||
parameters:
|
||||
puppet_manifest: puppet/manifests/nova_conf.pp
|
||||
puppet_modules: puppet/modules:/etc/puppet/modules
|
||||
timeout: 3600
|
178
doc/Makefile
|
@ -1,178 +0,0 @@
|
|||
# Makefile for Sphinx documentation
|
||||
# Copy of Mirantis example (https://github.com/openstack/fuel-plugin-openbook/blob/7.0/doc/Makefile)
|
||||
|
||||
# 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 clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
|
||||
|
||||
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 " 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)"
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILDDIR)/*
|
||||
|
||||
html:
|
||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
||||
|
||||
dirhtml:
|
||||
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
||||
|
||||
singlehtml:
|
||||
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
||||
|
||||
pickle:
|
||||
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
||||
@echo
|
||||
@echo "Build finished; now you can process the pickle files."
|
||||
|
||||
json:
|
||||
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
||||
@echo
|
||||
@echo "Build finished; now you can process the JSON files."
|
||||
|
||||
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."
|
||||
|
||||
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/fuel-plugin-openbook.qhcp"
|
||||
@echo "To view the help file:"
|
||||
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/fuel-plugin-openbook.qhc"
|
||||
|
||||
devhelp:
|
||||
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
||||
@echo
|
||||
@echo "Build finished."
|
||||
@echo "To view the help file:"
|
||||
@echo "# mkdir -p $$HOME/.local/share/devhelp/fuel-plugin-openbook"
|
||||
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/fuel-plugin-openbook"
|
||||
@echo "# devhelp"
|
||||
|
||||
epub:
|
||||
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
||||
@echo
|
||||
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
||||
|
||||
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)."
|
||||
|
||||
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."
|
||||
|
||||
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."
|
||||
|
||||
text:
|
||||
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
||||
@echo
|
||||
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
||||
|
||||
man:
|
||||
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
||||
@echo
|
||||
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
||||
|
||||
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)."
|
||||
|
||||
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."
|
||||
|
||||
gettext:
|
||||
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
||||
@echo
|
||||
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
||||
|
||||
changes:
|
||||
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
||||
@echo
|
||||
@echo "The overview file is in $(BUILDDIR)/changes."
|
||||
|
||||
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."
|
||||
|
||||
doctest:
|
||||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
||||
@echo "Testing of doctests in the sources finished, look at the " \
|
||||
"results in $(BUILDDIR)/doctest/output.txt."
|
||||
|
||||
xml:
|
||||
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
|
||||
@echo
|
||||
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
|
||||
|
||||
pseudoxml:
|
||||
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
|
||||
@echo
|
||||
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
Appendix
|
||||
========
|
||||
|
||||
#. `6WIND Virtual Accelerator overview <http://www.6wind.com/products/6wind-virtual-accelerator/>`_
|
|
@ -1,343 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# fuel-plugin-openbook documentation build configuration file, created by
|
||||
# sphinx-quickstart on Wed Oct 7 12:48:35 2015.
|
||||
#
|
||||
# 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.todo',
|
||||
# 'sphinx.ext.coverage',
|
||||
]
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# The suffix of source filenames.
|
||||
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'The 6WIND Virtual Accelerator plugin for Fuel'
|
||||
copyright = u'2016, 6WIND SA.'
|
||||
|
||||
# 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 1.0-1.0.0-1 version.
|
||||
version = '3.0'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '3.0-3.0.1-1'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#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
|
||||
|
||||
|
||||
# -- 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 = 'default'
|
||||
|
||||
# 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 (within the static path) to use as 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
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'fuel-plugin-6wind-virtual-accelerator'
|
||||
|
||||
|
||||
# -- 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': '',
|
||||
}
|
||||
|
||||
# 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 = [
|
||||
('index', 'fuel-plugin-6wind-va.tex', u'The 6WIND Virtual Accelerator Plugin for Fuel Documentation',
|
||||
u'6WIND SA', '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 = [
|
||||
('index', 'fuel-plugin-6wind-va', u'Guide to the 6WIND Virtual Accelerator Plugin ver. 1.0-1.0.0-1 for Fuel',
|
||||
[u'6WIND SA'], 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 = [
|
||||
('index', 'fuel-plugin-6wind-va', u'The 6WIND Virtual Accelerator Plugin for Fuel Documentation',
|
||||
u'6WIND SA', 'fuel-plugin-6wind-va', 'The 6WIND Virtual Accelerator Plugin for Fuel Documentation',
|
||||
'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
|
||||
|
||||
|
||||
|
||||
# -- Options for Epub output ----------------------------------------------
|
||||
|
||||
# Bibliographic Dublin Core info.
|
||||
epub_title = u'The 6WIND Virtual Accelerator Plugin for Fuel'
|
||||
epub_author = u'6WIND SA'
|
||||
epub_publisher = u'6WIND SA'
|
||||
epub_copyright = u'2016, 6WIND SA'
|
||||
|
||||
# The basename for the epub file. It defaults to the project name.
|
||||
#epub_basename = u'fuel-plugin-openbook'
|
||||
|
||||
# The HTML theme for the epub output. Since the default themes are not optimized
|
||||
# for small screen space, using the same theme for HTML and epub output is
|
||||
# usually not wise. This defaults to 'epub', a theme designed to save visual
|
||||
# space.
|
||||
#epub_theme = 'epub'
|
||||
|
||||
# The language of the text. It defaults to the language option
|
||||
# or en if the language is not set.
|
||||
#epub_language = ''
|
||||
|
||||
# The scheme of the identifier. Typical schemes are ISBN or URL.
|
||||
#epub_scheme = ''
|
||||
|
||||
# The unique identifier of the text. This can be a ISBN number
|
||||
# or the project homepage.
|
||||
#epub_identifier = ''
|
||||
|
||||
# A unique identification for the text.
|
||||
#epub_uid = ''
|
||||
|
||||
# A tuple containing the cover image and cover page html template filenames.
|
||||
#epub_cover = ()
|
||||
|
||||
# A sequence of (type, uri, title) tuples for the guide element of content.opf.
|
||||
#epub_guide = ()
|
||||
|
||||
# HTML files that should be inserted before the pages created by sphinx.
|
||||
# The format is a list of tuples containing the path and title.
|
||||
#epub_pre_files = []
|
||||
|
||||
# HTML files shat should be inserted after the pages created by sphinx.
|
||||
# The format is a list of tuples containing the path and title.
|
||||
#epub_post_files = []
|
||||
|
||||
# A list of files that should not be packed into the epub file.
|
||||
epub_exclude_files = ['search.html']
|
||||
|
||||
# The depth of the table of contents in toc.ncx.
|
||||
#epub_tocdepth = 3
|
||||
|
||||
# Allow duplicate toc entries.
|
||||
#epub_tocdup = True
|
||||
|
||||
# Choose between 'default' and 'includehidden'.
|
||||
#epub_tocscope = 'default'
|
||||
|
||||
# Fix unsupported image types using the PIL.
|
||||
#epub_fix_images = False
|
||||
|
||||
# Scale large images.
|
||||
#epub_max_image_width = 0
|
||||
|
||||
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
||||
#epub_show_urls = 'inline'
|
||||
|
||||
# If false, no index is generated.
|
||||
#epub_use_index = True
|
Before Width: | Height: | Size: 83 KiB |
Before Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 89 KiB |
|
@ -1,15 +0,0 @@
|
|||
.. _fuel-plugin-6wind-virtual-accelerator:
|
||||
|
||||
Guide to the 6WIND Virtual Accelerator plugin for Fuel 9.0
|
||||
==========================================================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:numbered:
|
||||
|
||||
introduction
|
||||
release_notes
|
||||
limitations
|
||||
installation
|
||||
user-guide
|
||||
appendix
|
|
@ -1,156 +0,0 @@
|
|||
Installation Guide
|
||||
==================
|
||||
|
||||
Prerequisites
|
||||
-------------
|
||||
|
||||
This guide assumes that you have `installed Fuel <http://docs.openstack.org/developer/fuel-docs/userdocs/fuel-install-guide.html>`_
|
||||
and all the nodes of your future environment are discovered and functional.
|
||||
Note, the 6WIND Virtual Accelerator Fuel plugin will download virtual
|
||||
accelerator packages from a remote repository. Make sure that nodes can correctly
|
||||
reach Internet.
|
||||
|
||||
To correctly deploy the 6WIND Virtual Accelerator Fuel plugin you will need
|
||||
a credentials package (in base64 format).
|
||||
|
||||
If you have already purchased 6WIND software you should have this package,
|
||||
otherwise contact 6WIND support team.
|
||||
On the other hand, if you just want to evaluate the 6WIND Virtual Accelerator
|
||||
you still need to `contact 6WIND <http://www.6wind.com/company-profile/contact-us/>`_.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
This plugin is intended to be installed on nodes running Fuel 9.0 (version 9.0.0)
|
||||
Verify this typing the following command:
|
||||
::
|
||||
|
||||
fuel --version
|
||||
|
||||
In order to correctly install the 6WIND Virtual Accelerator plugin on Fuel
|
||||
compute(s) the following requirements are mandatory:
|
||||
|
||||
#. Use KVM as hypervisor virtualization driver
|
||||
#. Deploy on compute node(s) with **at least 4GB of RAM and 2 CPU cores**
|
||||
#. Internet connectivity on Master node (since the plugin will download software from 6WIND remote repositories)
|
||||
|
||||
This version of plugin supports VLAN and VxLAN as networking tunneling option.
|
||||
|
||||
The 6WIND Virtual Accelerator needs qemu and libvirt supporting vhostuser and
|
||||
multiqueue features to correclty run its fast packet processing stack.
|
||||
In particular on the compute nodes the following packages are needed:
|
||||
|
||||
#. libvirt-bin (1.3.1-1ubuntu6)
|
||||
#. qemu (2.5+dfsg-5ubuntu6)
|
||||
|
||||
Note that Mirantis official repositories do not provide these packages.
|
||||
For this reason the default behavior for the plugin is to retrieve the
|
||||
6WIND libvirt and qemu packages and replace the Mirantis ones in the early
|
||||
stages of deployment.
|
||||
|
||||
Fuel 9 provides an experimental support for builtin NFV features that enables
|
||||
some DPDK packages and OVS-DPDK. Because of some limitations of this
|
||||
experimental support, make sure to keep the default Fuel setup that does not
|
||||
enable NFV features. The 6WIND Virtual Accelerator Plugin will enable such
|
||||
features.
|
||||
|
||||
Once these limitations will be fixed, the 6WIND Virtual Accelerator Plugin
|
||||
will still be available and able to leverage the Fuel 9 NFV capabilities.
|
||||
|
||||
On the master node open the ``/etc/fuel/astute.yaml`` file and verify that
|
||||
the ``features_group`` section does not contain ``experimental``.
|
||||
|
||||
Installing 6WIND Virtual Accelerator Plugin
|
||||
-------------------------------------------
|
||||
|
||||
#. Download 6WIND Virtual Accelerator plugin from the `Fuel Plugins Catalog <https://software.mirantis.com/download-mirantis-openstack-fuel-plug-ins/>`_.
|
||||
#. Copy the downloaded rpm to the Fuel Master node:
|
||||
::
|
||||
|
||||
scp 6wind-virtual-accelerator-3.0-3.0.1-1.noarch.rpm <Fuel Master node ip>:/tmp/
|
||||
|
||||
#. Log into the Fuel Master node and install the plugin
|
||||
::
|
||||
|
||||
ssh <the Fuel Master node ip>
|
||||
fuel plugins --install /tmp/6wind-virtual-accelerator-3.0-3.0.1-1.noarch.rpm
|
||||
|
||||
#. Now verify that the plugin is correctly installed
|
||||
::
|
||||
|
||||
fuel plugins
|
||||
3 | 6wind-virtual-accelerator | 3.0.1 | 4.0.0
|
||||
|
||||
..
|
||||
|
||||
|
||||
Configuring 6WIND Virtual Accelerator Plugin
|
||||
--------------------------------------------
|
||||
|
||||
#. First you have to `create environment <http://docs.openstack.org/developer/fuel-docs/userdocs/fuel-user-guide/create-environment.html>`_ in Fuel Web UI.
|
||||
|
||||
.. image:: images/name_release.png
|
||||
:width: 70%
|
||||
|
||||
#. Please select QEMU-KVM hypervisor type for your environment.
|
||||
|
||||
.. image:: images/hypervisor.png
|
||||
:width: 80%
|
||||
|
||||
#. Please select Neutron networking.
|
||||
The 6WIND Virtual Accelerator supports VLAN and VxLAN segmentation.
|
||||
|
||||
.. image:: images/network.png
|
||||
:width: 80%
|
||||
|
||||
#. Select KVM as compute hypervisor type in the Fuel Settings tab
|
||||
|
||||
.. image:: images/kvm.png
|
||||
:width: 90%
|
||||
|
||||
#. Activate the plugin in the Fuel Settings tab (Compute section)
|
||||
|
||||
.. image:: images/activation.png
|
||||
:width: 90%
|
||||
|
||||
#. Configure fields with correct values:
|
||||
|
||||
* Provide base64 credentials package you received from 6WIND support team
|
||||
|
||||
* Provide the license file to be used for 6WIND Virtual Accelerator
|
||||
activation
|
||||
|
||||
* Specify the 6WIND Virtual Accelerator version you want to install.
|
||||
You can keep the 'stable' default value if you want the latest
|
||||
version, otherwise specify an explicit value (eg. 1.4).
|
||||
Remember to use **at least version 1.4** for Fuel 9.
|
||||
|
||||
* Refer to next chapter for the description of Advanced Paramaters fields
|
||||
and how to enable support for Mellanox NICs.
|
||||
|
||||
#. Add nodes and assign them the following roles:
|
||||
|
||||
* At least 1 Controller
|
||||
|
||||
* At least one node with both Compute and 6WIND Virtual Accelerator roles.
|
||||
Make sure that the chosen node has **at least 2 CPU cores and 6 GB of RAM**
|
||||
|
||||
.. image:: images/node-roles.png
|
||||
:width: 100%
|
||||
|
||||
* When KVM is enabled it is possible to configure Hugepages and
|
||||
CPU pinning on machines in the Node Attributes section (that will
|
||||
show up when clicking on the small wheel image).
|
||||
Plase leave these fields empty since the 6WIND Virtual Accelerator
|
||||
will automatically compute the best possible configuration for you.
|
||||
|
||||
|
||||
#. Verify nodes network connectivity (in the Fuel Web UI Network tab)
|
||||
|
||||
.. image:: images/connectivity.png
|
||||
:width: 100%
|
||||
|
||||
#. Press **Deploy changes** to `deploy the environment <http://docs.openstack.org/developer/fuel-docs/userdocs/fuel-user-guide/deploy-environment.html>`_.
|
||||
|
||||
|
||||
|
|
@ -1,133 +0,0 @@
|
|||
Introduction
|
||||
============
|
||||
|
||||
This document contains instructions for installing and configuring 6WIND Virtual
|
||||
Accelerator plugin for Fuel.
|
||||
|
||||
Key terms, acronyms and abbreviations
|
||||
-------------------------------------
|
||||
|
||||
+---------------------------+---------------------------+
|
||||
| 6WIND Virtual Accelerator | |
|
||||
| | |
|
||||
+---------------------------+---------------------------+
|
||||
| VA | 6WIND Virtual Accelerator |
|
||||
+---------------------------+---------------------------+
|
||||
| MOS | Mirantis Openstack |
|
||||
+---------------------------+---------------------------+
|
||||
|
||||
Overview
|
||||
--------
|
||||
|
||||
.. |va| replace:: Virtual Accelerator
|
||||
.. |6w| replace:: 6WIND
|
||||
.. |6Wg| replace:: 6WIND Gate
|
||||
|
||||
|va| is a product of the |6w| speed series that provides packet processing
|
||||
acceleration for virtual network infrastructures.
|
||||
|
||||
|va| runs inside the hypervisor and removes the performance bottlenecks by
|
||||
offloading virtual switching from the networking stack. The cpu resources
|
||||
necessary for packet processing are drastically reduced, so that less cores are
|
||||
required to process network traffic at higher rates and Linux stability is
|
||||
increased.
|
||||
|
||||
In addition to simple virtual switching (using OVS or the Linux bridge), |va|
|
||||
supports an extensive set of networking protocols to provide a complete virtual
|
||||
networking infrastructure.
|
||||
|
||||
|va| is fully integrated with Linux and its environment, so that existing Linux
|
||||
applications do not need to be modified to benefit from packet processing
|
||||
acceleration.
|
||||
|
||||
|va| is available for Intel x86-based servers and supports major Linux
|
||||
distributions.
|
||||
|
||||
|va| is provided in three flavors according to the required feature set:
|
||||
|
||||
- baseline: simple virtual switching and ip forwarding
|
||||
- L3: baseline + advanced L3 features such as vrf, filtering and nat
|
||||
- ipsec: L3 + ipsec features
|
||||
|
||||
Features
|
||||
--------
|
||||
|
||||
.. rubric:: High performance I/Os leveraging dpdk, with multi-vendor nic support
|
||||
from Intel, Mellanox and Emulex
|
||||
|
||||
- Intel 10G/40G XL710
|
||||
- Intel 10G 82598, 82599, X540
|
||||
- Mellanox 10G/40G ConnectX®-3 EN and ConnectX®-3 Pro EN series
|
||||
- Mellanox 10G/25G/50G/100G ConnectX®-4 EN and ConnectX®-4 Lx EN series
|
||||
- Emulex 10G/40G OneConnect® OCe14000 family
|
||||
- Intel 1G 82575, 82576, 82580, I210, I211, I350, I354
|
||||
|
||||
.. rubric:: High performance virtual switching
|
||||
|
||||
- OVS acceleration
|
||||
- Linux Bridge
|
||||
|
||||
.. rubric:: High performance virtual networking
|
||||
|
||||
In addition to virtual switching, |va| supports a complete set of networking
|
||||
protocols, based on the |6wg| technology, that can be used to design
|
||||
innovative virtual networking infrastructures.
|
||||
|
||||
- |va| baseline
|
||||
|
||||
- Forwarding (ipv4 and ipv6)
|
||||
- vxlan
|
||||
- vlan
|
||||
- gre
|
||||
- Linux bridge filtering
|
||||
|
||||
- |va| L3
|
||||
|
||||
- vrf
|
||||
- Filtering (ipv4 and ipv6)
|
||||
- nat
|
||||
- Tunneling (IPinIP)
|
||||
|
||||
- |va| ipsec
|
||||
|
||||
- Intel Multi-Buffer and QuickAssist crypto
|
||||
- ipsec (ipv4 and ipv6)
|
||||
- ike (v1 and v2)
|
||||
|
||||
.. rubric:: Support of standard Virtio drivers
|
||||
|
||||
|va| comes with a high performance Virtio back-end driver for communication
|
||||
with any guest running Virtio front-end drivers (can be based on dpdk, Linux,
|
||||
or other OSes).
|
||||
|
||||
.. rubric:: Seamless integration with management and orchestration tools
|
||||
|
||||
|va| is fully integrated with Linux and its environment, so that existing Linux
|
||||
applications do not need to be modified to benefit from packet processing
|
||||
acceleration. Standard Linux APIs are preserved, including iproute2, iptables,
|
||||
brctl, ovs-ofctl, ovs-vsctl, etc.
|
||||
|
||||
|va| is also validated with the Mirantis Openstack cloud operating system:
|
||||
|
||||
- Supports Mirantis Openstack 9.0
|
||||
|
||||
Supported platforms
|
||||
-------------------
|
||||
|
||||
|va| is provided as a set of binary packages and is validated on the following
|
||||
distributions:
|
||||
|
||||
- ubuntu-14.04
|
||||
- redhat-7
|
||||
- centos-7
|
||||
|
||||
.. seealso:: Refer to the |va| Release Notes for detailed information about the
|
||||
latest validated versions of the Linux distributions.
|
||||
|
||||
|
||||
Licensing information
|
||||
---------------------
|
||||
|
||||
+---------------------------+------------+
|
||||
| 6WIND Virtual Accelerator | Commercial |
|
||||
+---------------------------+------------+
|
|
@ -1,7 +0,0 @@
|
|||
Limitations
|
||||
===========
|
||||
|
||||
* Plugin only supports KVM as hypervisor
|
||||
|
||||
* Nodes using 6WIND Virtual Accelerator role needs at least 2 CPU cores and
|
||||
6 GB of RAM
|
|
@ -1,16 +0,0 @@
|
|||
Release Notes
|
||||
=============
|
||||
|
||||
Version 3.0.1
|
||||
-------------
|
||||
|
||||
* Support for Fuel 9.1
|
||||
* Plugin configuration moved to Settings/Compute section
|
||||
* Removed option to enable/disable ipset for neutron security groups
|
||||
* Added option to enable/disable neutron security groups
|
||||
|
||||
Version 3.0.0
|
||||
-------------
|
||||
|
||||
* Support for Fuel 9.0
|
||||
|
|
@ -1,201 +0,0 @@
|
|||
User Guide
|
||||
==========
|
||||
|
||||
This section provides a deeper explanation of plugin parameters and a description
|
||||
of required steps to verify that everything is working fine after deployment.
|
||||
|
||||
Note that this User Guide provides information on 6WIND Virtual Accelerator
|
||||
plugin for Fuel (and not on the 6WIND Virtual Accelerator software itself).
|
||||
`Contact 6WIND <http://www.6wind.com/company-profile/contact-us/>`_
|
||||
to obtain more details on how to retrieve the Virtual Accelerator software and
|
||||
its documentation.
|
||||
|
||||
When configuring the 6WIND Virtual Accelerator Fuel plugin, you have to provide
|
||||
credentials for Virtual Accelerator software download.
|
||||
The plugin will then install and run the Virtual Accelerator using its default
|
||||
configuration values.
|
||||
|
||||
Enable 6WIND Virtual Accelerator addon for Mellanox
|
||||
---------------------------------------------------
|
||||
|
||||
If your compute nodes use Mellanox NICs you should install the additional 6WIND
|
||||
Virtual Accelerator module. This task is possible using the
|
||||
**Enable Mellanox NICs support** checkbox in the Web UI.
|
||||
|
||||
Thanks to this addon, the Virtual Accelerator will be able to automatically
|
||||
detect and configure these NICs to support the 6WIND network stack.
|
||||
|
||||
Configuring 6WIND Virtual Accelerator parameters
|
||||
------------------------------------------------
|
||||
|
||||
The 6WIND Virtual Accelerator plugin makes possible to modify these default
|
||||
configuration parameters before deployment.
|
||||
In order to do this you need to activate the **Advanced parameters** checkbox
|
||||
in the 6WIND Virtual Accelerator Fuel plugin sub-section in the Web UI Settings
|
||||
tab (Compute section).
|
||||
|
||||
.. image:: images/advanced.png
|
||||
:width: 100%
|
||||
|
||||
At this point some additional fields will show up and you will be able to edit
|
||||
with your desired values.
|
||||
|
||||
In particular you can modify the following:
|
||||
|
||||
* `FP_MEMORY`
|
||||
|
||||
This parameter defines the amount of memory (in MB) you want to reserve
|
||||
for Virtual Accelerator. Sample values are 1024, 512 or 'auto'.
|
||||
|
||||
* `VM_MEMORY`
|
||||
|
||||
This parameter defines the total amount of memory (in MB) you want to
|
||||
reserve for accelerated virtual machines.
|
||||
Sample values are 2048, 4096, 'auto'.
|
||||
|
||||
For all these parameters you can always set value to 'auto' (default value).
|
||||
In this case the plugin will compute the most suitable value according to
|
||||
your system resources.
|
||||
|
||||
|
||||
In some cases you may already have a Virtual Accelerator configuration file.
|
||||
You can upload it to the nodes having the 6WIND Virtual Accelerator role enabled
|
||||
using the dedicated `External configuration file for VA` field.
|
||||
Note, this file will replace the default Virtual Accelerator configuration file
|
||||
and overload all the defined configuration paramaters.
|
||||
|
||||
It is **strongly recommended** to provide a license file if you have one.
|
||||
Without license the plugin will still correclty install the
|
||||
6WIND Virtual Accelerator but it will run in evaluation mode (48 hours).
|
||||
At the end of the evaluation period you will experience significant performance
|
||||
degradation and loss of connectivity for your instances since there will be
|
||||
nomore any hugepages backing.
|
||||
|
||||
Use updated libvirt and qemu packages
|
||||
-------------------------------------
|
||||
|
||||
As briefly described in the installation section, in order to correctly spawn
|
||||
virtual machines using the accelerated network stack 6WIND Virtual Accelerator
|
||||
provides, the compute nodes need to run recent versions of libvirt and qemu
|
||||
packages.
|
||||
|
||||
|
||||
By default the 6WIND Virtual Accelerator Fuel plugin retrieves and installs
|
||||
its updated libvirt and qemu packages from a remote repository maintained by 6WIND.
|
||||
It is possible to force the plugin to keep the default libvirt and qemu packages
|
||||
provided by the Linux distribution.
|
||||
|
||||
|
||||
To do this simply unselect the **Use updated external packages** checkbox.
|
||||
Note, default libvirt and qemu packages on MOS 9.0 do not have all the features
|
||||
required for proper 6WIND Virtual Accelerator integration. Thus we strongly
|
||||
advise to keep the **Use updated external packages** enabled.
|
||||
|
||||
Use cpu host emulation for guests
|
||||
---------------------------------
|
||||
|
||||
Openstack makes possible to launch instances that emulate compute physical
|
||||
(or virtual) CPU. In order to that libvirt should be configured accordingly
|
||||
via the Nova configuration file.
|
||||
|
||||
This plugin offers the possibility to enable/disable such configuration in Nova
|
||||
with a specific option (`Host cpu emulation for guests`) in the advanced
|
||||
parameters.
|
||||
|
||||
Disable security groups
|
||||
-----------------------
|
||||
|
||||
By default Fuel installs Openstack with security groups active to enable
|
||||
traffic filtering between virtual machines.
|
||||
In many cases (including NFV) such filtering is not really necessary
|
||||
and it heavily affects vm to vm traffic performances.
|
||||
|
||||
6WIND Virtual Accelerator Fuel plugin makes possible to disable such
|
||||
security group configuration in both Nova/Neutron via the specific option
|
||||
(`Disable neutron securty groups`) in the advanced parameters.
|
||||
|
||||
Configure hugepages support for virtual machines
|
||||
------------------------------------------------
|
||||
|
||||
In order to benefit from 6WIND Virtual Accelerator high performance networking,
|
||||
hugepages support needs to be enabled in Nova flavors.
|
||||
The plugin does not perform this configuration since it should be still
|
||||
possible to spawn virtual machines that don't need network acceleration.
|
||||
|
||||
For this reason end-users have to explicitly configure the Nova flavors they
|
||||
want to use when launching virtual machines for fast networking.
|
||||
In order to that it is enough to enable hugepages support in the desired Nova
|
||||
flavor.
|
||||
|
||||
On the controller node type the following command to configure a given flavor:
|
||||
|
||||
::
|
||||
|
||||
nova flavor-key flavor set hw:mem_page_size=large
|
||||
|
||||
Sanity checks after deployment
|
||||
------------------------------
|
||||
|
||||
The installation section of this document described how to correctly start a
|
||||
Fuel deployment using the 6WIND Virtual Accelerator plugin.
|
||||
At the end of this process the 6WIND Virtual Accelerator and its dependent
|
||||
components should be all up and running.
|
||||
|
||||
As first step make sure that the system uses the proper libvirt and qemu
|
||||
versions.
|
||||
|
||||
#. Check libvirt version (should be **1.3.1-1ubuntu6**)
|
||||
|
||||
::
|
||||
|
||||
aptitude show libvirt-bin | grep Version
|
||||
|
||||
#. Check qemu version (should be **2.5+dfsg-5ubuntu6**)
|
||||
|
||||
::
|
||||
|
||||
aptitude show qemu-system-x86 | grep Version
|
||||
|
||||
The next step is checking that the 6WIND Virtual Accelerator software and
|
||||
its Openstack extensions have been correctly installed.
|
||||
|
||||
#. Check 6WIND Virtual Accelerator package status (should be **State: installed**)
|
||||
|
||||
::
|
||||
|
||||
aptitude show virtual-accelerator | grep State
|
||||
|
||||
#. Check 6WIND openstack extensions package status (should be **State: installed**)
|
||||
|
||||
::
|
||||
|
||||
aptitude show 6wind-openstack-extensions | grep State
|
||||
|
||||
|
||||
If this check is successful, verify that that ALL the following services are
|
||||
correctly running (each of them should be **start/running**):
|
||||
|
||||
::
|
||||
|
||||
service virtual-accelerator status
|
||||
service openvswitch-switch status
|
||||
service neutron-openvswitch-agent status
|
||||
service libvirtd status
|
||||
service nova-compute status
|
||||
|
||||
If some of the services are not properly running, please restart ALL of them
|
||||
in the same order used before for their status check.
|
||||
Otherwise if everything is active you should be able to correctly spawn
|
||||
virtual machines.
|
||||
To do that please refer to `6WIND Openstack extensions official documentation <http://www.6wind.com/company-profile/contact-us/>`_.
|
||||
|
||||
Known issues
|
||||
============
|
||||
|
||||
The current implementation of the 6WIND Virtual Accelerator plugin uses a credentials
|
||||
package in base64 format for 6WIND software download.
|
||||
This behavior should be replaced using a regular credentials package instead of
|
||||
its base64 encoding.
|
||||
Unfortunately a bug in Fuel (affecting 7.0, 8.0 and 9.0) does not make
|
||||
possible to correctly retrieve this package from the upload utility.
|
||||
`<https://bugs.launchpad.net/fuel/+bug/1545795>`_
|
|
@ -1,119 +0,0 @@
|
|||
attributes:
|
||||
|
||||
metadata:
|
||||
group: 'compute'
|
||||
restrictions:
|
||||
- condition: "settings:common.libvirt_type.value != 'kvm'"
|
||||
message: "KVM needs to be chosen as hypervisor"
|
||||
|
||||
credentials_package:
|
||||
value: ''
|
||||
label: 'Credentials package'
|
||||
description: 'base64 credentials file'
|
||||
weight: 20
|
||||
type: "file"
|
||||
|
||||
va_license_file:
|
||||
value: ''
|
||||
label: "License File"
|
||||
description: "(optional) license file used to activate VA"
|
||||
weight: 30
|
||||
type: "file"
|
||||
|
||||
va_version:
|
||||
value: 'stable'
|
||||
label: 'Product branch'
|
||||
description: 'defines the Virtual Accelerator version to be installed (in 1.x format)'
|
||||
weight: 32
|
||||
type: "text"
|
||||
restrictions:
|
||||
- condition: "settings:6wind-virtual-accelerator.credentials_package.value == ''"
|
||||
message: "Provide a credentials package"
|
||||
|
||||
mellanox_support:
|
||||
value: false
|
||||
label: "Enable Mellanox NICs support"
|
||||
description: "Installs 6WIND Virtual Accelerator addon to support Mellanox NICs"
|
||||
weight: 35
|
||||
type: "checkbox"
|
||||
|
||||
advanced_params_enabled:
|
||||
value: false
|
||||
label: "Advanced Parameters"
|
||||
description: "Enables configuration of advanced parameters"
|
||||
weight: 36
|
||||
type: "checkbox"
|
||||
|
||||
fp_mem:
|
||||
value: 'auto'
|
||||
label: 'FP_MEMORY'
|
||||
description: 'defines the amount of memory used by Virtual Accelerator (in MB)'
|
||||
weight: 40
|
||||
type: "text"
|
||||
restrictions:
|
||||
- condition: "settings:6wind-virtual-accelerator.advanced_params_enabled.value == false"
|
||||
action: hide
|
||||
|
||||
vm_mem:
|
||||
value: 'auto'
|
||||
label: 'VM_MEMORY'
|
||||
description: 'defines the amount of memory available for accelerated vms (in MB)'
|
||||
weight: 40
|
||||
type: "text"
|
||||
restrictions:
|
||||
- condition: "settings:6wind-virtual-accelerator.advanced_params_enabled.value == false"
|
||||
action: hide
|
||||
|
||||
va_conf_file:
|
||||
value: ''
|
||||
label: 'External configuration file for VA'
|
||||
description: '(optional) specify external configuration file for starting VA'
|
||||
weight: 50
|
||||
type: "file"
|
||||
restrictions:
|
||||
- condition: "settings:6wind-virtual-accelerator.advanced_params_enabled.value == false"
|
||||
action: hide
|
||||
|
||||
ext_pack:
|
||||
value: true
|
||||
label: 'Use updated external packages'
|
||||
description: 'Specify if need to use most uptodate external packages (libvirtd, qemu)'
|
||||
weight: 70
|
||||
type: "checkbox"
|
||||
restrictions:
|
||||
- condition: "settings:6wind-virtual-accelerator.advanced_params_enabled.value == false"
|
||||
action: hide
|
||||
|
||||
enable_host_cpu:
|
||||
value: false
|
||||
label: 'Host cpu emulation for guests'
|
||||
description: 'Set/unset host cpu emulation for guests'
|
||||
weight: 75
|
||||
type: "checkbox"
|
||||
restrictions:
|
||||
- condition: "settings:6wind-virtual-accelerator.advanced_params_enabled.value == false"
|
||||
action: hide
|
||||
|
||||
disable_secgroup:
|
||||
value: false
|
||||
label: 'Disable neutron security groups'
|
||||
description: 'Enable/disable security groups for some cases such as NFV'
|
||||
weight: 76
|
||||
type: "checkbox"
|
||||
restrictions:
|
||||
- condition: "settings:6wind-virtual-accelerator.advanced_params_enabled.value == false"
|
||||
action: hide
|
||||
|
||||
infos:
|
||||
weight: 90
|
||||
type: "hidden"
|
||||
value: true
|
||||
label: "Important notes:"
|
||||
description: "Before changing default settings for Virtual Accelerator, please have a look at
|
||||
6WIND's Virtual Accelerator online documentation for applicable values:\n
|
||||
Product description: http://www.6wind.com/products/6wind-virtual-accelerator/\n
|
||||
User Guide: http://www.6wind.com/products/6wind-virtual-accelerator/\n"
|
||||
|
||||
restrictions:
|
||||
- condition: "settings:6wind-virtual-accelerator.advanced_params_enabled.value == false"
|
||||
action: hide
|
|
@ -1,34 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
# Plugin name
|
||||
name: 6wind-virtual-accelerator
|
||||
# Human-readable name for your plugin
|
||||
title: 6WIND Virtual Accelerator Fuel plugin
|
||||
# Plugin version
|
||||
version: '3.0.1'
|
||||
# Description
|
||||
description: Enable use of 6WIND Virtual Accelerator plugin for Neutron
|
||||
# Required Fuel version
|
||||
fuel_version: ['9.0']
|
||||
# Specify license of your plugin
|
||||
licenses: ['Apache License Version 2.0']
|
||||
# Specify author or company name
|
||||
authors: ['6WIND']
|
||||
# A link to the plugin's page
|
||||
homepage: 'https://github.com/openstack/fuel-plugin-6wind-virtual-accelerator'
|
||||
# Specify a group which your plugin implements, possible options:
|
||||
# network, storage, storage::cinder, storage::glance, hypervisor
|
||||
groups: [network]
|
||||
|
||||
# The plugin is compatible with releases in the list
|
||||
releases:
|
||||
- os: ubuntu
|
||||
version: mitaka-9.0
|
||||
mode: ['ha']
|
||||
deployment_scripts_path: deployment_scripts/
|
||||
repository_path: repositories/ubuntu
|
||||
|
||||
# Version of plugin package
|
||||
package_version: '4.0.0'
|
||||
is_hotpluggable: false
|
|
@ -1,21 +0,0 @@
|
|||
#
|
||||
# Copyright 2016 6WIND S.A.
|
||||
|
||||
6wind-virtual-accelerator:
|
||||
# Role name
|
||||
name: "6WIND Virtual Accelerator"
|
||||
# Role description
|
||||
description: "6WIND Virtual Accelerator"
|
||||
# If primaty then during orchestration this role will be
|
||||
# splitted into primary-role and role
|
||||
has_primary: false
|
||||
# Assign public IP to node if true
|
||||
public_ip_required: false
|
||||
# Weight that will be used to sort out the
|
||||
# roles on the Fuel web UI
|
||||
weight: 1000
|
||||
conflicts:
|
||||
- controller
|
||||
- cinder
|
||||
- ceph-osd
|
||||
|
|
@ -1,134 +0,0 @@
|
|||
..
|
||||
This work is licensed under a Creative Commons Attribution 3.0 Unported
|
||||
License.
|
||||
|
||||
http://creativecommons.org/licenses/by/3.0/legalcode
|
||||
|
||||
======================================================
|
||||
Fuel Plugin for 6WIND Virtual Accelerator installation
|
||||
======================================================
|
||||
|
||||
The Fuel plugin for 6WIND Virtual Accelerator allows to install and integrate
|
||||
the Virtual Accelerator on desired nodes (compute) running Mirantis Openstack 9.0.
|
||||
|
||||
This plugin uses the Fuel pluggable architecture and it must be compatible with
|
||||
the version 9.0 of Mirantis OpenStack.
|
||||
|
||||
Problem description
|
||||
===================
|
||||
|
||||
|
||||
|
||||
Proposed change
|
||||
===============
|
||||
|
||||
Implement a Fuel plugin which will perform all the necessary steps to install
|
||||
and configure Mirantis OpenStack nodes to use the 6WIND Virtual Accelerator.
|
||||
|
||||
Alternatives
|
||||
------------
|
||||
|
||||
SR-IOV
|
||||
|
||||
Data model impact
|
||||
-----------------
|
||||
|
||||
None
|
||||
|
||||
REST API impact
|
||||
---------------
|
||||
|
||||
None
|
||||
|
||||
Upgrade impact
|
||||
--------------
|
||||
|
||||
When upgrading to newer versions of Mirantis Openstack, this plugin should be
|
||||
upgraded accordingly.
|
||||
|
||||
Security impact
|
||||
---------------
|
||||
|
||||
None. Nova security groups are still supported for deployed VMs on all compute
|
||||
nodes running 6WIND VA.
|
||||
|
||||
Notifications impact
|
||||
--------------------
|
||||
|
||||
None
|
||||
|
||||
Other end user impact
|
||||
---------------------
|
||||
|
||||
After plugin installation, the end user can enable it on the Setting tab of the
|
||||
Fuel web UI and customize plugin settings.
|
||||
|
||||
Performance Impact
|
||||
------------------
|
||||
|
||||
Other deployer impact
|
||||
---------------------
|
||||
|
||||
Developer impact
|
||||
----------------
|
||||
|
||||
Implementation
|
||||
==============
|
||||
|
||||
Assignee(s)
|
||||
-----------
|
||||
|
||||
Primary assignee:
|
||||
|
||||
- Francesco Santoro <francesco.santoro@6wind.com>
|
||||
|
||||
Other contributors:
|
||||
|
||||
- Samuel Gauthier <samuel.gauthier@6wind.com> - developer
|
||||
- Karim Mchirki <karim.mchirki@6wind.com> - developer
|
||||
|
||||
Work Items
|
||||
----------
|
||||
|
||||
* Create test environment (physical servers or KVM based vms)
|
||||
* Create Fuel plugin bundle (containing deployments scripts, puppet modules and
|
||||
metadata)
|
||||
* Implement puppet modules with the following functions:
|
||||
|
||||
- Retrieve 6WIND Virtual Accelerator software from repository
|
||||
- Eventually updates libvirt and qemu Mirantis Openstack packages on compute nodes
|
||||
- 6WIND Virtual Accelerator deployment on selected OpenStack nodes
|
||||
- Configure Mirantis Openstack to support 6WIND Virtual Accelerator
|
||||
|
||||
* Test 6WIND Virtual Accelerator plugin
|
||||
* Create Documentation
|
||||
|
||||
|
||||
Dependencies
|
||||
============
|
||||
|
||||
* Fuel 9.0
|
||||
* Hypervisor with KVM capability
|
||||
* Qemu with vhost-user and hugepage support
|
||||
|
||||
Testing
|
||||
=======
|
||||
|
||||
* Sanity checks including plugin build
|
||||
* Syntax check
|
||||
* Functional testing
|
||||
* Non-functional testing (Destructive and Negative)
|
||||
|
||||
Documentation Impact
|
||||
====================
|
||||
|
||||
* Deployment Guide (how to prepare environment for plugin installation and configuration before MOS deployment)
|
||||
* User Guide (list of features the plugin provides, how to customize them in the deployed MOS environment)
|
||||
* Test Plan
|
||||
* Test Report
|
||||
|
||||
References
|
||||
==========
|
||||
|
||||
* Fuel Plugins Guide https://wiki.openstack.org/wiki/Fuel/Plugins
|
||||
* 6WIND Virtual Accelerator product info http://www.6wind.com/products/6wind-virtual-accelerator/
|
|
@ -1,8 +0,0 @@
|
|||
.. Copyright 2016, 6WIND S.A.
|
||||
|
||||
Introduction
|
||||
============
|
||||
|
||||
This folder contains scripts to be used when testing the 6WIND Virtual Accelerator Fuel plugin.
|
||||
Please refer to TestPlan document for more details on how to use these scripts.
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
#cloud-config
|
||||
disable_root: false
|
||||
ssh_pwauth: True
|
||||
chpasswd:
|
||||
list: |
|
||||
root:root
|
||||
expire: False
|
||||
packages:
|
||||
- iperf
|
||||
runcmd:
|
||||
- sed -i -e '/^PermitRootLogin/s/^.*$/PermitRootLogin yes/' /etc/ssh/sshd_config
|
||||
- sed -i -e '/^#UseDNS/s/^.*$/UseDNS no/' /etc/ssh/sshd_config
|
||||
- sed -i -e '/^GSSAPIAuthentication/s/^.*$/GSSAPIAuthentication no/' /etc/ssh/sshd_config
|
||||
- restart ssh
|
||||
- systemctl restart sshd
|
||||
- iperf -s -p 6000 -D
|
|
@ -1,28 +0,0 @@
|
|||
# Copyright 2016 6WIND S.A.
|
||||
#
|
||||
#!/bin/bash
|
||||
|
||||
TAP_IFACE=$(ip link | grep tap | awk '{print $2}' | sed 's#:##' | tail -n1)
|
||||
|
||||
NB_TAP_PACKETS_BEFORE=$(cat /tmp/6WIND_va_nb_tap_before)
|
||||
NB_FP_VSWITCH_PACKETS_BEFORE=$(cat /tmp/6WIND_va_fp_vswitch_before)
|
||||
NB_EXCEPTIONS_BEFORE=$(cat /tmp/6WIND_va_nb_exc_before)
|
||||
|
||||
NB_TAP_PACKETS_AFTER=$(ethtool -S $TAP_IFACE | grep rx.good_packets | awk '{print $2}')
|
||||
NB_FP_VSWITCH_PACKETS_AFTER=$(fp-cli dump-stats | grep output_ok | sed 's#:# ##' | awk '{print $2}')
|
||||
NB_EXCEPTIONS_AFTER=$(fp-cli dump-stats | grep LocalBasicExceptions | sed 's#:# ##' | awk '{print $2}')
|
||||
|
||||
NB_TAP_PACKETS=$(expr $NB_TAP_PACKETS_AFTER - $NB_TAP_PACKETS_BEFORE)
|
||||
NB_FP_VSWITCH_PACKETS=$(expr $NB_FP_VSWITCH_PACKETS_AFTER - $NB_FP_VSWITCH_PACKETS_BEFORE)
|
||||
NB_EXCEPTIONS=$(expr $NB_EXCEPTIONS_AFTER - $NB_EXCEPTIONS_BEFORE)
|
||||
|
||||
# Here we verify 2 things.
|
||||
# The first check wants to assure that the packets received by the spawned vm
|
||||
# were processed by 6WIND Virtual Accelerator and not sent to slow path (exception).
|
||||
# The second check wants to assure that this traffic towards the vm correctly
|
||||
# passed via the accelerated ovs.
|
||||
# This is a simple heuristics but it should be enough.
|
||||
if [[ ${NB_EXCEPTIONS} -lt ${NB_TAP_PACKETS} && ${NB_TAP_PACKETS} -le ${NB_FP_VSWITCH_PACKETS} ]]; then
|
||||
exit 0
|
||||
fi
|
||||
exit 1
|
|
@ -1,14 +0,0 @@
|
|||
# Copyright 2016 6WIND S.A.
|
||||
#
|
||||
#!/bin/bash
|
||||
|
||||
TAP_IFACE=$(ip link | grep tap | awk '{print $2}' | sed 's#:##' | tail -n1)
|
||||
|
||||
NB_TAP_PACKETS_BEFORE=$(ethtool -S $TAP_IFACE | grep rx.good_packets | awk '{print $2}')
|
||||
NB_FP_VSWITCH_PACKETS_BEFORE=$(fp-cli dump-stats non-zero | grep output_ok | sed 's#:# ##' | awk '{print $2}')
|
||||
NB_EXCEPTIONS_BEFORE=$(fp-cli dump-stats non-zero | grep LocalBasicExceptions | sed 's#:# ##' | awk '{print $2}')
|
||||
|
||||
echo $NB_TAP_PACKETS_BEFORE > /tmp/6WIND_va_nb_tap_before
|
||||
echo $NB_FP_VSWITCH_PACKETS_BEFORE > /tmp/6WIND_va_fp_vswitch_before
|
||||
echo $NB_EXCEPTIONS_BEFORE > /tmp/6WIND_va_nb_exc_before
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
# Copyright 2016 6WIND S.A.
|
||||
#
|
||||
#!/bin/bash
|
||||
|
||||
TAP_IFACE=$(ip link | grep tap | awk '{print $2}' | sed 's#:##' | tail -n1)
|
||||
DRIVER=$(ethtool -i $TAP_IFACE | grep driver | awk '{print $2}')
|
||||
|
||||
if [[ ${DRIVER} -eq "dpvi" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
exit 1
|
|
@ -1,15 +0,0 @@
|
|||
# Copyright 2016 6WIND S.A.
|
||||
#
|
||||
#!/bin/bash
|
||||
|
||||
source openrc
|
||||
|
||||
glance image-delete ubuntu-cloud
|
||||
nova flavor-delete m1.vm_hugepages
|
||||
|
||||
STATUS=$(nova show test_vm | grep status | awk '{print $4}')
|
||||
if [[ ${STATUS} == "ACTIVE" ]] || [[ ${STATUS} == "ERROR" ]]; then
|
||||
nova delete test_vm
|
||||
fi
|
||||
nova secgroup-delete-rule default tcp 1 65535 0.0.0.0/0
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
# Copyright 2016 6WIND S.A.
|
||||
#
|
||||
#!/bin/bash
|
||||
|
||||
source openrc
|
||||
|
||||
FLOATING_IP=$(nova floating-ip-create admin_floating_net | grep admin_floating_net | tail -n1 | awk '{print $4}')
|
||||
|
||||
if [[ ! -z ${FLOATING_IP} ]]; then
|
||||
nova floating-ip-associate test_vm ${FLOATING_IP}
|
||||
nova secgroup-add-rule default tcp 1 65535 0.0.0.0/0
|
||||
fi
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
# Copyright 2016 6WIND S.A.
|
||||
#
|
||||
#!/bin/bash
|
||||
|
||||
UBUNTU_IMAGE="ubuntu-14.04-server-cloudimg-amd64-disk1.img"
|
||||
IMAGE_NAME="ubuntu-cloud"
|
||||
|
||||
source openrc
|
||||
|
||||
#Required to be able to install iperf package since Cirros image does not provide it
|
||||
curl https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img -o $UBUNTU_IMAGE
|
||||
openstack image create $IMAGE_NAME --file $UBUNTU_IMAGE --disk-format qcow2 --container-format bare --public
|
||||
nova flavor-create m1.vm_hugepages auto 512 3 1
|
||||
nova flavor-key m1.vm_hugepages set hw:mem_page_size=large
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
# Copyright 2016 6WIND S.A.
|
||||
#
|
||||
#!/bin/bash
|
||||
|
||||
source openrc
|
||||
|
||||
NET_ID=$(neutron net-list | grep 192 | tail -n1 | awk '{print $2}')
|
||||
nova boot --flavor m1.vm_hugepages --image ubuntu-cloud test_vm --nic net-id=$NET_ID --user-data /root/cloud.cfg
|
||||
|
||||
while [ $(nova list | grep test_vm | grep BUILD | wc -l) -eq 1 ]; do
|
||||
sleep 1;
|
||||
done
|
||||
|
||||
STATUS=$(nova list | grep test_vm | awk '{print $6}')
|
||||
|
||||
if [[ ${STATUS} == "ACTIVE" ]]; then
|
||||
echo "Wait 2 minutes to make sure that vm cloud-init has finished"
|
||||
sleep 120
|
||||
exit 0
|
||||
fi
|
||||
exit 1
|
|
@ -1,10 +0,0 @@
|
|||
# Copyright 2016 6WIND S.A.
|
||||
#
|
||||
#!/bin/bash
|
||||
|
||||
source openrc
|
||||
floating_ip=$(nova floating-ip-list | grep admin_floating_net | awk '{print $4}')
|
||||
|
||||
apt-get install -y iperf
|
||||
iperf -c $floating_ip -p 6000
|
||||
|
|
@ -1,74 +0,0 @@
|
|||
# Copyright 2016 6WIND S.A.
|
||||
#
|
||||
#!/bin/bash
|
||||
|
||||
echo "Upload scripts to controller node"
|
||||
scp controller_* cloud.cfg root@$CONTROLLER:/root/
|
||||
|
||||
echo "Upload scripts to compute node"
|
||||
scp compute_* root@$COMPUTE:/root/
|
||||
|
||||
function cleanup {
|
||||
echo "Cleanup of testing resources"
|
||||
ssh root@$CONTROLLER 'bash /root/controller_cleanup.sh'
|
||||
}
|
||||
|
||||
echo "Download the ubuntu cloud image to spawn vms and create flavor for hugepages support"
|
||||
ssh root@$CONTROLLER 'bash /root/controller_create_image_and_flavor.sh'
|
||||
if [[ $? -eq 1 ]]; then
|
||||
echo "TEST FAILED: Failed to download test cloud image. Exiting..."
|
||||
cleanup
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Spawn an accelerated vm"
|
||||
ssh root@$CONTROLLER 'bash /root/controller_launch_instance.sh'
|
||||
if [[ $? -eq 1 ]]; then
|
||||
echo "TEST FAILED: Unable to launch accelerated instance. Exiting..."
|
||||
cleanup
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Verify that network interface is managed by Virtual Accelerator"
|
||||
ssh root@$COMPUTE 'bash /root/compute_verify_driver.sh'
|
||||
if [[ $? -eq 1 ]]; then
|
||||
echo "TEST FAILED: Virtual machine network interface is not managed by 6WIND Virtual Accelerator. Exiting..."
|
||||
cleanup
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Add security group tcp rule and associate floating ip"
|
||||
ssh root@$CONTROLLER 'bash /root/controller_configure_floating.sh'
|
||||
if [[ $? -eq 1 ]]; then
|
||||
echo "TEST FAILED: Unable to correctly configure floating ip and security group. Exiting..."
|
||||
cleanup
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Check Virtual Accelerator statistics before traffic"
|
||||
ssh root@$COMPUTE 'bash /root/compute_check_stats_before.sh'
|
||||
if [[ $? -eq 1 ]]; then
|
||||
echo "TEST FAILED: Unable to retrieve virtual interface pre-stats. Exiting..."
|
||||
cleanup
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Send traffic from controller to virtual machine"
|
||||
ssh root@$CONTROLLER 'bash /root/controller_send_traffic.sh'
|
||||
if [[ $? -eq 1 ]]; then
|
||||
echo "TEST FAILED: Unable to correctly send traffic to virtual machine. Exiting..."
|
||||
cleanup
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Check Virtual Accelerator statistics after traffic"
|
||||
ssh root@$COMPUTE 'bash /root/compute_check_stats_after.sh'
|
||||
if [[ $? -eq 1 ]]; then
|
||||
echo "TEST FAILED: A part or all the traffic sent was not accelerated"
|
||||
cleanup
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "TEST PASSED"
|
||||
cleanup
|
||||
exit 0
|