openshift/ansible-service-broker

Loop in provisioning objects

Asgoret opened this issue · 3 comments

Hi!
What happened:
I start provisioning (via GUI)(for example) Service and task end successfully, but deprovision process start at same time. I can't find any errors in pod. It looks like: provision-succes-deprovision-success-provision... and doesn't end
What you expected to happen:
Complete provision process.

Information:
Service yaml:

apiVersion: v1
kind: Service
metadata:
  name: {{ app }}
  namespace: {{ namespace }}
  labels:
    app: {{ app }}
    app-group: {{ app_group }}
  name: {{ app }}-{{ service_postfix }}
spec:
  selector:
    deploymentconfig: {{ app }}
  sessionAffinity: None
  type: {{ 'ClusterIP' if service_type|default(ClusterIP) else 'NodePort' }}
  ports:
    - protocol: {{ protocol }}
      port: {{ port }}
      targetPort: {{ route_port }}
      name: {{ port }}-{{ protocol|lower }}

Taks in main.yml

- name: Set simple object state="{{ state }}"
  k8s:
    force: yes
    state: "{{ state }}"
    definition: "{{ lookup ('template', item.name)}}"
  when: item.apply|default(false)
  loop:
    - name: service.yaml.j2
      apply: "{{ deploy_service|default('',true) }}"

Also i saw this Provision call failed: Error occurred during provision. Please contact administrator if the issue persists. but i can't understand where is issue if service created successfully and if i create it from CLI all works fine.

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

/close

@jmrodri: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.