Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Support log for ansible-disaster-recovery #43

Merged
merged 16 commits into from May 17, 2018
Merged

Commits on May 17, 2018

  1. initialize log file and log level in ovirt-dr

    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    19c2098 View commit details
    Browse the repository at this point in the history
  2. Change default value in dr.conf

    Change dr-play location in dr.conf and change vault location
    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    70eabeb View commit details
    Browse the repository at this point in the history
  3. Use logging in generate vars

    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    1e77afb View commit details
    Browse the repository at this point in the history
  4. Remove unused log file in validator

    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    4e635e4 View commit details
    Browse the repository at this point in the history
  5. add logging support for fail over

    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    26a5044 View commit details
    Browse the repository at this point in the history
  6. add logging support for fail back

    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    010eff3 View commit details
    Browse the repository at this point in the history
  7. Use SafeConfigParser from ConfigParser

    Using attribute 'ExtendedInterpolation' is not compatible for
    configparser.
    If it is being used from RHEL 7.4 the following exception
    is being thrown:
    Traceback (most recent call last):
      File "./ovirt-dr", line 145, in <module>
        main(sys.argv[1:])
      File "./ovirt-dr", line 28, in main
        action, conf_file, log_file, log_level = _init_vars(argv)
      File "./ovirt-dr", line 88, in _init_vars
        log_file, log_level = _get_log_conf(conf_file, log_file, log_level)
      File "./ovirt-dr", line 101, in _get_log_conf
        settings._interpolation = configparser.ExtendedInterpolation()
    AttributeError: 'module' object has no attribute 'ExtendedInterpolation'
    
    Therefore to make the code compatible for RHEL as well, instead of
    using configparser, we use SafeConfigParser from ConfigParser.
    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    6ef2cd5 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    a8801a9 View commit details
    Browse the repository at this point in the history
  9. Use vault password as input for fail_over

    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    d31f07b View commit details
    Browse the repository at this point in the history
  10. Fix redundant var in generate_vars

    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    80e9efc View commit details
    Browse the repository at this point in the history
  11. Print failure message for failover and failback

    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    4147686 View commit details
    Browse the repository at this point in the history
  12. Configure report file name on failover and failback

    Configure the report file name to be passed as an argument when
    running the ovirt_dr script on failover and failback.
    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    5f43a01 View commit details
    Browse the repository at this point in the history
  13. Add stdout callback plugin to print appropriate output

    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    9574887 View commit details
    Browse the repository at this point in the history
  14. Rename tasks of adding storage domains

    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    12a68c2 View commit details
    Browse the repository at this point in the history
  15. Declare all facts in a unified way

    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    6b27501 View commit details
    Browse the repository at this point in the history
  16. Remove redundant minus mark in include_tasks

    Maor Lipchuk committed May 17, 2018
    Copy the full SHA
    4222c49 View commit details
    Browse the repository at this point in the history