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
OpenEdx
configuration
Commits
fce2025b
Commit
fce2025b
authored
Sep 03, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1510 from edx/jarv/fix-db-clone
fixing syntax error, adding sleep
parents
6456d2b5
c9a41306
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
util/vpc-tools/db-clone.py
+3
-1
No files found.
util/vpc-tools/db-clone.py
View file @
fce2025b
...
@@ -131,6 +131,8 @@ if __name__ == '__main__':
...
@@ -131,6 +131,8 @@ if __name__ == '__main__':
print
(
"Waiting 15 seconds before checking to see if db is available"
)
print
(
"Waiting 15 seconds before checking to see if db is available"
)
time
.
sleep
(
15
)
time
.
sleep
(
15
)
wait_on_db_status
(
restore_dbid
)
wait_on_db_status
(
restore_dbid
)
print
(
"Waiting another 15 seconds"
)
time
.
sleep
(
15
)
if
args
.
clean_wwc
:
if
args
.
clean_wwc
:
# Run the mysql clean sql file
# Run the mysql clean sql file
sanitize_cmd
=
"""mysql -u root -p{root_pass} -h{db_host} wwc < {sanitize_wwc_sql_file} """
.
format
(
sanitize_cmd
=
"""mysql -u root -p{root_pass} -h{db_host} wwc < {sanitize_wwc_sql_file} """
.
format
(
...
@@ -157,7 +159,7 @@ if __name__ == '__main__':
...
@@ -157,7 +159,7 @@ if __name__ == '__main__':
db_cmd
=
"""cd {play_path} && ansible-playbook -c local -i 127.0.0.1, create_dbs.yml """
\
db_cmd
=
"""cd {play_path} && ansible-playbook -c local -i 127.0.0.1, create_dbs.yml """
\
"""{extra_args} -e "edxapp_db_root_user=root xqueue_db_root_user=root" """
\
"""{extra_args} -e "edxapp_db_root_user=root xqueue_db_root_user=root" """
\
""" -e "db_root_pass={root_pass}" """
\
""" -e "db_root_pass={root_pass}" """
\
"""EDXAPP_MYSQL_HOST={db_host}" """
.
format
(
"""
-e "
EDXAPP_MYSQL_HOST={db_host}" """
.
format
(
root_pass
=
args
.
password
,
root_pass
=
args
.
password
,
extra_args
=
extra_args
,
extra_args
=
extra_args
,
db_host
=
db_host
,
db_host
=
db_host
,
...
...
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