From 56bb00f7c9cc17f6b138ab4a5cc969b2ad4b91ea Mon Sep 17 00:00:00 2001 From: Darrell Bishop Date: Tue, 21 Aug 2012 14:54:12 -0700 Subject: [PATCH] A couple minor tweaks to the SAIO guide. Added "-p" to mkdir cmds in a "set -e" script (/etc/rc.local). /var/log/swift gets owned by the group "adm", but isn't group writeable by default, so the find/rm in "resetswift" fails. So I added a chmod to add group-write for that directory tree. Added commands for installing tox. Change-Id: Ic141491272a83a9233cd6a6a70c3ef74411f3f51 --- doc/source/development_saio.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/source/development_saio.rst b/doc/source/development_saio.rst index 43e00d2d43..40e9e1944a 100755 --- a/doc/source/development_saio.rst +++ b/doc/source/development_saio.rst @@ -102,9 +102,9 @@ If you want to use a loopback device instead of another partition, follow these #. `chown -R : /etc/swift /srv/[1-4]/ /var/run/swift` -- **Make sure to include the trailing slash after /srv/[1-4]/** #. Add to `/etc/rc.local` (before the `exit 0`):: - mkdir /var/cache/swift /var/cache/swift2 /var/cache/swift3 /var/cache/swift4 + mkdir -p /var/cache/swift /var/cache/swift2 /var/cache/swift3 /var/cache/swift4 chown : /var/cache/swift* - mkdir /var/run/swift + mkdir -p /var/run/swift chown : /var/run/swift .. _rsync-section: @@ -256,6 +256,7 @@ Optional: Setting up rsyslog for individual logging #. `mkdir -p /var/log/swift/hourly` #. `chown -R syslog.adm /var/log/swift` + #. `chmod -R g+w /var/log/swift` #. `service rsyslog restart` ------------------------------------------------ @@ -734,6 +735,10 @@ On MacOS: #. `sudo easy_install -U sphinx` #. `python setup.py build_sphinx` +Install tox so you find Py26 and PEP8 problems before Jenkins does: + #. `sudo apt-get install python2.6-dev python-pip` + #. `sudo pip install tox` + ---------------- Debugging Issues ----------------