Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

node_vms_folder value seems to be handled differently between vcp-manager and vcp-daementset #475

Open
Aestel opened this issue Apr 18, 2018 · 2 comments
Labels
customer enable-uxi-script Script: https://github.com/vmware/kubernetes/tree/enable-vcp-uxi

Comments

@Aestel
Copy link

Aestel commented Apr 18, 2018

Set node_vms_folder in the vcp_secret.yaml to '/Development_VMs/Kubernetes'
The VMs working folder starts out as: /SCT/vm/Development_VMs/
When the vcp-manager pod runs it creates the vms folder relative to /SCT/vm/
Creating: /SCT/vm/Development_VMs/Kubernetes

When the daemonset runs it fails with:

+ govc object.mv -dc=SCT /SCT/vm/Development_VMs/my-vm-name-snipped /Development_VMs/Kubernetes
+ '[' 1 -eq 0 ']'
+ ERROR_MSG='Failed to move Node Virtual Machine to the Working Directory Folder'
+ update_VcpConfigStatus vcp-daementset-d68xg '[PHASE 3] Move VM to the Working Directory' FAILED 'Failed to move Node Virtual Machine to the Working Directory Folder'

I connect to the pod to try the govc command given above and get as expected:
govc: folder '/Development_VMs/Kubernetes' not found

I have also tried the above by removing the prefixing forward slash which fails in a similar way and by giving the full path which cause the vcp-manager to try to create the folder: /SCT/vm/SCT/vm/Development_VMs/Kubernetes

Docker image pulled was:

REPOSITORY                    TAG                 IMAGE ID            CREATED             SIZE
cnastorage/enablevcp          v1                  bf7b5e183363        5 weeks ago         534MB
@Aestel
Copy link
Author

Aestel commented Apr 18, 2018

I worked around this issue by setting the value to '/Development_VMs/Kubernetes' when initially creating the vcp-manager pod. Letting the daemon sets fail. Changing the value to '/SCT/vm/Development_VMs/Kubernetes' and reapplying the secret. Then deleting the vcp-daementset pods.

@abrarshivani abrarshivani added the enable-uxi-script Script: https://github.com/vmware/kubernetes/tree/enable-vcp-uxi label Apr 23, 2018
@divyenpatel divyenpatel assigned divyenpatel and unassigned tusharnt Apr 26, 2018
@espigle
Copy link

espigle commented Jun 19, 2018

I want to indicate that I as well have observed the same behavior, and the same workaround seems to work as well. It's cumbersome to work through, but is possible to get through this phase with this workaround.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer enable-uxi-script Script: https://github.com/vmware/kubernetes/tree/enable-vcp-uxi
Projects
None yet
Development

No branches or pull requests

5 participants