Project

Profile

Help

Issue #8965

Latest operator deployment fails

Added by cityofships 3 months ago. Updated 3 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
Operator
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Master
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

[localhost] => {\"ansible_facts\": {\"api_groups\": [\"\", \"apiregistration.k8s.io\", \"apps\", \"events.k8s.io\", \"authentication.k8s.io\", \"authorization.k8s.io\", \"autoscaling\", \"batch\", \"certificates.k8s.io\", \"networking.k8s.io\", \"extensions\", \"policy\", \"rbac.authorization.k8s.io\", \"storage.k8s.io\", \"admissionregistration.k8s.io\", \"apiexten
sions.k8s.io\", \"scheduling.k8s.io\", \"coordination.k8s.io\", \"node.k8s.io\", \"discovery.k8s.io\", \"flowcontrol.apiserver.k8s.io\", \"pulp.pulpproject.org\"]}, \"changed\": false}\n\r\nTASK [pulp-api : Determine the cluster type] ***********************************\r\ntask path: /opt/ansible/roles/pulp-api/tasks/main.yml:91\nok: [localhost] => {\"ansible_facts\": {\"is_k8s\": true, \"is_openshift\": false}, \"changed\": false}\n\r\nTASK [pulp-api : debug] ********************************************************\r\ntask path: /opt/ansible/roles/pulp-api/tasks/main.yml:100\nok: [localhost] => {\r\n    \"msg\": \"CLUSTER TYPE: is_openshift=False; is_k8s=True\"\r\n}\n\r\nTASK [pulp-api : fail] *********************************************************\r\ntask path: /opt/ansible/roles/pulp-api/tasks/main.yml:102\nskipping: [localhost] => {\"changed\": false, \"skip_reason\": \"Conditional result was False\"}\n\r\nTASK [pulp-api deployment] *****************************************************\r\ntask path: /opt/ansible/roles/pulp-api/tasks/main.yml:108\nfatal: [localhost]: FAILED! => {\"msg\": \"The task includes an option with an undefined variable. The error was: 'image_pull_policy' is undefined\\n\\nThe error appears to be in '/opt/ansible/roles/pulp-api/tasks/main.yml': line 108, 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: pulp-api deployment\\n  ^ here\\n\"}\n\r\nPLAY RECAP *********************************************************************\r\nlocalhost                  : ok=30   changed=0    unreachable=0    failed=1    skipped=35   rescued=0    ignored=0   \r\n\n","job":"2775422040480279449","name":"example-pulp","namespace":"default","error":"exit status 2","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tpkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128\ngithub.com/operator-framework/operator-sdk/pkg/ansible/runner.(*runner).Run.func1\n\tsrc/github.com/operator-framework/operator-sdk/pkg/ansible/runner/runner.go:239"}


--------------------------- Ansible Task Status Event StdOut  -----------------

PLAY RECAP *********************************************************************
localhost                  : ok=30   changed=0    unreachable=0    failed=1    skipped=35   rescued=0    ignored=0   

Steps to reproduce:

  1. Clone operator repository
  2. Run ./up.sh with no changes to the repository.

If CRD is modified with the 'stable' tag, deployment works. I believe this behaviour was introduced by https://github.com/pulp/pulp-operator/pull/119 - lacking default values for the image_pull_policy var.

Please register to edit this issue

Also available in: Atom PDF