Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase from upstream, remove Python 2 from CI, and set use_2to3=False #81

Merged
merged 8 commits into from
Oct 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
- macOS
- Ubuntu
python-version:
- 2.7
- 3.5
- 3.6
- 3.7
Expand Down
1 change: 1 addition & 0 deletions docs/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 4 additions & 0 deletions docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 2bcce9beacbd0357767bb37b67c172e1
tags: 645f666f9bcd5a90fca523b33c5a78b7
1 change: 1 addition & 0 deletions docs/_build/html/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion docs/_modules/dqsegdb/_version.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/_modules/dqsegdb/apicalls.html
Original file line number Diff line number Diff line change
Expand Up @@ -1169,4 +1169,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/_modules/dqsegdb/clientutils.html
Original file line number Diff line number Diff line change
Expand Up @@ -631,4 +631,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/_modules/dqsegdb/jsonhelper.html
Original file line number Diff line number Diff line change
Expand Up @@ -456,4 +456,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/_modules/dqsegdb/urifunctions.html
Original file line number Diff line number Diff line change
Expand Up @@ -386,4 +386,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/dqsegdb.html
Original file line number Diff line number Diff line change
Expand Up @@ -946,4 +946,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
1 change: 1 addition & 0 deletions docs/empty.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 1 addition & 1 deletion docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -377,4 +377,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
Binary file added docs/html_2020.03.0a.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/ligolw_publish_threaded_dqxml_dqsegdb.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/ligolw_segment_query_dqsegdb.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/ligolw_segments_from_cats_dqsegdb.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ <h3>Navigation</h3>
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.4.3.
</div>
</body>
</html>
</html>
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

42 changes: 25 additions & 17 deletions server/install_scripts/cit_install_script_sl7update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,14 @@ if [ $run_block_1 -eq 1 ]; then # * basic installation items #basic
if [ -e ./.bashrc ]; then cp ./.bashrc ./.bashrc_$(date +%Y.%m.%d-%H.%M.%S).bak ; fi
if [ -e ./.vimrc ]; then cp ./.vimrc ./.vimrc_$(date +%Y.%m.%d-%H.%M.%S).bak ; fi
if [ -e ./.pythonrc ]; then cp ./.pythonrc ./.pythonrc_$(date +%Y.%m.%d-%H.%M.%S).bak ; fi
#rsync -avP /backup/segdb/segments/install_support/.bashrc .
#rsync -avP /backup/segdb/segments/install_support/.vimrc .
#rsync -avP /backup/segdb/segments/install_support/.pythonrc .
rsync -avP /backup/segdb/reference/install_support/.bashrc .
rsync -avP /backup/segdb/reference/install_support/.vimrc .
rsync -avP /backup/segdb/reference/install_support/.pythonrc .
chown root:root .bashrc .pythonrc .vimrc
. ./.bashrc
mkdir /root/bin/

yum -y install git nano mlocate screen telnet ### install python3?
yum -y install git nano mlocate screen telnet symlinks redhat-lsb-core ### install python3?
mkdir /root/dqsegdb_git
cd /root/dqsegdb_git
git clone https://github.com/ligovirgo/dqsegdb.git
Expand All @@ -134,8 +131,8 @@ if [ $run_block_1 -eq 1 ]; then # * basic installation items #basic
# Set LGMM (LIGO Grid-Mapfile Manager) to run on reboot and start it now
touch /etc/grid-security/whitelist ### just in case the config file looks for it; missing an expected file crashes lgmm
touch /etc/grid-security/blacklist ### just in case the config file looks for it; missing an expected file crashes lgmm
cp /backup/segdb/reference/lgmm/whitelist /etc/grid-security/
cp /etc/lgmm/lgmm_config.py /etc/lgmm/lgmm_config.py_$(date +%Y.%m.%d-%H.%M.%S).bak
cp /backup/segdb/reference/lgmm/whitelist /etc/grid-security/
cp /etc/lgmm/lgmm_config.py /etc/lgmm/lgmm_config.py_$(date +%Y.%m.%d-%H.%M.%S).bak
cp /backup/segdb/reference/install_support/lgmm_config.py /etc/lgmm/
touch /etc/grid-security/grid-mapfile
chown nobody:nobody /etc/grid-security/grid-mapfile
Expand All @@ -144,6 +141,22 @@ if [ $run_block_1 -eq 1 ]; then # * basic installation items #basic
lgmm -f
/sbin/chkconfig lgmm on
systemctl restart lgmm

