We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Centos8 Bastion improperly updates to 2.13 causing error
It looks like the yum update on L344
yum update
Locking in to
cat /etc/redhat-release CentOS Stream release 8
$ git clone https://github.com/ocp-power-automation/ocp4-upi-powervs
$ terraform init
Setup the var.tfvars to point to a Centos8 stream image.
Run the apply
$ terraform apply -var-file=var.tfvars -no-color
module.install.null_resource.config (remote-exec): TASK [Enable restart always for critical services] ***************************** module.install.null_resource.config (remote-exec): fatal: [192.168.100.230]: FAILED! => {"msg": "Invalid data passed to 'loop', it requires a list, got this instead: ['httpd', 'named', 'haproxy'] + [ 'dhcpd' ]. Hint: If you passed a list/dict of just one element, try adding wantlist=True to your lookup invocation or use q/query instead of lookup."} module.install.null_resource.config (remote-exec): RUNNING HANDLER [restart bind] ************************************************* module.install.null_resource.config (remote-exec): RUNNING HANDLER [restart haproxy] ********************************************** module.install.null_resource.config (remote-exec): RUNNING HANDLER [restart httpd] ************************************************ module.install.null_resource.config (remote-exec): RUNNING HANDLER [restart dhcpd] ************************************************ module.install.null_resource.config (remote-exec): RUNNING HANDLER [restart nfs] ************************************************** module.install.null_resource.config (remote-exec): PLAY RECAP ********************************************************************* module.install.null_resource.config (remote-exec): 192.168.100.230 : ok=70 changed=50 unreachable=0 failed=1 skipped=75 rescued=0 ignored=0 ╷ │ Error: remote-exec provisioner error │ │ with module.install.null_resource.config, │ on modules/5_install/install.tf line 221, in resource "null_resource" "config": │ 221: provisioner "remote-exec" { │ │ error executing "/tmp/terraform_1797140775.sh": Process exited with status 2
As noted in PR #300 a change to the list fixes the issue.
cd ocp4-helpernode && ansible-playbook -e @helpernode_vars.yaml tasks/main.yml -vvvv --become
I still hit the same issue.
I checked the ansible-playbook version.
/usr/bin/ansible-playbook --version ansible-playbook [core 2.13.5]
$ yum remove ansible-core $ yum install ansible-core-2.12.2-3.el8.ppc64le
META: ran handlers Read vars_file '../vars/main.yml' Read vars_file '../vars/ports.yml' META: ran handlers PLAY RECAP ************************************************************************************** 192.168.100.230 : ok=88 changed=26 unreachable=0 failed=0 skipped=77 rescued=0 ignored=0 [root@rdr-sec-squad-4d25-osa21-bastion-0 ocp4-helpernode]# echo $? 0
Further, I can lock the repo in with the Ansible Repo https://github.com/ocp-power-automation/ocp4-upi-powervs/blob/master/variables.tf#L323 however I cannot lock in the version.
The text was updated successfully, but these errors were encountered:
Use latest helpernode commit for ansible error
242214f
Fixes ocp-power-automation#455 Signed-off-by: Yussuf Shaikh <yussuf.shaikh1@ibm.com>
d1c9bb6
9bc5a0d
8bcc8ec
Successfully merging a pull request may close this issue.
Summary
Centos8 Bastion improperly updates to 2.13 causing error
It looks like the
yum update
on L344Locking in to
Prerequisites
Reproducer Steps
Setup the var.tfvars to point to a Centos8 stream image.
Run the apply
Command
Output
As noted in PR #300 a change to the list fixes the issue.
Command
I still hit the same issue.
I checked the ansible-playbook version.
Further, I can lock the repo in with the Ansible Repo https://github.com/ocp-power-automation/ocp4-upi-powervs/blob/master/variables.tf#L323 however I cannot lock in the version.
The text was updated successfully, but these errors were encountered: