diff options
49 files changed, 739 insertions, 231 deletions
diff --git a/build/glustermg.spec b/build/glustermg.spec index 020a135a..ff489b3c 100644 --- a/build/glustermg.spec +++ b/build/glustermg.spec @@ -9,11 +9,11 @@ Summary: %{product_family} Management Gateway Name: glustermg Version: %{release_version} Release: 1%{?extra_release} -License: Proprietary +License: GPLv3+ Group: System Environment/Base Source0: glustermg-backend-%{release_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot -Requires: tomcat5 >= 5.5.23 +Requires: tomcat6 >= 6.0.24 Requires: java-1.6.0-openjdk >= 1.6.0.0 Requires: wget %description @@ -29,7 +29,7 @@ Requires: perl >= 5.8.8 Requires: rrdtool-perl >= 1.2.27 Requires: sudo Requires: crontabs -Requires: samba3 +Requires: samba >= 3.5.6 Requires: libxml2 >= 2.6.26 %description backend %{product_family} server side backend tools @@ -66,48 +66,48 @@ ln -sf /opt/glustermg/%{release_version}/backend/gluster_cifs_volume_startup.py %post -if [ -f /usr/share/tomcat5/webapps/glustermg ]; then - rm -f /usr/share/tomcat5/webapps/glustermg +if [ -f /usr/share/tomcat6/webapps/glustermg ]; then + rm -f /usr/share/tomcat6/webapps/glustermg fi -ln -fs /opt/glustermg/%{release_version}/glustermg /usr/share/tomcat5/webapps/glustermg +ln -fs /opt/glustermg/%{release_version}/glustermg /usr/share/tomcat6/webapps/glustermg if [ ! -f /opt/glustermg/keys/gluster.pem ]; then - ssh-keygen -t rsa -f /opt/glustermg/keys/gluster.pem -N '' +x ssh-keygen -t rsa -f /opt/glustermg/keys/gluster.pem -N '' mv -f /opt/glustermg/keys/gluster.pem.pub /opt/glustermg/keys/gluster.pub fi chown -R tomcat:tomcat /opt/glustermg /var/log/glustermg -if ! grep -q '^JAVA_HOME="/usr/lib/jvm/jre-1.6.0-openjdk.x86_64"' /etc/sysconfig/tomcat5; then - sed -i 's/^JAVA_HOME=/# JAVA_HOME=/g' /etc/sysconfig/tomcat5 - echo 'JAVA_HOME="/usr/lib/jvm/jre-1.6.0-openjdk.x86_64"' >> /etc/sysconfig/tomcat5 +if ! grep -q '^JAVA_HOME="/usr/lib/jvm/jre-1.6.0-openjdk.x86_64"' /etc/sysconfig/tomcat6; then + sed -i 's/^JAVA_HOME=/# JAVA_HOME=/g' /etc/sysconfig/tomcat6 + echo 'JAVA_HOME="/usr/lib/jvm/jre-1.6.0-openjdk.x86_64"' >> /etc/sysconfig/tomcat6 fi -if ! grep -q '# Added by Gluster: JAVA_OPTS="${JAVA_OPTS} -Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m"' /etc/sysconfig/tomcat5; then - echo '# Added by Gluster: JAVA_OPTS="${JAVA_OPTS} -Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m"' >> /etc/sysconfig/tomcat5 - echo 'JAVA_OPTS="${JAVA_OPTS} -Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m"' >> /etc/sysconfig/tomcat5 +if ! grep -q '# Added by Gluster: JAVA_OPTS="${JAVA_OPTS} -Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m"' /etc/sysconfig/tomcat6; then + echo '# Added by Gluster: JAVA_OPTS="${JAVA_OPTS} -Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m"' >> /etc/sysconfig/tomcat6 + echo 'JAVA_OPTS="${JAVA_OPTS} -Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m"' >> /etc/sysconfig/tomcat6 fi -if ! grep -q /usr/share/tomcat5/webapps/glustermg/ssl/gmg-ssl.keystore /etc/tomcat5/server.xml; then +if ! grep -q /usr/share/tomcat6/webapps/glustermg/ssl/gmg-ssl.keystore /etc/tomcat6/server.xml; then sed -i '/<\/Service>/i \ <Connector SSLEnabled="true" \ clientAuth="false" \ executor="tomcatThreadPool" \ maxThreads="150" \ port="8443" \ - keystoreFile="/usr/share/tomcat5/webapps/glustermg/ssl/gmg-ssl.keystore" \ + keystoreFile="/usr/share/tomcat6/webapps/glustermg/ssl/gmg-ssl.keystore" \ keystorePass="gluster" \ protocol="org.apache.coyote.http11.Http11Protocol" \ scheme="https" \ secure="true" \ - sslProtocol="TLS" />' /etc/tomcat5/server.xml + sslProtocol="TLS" />' /etc/tomcat6/server.xml fi -if ! grep -q "org.apache.catalina.authenticator.NonLoginAuthenticator" /etc/tomcat5/context.xml; then +if ! grep -q "org.apache.catalina.authenticator.NonLoginAuthenticator" /etc/tomcat6/context.xml; then sed -i '/<\/Context>/i \ <Valve className="org.apache.catalina.authenticator.NonLoginAuthenticator" \ - disableProxyCaching="false" />' /etc/tomcat5/context.xml + disableProxyCaching="false" />' /etc/tomcat6/context.xml fi if wget -t 1 -T 1 -q -O /dev/null http://169.254.169.254/latest; then sed -i '/<constructor-arg value="multicast"/c <constructor-arg value="none" \/>' /opt/glustermg/%{release_version}/glustermg/WEB-INF/classes/spring/gluster-server-base.xml fi %preun -rm -f /usr/share/tomcat5/webapps/glustermg +rm -f /usr/share/tomcat6/webapps/glustermg %pre backend modprobe -q fuse @@ -144,6 +144,7 @@ fi %preun backend if [ "$1" = 0 ] ; then + /etc/init.d/multicast-discoverd stop /sbin/chkconfig --del multicast-discoverd /sbin/chkconfig --del gluster-volume-settings fi @@ -175,5 +176,8 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Nov 29 2011 Bala.FA <barumuga@redhat.com> - 1.1.0 +- Updated tomcat6/samba dependency +- Added multicast-discoverd stop in preun backend * Thu Aug 4 2011 Bala.FA <bala@gluster.com> - 1.0.0 - Initial release diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/DiskUtils.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/DiskUtils.py index 4d1b701a..6666707b 100644 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/DiskUtils.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/DiskUtils.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/FsTabUtils.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/FsTabUtils.py index 653d0dda..0bb328db 100644 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/FsTabUtils.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/FsTabUtils.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/NetworkUtils.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/NetworkUtils.py index ff73af6f..711dfa22 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/NetworkUtils.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/NetworkUtils.py @@ -1,5 +1,19 @@ # Copyright (c) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Storage Platform. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/VolumeUtils.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/VolumeUtils.py index 5476e090..84bd3a7e 100644 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/VolumeUtils.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/VolumeUtils.py @@ -1,5 +1,19 @@ # Copyright (c) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Storage Platform. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/add_user_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/add_user_cifs.py index 2e1a1574..30cd399b 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/add_user_cifs.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/add_user_cifs.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/clear_volume_directory.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/clear_volume_directory.py index 374a7e9c..4c2ec112 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/clear_volume_directory.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/clear_volume_directory.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/create_volume_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/create_volume_cifs.py index 5a27ab87..f3d6795a 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/create_volume_cifs.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/create_volume_cifs.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_user_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_user_cifs.py index aeda989f..88c6ac63 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_user_cifs.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_user_cifs.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_volume_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_volume_cifs.py index 572d819c..a25fc667 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_volume_cifs.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/delete_volume_cifs.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device.py index 8630635c..8b9edf0c 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Storage Platform. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device_background.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device_background.py index a804a59c..77314ef2 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device_background.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/format_device_background.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Storage Platform. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_brick_status.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_brick_status.py index b72321d7..0f5ca578 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_brick_status.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_brick_status.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Console. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py index de4b4bb0..ce4daa4d 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_filesystem_type.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Storage Platform. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_format_device_status.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_format_device_status.py index 532f1585..0d965229 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_format_device_status.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_format_device_status.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Storage Platform. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_cpu_details.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_cpu_details.py index da08fde1..219faa4f 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_cpu_details.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_cpu_details.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_memory_details.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_memory_details.py index 07a9d7d0..04453628 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_memory_details.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_memory_details.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_net_details.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_net_details.py index ee28ca13..258a758c 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_net_details.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_rrd_net_details.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_details.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_details.py index 26b9059a..bdb6caa0 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_details.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_details.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Storage Platform. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_status.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_status.py index 2814f10f..72627bd1 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_status.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_server_status.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Console. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_volume_brick_log.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_volume_brick_log.py index 026c3c00..7a7904b9 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/get_volume_brick_log.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/get_volume_brick_log.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Storage Platform. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import re diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-provision-block b/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-provision-block deleted file mode 100755 index 0385b82c..00000000 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-provision-block +++ /dev/null @@ -1,171 +0,0 @@ -#!/bin/bash - -ME=$(basename $0); - -set -o pipefail; - -function show_help() -{ - usage_banner; - cat <<EOF - -Usage: $ME [-h] [-t FSTYPE] DEVICE - -Prepare DEVICE to be used in volumes. -DEVICE is the special file corresponding to the -device (e.g /dev/sdXX). - -General: - -t FSTYPE Prepare DEVICE using FSTYPE filesystem. - Supported filesystems are ext3/ext4/xfs - (Default is ext4/ext3) - -Miscellaneous: - -h display this help and exit - -Example: - $ME /dev/sdb - $ME -t xfs /dev/sdb -EOF -} - - -function usage_banner() -{ - echo "Gluster Storage Virtual Appliance, Version 1.2." -} - -function fail() -{ - echo "$ME: FATAL: $@" - exit 1; -} - - -function main() -{ - # Parse command line arguments. - while getopts :ht: OPT; do - case "$OPT" in - h) - show_help - exit 0 - ;; - t) - fstype=$OPTARG - case $fstype in - ext3 | ext4 | xfs) - ;; - *) - echo "unknown fstype $fstype" - show_help - exit 1 - ;; - esac - ;; - \?) - # getopts issues an error message - echo "Invalid option: -$OPTARG" - show_help - exit 1 - ;; - :) - echo "Option -$OPTARG requires an argument." - show_help - exit 1 - ;; - esac - done - - # Remove the switches we parsed above. - shift `expr $OPTIND - 1` - - # We want only one non-option argument. - if [ $# -ne 1 ]; then - show_help - exit 1 - fi - - if [ -z "$fstype" ]; then - if [ -x /sbin/mkfs.ext4 ]; then - fstype=ext4 - elif [ -x /sbin/mkfs.ext3 ]; then - fstype=ext3 - else - fail "neither ext4 nor ext3 support available (or mkfs tools not present)" - fi - fi - - set -e; - - devblk="$1"; - blk=$(echo $1 | cut -f3 -d/); - mnt="/export/$blk"; - - [ -e $mnt ] || mkdir -p $mnt - - [ -b $devblk ] || fail "$devblk is not a valid block device"; - - [ -d $mnt ] || fail "$mnt is not a directory"; - - grep -wq $blk /proc/partitions || fail "$blk is not detected in /proc/partitions"; - - blkid -c /dev/null | grep -q "^$devblk:" && fail "$devblk is already formatted"; - - grep -q " $mnt " /proc/mounts && fail "$mnt already has a mount"; - grep -q " $mnt/" /proc/mounts && fail "$mnt has a submount"; - - grep -q " $mnt " /etc/fstab && fail "$mnt already has an entry in fstab"; - - grep -wq "$devblk" /etc/fstab && fail "$devblk already has an entry in fstab"; - - if [ ! -x /sbin/mkfs.$fstype ]; then - fail "no $fstype support available" - fi - - case $fstype in - ext3 | ext4) - /sbin/mkfs.$fstype -I 512 $devblk; - ;; - xfs) - /sbin/mkfs.$fstype -i size=512 $devblk - ;; - esac - - uuid=$(blkid -c /dev/null -o value $devblk | head -1); #sed -n 's/ID_FS_UUID=//p'); - - grep -wq "$uuid" /etc/fstab && fail "$uuid already has an entry in fstab"; - - case $fstype in - ext3 | ext4) - echo "UUID=$uuid $mnt $fstype defaults,user_xattr 0 2" >> /etc/fstab || fail "Failed to update fstab"; - ;; - *) - echo "UUID=$uuid $mnt $fstype defaults 0 2" >> /etc/fstab || fail "Failed to update fstab"; - ;; - esac - - mount -v $mnt || fail "mounting $devblk on $mnt failed"; - -cat <<EOF - -================================================================================ -Completed mounting and setting up fstab for $devblk on $mnt - -You may now expand existing volumes or create new volumes with commands like: - - sh# gluster volume create VOLNAME $(hostname):$mnt/SUBDIR" ... - - or - - sh# gluster volume add-brick VOLNAME $(hostname):$mnt/SUBDIR ... - -Please refer documentation at http://www.gluster.com/community/documentation/ -for the exact syntax and reference. - -================================================================================ -EOF -} - - -main "$@"; diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-volume-settings.init.d b/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-volume-settings.init.d index 97bc01ee..2afdfb4c 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-volume-settings.init.d +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster-volume-settings.init.d @@ -1,4 +1,20 @@ #!/bin/bash +# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # # chkconfig: - 90 10 ### BEGIN INIT INFO diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster_cifs_volume_startup.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster_cifs_volume_startup.py index 9ea7e021..2dfb1546 100644 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster_cifs_volume_startup.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/gluster_cifs_volume_startup.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/modify_volume_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/modify_volume_cifs.py index d56b1f59..9e1e581c 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/modify_volume_cifs.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/modify_volume_cifs.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.init.d b/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.init.d index 7cfbe44a..8bc881f8 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.init.d +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.init.d @@ -1,6 +1,20 @@ #!/bin/bash # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # # chkconfig: - 85 15 # description: multicast discovery service diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.py index cb5de70c..64236bbe 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/multicast-discoverd.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_cpu.pl b/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_cpu.pl index 30a66342..06e183ce 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_cpu.pl +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_cpu.pl @@ -1,4 +1,21 @@ #!/usr/bin/perl +# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. +# use RRDs; diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_mem.pl b/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_mem.pl index 5c47cd81..b6fd8fba 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_mem.pl +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_mem.pl @@ -1,4 +1,21 @@ #!/usr/bin/perl +# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. +# use RRDs; diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_net.pl b/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_net.pl index 6ae128fd..46b659c5 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_net.pl +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/rrd_net.pl @@ -1,4 +1,21 @@ #!/usr/bin/perl +# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. +# use RRDs; diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/setup_cifs_config.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/setup_cifs_config.py index 5d5187f4..62e031fd 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/setup_cifs_config.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/setup_cifs_config.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/start_volume_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/start_volume_cifs.py index e16c87c2..45d239e1 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/start_volume_cifs.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/start_volume_cifs.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/stop_volume_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/stop_volume_cifs.py index d67d9061..6bf736b9 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/stop_volume_cifs.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/stop_volume_cifs.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/update-rrd.sh b/src/org.gluster.storage.management.gateway.scripts/src/backend/update-rrd.sh index b081d6db..1379bc41 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/update-rrd.sh +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/update-rrd.sh @@ -1,4 +1,21 @@ #!/bin/bash +# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. +# /usr/bin/rrd_cpu.pl & /usr/bin/rrd_mem.pl & diff --git a/src/org.gluster.storage.management.gateway.scripts/src/backend/update_volume_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/backend/update_volume_cifs.py index 64297a87..8544ac5c 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/backend/update_volume_cifs.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/backend/update_volume_cifs.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/common/Globals.py b/src/org.gluster.storage.management.gateway.scripts/src/common/Globals.py index 49a12b69..f03e9feb 100644 --- a/src/org.gluster.storage.management.gateway.scripts/src/common/Globals.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/common/Globals.py @@ -1,5 +1,19 @@ # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Storage Platform. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # MULTICAST_GROUP = '224.224.1.1' diff --git a/src/org.gluster.storage.management.gateway.scripts/src/common/Utils.py b/src/org.gluster.storage.management.gateway.scripts/src/common/Utils.py index 3c90c533..bdc47f60 100644 --- a/src/org.gluster.storage.management.gateway.scripts/src/common/Utils.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/common/Utils.py @@ -1,5 +1,19 @@ # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/common/XmlHandler.py b/src/org.gluster.storage.management.gateway.scripts/src/common/XmlHandler.py index d55ef07a..0d491a68 100644 --- a/src/org.gluster.storage.management.gateway.scripts/src/common/XmlHandler.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/common/XmlHandler.py @@ -1,5 +1,19 @@ # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import xml diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/add_user_cifs_all.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/add_user_cifs_all.py index adfd031c..66236b59 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/add_user_cifs_all.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/add_user_cifs_all.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/create_volume_cifs_all.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/create_volume_cifs_all.py index 8a43e7dc..2c40a56b 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/create_volume_cifs_all.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/create_volume_cifs_all.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_user_cifs_all.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_user_cifs_all.py index a86e7264..92192d69 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_user_cifs_all.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_user_cifs_all.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_volume_cifs_all.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_volume_cifs_all.py index 925a3548..0f4e7fb5 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_volume_cifs_all.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/delete_volume_cifs_all.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/get_volume_user_cifs.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/get_volume_user_cifs.py index c072a556..bbe736e1 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/get_volume_user_cifs.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/get_volume_user_cifs.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/gmg-reset-password.sh b/src/org.gluster.storage.management.gateway.scripts/src/gateway/gmg-reset-password.sh index b39fe6b5..cfc54e9c 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/gmg-reset-password.sh +++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/gmg-reset-password.sh @@ -1,6 +1,23 @@ #----------------------------------------------------------------------------------- # gmg-reset-password.sh - script to reset password of given user to default password #----------------------------------------------------------------------------------- +# Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. +# USAGE_ERR=1 diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/grun.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/grun.py index 6519d726..d7c23ee8 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/grun.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/grun.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/multicast-discover-servers.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/multicast-discover-servers.py index ded207c0..9bdb037d 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/multicast-discover-servers.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/multicast-discover-servers.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/remove_server_volume_cifs_config.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/remove_server_volume_cifs_config.py index 27fb9b92..93c47af6 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/remove_server_volume_cifs_config.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/remove_server_volume_cifs_config.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/setup_cifs_config_all.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/setup_cifs_config_all.py index e7e0a4a0..99a4b2d3 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/setup_cifs_config_all.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/setup_cifs_config_all.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os diff --git a/src/org.gluster.storage.management.gateway.scripts/src/gateway/update_volume_cifs_all.py b/src/org.gluster.storage.management.gateway.scripts/src/gateway/update_volume_cifs_all.py index e5576c45..07c1e90e 100755 --- a/src/org.gluster.storage.management.gateway.scripts/src/gateway/update_volume_cifs_all.py +++ b/src/org.gluster.storage.management.gateway.scripts/src/gateway/update_volume_cifs_all.py @@ -1,6 +1,20 @@ #!/usr/bin/python # Copyright (C) 2011 Gluster, Inc. <http://www.gluster.com> -# This file is part of Gluster Management Gateway. +# This file is part of Gluster Management Gateway (GlusterMG). +# +# GlusterMG is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published +# by the Free Software Foundation; either version 3 of the License, +# or (at your option) any later version. +# +# GlusterMG is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see +# <http://www.gnu.org/licenses/>. # import os |