I have a strange problem in vCSA (U2d), after appliance restarting, the Web Client shows "Empty inventory". When I look deeper, command:
/usr/lib/vmware-sso/bin/vi_regtool listServices https://pvc1.piszki.lab:7444/lookupservice/sdk
No shows registered vCenter service! And I can't unregister vCenter:
pvc1:/etc/vmware-sso/register-hooks.d # /usr/lib/vmware-sso/bin/vi_regtool unregisterService -d https://pvc1.piszki.lab:7444/lookupservice/sdk -u administrator@vsphere.local -p xxxx -si id.vc
Intializing registration provider...
Getting SSL certificates for https://pvc1.piszki.lab:7444/lookupservice/sdk
null
com.vmware.vim.binding.lookup.fault.ServiceFault:
errorMessage = No such object
inherited from com.vmware.vim.binding.lookup.fault.ServiceFault
pvc1:/etc/vmware-sso/register-hooks.d # ./01-vcenter --mode uninstall --ls-server https://pvc1.piszki.lab:7444/lookupservice/sdk --user administrator@vsphere.local --password xxx
Intializing registration provider...
Getting SSL certificates for https://pvc1.piszki.lab:7444/lookupservice/sdk
null
com.vmware.vim.binding.lookup.fault.ServiceFault:
errorMessage = No such object
inherited from com.vmware.vim.binding.lookup.fault.ServiceFault
But if I try to register the vCenter in SSO:
pvc1:/etc/vmware-sso/register-hooks.d # ./01-vcenter --mode install --ls-server https://pvc1.piszki.lab:7444/lookupservice/sdk --user administrator@vsphere.local --password xxx --option vc-admin-principal=root --option sso-deployment-type=embedded
Intializing registration provider...
Getting SSL certificates for https://pvc1.piszki.lab:7444/lookupservice/sdk
Anonymous execution
Successfully saved SSO locations and certificates
Return code is: Success
Creating SSO principal for vCenter Server
Intializing registration provider...
Getting SSL certificates for https://pvc1.piszki.lab:7444/lookupservice/sdk
vpxd-pvc1.piszki.lab-792e065c-d461-4beb-8a9d-0b5696c4722f
com.vmware.vim.sso.admin.exception.DuplicateSolutionCertificateException: vpxd-pvc1.piszki.lab-792e065c-d461-4beb-8a9d-0b5696c4722f
at com.vmware.vim.sso.admin.client.vmomi.impl.VmomiClientCommand.execute(VmomiClientCommand.java:121)
at com.vmware.vim.sso.admin.client.vmomi.impl.VmomiClientCommand.executeEnsuringDomainErrorIs(VmomiClientCommand.java:220)
at com.vmware.vim.sso.admin.client.vmomi.impl.VmomiClientCommand.executeEnsuringDomainErrorIs(VmomiClientCommand.java:207)
at com.vmware.vim.sso.admin.client.vmomi.impl.PrincipalManagementImpl.createLocalSolutionUser(PrincipalManagementImpl.java:197)
at com.vmware.vim.sso.admin.client.vmomi.impl.PrincipalManagementImpl.createLocalSolutionUser(PrincipalManagementImpl.java:185)
at com.vmware.vim.install.cli.commands.RegisterSolutionCommand.execute(RegisterSolutionCommand.java:48)
at com.vmware.vim.install.cli.commands.CompositeCommand.execute(CompositeCommand.java:38)
at com.vmware.vim.install.cli.RegTool.execute(RegTool.java:190)
at com.vmware.vim.install.cli.RegTool.process(RegTool.java:107)
at com.vmware.vim.install.cli.RegTool.main(RegTool.java:38)
Return code is: AlreadyRegistered
C# Client work without any problem. I'm stuck, can anyone help?
Regards,
Piotr