# Set ABRT to log info on errors in some of our software (by not requiring software be PGP-signed or installed from a package)
abrt_config_file=/etc/abrt/abrt-action-save-package-data.conf
if [ -e $abrt_config_file ]
then
echo "### INFO ### Possibly changing ABRT settings. Old settings:"
grep -e ProcessUnpackaged -e OpenGPGCheck $abrt_config_file
cp -p $abrt_config_file ${abrt_config_file}_$(date +%Y.%m.%d-%H.%M.%S).bak
old_string="OpenGPGCheck = yes"; new_string="OpenGPGCheck = no"; sed -i "s/$old_string/$new_string/g" $abrt_config_file
old_string="ProcessUnpackaged = no"; new_string="ProcessUnpackaged = yes"; sed -i "s/$old_string/$new_string/g" $abrt_config_file
echo " ### New settings:"
grep -e ProcessUnpackaged -e OpenGPGCheck $abrt_config_file
else
echo "### WARNING ### ABRT configuration file ( $abrt_config_file ) was not found, so its settings were not modified."
echo " ### You might want to do this by hand, using commands from the installation file."
fi
fi # run_block_1


Expand Down Expand Up @@ -173,7 +186,7 @@ if [ $run_block_2 -eq 1 ]; then # * Apache, MariaDB, etc., installation

# Increase innodb buffer pool size.
echo "[mysqld]" >> /etc/my.cnf
# set max_connections to 256 here? - do in /etc/my.cnf ?
echo "max_connections=256" >> /etc/my.cnf
if [ $host == "segments-dev2" ]
then # this is only for segments-dev2
echo "innodb_buffer_pool_size = 20G" >> /etc/my.cnf
Expand All @@ -182,11 +195,10 @@ if [ $run_block_2 -eq 1 ]; then # * Apache, MariaDB, etc., installation
then # this is only for segments-web or segments-web2
echo "innodb_buffer_pool_size = 3G" >> /etc/my.cnf
else # this is for anything other than -dev2, -web, or -web2
echo "innodb_buffer_pool_size = 40G" >> /etc/my.cnf
echo "innodb_buffer_pool_size = 50G" >> /etc/my.cnf
fi
fi
### Note: 20 GB for segments-dev2 is b/c it has limited disk space; others should be fine.
### (Maybe increase it for some/all others?)
### Note: 20 GB for segments-dev2 is b/c it has limited disk space; others should be fine.
### Also: segments-web with SL6 and MySQL only had 6 GB of RAM + swap and would start fine with the 40G setting,
### even though it wasn't using (couldn't use) 40 GB;
### segments-web2 (which will be renamed segments-web), with SL7 and MariaDB and 3.8 GB of RAM + swap
Expand Down Expand Up @@ -220,12 +232,10 @@ if [ $run_block_2 -eq 1 ]; then # * Apache, MariaDB, etc., installation
mkdir -p /opt/dqsegdb/python_server/src

# Add server files.
cd ~
git clone https://github.com/ligovirgo/dqsegdb.git
cp ~/dqsegdb/server/src/* /opt/dqsegdb/python_server/src/
cp ~/dqsegdb_git/dqsegdb/server/src/* /opt/dqsegdb/python_server/src/

# Add WSGI script alias to Apache configuration file.
#echo "WSGIScriptAlias / /opt/dqsegdb/python_server/src/application.py" >> /etc/httpd/conf.d/wsgi.conf
echo "WSGIScriptAlias / /opt/dqsegdb/python_server/src/application.py" >> /etc/httpd/conf.d/wsgi.conf
### why is this done a few lines before the /etc/httpd/conf.d/ dir is moved and replaced???
### turns out that the file copied over later (/etc/httpd/conf.d/wsgi.conf) already has this line
### so the above line isn't needed at all; it just creates the file, which is then moved
Expand All @@ -245,7 +255,7 @@ if [ $run_block_2 -eq 1 ]; then # * Apache, MariaDB, etc., installation
fi

# Install phpMyAdmin
### do we want to do this for every segments machine?
### do we want to do this for every segments* machine?
if [ $host == "segments" ] || [ $host == "segments-web" ] || [ $host == "segments-backup" ] || \
[ $host == "segments-dev" ] || [ $host == "segments-dev2" ]
then
Expand Down Expand Up @@ -786,8 +796,6 @@ exit
### * which shib certificate names do we use?
### * verify that the shib installation instructions work
### * install python3?
### * should we increase the "innodb buffer pool size" for non-dev2 systems?
### * question about "set max_connections to 256 here? - do in /etc/my.cnf ?"
### * modify and use code on github, rather than copying 'dqsegdb_September_11_2018.tgz' over and using that
### * incorporate 'glue' fix to publisher code into github code; use that, rather than the patch here
### * fix the 'state files saved after backup' issue
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,5 @@ def run(self):
license=LICENSE,
long_description=LONG_DESCRIPTION,
zip_safe=False,
use_2to3=True
use_2to3=False
)