├── .gitignore ├── .openvswitch.metadata ├── Makefile ├── README.md ├── bootstrap.sh ├── graphs └── default │ └── openvswitch.xml ├── nodes ├── openvswitch-server.xml └── openvswitch.xml ├── src ├── Makefile ├── command-plugin │ ├── Makefile │ ├── plugin_openvswitch.py │ └── version.mk ├── linux.mk ├── openvswitch │ ├── Makefile │ ├── openvswitch-2.3.1.tar.gz │ ├── openvswitch-2.4.0-patch │ └── version.mk ├── sedresolve │ ├── Makefile │ └── version.mk └── usersguide │ ├── Makefile │ ├── copyrights.sgml │ ├── images │ └── i-01.png │ ├── index.sgml │ ├── installing.sgml │ ├── preface.sgml │ ├── using.sgml │ └── version.mk └── version.mk /.gitignore: -------------------------------------------------------------------------------- 1 | # build directory 2 | RPMS/ 3 | SOURCES/ 4 | BUILD/ 5 | SPECS/ 6 | disk*/ 7 | *.iso 8 | 9 | _os 10 | _arch 11 | _distribution 12 | .rpmmacros 13 | bootstrap.py 14 | 15 | # ignore version, rules files 16 | python.mk 17 | Rules-*.mk 18 | Rules.mk 19 | Rolls.mk 20 | roll*.mk 21 | rocks-*.mk 22 | roll-openvswitch.* 23 | 24 | # ignore src files 25 | src/openvswitch/*.tar.gz 26 | 27 | -------------------------------------------------------------------------------- /.openvswitch.metadata: -------------------------------------------------------------------------------- 1 | d091902579cf5101df851d2ec69c75a6bcbd49fc src/openvswitch/openvswitch-2.4.0.tar.gz 0B0LD0shfkvCRNVF5T0lDUDFadUk 2 | 51baa3d01f28dd2b237da8071a57809247e9eefc src/openvswitch/openvswitch-2.8.0.tar.gz 0B0LD0shfkvCRb0JNb1pjbnEtbGM 3 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # $Id$ 3 | # 4 | # @Copyright@ 5 | # 6 | # Rocks(r) 7 | # www.rocksclusters.org 8 | # version 6.2 (SideWinder) 9 | # version 7.0 (Manzanita) 10 | # 11 | # Copyright (c) 2000 - 2017 The Regents of the University of California. 12 | # All rights reserved. 13 | # 14 | # Redistribution and use in source and binary forms, with or without 15 | # modification, are permitted provided that the following conditions are 16 | # met: 17 | # 18 | # 1. Redistributions of source code must retain the above copyright 19 | # notice, this list of conditions and the following disclaimer. 20 | # 21 | # 2. Redistributions in binary form must reproduce the above copyright 22 | # notice unmodified and in its entirety, this list of conditions and the 23 | # following disclaimer in the documentation and/or other materials provided 24 | # with the distribution. 25 | # 26 | # 3. All advertising and press materials, printed or electronic, mentioning 27 | # features or use of this software must display the following acknowledgement: 28 | # 29 | # "This product includes software developed by the Rocks(r) 30 | # Cluster Group at the San Diego Supercomputer Center at the 31 | # University of California, San Diego and its contributors." 32 | # 33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3, 34 | # neither the name or logo of this software nor the names of its 35 | # authors may be used to endorse or promote products derived from this 36 | # software without specific prior written permission. The name of the 37 | # software includes the following terms, and any derivatives thereof: 38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of 39 | # the associated name, interested parties should contact Technology 40 | # Transfer & Intellectual Property Services, University of California, 41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu 43 | # 44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' 45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 55 | # 56 | # @Copyright@ 57 | # 58 | # $Log$ 59 | # 60 | 61 | -include $(ROLLSROOT)/etc/Rolls.mk 62 | include Rolls.mk 63 | 64 | default: roll 65 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # openvswitch 2 | Rocks integration of OpenVswitch 3 | -------------------------------------------------------------------------------- /bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This file should remain OS independent 4 | # 5 | # $Id: bootstrap.sh,v 1.14 2012/11/27 00:48:54 phil Exp $ 6 | # 7 | # @Copyright@ 8 | # 9 | # Rocks(r) 10 | # www.rocksclusters.org 11 | # version 6.2 (SideWinder) 12 | # version 7.0 (Manzanita) 13 | # 14 | # Copyright (c) 2000 - 2017 The Regents of the University of California. 15 | # All rights reserved. 16 | # 17 | # Redistribution and use in source and binary forms, with or without 18 | # modification, are permitted provided that the following conditions are 19 | # met: 20 | # 21 | # 1. Redistributions of source code must retain the above copyright 22 | # notice, this list of conditions and the following disclaimer. 23 | # 24 | # 2. Redistributions in binary form must reproduce the above copyright 25 | # notice unmodified and in its entirety, this list of conditions and the 26 | # following disclaimer in the documentation and/or other materials provided 27 | # with the distribution. 28 | # 29 | # 3. All advertising and press materials, printed or electronic, mentioning 30 | # features or use of this software must display the following acknowledgement: 31 | # 32 | # "This product includes software developed by the Rocks(r) 33 | # Cluster Group at the San Diego Supercomputer Center at the 34 | # University of California, San Diego and its contributors." 35 | # 36 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3, 37 | # neither the name or logo of this software nor the names of its 38 | # authors may be used to endorse or promote products derived from this 39 | # software without specific prior written permission. The name of the 40 | # software includes the following terms, and any derivatives thereof: 41 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of 42 | # the associated name, interested parties should contact Technology 43 | # Transfer & Intellectual Property Services, University of California, 44 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 45 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu 46 | # 47 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' 48 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 49 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 50 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 51 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 52 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 53 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 54 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 55 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 56 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 57 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 58 | # 59 | # @Copyright@ 60 | # 61 | 62 | if [ ! -f "$ROLLSROOT/../../bin/get_sources.sh" ]; then 63 | echo "To compile this roll on Rocks 6.1.1 or older you need to install a newer rocks-devel rpm. 64 | Install it with: 65 | rpm -Uvh https://googledrive.com/host/0B0LD0shfkvCRRGtadUFTQkhoZWs/rocks-devel-6.2-3.x86_64.rpm 66 | If you need an older version of this roll you can get it from: 67 | https://github.com/rocksclusters-attic" 68 | exit 1 69 | fi 70 | 71 | . $ROLLSROOT/etc/bootstrap-functions.sh 72 | yum -y install selinux-policy-devel groff python-sphinx python-twisted-core python-zope-interface libcap-ng-devel graphviz 73 | 74 | -------------------------------------------------------------------------------- /graphs/default/openvswitch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | The openvswitch Roll 8 | 9 | 10 | 11 | 12 | Copyright (c) 2000 - 2017 The Regents of the University of California. 13 | All rights reserved. Rocks(r) v6.2/v7.0 www.rocksclusters.org 14 | 15 | 16 | 17 | 18 | 19 | 20 | openvswitch 21 | openvswitch-server 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /nodes/openvswitch-server.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | OpenVswitch packages and post config. Install always on Frontend 8 | Conditional install using openvswitch attribute on an edge 9 | 10 | 11 | 12 | Copyright (c) 2000 - 2017 The Regents of the University of California. 13 | All rights reserved. Rocks(r) v6.2/v7.0 www.rocksclusters.org 14 | 15 | 16 | 17 | roll-openvswitch-usersguide 18 | 19 | 20 | /opt/rocks/bin/rocks add appliance attr vm-container openvswitch true 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /nodes/openvswitch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | OpenVswitch packages and post config. Install always on Frontend 8 | Conditional install using openvswitch attribute on an edge 9 | 10 | 11 | 12 | Copyright (c) 2000 - 2017 The Regents of the University of California. 13 | All rights reserved. Rocks(r) v6.2/v7.0 www.rocksclusters.org 14 | 15 | 16 | 17 | openvswitch 18 | openvswitch-command-plugins 19 | 20 | 21 | /sbin/chkconfig openvswitch on 22 | 23 | 24 | /usr/bin/systemctl enable openvswitch 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | # 3 | # @Copyright@ 4 | # 5 | # Rocks(r) 6 | # www.rocksclusters.org 7 | # version 6.2 (SideWinder) 8 | # version 7.0 (Manzanita) 9 | # 10 | # Copyright (c) 2000 - 2017 The Regents of the University of California. 11 | # All rights reserved. 12 | # 13 | # Redistribution and use in source and binary forms, with or without 14 | # modification, are permitted provided that the following conditions are 15 | # met: 16 | # 17 | # 1. Redistributions of source code must retain the above copyright 18 | # notice, this list of conditions and the following disclaimer. 19 | # 20 | # 2. Redistributions in binary form must reproduce the above copyright 21 | # notice unmodified and in its entirety, this list of conditions and the 22 | # following disclaimer in the documentation and/or other materials provided 23 | # with the distribution. 24 | # 25 | # 3. All advertising and press materials, printed or electronic, mentioning 26 | # features or use of this software must display the following acknowledgement: 27 | # 28 | # "This product includes software developed by the Rocks(r) 29 | # Cluster Group at the San Diego Supercomputer Center at the 30 | # University of California, San Diego and its contributors." 31 | # 32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3, 33 | # neither the name or logo of this software nor the names of its 34 | # authors may be used to endorse or promote products derived from this 35 | # software without specific prior written permission. The name of the 36 | # software includes the following terms, and any derivatives thereof: 37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of 38 | # the associated name, interested parties should contact Technology 39 | # Transfer & Intellectual Property Services, University of California, 40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu 42 | # 43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' 44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 54 | # 55 | # @Copyright@ 56 | # 57 | # $Log$ 58 | 59 | -include $(shell $(ROCKSROOT)/bin/arch).mk 60 | -include $(shell $(ROCKSROOT)/bin/os).mk 61 | 62 | default: pkg 63 | 64 | copyright pkg rpm clean:: 65 | for i in $(SRCDIRS) ; do \ 66 | cd $$i; \ 67 | $(MAKE) $@ || exit 2 ; \ 68 | cd ..; \ 69 | done 70 | -------------------------------------------------------------------------------- /src/command-plugin/Makefile: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | # 3 | # @Copyright@ 4 | # 5 | # Rocks(r) 6 | # www.rocksclusters.org 7 | # version 6.2 (SideWinder) 8 | # version 7.0 (Manzanita) 9 | # 10 | # Copyright (c) 2000 - 2017 The Regents of the University of California. 11 | # All rights reserved. 12 | # 13 | # Redistribution and use in source and binary forms, with or without 14 | # modification, are permitted provided that the following conditions are 15 | # met: 16 | # 17 | # 1. Redistributions of source code must retain the above copyright 18 | # notice, this list of conditions and the following disclaimer. 19 | # 20 | # 2. Redistributions in binary form must reproduce the above copyright 21 | # notice unmodified and in its entirety, this list of conditions and the 22 | # following disclaimer in the documentation and/or other materials provided 23 | # with the distribution. 24 | # 25 | # 3. All advertising and press materials, printed or electronic, mentioning 26 | # features or use of this software must display the following acknowledgement: 27 | # 28 | # "This product includes software developed by the Rocks(r) 29 | # Cluster Group at the San Diego Supercomputer Center at the 30 | # University of California, San Diego and its contributors." 31 | # 32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3, 33 | # neither the name or logo of this software nor the names of its 34 | # authors may be used to endorse or promote products derived from this 35 | # software without specific prior written permission. The name of the 36 | # software includes the following terms, and any derivatives thereof: 37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of 38 | # the associated name, interested parties should contact Technology 39 | # Transfer & Intellectual Property Services, University of California, 40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu 42 | # 43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' 44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 54 | # 55 | # @Copyright@ 56 | # 57 | # $Log$ 58 | 59 | REDHAT.ROOT = $(CURDIR)/../../ 60 | 61 | -include $(ROCKSROOT)/etc/Rules.mk 62 | include Rules.mk 63 | 64 | 65 | build: 66 | echo Nothing to build 67 | 68 | install:: 69 | mkdir -p $(ROOT)/$(PLUGINDIR) 70 | install $(PLUGIN) $(ROOT)/$(PLUGINDIR) 71 | 72 | 73 | clean:: 74 | -rm -rf $(NAME)-$(VERSION) 75 | -rm $(RPM.FILESLIST) 76 | -------------------------------------------------------------------------------- /src/command-plugin/plugin_openvswitch.py: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # @Copyright@ 4 | # 5 | # Rocks(r) 6 | # www.rocksclusters.org 7 | # version 6.2 (SideWinder) 8 | # version 7.0 (Manzanita) 9 | # 10 | # Copyright (c) 2000 - 2017 The Regents of the University of California. 11 | # All rights reserved. 12 | # 13 | # Redistribution and use in source and binary forms, with or without 14 | # modification, are permitted provided that the following conditions are 15 | # met: 16 | # 17 | # 1. Redistributions of source code must retain the above copyright 18 | # notice, this list of conditions and the following disclaimer. 19 | # 20 | # 2. Redistributions in binary form must reproduce the above copyright 21 | # notice unmodified and in its entirety, this list of conditions and the 22 | # following disclaimer in the documentation and/or other materials provided 23 | # with the distribution. 24 | # 25 | # 3. All advertising and press materials, printed or electronic, mentioning 26 | # features or use of this software must display the following acknowledgement: 27 | # 28 | # "This product includes software developed by the Rocks(r) 29 | # Cluster Group at the San Diego Supercomputer Center at the 30 | # University of California, San Diego and its contributors." 31 | # 32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3, 33 | # neither the name or logo of this software nor the names of its 34 | # authors may be used to endorse or promote products derived from this 35 | # software without specific prior written permission. The name of the 36 | # software includes the following terms, and any derivatives thereof: 37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of 38 | # the associated name, interested parties should contact Technology 39 | # Transfer & Intellectual Property Services, University of California, 40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu 42 | # 43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' 44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 54 | # 55 | # @Copyright@ 56 | # 57 | 58 | import rocks.commands 59 | 60 | 61 | class Plugin(rocks.commands.Plugin): 62 | 63 | def provides(self): 64 | return 'test' 65 | 66 | def run(self, args): 67 | """ """ 68 | # args is a dictionary with 'host' = hostname 69 | # net_id = net.id 70 | # primary keys interface table 71 | # text = outputText 72 | # list of existing text 73 | 74 | host = str(args['host']) 75 | netid = int(args['net_id']) 76 | outputText = args['text'] 77 | OVSBRIDGE = 'ovs-bridge' 78 | OVSLINK = 'ovs-link' 79 | 80 | # find the OVS bridge(s) defined on this host 81 | self.owner.db.execute("""SELECT net.subnet,s.name,net.device FROM networks net, subnets s, nodes n WHERE 82 | n.name = '%s' AND net.node = n.id AND net.subnet = s.id AND net.module = '%s'""" % (host, OVSBRIDGE)) 83 | ovsbridges = self.db.fetchall() 84 | if ovsbridges == []: 85 | return # there are no bridges 86 | 87 | # find the subnet id, name, module THIS interface 88 | self.owner.db.execute("""SELECT n.subnet,s.name,n.module,n.options FROM networks n, subnets s WHERE 89 | n.id = '%d' AND s.id = n.subnet""" % netid) 90 | try: 91 | subnet,sname,module,options = self.db.fetchone() 92 | except: 93 | # interface does not need to be configured further 94 | return 95 | 96 | if module == OVSBRIDGE: 97 | outputText.insert(0,"##Configured by Rocks") 98 | for l in outputText: 99 | if l.find('ONBOOT') >= 0: outputText.remove(l) 100 | outputText.append( 'ONBOOT=yes') 101 | outputText.append( 'TYPE="OVSBridge"') 102 | outputText.append( 'DEVICETYPE="ovs"') 103 | outputText.append( 'OVS_EXTRA="%s"' % options ) 104 | outputText.append( 'NM_CONTROLLED="no"') 105 | outputText.append( 'ROCKS_SUBNET="%s"' % sname) 106 | elif module == OVSLINK: 107 | for (brsubid, brsubname, brname) in ovsbridges: 108 | if brsubid == subnet: 109 | outputText.insert(0,"##Configured by Rocks") 110 | for l in outputText: 111 | if l.find('ONBOOT') >= 0: outputText.remove(l) 112 | outputText.append('ONBOOT=yes') 113 | outputText.append('DEVICETYPE=ovs') 114 | outputText.append('TYPE=OVSPort') 115 | outputText.append('OVS_BRIDGE=%s' % brname) 116 | outputText.append('BOOTPROTO=none') 117 | outputText.append('ROCKS_SUBNET="%s"' % sname) 118 | 119 | -------------------------------------------------------------------------------- /src/command-plugin/version.mk: -------------------------------------------------------------------------------- 1 | NAME = openvswitch-command-plugins 2 | VERSION = 1 3 | RELEASE = 4 4 | RPM.REQUIRES = rocks-pylib 5 | PLUGIN = plugin_openvswitch.py 6 | PLUGINDIR = $(PY.ROCKS)/rocks/commands/report/host/interface 7 | RPM.FILES = $(PLUGINDIR)/* 8 | -------------------------------------------------------------------------------- /src/linux.mk: -------------------------------------------------------------------------------- 1 | SRCDIRS = `find * -prune\ 2 | -type d \ 3 | ! -name CVS \ 4 | ! -name .` 5 | -------------------------------------------------------------------------------- /src/openvswitch/Makefile: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | # 3 | # @Copyright@ 4 | # 5 | # Rocks(r) 6 | # www.rocksclusters.org 7 | # version 6.2 (SideWinder) 8 | # version 7.0 (Manzanita) 9 | # 10 | # Copyright (c) 2000 - 2017 The Regents of the University of California. 11 | # All rights reserved. 12 | # 13 | # Redistribution and use in source and binary forms, with or without 14 | # modification, are permitted provided that the following conditions are 15 | # met: 16 | # 17 | # 1. Redistributions of source code must retain the above copyright 18 | # notice, this list of conditions and the following disclaimer. 19 | # 20 | # 2. Redistributions in binary form must reproduce the above copyright 21 | # notice unmodified and in its entirety, this list of conditions and the 22 | # following disclaimer in the documentation and/or other materials provided 23 | # with the distribution. 24 | # 25 | # 3. All advertising and press materials, printed or electronic, mentioning 26 | # features or use of this software must display the following acknowledgement: 27 | # 28 | # "This product includes software developed by the Rocks(r) 29 | # Cluster Group at the San Diego Supercomputer Center at the 30 | # University of California, San Diego and its contributors." 31 | # 32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3, 33 | # neither the name or logo of this software nor the names of its 34 | # authors may be used to endorse or promote products derived from this 35 | # software without specific prior written permission. The name of the 36 | # software includes the following terms, and any derivatives thereof: 37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of 38 | # the associated name, interested parties should contact Technology 39 | # Transfer & Intellectual Property Services, University of California, 40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu 42 | # 43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' 44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 54 | # 55 | # @Copyright@ 56 | # 57 | # $Log$ 58 | 59 | REDHAT.ROOT = $(CURDIR)/../../ 60 | ME=$(shell whoami) 61 | 62 | -include $(ROCKSROOT)/etc/Rules.mk 63 | include Rules.mk 64 | 65 | .PHONY: RPMDESTS 66 | 67 | rpm:: build 68 | 69 | build: RPMDESTS 70 | gunzip -c $(NAME)-$(VERSION).$(TARBALL_POSTFIX) | $(TAR) -xf - 71 | chown -R $(ME).$(ME) $(NAME)-$(VERSION) 72 | ( \ 73 | cd $(NAME)-$(VERSION); \ 74 | if [ -f ../$(PATCHFILE) ]; then patch -p1 < ../$(PATCHFILE); fi;\ 75 | ./configure --with-linux=/lib/modules/`uname -r`/build;\ 76 | make rpm-fedora; \ 77 | make rpm-fedora-kmod; \ 78 | find rpm/rpmbuild/RPMS/noarch -name '*rpm' -exec /bin/cp {} $(REDHAT.ROOT)/RPMS/noarch \; ;\ 79 | find rpm/rpmbuild/RPMS/$(ARCH) -name '*rpm' -exec /bin/cp {} $(REDHAT.ROOT)/RPMS/$(ARCH) \; ;\ 80 | find rpm/rpmbuild/SRPMS/ -name '*rpm' -exec /bin/cp {} $(REDHAT.ROOT)/SRPMS \; ;\ 81 | ) 82 | 83 | RPMDESTS: 84 | make -C $(REDHAT.ROOT) rpm-mkdirs 85 | if [ ! -d $(REDHAT.RPMS)/noarch ]; then mkdir -p $(REDHAT.RPMS)/noarch; fi 86 | if [ ! -d $(REDHAT.RPMS)/$(ARCH) ]; then mkdir -p $(REDHAT.RPMS)/$(ARCH); fi 87 | clean:: 88 | rm -rf $(NAME)-$(VERSION) 89 | rm -rf rpmbuild 90 | -------------------------------------------------------------------------------- /src/openvswitch/openvswitch-2.3.1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocksclusters/openvswitch/c77949afe811927f41e67c74c2e8b89337cbe435/src/openvswitch/openvswitch-2.3.1.tar.gz -------------------------------------------------------------------------------- /src/openvswitch/openvswitch-2.4.0-patch: -------------------------------------------------------------------------------- 1 | diff -r -C 5 openvswitch-2.4.0-dist/rhel/openvswitch.spec.in openvswitch-2.4.0/rhel/openvswitch.spec.in 2 | *** openvswitch-2.4.0-dist/rhel/openvswitch.spec.in 2016-01-06 11:44:45.000000000 -0800 3 | --- openvswitch-2.4.0/rhel/openvswitch.spec.in 2016-02-17 12:21:40.765933658 -0800 4 | *************** 5 | *** 74,84 **** 6 | install -d -m 755 $RPM_BUILD_ROOT/var/lib/openvswitch 7 | 8 | %check 9 | %if %{with check} 10 | if make check TESTSUITEFLAGS='%{_smp_mflags}' || 11 | ! make check TESTSUITEFLAGS='--recheck'; then :; 12 | else 13 | cat tests/testsuite.log 14 | exit 1 15 | fi 16 | %endif 17 | --- 74,84 ---- 18 | install -d -m 755 $RPM_BUILD_ROOT/var/lib/openvswitch 19 | 20 | %check 21 | %if %{with check} 22 | if make check TESTSUITEFLAGS='%{_smp_mflags}' || 23 | ! make check TESTSUITEFLAGS=''; then :; 24 | else 25 | cat tests/testsuite.log 26 | exit 1 27 | fi 28 | %endif 29 | -------------------------------------------------------------------------------- /src/openvswitch/version.mk: -------------------------------------------------------------------------------- 1 | PKGROOT = /opt/openvswitch 2 | NAME = openvswitch 3 | VERSION = 2.8.0 4 | PATCHFILE = $(NAME)-$(VERSION)-patch 5 | DISTVERSION = $(VERSION) 6 | RELEASE = 1 7 | TARBALL_POSTFIX = tar.gz 8 | OVS.RPMBUILD = $(REDHAT.SOURCES)/.. 9 | OVS.SOURCES = $(OVS.RPMBUILD)/SOURCES 10 | OVS.RPMS = $(OVS.RPMBUILD)/RPMS 11 | OVS.SPECS = $(OVS.RPMBUILD)/SPECS 12 | MAKE.iscontrib = true 13 | 14 | -------------------------------------------------------------------------------- /src/sedresolve/Makefile: -------------------------------------------------------------------------------- 1 | # $Id: Makefile,v 1.5 2012/11/27 00:48:39 phil Exp $ 2 | # 3 | # @Copyright@ 4 | # 5 | # Rocks(r) 6 | # www.rocksclusters.org 7 | # version 6.2 (SideWinder) 8 | # version 7.0 (Manzanita) 9 | # 10 | # Copyright (c) 2000 - 2017 The Regents of the University of California. 11 | # All rights reserved. 12 | # 13 | # Redistribution and use in source and binary forms, with or without 14 | # modification, are permitted provided that the following conditions are 15 | # met: 16 | # 17 | # 1. Redistributions of source code must retain the above copyright 18 | # notice, this list of conditions and the following disclaimer. 19 | # 20 | # 2. Redistributions in binary form must reproduce the above copyright 21 | # notice unmodified and in its entirety, this list of conditions and the 22 | # following disclaimer in the documentation and/or other materials provided 23 | # with the distribution. 24 | # 25 | # 3. All advertising and press materials, printed or electronic, mentioning 26 | # features or use of this software must display the following acknowledgement: 27 | # 28 | # "This product includes software developed by the Rocks(r) 29 | # Cluster Group at the San Diego Supercomputer Center at the 30 | # University of California, San Diego and its contributors." 31 | # 32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3, 33 | # neither the name or logo of this software nor the names of its 34 | # authors may be used to endorse or promote products derived from this 35 | # software without specific prior written permission. The name of the 36 | # software includes the following terms, and any derivatives thereof: 37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of 38 | # the associated name, interested parties should contact Technology 39 | # Transfer & Intellectual Property Services, University of California, 40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu 42 | # 43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' 44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 54 | # 55 | # @Copyright@ 56 | # 57 | 58 | REDHAT.ROOT = $(CURDIR)/../../ 59 | 60 | -include $(ROCKSROOT)/etc/Rules.mk 61 | include Rules.mk 62 | 63 | 64 | build: 65 | echo "Nothing to build" 66 | echo "" > $(RPM.FILESLIST) 67 | install:: 68 | mkdir -p $(ROOT)/$(PKGROOT) 69 | -------------------------------------------------------------------------------- /src/sedresolve/version.mk: -------------------------------------------------------------------------------- 1 | PKGROOT = /opt/sed 2 | NAME = sedresolve 3 | VERSION = 1 4 | RELEASE = 1 5 | RPM.FILESLIST = filelist 6 | RPM.REQUIRES = sed 7 | RPM.EXTRAS = Provides: /usr/bin/sed 8 | RPM.DESCRIPTION = \ 9 | This resolves /usr/bin/sed for various packages that explicitly demand it. It isa vacuous package in that it requires sed and provides /usr/bin/sed 10 | 11 | -------------------------------------------------------------------------------- /src/usersguide/Makefile: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | # 3 | # @Copyright@ 4 | # 5 | # Rocks(r) 6 | # www.rocksclusters.org 7 | # version 6.2 (SideWinder) 8 | # version 7.0 (Manzanita) 9 | # 10 | # Copyright (c) 2000 - 2017 The Regents of the University of California. 11 | # All rights reserved. 12 | # 13 | # Redistribution and use in source and binary forms, with or without 14 | # modification, are permitted provided that the following conditions are 15 | # met: 16 | # 17 | # 1. Redistributions of source code must retain the above copyright 18 | # notice, this list of conditions and the following disclaimer. 19 | # 20 | # 2. Redistributions in binary form must reproduce the above copyright 21 | # notice unmodified and in its entirety, this list of conditions and the 22 | # following disclaimer in the documentation and/or other materials provided 23 | # with the distribution. 24 | # 25 | # 3. All advertising and press materials, printed or electronic, mentioning 26 | # features or use of this software must display the following acknowledgement: 27 | # 28 | # "This product includes software developed by the Rocks(r) 29 | # Cluster Group at the San Diego Supercomputer Center at the 30 | # University of California, San Diego and its contributors." 31 | # 32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3, 33 | # neither the name or logo of this software nor the names of its 34 | # authors may be used to endorse or promote products derived from this 35 | # software without specific prior written permission. The name of the 36 | # software includes the following terms, and any derivatives thereof: 37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of 38 | # the associated name, interested parties should contact Technology 39 | # Transfer & Intellectual Property Services, University of California, 40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910, 41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu 42 | # 43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' 44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS 47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 54 | # 55 | # @Copyright@ 56 | # 57 | # $Log$ 58 | 59 | PKGROOT = /var/www/html/roll-documentation/openvswitch/$(VERSION) 60 | REDHAT.ROOT = $(PWD)/../../ 61 | -include $(ROCKSROOT)/etc/Rules.mk 62 | include Rules.mk 63 | 64 | default: $(NAME).spec ../$(NAME)-$(VERSION).tar.gz 65 | 66 | html: predoc 67 | jw --backend html --dsl $(PWD)/rocks.dsl#html index.sgml 68 | 69 | pdf: predoc 70 | jw --backend pdf --dsl $(PWD)/rocks.dsl#print index.sgml 71 | 72 | build: html pdf 73 | 74 | install:: build 75 | mkdir -p $(ROOT)/$(PKGROOT)/images 76 | mkdir -p $(ROOT)/$(PKGROOT)/stylesheet-images 77 | install -ma+r index.pdf $(ROOT)/$(PKGROOT)/$(NAME).pdf 78 | install -ma+r *.html $(ROOT)/$(PKGROOT)/ 79 | install -ma+r images/*.png $(ROOT)/$(PKGROOT)/images/ 80 | install -ma+r stylesheet-images/{*.gif,*.png} \ 81 | $(ROOT)/$(PKGROOT)/stylesheet-images/ 82 | install -ma+r rocks.css $(ROOT)/$(PKGROOT)/ 83 | 84 | clean:: 85 | rm -f *.html 86 | rm -f index.pdf 87 | 88 | 89 | -------------------------------------------------------------------------------- /src/usersguide/copyrights.sgml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Copyrights 5 | 6 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/usersguide/images/i-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rocksclusters/openvswitch/c77949afe811927f41e67c74c2e8b89337cbe435/src/usersguide/images/i-01.png -------------------------------------------------------------------------------- /src/usersguide/index.sgml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | %entities; 8 | ]> 9 | 10 | 11 | 12 | 13 | openvswitch Roll: Users Guide 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | &document-version; 24 | 25 | &document-pubdate; 26 | 27 | 28 | &document-year; 29 | The copyright holder, and UC Regents 30 | 31 | 32 | 33 | (PDF version) 34 | 35 | 36 | 37 | 38 | &preface; 39 | &installing; 40 | &using; 41 | ©rights; 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /src/usersguide/installing.sgml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Installing the openvswitch Roll 5 | 6 |
7 | Adding the Roll 8 | 9 | 10 | 11 | The openvswitch Roll must be installed during the Frontend installation step 12 | of your cluster (refer to section 1.2 of the Rocks usersguide). 13 | Future releases will allow the installation of the openvswitch Roll onto a 14 | running system. 15 | 16 | 17 | 18 | 19 | 20 | 21 | The openvswitch Roll is added to a Frontend installation in exactly the same 22 | manner as the required HPC Roll. Specifically, after the HPC Roll is 23 | added the installer will once again ask if you have a Roll (see 24 | below). Select 'Yes' and insert the openvswitch Roll. 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
34 | 35 | 36 |
37 | -------------------------------------------------------------------------------- /src/usersguide/preface.sgml: -------------------------------------------------------------------------------- 1 | 2 | Preface 3 | 4 | 5 | 6 | The openvswitch Roll installs and configures the ... 7 | 8 | 9 | 10 | 11 | Please visit the openvswitch 13 | site to learn more about their release and the individual 14 | software components. 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/usersguide/using.sgml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Using the openvswitch Roll 5 | 6 |
7 | Using the openvswitch Roll 8 | 9 | 10 | Tutorials for using openvswitch and its components are available 11 | from the 12 | openvswitch web site 13 | 14 | 15 |
16 | 17 | 18 |
19 | -------------------------------------------------------------------------------- /src/usersguide/version.mk: -------------------------------------------------------------------------------- 1 | ROLL = openvswitch 2 | VERSION = 2.7.2 3 | NAME = roll-$(ROLL)-usersguide 4 | RELEASE = 0 5 | 6 | SUMMARY_COMPATIBLE = $(VERSION) 7 | SUMMARY_MAINTAINER = Rocks Group 8 | SUMMARY_ARCHITECTURE = i386, x86_64 9 | 10 | ROLL_REQUIRES = base kernel os 11 | ROLL_CONFLICTS = 12 | RPM.FILES = /var/www/html/roll-documentation/$(ROLL)/$(VERSION) 13 | 14 | -------------------------------------------------------------------------------- /version.mk: -------------------------------------------------------------------------------- 1 | ROLLNAME = openvswitch 2 | VERSION = 2.8.0 3 | RELEASE = 0 4 | COLOR = azure 5 | 6 | REDHAT.ROOT = $(CURDIR) 7 | --------------------------------------------------------------------------------