Hello community, here is the log from the commit of package openstack-swift.1783 for openSUSE:12.3:Update checked in at 2013-07-05 10:31:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:12.3:Update/openstack-swift.1783 (Old) and /work/SRC/openSUSE:12.3:Update/.openstack-swift.1783.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openstack-swift.1783" Changes: -------- New Changes file: --- /dev/null 2013-07-02 09:26:14.908030755 +0200 +++ /work/SRC/openSUSE:12.3:Update/.openstack-swift.1783.new/openstack-swift-doc.changes 2013-07-05 10:31:04.000000000 +0200 @@ -0,0 +1,21 @@ +-------------------------------------------------------------------- +Wed Jan 30 07:11:43 UTC 2013 - cloud-de...@suse.de + +- Update to version 1.7.4.1+git.1359529903.0ce3e1d: + + Use pypi for python-swiftclient dependency. + +-------------------------------------------------------------------- +Mon Jan 7 12:46:38 UTC 2013 - cloud-de...@suse.de + +- Start using obs-service-github_tarballs + +------------------------------------------------------------------- +Thu Nov 15 14:55:21 UTC 2012 - sasc...@suse.de + +- Use openstack-macros + +------------------------------------------------------------------- +Tue Nov 13 15:56:32 UTC 2012 - sasc...@suse.de + +- Initial package, split out from openstack-swift.spec + New Changes file: --- /dev/null 2013-07-02 09:26:14.908030755 +0200 +++ /work/SRC/openSUSE:12.3:Update/.openstack-swift.1783.new/openstack-swift.changes 2013-07-05 10:31:05.000000000 +0200 @@ -0,0 +1,371 @@ +------------------------------------------------------------------- +Mon Jun 17 08:18:11 UTC 2013 - vu...@suse.com + +- Add CVE-2013-2161.patch: fix unchecked user input in Swift XML + responses (CVE-2013-2161, bnc#824286). + +------------------------------------------------------------------- +Mon Mar 11 10:01:24 UTC 2013 - vu...@suse.com + +- Update 12.3 packages to Folsom as of March 5th. This comes with· + security fixes and bug fixes that we need to have OpenStack work + nicely. Fix bnc#802278. + +-------------------------------------------------------------------- +Wed Jan 30 07:11:43 UTC 2013 - cloud-de...@suse.de + +- Update to version 1.7.4.1+git.1359529903.0ce3e1d: + + Use pypi for python-swiftclient dependency. + +------------------------------------------------------------------- +Wed Jan 9 09:11:04 UTC 2013 - sasc...@suse.de + +- Remove the hard requires on python-netifaces-0.6, swift seems to + always use fixed revision requirements which seem to be bogus + +-------------------------------------------------------------------- +Mon Jan 7 12:46:38 UTC 2013 - cloud-de...@suse.de + +- Start using obs-service-github_tarballs + +------------------------------------------------------------------- +Fri Dec 7 12:18:59 UTC 2012 - sasc...@suse.de + +- Don't use /var/log/subsys + +------------------------------------------------------------------- +Wed Dec 5 09:38:55 UTC 2012 - sasc...@suse.de + +- Use @PARENT_TAG@ in _service file to automate versioning + +------------------------------------------------------------------- +Mon Dec 3 09:38:54 UTC 2012 - sasc...@suse.de + +- Drop openstack-swift-create-man-stubs.py: + + Install manpages from upstream tarball instead + + Drop dependencies on Jinja2, Paste, PasteDeploy +- Fix test requires on python-openstack.nose_plugin +- Minor rpmlint issues fixed + +------------------------------------------------------------------- +Mon Nov 19 15:18:58 UTC 2012 - sasc...@suse.de + +- Install /etc/swift/test.conf for .unitests + +------------------------------------------------------------------- +Mon Nov 19 12:57:07 UTC 2012 - sasc...@suse.de + +- Add missing spaces to "Requires: python-Swift >= 1.1.2" + +------------------------------------------------------------------- +Fri Nov 16 12:41:27 UTC 2012 - sasc...@suse.de + +- Add .*test files to test package + +------------------------------------------------------------------- +Thu Nov 15 14:55:35 UTC 2012 - sasc...@suse.de + +- Use openstack-macros + +------------------------------------------------------------------- +Tue Nov 13 16:12:31 UTC 2012 - sasc...@suse.de + +- Split out doc package into seperate spec file +- Update test sub-package requirements + +------------------------------------------------------------------- +Mon Nov 12 14:29:12 UTC 2012 - sasc...@suse.de + +- Update to version 1.7.4 (Folsom): + + See https://github.com/openstack/swift/commits/stable/folsom +- Dropped the following upstreamed patches: + + dir-traversals-checks.patch + + rsync_object_replication.patch + + swift-memcache-no-pickle.patch + + test_runners.patch + + test_swift.patch +- Updated Requires based on tools/pip-requires +- /usr/bin/swift isn't provided anymore, use python-swiftclient therefor +- Added "reload" entries in init scripts: + + openstack-swift-container-auditor.init + + openstack-swift-proxy.init + +------------------------------------------------------------------- +Thu Nov 8 11:40:03 UTC 2012 - sasc...@suse.de + +- Drop from_vcs build flag + +------------------------------------------------------------------- +Wed Oct 31 14:51:15 UTC 2012 - sasc...@suse.de + +- Rename /usr/bin/swift to /usr/bin/swift.old, the binary is also + provided by python-swiftclient + +------------------------------------------------------------------- +Tue Oct 9 15:27:36 UTC 2012 - vu...@suse.com + +- Require python-netifaces + +------------------------------------------------------------------- +Mon Sep 10 07:20:23 UTC 2012 - vu...@suse.com + +- Add swift-memcache-no-pickle.patch: do not use pickle + serialization for memcache, but JSON. Fix bnc#779215, + CVE-2012-4406. + +------------------------------------------------------------------- +Mon Jul 23 12:48:19 UTC 2012 - bwiedem...@suse.com + +- use shorter swift-container names to make startproc work + with kernel's 15-char shortnames (bnc#772585) + +------------------------------------------------------------------- +Mon Jul 16 16:25:48 CEST 2012 - vu...@suse.com + +- Add dir-traversals-checks.patch: add checks to ensure no + directory traversal can happen. See lp#1005908. + +------------------------------------------------------------------- +Thu Jun 28 09:35:41 UTC 2012 - sasc...@suse.de + +- Split out python-swift package which includes everthing in + %{python-sitelib} + +------------------------------------------------------------------- +Tue Jun 27 12:21:10 UTC 2012 - sasc...@suse.de + +- Consistent package summaries +- Macro cleanup: + + Package is noarch except for SLE-11 + + No need to redefine %_initddir, SLE-11 works correctly + +------------------------------------------------------------------- +Wed Jun 27 10:41:21 UTC 2012 - sasc...@suse.de + +- Don't use intersphinx for documentation build (avoid internet access) +- Change versioning scheme to $release+git.$AUTHORDATE.$COMMITREV +- Simplify from_vcs macros + +------------------------------------------------------------------- +Tue Jun 26 14:31:21 CEST 2012 - iartar...@suse.cz + +- Add rsync patch to fix object replication for rsync 3.0.4 (lp#987388) + +------------------------------------------------------------------- +Mon Jun 18 14:34:45 UTC 2012 - sasc...@suse.de + +- Better run %restart_on_update in %postun +- No need for %py_requires (we also have an explicit "BuildRequires: python >= 2.6.8") +- Add rpmlintrc + +------------------------------------------------------------------- +Mon Jun 18 15:50:01 CEST 2012 - iartar...@suse.cz + +- Also set default user to 'openstack-swift' in proxy test config + +------------------------------------------------------------------- +Mon Jun 18 13:22:18 UTC 2012 - sasc...@suse.de + +- Also set default user to 'openstack-swift' in test configuration files + +------------------------------------------------------------------- +Tue Jun 12 10:40:57 UTC 2012 - sasc...@suse.de + +- Use 'openstack-swift' system user instead of 'swift' +- Use %{_localstatedir}/lib instead of %{_sharedstatedir} (equals '/usr/com') + as the system user home directory + +------------------------------------------------------------------- +Thu May 24 10:48:35 MDT 2012 - jfeh...@suse.com + +- Add 'Requires: python >= 2.6.8' + +------------------------------------------------------------------- +Wed Feb 8 09:37:47 UTC 2012 - rha...@suse.de + +- Fixed try-restart command in swift-proxy init script to only + restart if the service was running before +- Don't enable services automatically during install + +------------------------------------------------------------------- +Fri Jan 27 14:50:54 UTC 2012 - mvid...@suse.com + +- Updated to a current git snapshot. + +------------------------------------------------------------------- +Mon Jan 16 16:06:58 UTC 2012 - prus...@opensuse.org + ++++ 174 more lines (skipped) ++++ between /dev/null ++++ and /work/SRC/openSUSE:12.3:Update/.openstack-swift.1783.new/openstack-swift.changes New: ---- CVE-2013-2161.patch _service openstack-swift-account-auditor.init openstack-swift-account-reaper.init openstack-swift-account-replicator.init openstack-swift-account.init openstack-swift-container-auditor.init openstack-swift-container-replicator.init openstack-swift-container-sync.init openstack-swift-container-updater.init openstack-swift-container.init openstack-swift-doc.changes openstack-swift-doc.spec openstack-swift-functions openstack-swift-object-auditor.init openstack-swift-object-expirer.init openstack-swift-object-replicator.init openstack-swift-object-updater.init openstack-swift-object.init openstack-swift-proxy.init openstack-swift.changes openstack-swift.spec rpmlintrc swift-stable-folsom.tar.gz test-configs.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openstack-swift-doc.spec ++++++ # # spec file for package openstack-swift-doc # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define component swift Name: openstack-%{component}-doc Version: 1.7.4.1+git.1359529903.0ce3e1d Release: 0 Summary: OpenStack Storage (Swift) - Documentation License: Apache-2.0 Group: Documentation/HTML Url: http://openstack.org/projects/compute/ Source: swift-stable-folsom.tar.gz BuildRequires: openstack-macros BuildRequires: python-PasteDeploy BuildRequires: python-Sphinx BuildRequires: python-eventlet BuildRequires: python-netifaces BuildRequires: python-simplejson BuildRequires: python-swiftclient BuildRequires: python-webob BuildRequires: python-xattr BuildRequires: python-xml BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description OpenStack Object Storage (swift) aggregates commodity servers to work together in clusters for reliable, redundant, and large-scale storage of static objects. This package contains documentation files for openstack-swift. %prep %setup -q -n swift-1.7.4.1 sed -i "s/\r//" LICENSE # Fix wrong-file-end-of-line-encoding warning %openstack_cleanup_prep %build python setup.py build_sphinx rm -rf doc/build/html/.buildinfo # Remove unneeded files %install %files %defattr(-,root,root,-) %doc LICENSE doc/build/html %changelog ++++++ openstack-swift.spec ++++++ # # spec file for package openstack-swift # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define component swift %define groupname openstack-%{component} %define username openstack-%{component} Name: openstack-%{component} Version: 1.7.4.1+git.1359529903.0ce3e1d Release: 0 Summary: OpenStack Storage (Swift) License: Apache-2.0 Group: Development/Languages/Python Url: http://launchpad.net/swift Source: swift-stable-folsom.tar.gz Source1: %{name}-functions Source2: %{name}-account.init Source3: %{name}-account-auditor.init Source4: %{name}-account-reaper.init Source5: %{name}-account-replicator.init Source6: %{name}-container.init Source7: %{name}-container-auditor.init Source8: %{name}-container-replicator.init Source9: %{name}-container-updater.init Source10: %{name}-container-sync.init Source11: %{name}-object.init Source12: %{name}-object-replicator.init Source13: %{name}-object-expirer.init Source14: %{name}-object-updater.init Source15: %{name}-object-auditor.init Source16: %{name}-proxy.init Source21: test-configs.tar.bz2 # PATCH-FIX-UPSTREAM CVE-2013-2161.patch -- fix unchecked user input in Swift XML responses Patch0: CVE-2013-2161.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: openstack-macros BuildRequires: python-coverage BuildRequires: python-devel BuildRequires: python-distribute Requires: python >= 2.6.8 Requires: python-WebOb >= 1.0.8 #Requires: python-WebOb < 1.3 Requires: python-PasteDeploy Requires: python-configobj Requires: python-eventlet >= 0.9.15 Requires: python-greenlet >= 0.3.1 Requires: python-netifaces Requires: python-simplejson Requires: python-swift = %{version} Requires: python-swiftclient Requires: python-xattr Requires: rsync Requires(post): %insserv_prereq %if 0%{?suse_version} > 1110 Requires(pre): pwdutils %else Requires(pre): shadow-utils %endif %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch %endif %description OpenStack Object Storage (swift) aggregates commodity servers to work together in clusters for reliable, redundant, and large-scale storage of static objects. Objects are written to multiple hardware devices in the data center, with the OpenStack software responsible for ensuring data replication and integrity across the cluster. Storage clusters can scale horizontally by adding new nodes, which are automatically configured. Should a node fail, OpenStack works to replicate its content from other active nodes. Because OpenStack uses software logic to ensure data replication and distribution across different devices, inexpensive commodity hard drives and servers can be used in lieu of more expensive equipment. %package -n python-swift Summary: OpenStack Storage (Swift) - Python module Group: Development/Languages/Python Requires: python >= 2.6.8 Requires: python-netifaces %description -n python-swift This package contains the core Python module of OpenStack Swift. %package account Summary: OpenStack Storage (Swift) - Account Server Group: Productivity/Clustering/Computing Requires: %{name} = %{version} Requires: sqlite3 >= 3.6.23 %description account OpenStack Object Storage (swift) aggregates commodity servers to work together in clusters for reliable, redundant, and large-scale storage of static objects. This package contains the openstack-swift account server. %package container Summary: OpenStack Storage (Swift) - Container Server Group: Productivity/Clustering/Computing Requires: %{name} = %{version} Requires: sqlite3 >= 3.6.23 %description container OpenStack Object Storage (swift) aggregates commodity servers to work together in clusters for reliable, redundant, and large-scale storage of static objects. This package contains the openstack-swift container server. %package object Summary: OpenStack Storage (Swift) - Object Server Group: Productivity/Clustering/Computing Requires: %{name} = %{version} Requires: sqlite3 >= 3.6.23 %description object OpenStack Object Storage (swift) aggregates commodity servers to work together in clusters for reliable, redundant, and large-scale storage of static objects. This package contains the openstack-swift object server. %package proxy Summary: OpenStack Storage (Swift) - Proxy Server Group: Productivity/Clustering/Computing Requires: %{name} = %{version} Requires: memcached %description proxy OpenStack Object Storage (swift) aggregates commodity servers to work together in clusters for reliable, redundant, and large-scale storage of static objects. This package contains the openstack-swift proxy server. %package test Summary: OpenStack Storage (Swift) - Testsuite Group: Development/Languages/Python Requires: %{name} = %{version} Requires: python-Sphinx >= 1.1.2 Requires: python-coverage Requires: python-nose Requires: python-nosehtmloutput Requires: python-nosexcover Requires: python-openstack.nose_plugin Requires: python-pep8 %description test The OpenStack Swift testsuite. It is used to verify the functionality of OpenStack Swift. %prep %setup -q -n swift-1.7.4.1 sed -i "s/\r//" LICENSE # Fix wrong-file-end-of-line-encoding warning tar xvf %{SOURCE21} %patch0 -p1 %openstack_cleanup_prep %build python setup.py build %install python setup.py install --root %{buildroot} --prefix %{_prefix} # Init helper functions install -p -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/functions # Init scripts install -p -D -m 755 %{SOURCE2} %{buildroot}%{_initddir}/%{name}-account install -p -D -m 755 %{SOURCE3} %{buildroot}%{_initddir}/%{name}-account-auditor install -p -D -m 755 %{SOURCE4} %{buildroot}%{_initddir}/%{name}-account-reaper install -p -D -m 755 %{SOURCE5} %{buildroot}%{_initddir}/%{name}-account-replicator install -p -D -m 755 %{SOURCE6} %{buildroot}%{_initddir}/%{name}-container install -p -D -m 755 %{SOURCE7} %{buildroot}%{_initddir}/%{name}-container-auditor install -p -D -m 755 %{SOURCE8} %{buildroot}%{_initddir}/%{name}-container-replicator install -p -D -m 755 %{SOURCE9} %{buildroot}%{_initddir}/%{name}-container-updater install -p -D -m 755 %{SOURCE10} %{buildroot}%{_initddir}/%{name}-container-sync # workaround https://bugzilla.novell.com/show_bug.cgi?id=772585 for m in auditor replicator server updater sync ; do ln -s swift-container-$m %{buildroot}%{_bindir}/swift-cont-$m done # end of workaround install -p -D -m 755 %{SOURCE11} %{buildroot}%{_initddir}/%{name}-object install -p -D -m 755 %{SOURCE12} %{buildroot}%{_initddir}/%{name}-object-replicator install -p -D -m 755 %{SOURCE13} %{buildroot}%{_initddir}/%{name}-object-expirer install -p -D -m 755 %{SOURCE14} %{buildroot}%{_initddir}/%{name}-object-updater install -p -D -m 755 %{SOURCE15} %{buildroot}%{_initddir}/%{name}-object-auditor install -p -D -m 755 %{SOURCE16} %{buildroot}%{_initddir}/%{name}-proxy # symlinks for init scripts mkdir -p %{buildroot}%{_sbindir} for server in account account-auditor account-reaper account-replicator container container-auditor container-replicator container-updater container-sync object object-replicator object-expirer object-updater object-auditor proxy; do ln -s ../..%{_initddir}/%{name}-$server %{buildroot}%{_sbindir}/rc%{name}-$server done # Install manpages install -d %{buildroot}%{_mandir}/man{1,5}/ install -m 0644 doc/manpages/*.1 %{buildroot}%{_mandir}/man1/ install -m 0644 doc/manpages/*.5 %{buildroot}%{_mandir}/man5/ # Remove tests rm -fr %{buildroot}/%{python_sitelib}/test # Misc other install -d -m 755 %{buildroot}%{_sysconfdir}/swift install -d -m 755 %{buildroot}%{_sysconfdir}/swift/account-server install -d -m 755 %{buildroot}%{_sysconfdir}/swift/container-server install -d -m 755 %{buildroot}%{_sysconfdir}/swift/object-server install -d -m 755 %{buildroot}%{_sysconfdir}/swift/proxy-server # /var/run is not allowed in 11.3 or later because of tmpfs support %if 0%{?suse_version} < 1130 # Install pid directory install -d -m 755 %{buildroot}%{_localstatedir}/run/swift install -d -m 755 %{buildroot}%{_localstatedir}/run/swift/account-server install -d -m 755 %{buildroot}%{_localstatedir}/run/swift/container-server install -d -m 755 %{buildroot}%{_localstatedir}/run/swift/object-server install -d -m 755 %{buildroot}%{_localstatedir}/run/swift/proxy-server %endif %fdupes %{buildroot}%{python_sitelib}/swift # test sub-package %openstack_test_package_install cp -r test-configs/* %{buildroot}/ # For ./.unittests: install -m 0644 test/sample.conf %{buildroot}%{_sysconfdir}/swift/test.conf # For ./.functests: ln -s %{_sysconfdir}/swift/test.conf %{buildroot}%{_sysconfdir}/swift/func_test.conf %pre getent group %{groupname} >/dev/null || groupadd -r %{groupname} getent passwd %{username} >/dev/null || \ useradd -r -g %{groupname} -d %{_localstatedir}/lib/swift -s /sbin/nologin \ -c "OpenStack Swift Daemons" %{username} exit 0 %post account %fillup_and_insserv -f openstack-swift-account %preun account %stop_on_removal openstack-swift-account %postun account %restart_on_update openstack-swift-account %insserv_cleanup %post container %fillup_and_insserv -f openstack-swift-container %preun container %stop_on_removal openstack-swift-container %postun container %restart_on_update openstack-swift-container %insserv_cleanup %post object %fillup_and_insserv -f openstack-swift-object %preun object %stop_on_removal openstack-swift-object %postun object %restart_on_update openstack-swift-object %insserv_cleanup %post proxy %fillup_and_insserv -f openstack-swift-proxy %preun proxy %stop_on_removal openstack-swift-proxy %postun proxy %restart_on_update openstack-swift-proxy %insserv_cleanup %files %defattr(-,root,root,-) %doc README %dir %{_datadir}/%{name}/functions %if 0%{?suse_version} < 1130 %dir %attr(0755, %{username}, root) %{_localstatedir}/run/swift %endif %dir %{_sysconfdir}/swift %dir %{_datadir}/openstack-swift %{_bindir}/swift-account-audit %{_bindir}/swift-bench %{_bindir}/swift-dispersion-populate %{_bindir}/swift-dispersion-report %{_bindir}/swift-drive-audit %{_bindir}/swift-form-signature %{_bindir}/swift-get-nodes %{_bindir}/swift-init %{_bindir}/swift-oldies %{_bindir}/swift-orphans %{_bindir}/swift-recon %{_bindir}/swift-recon-cron %{_bindir}/swift-ring-builder %{_bindir}/swift-temp-url %{_mandir}/man1/swift.1.gz %{_mandir}/man1/swift-dispersion-populate.1.gz %{_mandir}/man1/swift-dispersion-report.1.gz %{_mandir}/man1/swift-get-nodes.1.gz %{_mandir}/man1/swift-init.1.gz %{_mandir}/man1/swift-orphans.1.gz %{_mandir}/man1/swift-recon.1.gz %{_mandir}/man1/swift-ring-builder.1.gz %{_mandir}/man5/dispersion.conf.5.gz %files -n python-swift %defattr(-,root,root,-) %doc AUTHORS LICENSE %{python_sitelib}/swift %{python_sitelib}/swift-1.*.egg-info %files account %defattr(-,root,root,-) %doc etc/account-server.conf-sample %{_initddir}/%{name}-account* %{_sbindir}/rc%{name}-account* %if 0%{?suse_version} < 1130 %dir %attr(0755, %{username}, root) %{_localstatedir}/run/swift/account-server %endif %dir %{_sysconfdir}/swift/account-server %{_bindir}/swift-account-auditor %{_bindir}/swift-account-reaper %{_bindir}/swift-account-replicator %{_bindir}/swift-account-server %{_mandir}/man1/swift-account-auditor.1.gz %{_mandir}/man1/swift-account-reaper.1.gz %{_mandir}/man1/swift-account-replicator.1.gz %{_mandir}/man1/swift-account-server.1.gz %{_mandir}/man5/account-server.conf.5.gz %files container %defattr(-,root,root,-) %doc etc/container-server.conf-sample %{_initddir}/%{name}-container* %{_sbindir}/rc%{name}-container* %if 0%{?suse_version} < 1130 %dir %attr(0755, %{username}, root) %{_localstatedir}/run/swift/container-server %endif %dir %{_sysconfdir}/swift/container-server %{_bindir}/swift-container-auditor %{_bindir}/swift-container-server %{_bindir}/swift-container-replicator %{_bindir}/swift-container-updater %{_bindir}/swift-container-sync %{_bindir}/swift-cont-* %{_mandir}/man1/swift-container-auditor.1.gz %{_mandir}/man1/swift-container-server.1.gz %{_mandir}/man1/swift-container-sync.1.gz %{_mandir}/man1/swift-container-replicator.1.gz %{_mandir}/man1/swift-container-updater.1.gz %{_mandir}/man5/container-server.conf.5.gz %files object %defattr(-,root,root,-) %doc etc/account-server.conf-sample etc/rsyncd.conf-sample %{_initddir}/%{name}-object* %{_sbindir}/rc%{name}-object* %if 0%{?suse_version} < 1130 %dir %attr(0755, %{username}, root) %{_localstatedir}/run/swift/object-server %endif %dir %{_sysconfdir}/swift/object-server %{_bindir}/swift-object-auditor %{_bindir}/swift-object-expirer %{_bindir}/swift-object-info %{_bindir}/swift-object-replicator %{_bindir}/swift-object-server %{_bindir}/swift-object-updater %{_mandir}/man1/swift-object-auditor.1.gz %{_mandir}/man1/swift-object-expirer.1.gz %{_mandir}/man1/swift-object-info.1.gz %{_mandir}/man1/swift-object-replicator.1.gz %{_mandir}/man1/swift-object-server.1.gz %{_mandir}/man1/swift-object-updater.1.gz %{_mandir}/man5/object-expirer.conf.5.gz %{_mandir}/man5/object-server.conf.5.gz %files proxy %defattr(-,root,root,-) %doc etc/proxy-server.conf-sample %{_initddir}/%{name}-proxy %{_sbindir}/rc%{name}-proxy %if 0%{?suse_version} < 1130 %dir %attr(0755, %{username}, root) %{_localstatedir}/run/swift/proxy-server %endif %dir %{_sysconfdir}/swift/proxy-server %{_bindir}/swift-proxy-server %{_mandir}/man1/swift-proxy-server.1.gz %{_mandir}/man5/proxy-server.conf.5.gz %files test %defattr(-,root,root) %dir %{_localstatedir}/lib/openstack-swift-test %{_localstatedir}/lib/openstack-swift-test/* %{_localstatedir}/lib/openstack-swift-test/.functests %{_localstatedir}/lib/openstack-swift-test/.probetests %{_localstatedir}/lib/openstack-swift-test/.unittests %{_sysconfdir}/swift/test.conf %{_sysconfdir}/swift/func_test.conf %{_sysconfdir}/swift/container-server/* %{_sysconfdir}/swift/object-server/* %{_sysconfdir}/swift/account-server/* %{_sysconfdir}/swift/proxy-server.conf %{_sysconfdir}/swift/swift.conf %{_bindir}/remakerings %{_bindir}/resetswift %changelog ++++++ CVE-2013-2161.patch ++++++ diff --git a/swift/account/server.py b/swift/account/server.py index 4c08fc1..8acd5f5 100644 --- a/swift/account/server.py +++ b/swift/account/server.py @@ -253,7 +253,7 @@ class AccountController(object): account_list = json.dumps(data) elif out_content_type.endswith('/xml'): output_list = ['<?xml version="1.0" encoding="UTF-8"?>', - '<account name="%s">' % account] + '<account name="%s">' % saxutils.escape(account)] for (name, object_count, bytes_used, is_subdir) in account_list: name = saxutils.escape(name) if is_subdir: ++++++ _service ++++++ <services> <service name="github_tarballs" mode="disabled"> <param name="url">http://tarballs.openstack.org/swift/swift-stable-folsom.tar.gz</param> <param name="email">cloud-de...@suse.de</param> <param name="repo_owner">openstack</param> <param name="repo_name">swift</param> <param name="target">stable/folsom</param> </service> </services> ++++++ openstack-swift-account-auditor.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-account-auditor # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift account auditor # Description: Account auditor for swift. ### END INIT INFO # openstack-swift-account-auditor: swift account auditor # # chkconfig: - 20 80 # description: Account auditor for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="account-auditor" server="swift-$name" config="/etc/swift/account-server/account-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-account-reaper.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-account-reaper # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift account reaper # Description: Account reaper for swift. ### END INIT INFO # openstack-swift-account-reaper: swift account reaper # # chkconfig: - 20 80 # description: Account reaper for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="account-reaper" server="swift-$name" config="/etc/swift/account-server/account-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-account-replicator.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-account-replicator # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift account replicator # Description: Account replicator for swift. ### END INIT INFO # openstack-swift-account-replicator: swift account replicator # # chkconfig: - 20 80 # description: Account replicator for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="account-replicator" server="swift-$name" config="/etc/swift/account-server/account-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-account.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-account # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift account server # Description: Account server for swift. ### END INIT INFO # openstack-swift-account: swift account server # # chkconfig: - 20 80 # description: Account server for swift. . /etc/rc.status . /usr/share/openstack-swift/functions name="account" server="swift-$name-server" config="/etc/swift/account-server/account-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-container-auditor.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-container-auditor # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift container auditor # Description: Container auditor for swift. ### END INIT INFO # openstack-swift-container-auditor: swift container auditor # # chkconfig: - 20 80 # description: Container auditor for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="container-auditor" server="swift-cont-auditor" config="/etc/swift/container-server/container-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset fi ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-container-replicator.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-container-replicator # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift container replicator # Description: Container replicator for swift. ### END INIT INFO # openstack-swift-container-replicator: swift container replicator # # chkconfig: - 20 80 # description: Container replicator for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="container-replicator" server="swift-cont-replicator" config="/etc/swift/container-server/container-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-container-sync.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-container-sync # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift container sync # Description: Container sync for swift. ### END INIT INFO # openstack-swift-container-sync: swift container sync # # chkconfig: - 20 80 # description: Container sync for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="container-sync" server="swift-cont-sync" config="/etc/swift/container-server/container-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-container-updater.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-container-updater # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift container server # Description: Container server for swift. ### END INIT INFO # openstack-swift-container-updater: swift container server # # chkconfig: - 20 80 # description: Container updater for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="container-updater" server="swift-cont-updater" config="/etc/swift/container-server/container-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-container.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-container # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift container server # Description: Container server for swift. ### END INIT INFO # openstack-swift-container: swift container server # # chkconfig: - 20 80 # description: Container server for swift. . /etc/rc.status . /usr/share/openstack-swift/functions name="container" server="swift-cont-server" config="/etc/swift/container-server/container-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-functions ++++++ # vim: filetype=sh . /etc/rc.status swift_action() { retval=0 server="$1" call="swift_$2" if [[ -f "/etc/swift/$server-server.conf" ]]; then $call "$server" \ "/etc/swift/$server-server.conf" \ "/var/run/swift/$server-server.pid" [ $? -ne 0 ] && retval=1 elif [[ -d "/etc/swift/$server-server/" ]]; then declare -i count=0 for name in $( ls "/etc/swift/$server-server/" ); do $call "$server" \ "/etc/swift/$server-server/$name" \ "/var/run/swift/$server-server/$count.pid" [ $? -ne 0 ] && retval=1 count=$count+1 done fi return $retval } swift_start() { name="$1" long_name="$name-server" conf_file="$2" pid_file="$3" ulimit -n ${SWIFT_MAX_FILES-32768} echo -n "Starting swift-$long_name: " daemon --pidfile $pid_file \ "/usr/bin/swift-$long_name $conf_file &>/dev/null & echo \$! > $pid_file" retval=$? echo return $retval } swift_stop() { name="$1" long_name="$name-server" conf_name="$2" pid_file="$3" echo -n "Stopping swift-$long_name: " killproc -p $pid_file -d ${SWIFT_STOP_DELAY-15} $long_name retval=$? echo return $retval } swift_status() { name="$1" long_name="$name-server" conf_name="$2" pid_file="$3" status -p $pid_file $long_name } ++++++ openstack-swift-object-auditor.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-object-auditor # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift object auditor # Description: Object auditor for swift. ### END INIT INFO # openstack-swift-object: swift object auditor # # chkconfig: - 20 80 # description: Object auditor for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="object-auditor" server="swift-$name" config="/etc/swift/object-server/object-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-object-expirer.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-object-expirer # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift object expirer # Description: Object expirer for swift. ### END INIT INFO # openstack-swift-object: swift object expirer # # chkconfig: - 20 80 # description: Object expirer for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="object-expirer" server="swift-$name" config="/etc/swift/object-server/object-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-object-replicator.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-object-replicator # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift object replicator # Description: Object replicator for swift. ### END INIT INFO # openstack-swift-object: swift object replicator # # chkconfig: - 20 80 # description: Object replicator for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="object-replicator" server="swift-$name" config="/etc/swift/object-server/object-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-object-updater.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-object-updater # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift object updater # Description: Object updater for swift. ### END INIT INFO # openstack-swift-object: swift object updater # # chkconfig: - 20 80 # description: Object updater for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="object-updater" server="swift-$name" config="/etc/swift/object-server/object-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-object.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-object # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift object server # Description: Object server for swift. ### END INIT INFO # openstack-swift-object: swift object server # # chkconfig: - 20 80 # description: Object server for swift. . /etc/rc.status . /usr/share/openstack-swift/functions name="object" server="swift-$name-server" config="/etc/swift/object-server/object-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $server" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi ;; *) echo $"Usage: $0 {start|stop|status|restart|try-restart}" exit 2 esac exit $? ++++++ openstack-swift-proxy.init ++++++ #!/bin/sh ### BEGIN INIT INFO # Provides: openstack-swift-proxy # Required-Start: $remote_fs # Should-Start: memcached # Required-Stop: $remote_fs # Should-Stop: memcached # Default-Start: 3 5 # Default-Stop: 0 1 6 # Short-Description: Swift proxy server # Description: Account server for swift. ### END INIT INFO # openstack-swift-proxy: swift proxy server # # chkconfig: - 20 80 # description: Proxy server for swift. . /etc/rc.status #. /usr/share/openstack-swift/functions name="proxy-server" server="swift-proxy-server" config="/etc/swift/proxy-server.conf" CHUSER="-u openstack-swift" [ -e "/etc/sysconfig/openstack-swift-$name" ] && . "/etc/sysconfig/openstack-swift-$name" mkvarrun() { test -d /var/run/swift || mkdir /var/run/swift test -d /var/run/swift/${name} || mkdir /var/run/swift/${name} } mkvarrun case "$1" in start) echo -n "Starting $server" startproc $CHUSER /usr/bin/$server $config rc_status -v ;; stop) echo -n "Shutting down $server" killproc /usr/bin/$server rc_status -v ;; restart) $0 stop $0 start rc_status ;; reload) ;; status) echo -n "Checking $FULLNAME" /sbin/checkproc /usr/bin/$server rc_status -v ;; condrestart|try-restart) $0 status if test $? = 0; then $0 restart else rc_reset fi ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart}" exit 2 esac exit $? ++++++ rpmlintrc ++++++ # This symling is for the -test package and can be ignored: addFilter("dangling-symlink /var/lib/openstack-swift-test/swift") # Rpmlint gets this wrong, the subsys directories are fine but the variable # inside the init scripts contains shell variables: addFilter("incoherent-subsys /etc/init.d/openstack-swift") # The following files are testsuite runners: addFilter("hidden-file-or-dir /var/lib/openstack-swift-test/.functests") addFilter("hidden-file-or-dir /var/lib/openstack-swift-test/.probetests") addFilter("hidden-file-or-dir /var/lib/openstack-swift-test/.unittests") -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org