container-service-extension icon indicating copy to clipboard operation
container-service-extension copied to clipboard

CSE 3.0.2 with VCD 10.2.2 after finish the installation the cse ovdc list is not working and can't enable k8s to the tenant, attached some screenshot.

Open amns12 opened this issue 2 years ago • 10 comments

Capture Capture1

amns12 avatar Oct 13 '21 11:10 amns12

That is strange. @sakthisunda Sakthi, do we hide the "ovdc" command for any CSE-VCD version combination?

@amns12 Is CSE server running? Can you paste the output of "vcd cse -h", "vcd cse system info", "vcd cse ovdc -h"?

sahithi avatar Oct 19 '21 18:10 sahithi

@sahithi : we do hide ovdc subcommandsenable/disable/list for CSE 3.0, API 33.0, 34.0 to enable placement policy based ovdc. Ref: https://github.com/vmware/container-service-extension/pull/756. So, it only hides vcd cse ovdc subcommands.

But the above error is : vcd cse ovdc parent command itself is failing. So, if @amns12 provides the output of the above commands requested, it would be helpful.

@amns12 Can you also logout and relogin to get the right CSE client version before running the above commands. Thanks

sakthisunda avatar Oct 20 '21 17:10 sakthisunda

@sahithi please find attached the output show nothing github-SS @sakthisunda I logged out and logged in still having same issue, also I'm using VCD 10.2.2 which API version is 35.2, should I change the config file to accept lower API versions ! Thank you all.

amns12 avatar Oct 24 '21 09:10 amns12

please advice.

amns12 avatar Oct 28 '21 10:10 amns12

@amnss12 If possible can you share the following:

  • server configuration file after removing username/password credentials
  • ~/.vcd-cli/profiles.yaml
  • execute : which cse command on both server and client side

Restart your server, if you haven't tried before client logout/login. Also, I will try to check from my setup, if I encounter the same issue and update

sakthisunda avatar Oct 28 '21 21:10 sakthisunda

Thanks for attaching: ~/.vcd-cli/profiles.yaml In this file, cse_server_running: false causes the issue of not seeing the actual command options.

Please remove: cse_server_running: false from ~/.vcd-cli/profiles.yaml and save it. Make sure that CSE server is running and relogin. This will update ~/.vcd-cli/profiles.yaml with correct values. This will enable all the supported commands for the specific client version(35.0).

Try vcd cse -h or any specific command

Please let us know.

sakthisunda avatar Nov 01 '21 16:11 sakthisunda

The CSE server keep stopping and each time the value updated to false, what could be the issue

amns12 avatar Nov 06 '21 14:11 amns12

  1. Please attach cse-server-debug.log when the server is up and running and when it stops running. Please notice what is recorded in the log file.
  2. check if the server is reachable. If the server is not running, the above behavior is expected. I remember you were using mqtt messaging.
  3. To avoid any python library conflicts, we suggest to use virtual environment for install/run server and CLI which may resolve your issue.(Ref: https://vmware.github.io/container-service-extension/cse3_1/CONTRIBUTING.html).
  4. Also run: pip list in your environment and check with the following output that I have pasted for CSE 3.0.2

image 5. If you resolve server issue, make sure that removing cse_server_running: false from ~/.vcd-cli/profiles.yaml and relogin 6. If you are running CSE as a service, please make sure the paths to config.yaml and cse.sh are right in cse.sh and cse.service.

sakthisunda avatar Nov 08 '21 18:11 sakthisunda

just solved my issue thank you.

amns12 avatar Dec 13 '21 10:12 amns12

@amns12 Thanks for notifying us. If you can share how you resolved the issue,

  • that would be helpful in knowing any improvment or gaps in the solution or documentation, understanding new customer setup and improvment.
  • Recommending the solution to customers who face similar issue in future.
  • Your feedback is highly important and valuable to us. Thanks

sakthisunda avatar Dec 13 '21 19:12 sakthisunda