Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infrared tripleo-undercloud --version 13 --images-task=rpm --build z13 #402

Open
NileshChandelkar opened this issue Mar 13, 2021 · 5 comments

Comments

@NileshChandelkar
Copy link

NileshChandelkar commented Mar 13, 2021

  • While deploying Openstack version 13/16 faced the issue below:
 [WARNING]: Found both group and host with same name: hypervisor

ERROR   <class 'ansible.errors.AnsibleParserError'>: no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/root/.infrared/plugins/tripleo-undercloud/backup.yml': line 23, column 13, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


          - name: Use sha256 to calculate checksum
            ^ here

Traceback (most recent call last):
  File "/root/.venv_infrared/bin/infrared", line 8, in <module>
    sys.exit(main())
  File "/root/.venv_infrared/lib/python2.7/site-packages/infrared/main.py", line 541, in main
    return specs_manager.run_specs(args) or 0
  File "/root/.venv_infrared/lib/python2.7/site-packages/infrared/api.py", line 209, in run_specs
    self.parser, args=args)
  File "/root/.venv_infrared/lib/python2.7/site-packages/infrared/api.py", line 171, in spec_handler
    ansible_args=control_args.get('ansible-args', None))
  File "/root/.venv_infrared/lib/python2.7/site-packages/infrared/core/execute.py", line 160, in ansible_playbook
    ir_workspace=ir_workspace, ir_plugin=ir_plugin)
  File "/root/.venv_infrared/lib/python2.7/site-packages/infrared/core/execute.py", line 297, in _run_playbook
    raise error
ansible.errors.AnsibleParserError: no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/root/.infrared/plugins/tripleo-undercloud/backup.yml': line 23, column 13, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


          - name: Use sha256 to calculate checksum
            ^ here
(.venv_infrared) [root@smicro-s1029p-04 infrared]# cat /etc/*release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.9 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Employee SKU"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.9"
Red Hat Enterprise Linux Server release 7.9 (Maipo)
Red Hat Enterprise Linux Server release 7.9 (Maipo)
(.venv_infrared) [root@smicro-s1029p-04 infrared]# 
@NileshChandelkar
Copy link
Author

Can we git attention to this issue please, Same has been observed for RHOSP16

@NileshChandelkar
Copy link
Author

  • Commented this section below section in /root/.infrared/plugins/tripleo-undercloud/backup.yml
#          - name: Use sha256 to calculate checksum
#            ansible.builtin.stat:
#                path: "{{ undercloud_image_file }}"
#                checksum_algorithm: sha256
#                get_checksum: yes
#            register: local_sha256sum
  • Deployment is running now

@fhubik
Copy link
Contributor

fhubik commented Mar 19, 2021

Afaik this problem is not seen anywhere in our pipeline, likely caused by Ansible version mismatch (https://stackoverflow.com/questions/47159193/why-does-ansible-show-error-no-action-detected-in-task-error).

I suggest to check whether venv is properly created (https://github.com/redhat-openstack/infrared/blob/master/requirements.txt) or possibly different interpreter env is used (ansible.cfg/interpreter_python) env-wide or per task/playbook...

@sanjaychari
Copy link

I faced the same issue. Instead of commenting the code snippet that caused the issue as suggested here, I followed the solution from #408, and changed ansible.builtin.stat to stat. I was able to workaround this issue with that solution.

@knoha-rh
Copy link
Contributor

knoha-rh commented Aug 5, 2021

To fix this issue, the change needs to be merged. https://review.gerrithub.io/c/redhat-openstack/infrared/+/520276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants