ansibleplaybookbundle / kubevirt-apb

APB for managing KubeVirt deployments
Apache License 2.0
8 stars 16 forks source link

Provisioned but no resources found #69

Closed vatsalparekh closed 6 years ago

vatsalparekh commented 6 years ago

On a cluster provisioned today with kubevirt-apb, apb shows provisioned successfully, but there are no kubevirt pods/deployments/crd in the cluster

oc get serviceinstance -n kube-system -o yaml

apiVersion: v1
items:
- apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceInstance
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"servicecatalog.k8s.io/v1beta1","kind":"ServiceInstance","metadata":{"annotations":{},"name":"kubevirt","namespace":"kube-system"},"spec":{"clusterServiceClassExternalName":"dh-virtualization","clusterServicePlanExternalName":"default","parameters":{"admin_password":123456,"admin_user":"test_admin","version":"0.7.0-alpha.2"}}}
creationTimestamp: 2018-06-29T09:18:40Z
finalizers:
- kubernetes-incubator/service-catalog
generation: 1
name: kubevirt
namespace: kube-system
resourceVersion: "4239"
selfLink: /apis/servicecatalog.k8s.io/v1beta1/namespaces/kube-system/serviceinstances/kubevirt
uid: 699373d2-7b7d-11e8-bd17-0a580a800003
spec:
clusterServiceClassExternalName: dh-virtualization
clusterServiceClassRef:
name: fd9b21a9caa8bf8b42b27bb0c90d3b74
clusterServicePlanExternalName: default
clusterServicePlanRef:
name: e6304baf7ba0781fcf87068a11041b2c
externalID: 6993736d-7b7d-11e8-bd17-0a580a800003
parameters:
admin_password: 123456
admin_user: test_admin
version: 0.7.0-alpha.2
updateRequests: 0
userInfo:
extra:
scopes.authorization.openshift.io:
- user:full
groups:
- system:authenticated:oauth
- system:authenticated
uid: ""
username: test_admin
status:
asyncOpInProgress: false
conditions:
- lastTransitionTime: 2018-06-29T09:20:29Z
message: The instance was provisioned successfully
reason: ProvisionedSuccessfully
status: "True"
type: Ready
deprovisionStatus: Required
externalProperties:
clusterServicePlanExternalID: e6304baf7ba0781fcf87068a11041b2c
clusterServicePlanExternalName: default
parameterChecksum: b18a900d25a2b5c43603fe2ee5e528b8265b9c3658c4a8f6f6c8d5a50c878629
parameters:
admin_password: 123456
admin_user: test_admin
version: 0.7.0-alpha.2
userInfo:
extra:
scopes.authorization.openshift.io:
- user:full
groups:
- system:authenticated:oauth
- system:authenticated
uid: ""
username: test_admin
observedGeneration: 1
orphanMitigationInProgress: false
provisionStatus: Provisioned
reconciledGeneration: 1
kind: List
metadata:
resourceVersion: ""
selfLink: ""

cat kubevirt-apb.yml

---
apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceInstance
metadata:
name: kubevirt
namespace: kube-system
spec:
clusterServiceClassExternalName: dh-virtualization
clusterServicePlanExternalName: default
parameters:
admin_user: test_admin
admin_password: 123456
version: 0.7.0-alpha.2

oc get pods -n kube-system

NAME                                                         READY     STATUS    RESTARTS   AGE
master-api-cnv-executor-vatsal-master1.example.com           1/1       Running   0          34m
master-controllers-cnv-executor-vatsal-master1.example.com   1/1       Running   0          34m
master-etcd-cnv-executor-vatsal-master1.example.com          1/1       Running   0          33m
vatsalparekh commented 6 years ago

@rthallisey @lukas-bednar

lukas-bednar commented 6 years ago

I was able to capture log from provision container

[root@cnv-executor-lbednar-master1 ~]# oc logs -f -n dh-virtualization-prov-mpsms apb-35921085-1dfc-4dd0-8fe1-0de8c0cb109d

PLAY [Provision KubeVirt] ******************************************************

TASK [ansible.kubernetes-modules : Install latest openshift client] ************
skipping: [localhost]

TASK [ansibleplaybookbundle.asb-modules : debug] *******************************
skipping: [localhost]
 [WARNING]: Could not match supplied host pattern, ignoring: masters

PLAY [masters[0]] **************************************************************
skipping: no hosts matched

PLAY [masters[0]] **************************************************************
skipping: no hosts matched

PLAY RECAP *********************************************************************
localhost                  : ok=0    changed=0    unreachable=0    failed=0   
rthallisey commented 6 years ago

I'm build a new container to debug this. It looks like latest apb-base doesn't have the patch to fix this yet.