Open Akasurde opened 3 years ago
From @ansibullbot on Apr 16, 2020 20:58
cc @kubevirt click here for bot help
From @ansibullbot on Apr 17, 2020 14:32
cc @machacekondra @mmazur @pkliczewski click here for bot help
From @Akasurde on Jan 04, 2021 06:28
@sbulage Could you please confirm if this still failing for you? Thanks.
needs_info
Hi @Akasurde, I have just faced the same issue using
- name: Create a PVC and fetch contents from an external http location
kubevirt_pvc:
namespace: default
name: pvc-demo
access_modes:
- ReadWriteOnce
size: 100Mi
cdi_source:
http:
url: "https://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img"
wait: yes
gives
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"access_modes": [
"ReadWriteOnce"
],
"annotations": null,
"api_key": null,
"ca_cert": null,
"cdi_source": {
"http": {
"url": "https://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img"
}
},
"client_cert": null,
"client_key": null,
"context": null,
"force": false,
"host": null,
"kubeconfig": null,
"labels": null,
"merge_type": null,
"name": "pvc-demo",
"namespace": "default",
"password": null,
"persist_config": null,
"proxy": null,
"resource_definition": null,
"selector": null,
"size": "100Mi",
"state": "present",
"storage_class_name": null,
"username": null,
"validate_certs": null,
"volume_mode": null,
"volume_name": null,
"wait": true,
"wait_timeout": 300
}
},
"msg": "PVC creation timed out"
}
kubectl describe pvc pvc-demo
Name: pvc-demo
Namespace: default
StorageClass: standard
Status: Bound
Volume: pvc-5f9497c4-f3ea-4c3d-8a1a-b0b25444b8b9
Labels: app=containerized-data-importer
Annotations: cdi.kubevirt.io/storage.condition.running: true
cdi.kubevirt.io/storage.condition.running.message:
cdi.kubevirt.io/storage.condition.running.reason: Pod is running
cdi.kubevirt.io/storage.import.endpoint: https://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img
cdi.kubevirt.io/storage.import.importPodName: importer-pvc-demo
cdi.kubevirt.io/storage.import.source: http
cdi.kubevirt.io/storage.pod.phase: Running
cdi.kubevirt.io/storage.pod.restarts: 1
pv.kubernetes.io/bind-completed: yes
pv.kubernetes.io/bound-by-controller: yes
volume.beta.kubernetes.io/storage-provisioner: k8s.io/minikube-hostpath
Finalizers: [kubernetes.io/pvc-protection]
Capacity: 100Mi
Access Modes: RWO
VolumeMode: Filesystem
Used By: importer-pvc-demo
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ExternalProvisioning 40m persistentvolume-controller waiting for a volume to be created, either by external provisioner "k8s.io/minikube-hostpath" or manually created by system administrator
Normal Provisioning 40m k8s.io/minikube-hostpath_minikube_5442cea7-8326-4f96-bf1d-4445f95f330b External provisioner is provisioning volume for claim "default/pvc-demo"
Normal ProvisioningSucceeded 40m k8s.io/minikube-hostpath_minikube_5442cea7-8326-4f96-bf1d-4445f95f330b Successfully provisioned volume pvc-5f9497c4-f3ea-4c3d-8a1a-b0b25444b8b9
Warning ErrImportFailed 22s (x1202 over 40m) import-controller Unable to process data: signal: segmentation fault (core dumped)
From @Akasurde on Apr 16, 2020 13:40
From @sbulage on Apr 16, 2020 13:36
SUMMARY
PVC is being created on the cluster, as I can see state is present in the playbook logs.
ISSUE TYPE
PVC created successfully but showing Timeout for error and overall playbook execution failed.
COMPONENT NAME
kubevirt_pvc
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
It should be show Timeout Error, even if PVC gets created successfully.
ACTUAL RESULTS
Copied from original issue: ansible/ansible#68978
Copied from original issue: ansible/ansible#193