Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
0cea60c9
Commit
0cea60c9
authored
Aug 02, 2017
by
Brian Beggs
Committed by
GitHub
Aug 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4021 from edx/bmedx/PLAT-1637
WIP: Fix for devstack sqlite segfaults PLAT-1637
parents
d01e3d0f
d3b8f3aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
0 deletions
+73
-0
playbooks/edx-east/edxapp.yml
+2
-0
playbooks/roles/devstack_sqlite_fix/defaults/main.yml
+11
-0
playbooks/roles/devstack_sqlite_fix/tasks/main.yml
+60
-0
No files found.
playbooks/edx-east/edxapp.yml
View file @
0cea60c9
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
nginx_extra_configs
:
"
{{
NGINX_EDXAPP_EXTRA_CONFIGS
}}"
nginx_extra_configs
:
"
{{
NGINX_EDXAPP_EXTRA_CONFIGS
}}"
nginx_redirects
:
"
{{
NGINX_EDXAPP_CUSTOM_REDIRECTS
}}"
nginx_redirects
:
"
{{
NGINX_EDXAPP_CUSTOM_REDIRECTS
}}"
-
edxapp
-
edxapp
-
role
:
devstack_sqlite_fix
when
:
devstack is defined and devstack
-
role
:
datadog
-
role
:
datadog
when
:
COMMON_ENABLE_DATADOG
when
:
COMMON_ENABLE_DATADOG
-
role
:
splunkforwarder
-
role
:
splunkforwarder
...
...
playbooks/roles/devstack_sqlite_fix/defaults/main.yml
0 → 100644
View file @
0cea60c9
---
SQLITE_FIX_TMP_DIR
:
"
/var/tmp/sqlite_fix"
PYSQLITE_URL
:
"
https://codeload.github.com/ghaering/pysqlite/tar.gz/2.8.3"
PYSQLITE_CREATED_PATH
:
"
pysqlite-2.8.3"
PYSQLITE_TMP_PATH
:
"
{{
SQLITE_FIX_TMP_DIR
}}/{{
PYSQLITE_CREATED_PATH
}}"
SQLITE_AUTOCONF_URL
:
"
https://www.sqlite.org/2016/sqlite-autoconf-3140100.tar.gz"
SQLITE_AUTOCONF_CREATED_PATH
:
"
sqlite-autoconf-3140100"
SQLITE_TMP_PATH
:
"
{{
SQLITE_FIX_TMP_DIR
}}/{{
SQLITE_AUTOCONF_CREATED_PATH
}}"
playbooks/roles/devstack_sqlite_fix/tasks/main.yml
0 → 100644
View file @
0cea60c9
---
-
name
:
Creates directory
file
:
path
:
"
{{
SQLITE_FIX_TMP_DIR
}}"
state
:
directory
mode
:
0775
when
:
devstack is defined and devstack
tags
:
-
devstack
-
devstack:install
# Tasks to download and upgrade pysqlite to prevent segfaults when testing in devstack
-
name
:
Download and unzip sqlite autoconf update
unarchive
:
src
:
"
{{
SQLITE_AUTOCONF_URL
}}"
dest
:
"
{{
SQLITE_FIX_TMP_DIR
}}"
remote_src
:
yes
when
:
devstack is defined and devstack
tags
:
-
devstack
-
devstack:install
-
name
:
Download and unzip pysqlite update
unarchive
:
src
:
"
{{
PYSQLITE_URL
}}"
dest
:
"
{{
SQLITE_FIX_TMP_DIR
}}"
remote_src
:
yes
when
:
devstack is defined and devstack
tags
:
-
devstack
-
devstack:install
# Copy module doesn't support recursive dir copies for remote_src: yes
-
name
:
Copy pysqlite autoconf into pyslite update dir
command
:
"
cp
-av
.
{{
PYSQLITE_TMP_PATH
}}/"
args
:
chdir
:
"
{{
SQLITE_TMP_PATH
}}"
when
:
devstack is defined and devstack
tags
:
-
devstack
-
devstack:install
-
name
:
Build and install pysqlite update
command
:
"
python
setup.py
build_static
install"
args
:
chdir
:
"
{{
PYSQLITE_TMP_PATH
}}"
when
:
devstack is defined and devstack
tags
:
-
devstack
-
devstack:install
-
name
:
Clean up pysqlite install artifacts
file
:
state
:
absent
path
:
"
{{
SQLITE_FIX_TMP_DIR
}}/"
when
:
devstack is defined and devstack
tags
:
-
devstack
-
devstack:install
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment