openshift-ansible: Containerized deployment fails on RPM check
Description
Play: Ensure the requested version packages are available.
Task: Fail if rpm version and docker image version are different
Message: The task includes an option with an undefined variable. The error was: 'openshift_rpm_version' is undefined
The error appears to have been in '/root/openshift-ansible/roles/openshift_version/tasks/masters_and_nodes.yml': line 7, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
Version
openshift-ansible-3.9.0-0.20.0-9-g3a7f199
Steps To Reproduce
Run ansible-playbook -v -i inventory openshift-ansible/playbooks/deploy_cluster.yml with inventory
[OSEv3:children]
masters
nodes
[OSEv3:vars]
ansible_ssh_user=root
deployment_type=origin
openshift_deployment_type=origin
openshift_clock_enabled=true
openshift_master_identity_providers=[{'name': 'allow_all_auth', 'login': 'true', 'challenge': 'true', 'kind': 'AllowAllPasswordIdentityProvider'}]
openshift_disable_check=memory_availability,disk_availability,docker_storage,package_availability,docker_image_availability
openshift_repos_enable_testing=True
openshift_image_tag=latest
containerized=true
enable_excluders=false
[masters]
<master_ip>
[etcd]
<master_ip>
[nodes]
<master_ip> openshift_node_labels="{'region': 'infra','zone': 'default'}" openshift_schedulable=true
<node_ip> openshift_node_labels="{'region': 'infra','zone': 'default'}" openshift_schedulable=true
Expected Results
I think in case of containerized deployment we need just skip Fail if rpm version and docker image version are different check because we do not really use any rpms
Observed Results
Deployment failed on error
Play: Ensure the requested version packages are available.
Task: Fail if rpm version and docker image version are different
Message: The task includes an option with an undefined variable. The error was: 'openshift_rpm_version' is undefined
The error appears to have been in '/root/openshift-ansible/roles/openshift_version/tasks/masters_and_nodes.yml': line 7, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
Additional Information
- CentOS Linux release 7.4.1708 (Core) I can overcome this problem by adding
when:
- not openshift_is_atomic | bool
- not openshift_is_containerized | bool
to the task roles/openshift_version/tasks/masters_and_nodes.yml
I can create a PR, but first of all, I want to be sure that I did not miss some additional parameter and it is real issue.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (10 by maintainers)
@vrutkovs Yep it the exact reason why I opened this issue, OpenShift does not have repository with latest RPM’s that can be used from different Linux distributives(Fedora, CentOS, RHEL), so in case if you will need to deploy latest openshift for some reason, you can do it without clone OpenShift repository and make RPM’s by yourself. I wanted to avoid it with
containerizeddeployment, butcontainerizeddeployment also has some RPM’s dependencies. So I just want to have some ansible variable that will skip all RPM’s check.