| Error from APB provision logs
TASK [provision-unifiedpush-apb : k8s_v1_service] ****************************** |
fatal: [localhost]: FAILED! => {"changed": false, "error": 409, "msg": "Failed to create object: services \"postgres\" already exists"}
|
Some extra info that might be of help
oc get svc postgres -o yaml |
apiVersion: v1 |
kind: Service |
metadata: |
annotations: |
template.openshift.io/expose-uri: postgres://{.spec.clusterIP}:{.spec.ports[?(.name=="postgresql")].port} |
creationTimestamp: 2018-05-28T14:31:31Z |
name: postgres |
namespace: myproject |
resourceVersion: "11993" |
selfLink: /api/v1/namespaces/myproject/services/postgres |
uid: d0a43c07-6283-11e8-97db-02a9275f43d2 |
spec: |
clusterIP: 172.30.144.216 |
ports: |
- name: postgresql |
port: 5432 |
protocol: TCP |
targetPort: 5432 |
selector: |
name: postgres |
sessionAffinity: None |
type: ClusterIP |
status: |
loadBalancer: {}
|
Looks like the cause is the same service name in these 2 places:
|