Code Monkey home page Code Monkey logo

ansible-leapp's People

Contributors

mrjoshuap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ansible-leapp's Issues

Two tasks in tasks/prepare.yml not execute

Congratulations on the role developed

When executing two tasks, they are not executed even putting the entries in defaults/main.yml as "no"

Skip current package updates? Default no

leapp_skip_prepare_update: no

Skip reboot after changes to package updates? Default no

leapp_skip_prepare_update_reboot: no

TASK [ansible-leapp : Update all packages to latest] *********************************************************************************************************************************************************************************
skipping: [rhel7.jbarreto.lab]

TASK [ansible-leapp : debug] *********************************************************************************************************************************************************************************************************
skipping: [rhel7.jbarreto.lab]
[WARNING]: flush_handlers task does not support when conditional

The boot task doesn't even run even though RHEL is up to date.

Regards

Julio Barreto

leapp preupgrade report - task always fails with an undefined variable

Hi, I tried to use your role for rhel7.7 to 8 upgrade but I am always getting the error.
Regardless of how I define leapp_custom_repositories var the following task always fails:

TASK [mrjoshuap.leapp : Generate leapp preupgrade report] ***************************************************************************************************
fatal: [node1.example.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: the inline if-expression on line 1 evaluated to false and no else section was defined.\n\nThe error appears to be in '/home/automation/plays4/roles/mrjoshuap.leapp/tasks/preupgrade.yml': line 17, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate leapp preupgrade report\n ^ here\n"}

files not found

  • files/leapp-data20.tar.gz
  • files/leapp-data19.tar.gz
  • files/leapp-data18.tar.gz
  • files/leapp-data17.tar.gz
  • files/leapp-data16.tar.gz
  • files/leapp-data15.tar.gz
  • files/leapp-data14.tar.gz
  • files/leapp-data13.tar.gz
  • files/leapp-data12.tar.gz
  • files/leapp-data11.tar.gz
  • files/leapp-data10.tar.gz
  • files/leapp-data9.tar.gz
  • files/leapp-data8.tar.gz
  • files/leapp-data7.tar.gz
  • files/leapp-data6.tar.gz
  • files/leapp-data5.tar.gz
  • files/leapp-data4.tar.gz
  • files/leapp-data3.tar.gz
  • files/leapp-data2.tar.gz
  • files/leapp-data1.tar.gz

these files are not there.

leapp preupgrade step fails

Hi,
On the leapp preupgrade step the playbook fails with the following errors:

==> Processing phase `configuration_phase`
====> * ipu_workflow_config
        IPU workflow config actor
==> Processing phase `FactsCollection`
====> * scancpu
        Scan CPUs of the machine.
====> * source_boot_loader_scanner
        Scans the boot loader configuration on the source system.
====> * tcp_wrappers_config_read
        Parse tcp_wrappers configuration files /etc/hosts.{allow,deny}.
====> * storage_scanner
        Provides data about storage settings.
====> * scan_custom_repofile
        Scan the custom /etc/leapp/files/leapp_upgrade_repositories.repo repo file.
====> * removed_pam_modules_scanner
        Scan PAM configuration for modules that are not available in RHEL-8.
====> * scan_files_for_target_userspace
        Scan the source system and identify files that will be copied into the target userspace when it is created.
====> * network_manager_read_config
        Provides data about NetworkManager configuration.
====> * scan_kernel_cmdline
        No documentation has been provided for the scan_kernel_cmdline actor.
====> * system_facts
        Provides data about many facts from system.
Process Process-199:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
    actor_instance.run(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 335, in run
    self.process(*args)
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/systemfacts/actor.py", line 36, in process
    self.produce(systemfacts.get_sysctls_status())
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/systemfacts/libraries/systemfacts.py", line 170, in get_sysctls_status
    return SysctlVariablesFacts(sysctl_variables=_get_sysctls())
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/systemfacts/libraries/systemfacts.py", line 22, in inner
    return list(f(*args, **kwargs))
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/systemfacts/libraries/systemfacts.py", line 143, in _get_sysctls
    for sc in run(['sysctl', '-a'], split=True)['stdout']:"
  File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.py", line 188, in run
    result=result
CalledProcessError: Command ['sysctl', '-a'] failed with exit code 1.
============================================================================================="
Actor system_facts unexpectedly terminated with exit code: 1 - Please check the above details"
=============================================================================================
============================================================
                           ERRORS                           
============================================================
2022-04-13 16:21:34.524115 [ERROR] Actor: source_boot_loader_scanner"
Message: Failed to call `grubby` to list available boot entries."
Summary:"
    Details: Command ['grubby', '--info', 'ALL'] failed with exit code 1."
    Stderr: Process Process-183:"
            Traceback (most recent call last):"
              File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap"
                self.run()"
              File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run"
                self._target(*self._args, **self._kwargs)"
              File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run"
                actor_instance.run(*args, **kwargs)"
              File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 335, in run"
                self.process(*args)"
              File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/sourcebootloaderscanner/actor.py", line 18, in process"
                scan_source_boot_loader_configuration()"
              File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/sourcebootloaderscanner/libraries/sourcebootloaderscanner.py", line 54, inscan_source_boot_loader_configuration",
                entries=scan_boot_entries()"
              File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/sourcebootloaderscanner/libraries/sourcebootloaderscanner.py", line 17, inscan_boot_entries",
                grubby_output = run(CMD_GRUBBY_INFO_ALL, split=True)"
              File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.py", line 181, in run"
                stdin=stdin, env=env, encoding=encoding)"
              File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/call.py", line 217, in _call"
                os.execvpe(command[0], command, env=environ)"
              File "/usr/lib64/python2.7/os.py", line 353, in execvpe"
                _execvpe(file, args, env)"
              File "/usr/lib64/python2.7/os.py", line 380, in _execvpe"
                func(fullname, *argrest)
            OSError: [Errno 2] No such file or directory
============================================================
                       END OF ERRORS                        
============================================================
Debug output written to /var/log/leapp/leapp-preupgrade.log
============================================================
                           REPORT                           
============================================================
A report has been generated at /var/log/leapp/leapp-report.json
A report has been generated at /var/log/leapp/leapp-report.txt
============================================================
                       END OF REPORT                        
============================================================
Answerfile has been generated at /var/log/leapp/answerfile

Do you have any idea why this happens? I've also tried to run the command leapp preupgrade with the modules ansible.builtin.raw and ansible.builtin.shell.
When I run the command manually on the server via an ssh connection, I get a full report without any errors.

It seems that not a lot of people are trying to automate the upgrade in place process with Ansible.
I've opened 2 discussions about this error:
https://access.redhat.com/discussions/6921941
https://www.reddit.com/r/ansible/comments/u2sne2/upgrade_rhel79_to_8x_with_leapp_using_ansible/?utm_source=share&utm_medium=web2x&context=3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.