|
Odyssey
|
Functions | |
| def | get_ownership_detail (_directory) |
| def | owned_file_handler (_file_name, mode='w', owner=None) |
| def | setup_logging (_verbose, _disable_logging, formatter, _cu, _server, _log_file) |
| def | get_parser () |
| def | get_valid_cu_list () |
| def | run () |
Variables | |
| LOGGER = logging.getLogger(__name__) | |
| dictionary | MIGRATION_ENTRYPOINTS |
Main module to execute Mammoth to Odyssey Data Migration.
usage: ody_migr_executor.py [-h] [--secret SECRET] [--reset_and_migrate]
[--verbose] [--disable_logging]
{www4,www3,www5,www6} {clean,migrate,summary} cu
{settings,memdata,memhist,admin} username password
Argument Parser for Mammoth to Odyssey Data Migration.
positional arguments:
{www4,www3,www5,www6}
server code for Mammoth endpoint
{clean,migrate,summary}
migration action
cu target Credit Union <CUCODE> to migrate (upper case
required)
{settings,memdata,memhist,admin,loanapp}
data category to migrate
username mammoth monitor username
password mammoth monitor password (base64 encoded)
optional arguments:
-h, --help show this help message and exit
--secret SECRET, -s SECRET
pass secret key as optional argument instead
(alternative to environment variable)
--reset_and_migrate, -reset
clean db tables and commit before migration)
--verbose, -v output verbosity
--disable_logging, -dl
disable logging, logs only critical messages
Requirements:
Python>=3.4
Main packages:
psycopg2>=2.7.4
requests
Note (06/14/2018):
All the data migration scripts(app/tools/bin/ody_migr_*.py) have a shelf life.
Their usage is limited to one-time data migration of CU and its members from
Mammoth to Odyssey. We do not intend to maintain these scripts as-is after
migrations are complete.
| def ody_migr_executor.get_ownership_detail | ( | _directory | ) |
get file/directory user/group ownership detail
Definition at line 101 of file ody_migr_executor.py.
| def ody_migr_executor.get_parser | ( | ) |
| def ody_migr_executor.get_valid_cu_list | ( | ) |
| def ody_migr_executor.owned_file_handler | ( | _file_name, | |
mode = 'w', |
|||
owner = None |
|||
| ) |
Return a logging file handler with specified user/group ownership
Definition at line 110 of file ody_migr_executor.py.
| def ody_migr_executor.run | ( | ) |
Main entrypoint for all the migration operations.
Definition at line 267 of file ody_migr_executor.py.
| def ody_migr_executor.setup_logging | ( | _verbose, | |
| _disable_logging, | |||
| formatter, | |||
| _cu, | |||
| _server, | |||
| _log_file | |||
| ) |
| dictionary ody_migr_executor.MIGRATION_ENTRYPOINTS |
Definition at line 90 of file ody_migr_executor.py.
1.8.15