-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot add host to Project: Error 500 #2413
Comments
This looks like a similar https://vmware.github.io/vic-product/assets/files/html/1.5/vic_vsphere_admin/ts_imagestore_error.html error. But in this case, the error message is different, and I did not assigned any container to run yet. |
I have manually browser to the datastore1 folder, and created the images folder in there. At that point, the Docker Personality log reported success
But then I restarted the host, and my images folder previously created was removed again. Apparently, that folder is managed by the VCH host, and will run into the same problem after every reboot |
After this workaround, I was able to add the host to the project! :) |
But I am still having storage related problems. Trying to deploy a container in fails with the following error:
|
Tried destroying the VCH host created, and create a new one. I run into the same issue. I cannot add the host to a project because of the same error, and after applying the workaround it allows me to do it. But then, I cannot run a container into the host because of the same error in #2413 (comment) |
@dnoliver We met the similar issues before when the VC user or the opsuser you use to create VCH do not have the privilege to create the datastore folder. Is that your case? |
I followed this guide to create the vic-ops user https://vmware.github.io/vic-product/assets/files/html/1.5/vic_vsphere_admin/create_ops_user.html In the https://vmware.github.io/vic-product/assets/files/html/1.5/vic_vsphere_admin/set_up_ops_user.html docs, I saw:
I think I am doing a standalone host deployment, so maybe I have to rather change that to the Cluster deployment, or follow the https://vmware.github.io/vic-product/assets/files/html/1.5/vic_vsphere_admin/ops_user_manual.html to assign permissions to that user if I want to do the standalone host deployment. I will try that and report results backs. Thank you @wjun! |
I have definitively a datastore permissions problem for my vic-ops user :) thank you for the hint @wjun
My
Then, the more accurate question will be: why do vic-ops user run into datastore permission problems while creating VCH and/or running containers, if it have all the permissions specified by the documentation? |
I did the same deployment, but now using a cluster, and the problem is still there. I have to manually create the |
I tried VCH create from CLI onto a VC cluster, and it works. Please note --user is an admin user. --ops-user must be combined with --ops-grant-perms so VCH can assign related permissions to this ops-user automatically. |
Great @wjun, I have only tested this with the UI Wizard, where I think the |
@wjun I have validated the API approach, and I run into the same issue again. The command used to deploy this VCH was
The command execution log is below:
At least this time I have an error! and not the silent error that the UI Wizard run. In the Docker personality log, I can see the same issue as before:
And I am sure the workaround still apply. If I create the I also tried to deploy a VCH keeping the Administrator access for vic-ops in the datastore, and removing the
So this |
@dnoliver I tried various combinations of ops-user and datastores, and cannot reproduce in my local env. Could you post your portlayer.log as well where there should be error messages related to images directory creation failure? Another option is to remove --ops-user and --ops-grant-perms during VCH create first and see if you can reproduce the issue or not. |
Ok, will try to share the portlayer.log file. The only special thing about my installation is that it is using VM Encryption. I have a KMS, and encryption storage policy, and a couple of encrypted VMs running in the same host. Is that something relevant to this issue? |
I hate to comment on an old thread, but I have vSAN encryption with vCenter KMS, and experienced the same problem with the 'grant all permissions needed' option, and needing to create the images folder manually for this to work. So this still seems to be an issue. |
Summary
After following the documentation in https://vmware.github.io/vic-product/assets/files/html/1.5, I cannot add a host to a project.
Admiral cannot communicate with the VCH instance
VCH instance logs show errors while trying to stat datastore
Environment information
vSphere 6.7
Single ESXi host 6.7
vCenter Server appliance with embedded Platform controller 6.7
VIC 1.5
VCH deployed with UI Wizard
one single datastore
a bridge network created with virtual switch
default VM Network as public network
vSphere and vCenter Server version
vSphere and vCenter 6.7 update 1
VIC Appliance version
vic-v1.5.2-7206-92ebfaf5
Configuration
Details
Was following the documentation step by step to deploy the first VCH host.
VCH host is deployed successfully.
vic-machine-linux ls shows the host
All green checks in VCH admin portal
Used the default-project in admiral, tried to add the VCH host to default-project
No TLS being used. Tried to add the host:
Using http since the docs say that use http with no TLS. tried several combinations, none of the works.
Changed type from VCH to DOCKER, received error 500.
Inspect logs in VCH admin portal. Several ERROR messages (but UI have all green checks)
Docker Personality log show several times
Port Layer showing the same:
No problems in Init log
VIC Admin log show same error several times:
Steps to reproduce
Follow docs to deploy VIC, create VCH
Assign VCH to default-project in Admiral
Actual behavior
Cannot establish connection error
Expected behavior
VCH should be added to default-project
Support information
Logs
Not comfortable with posting publicly, private channel is ok
See also
Troubleshooting attempted
The text was updated successfully, but these errors were encountered: