VMware Cloud Community
Lina_f
Contributor
Contributor

Updating issue

How can I solve this issue:

/usr/lib/vmware-lookupsvc/tools/lstool.py unregister --url http://localhost:12020/lcm/api --id df65a8a1-d66d-4f0d-9dd7-aabb1a3d1d4c\com.vmware.vcenter.vlcm --user 'administrator@vsphere.local'

Picked up JAVA_TOOL_OPTIONS: -Xms32M -Xmx128M -Dcom.sun.org.apache.xml.internal.security.ignoreLineBreaks=true -Dorg.apache.xml.security.ignoreLineBreaks=true com.vmware.vim.vmomi.client.common.UnexpectedStatusCodeException: Unexpected status code: 400         at com.vmware.vim.vmomi.client.common.Response$Status.getStatus(Response.java:58)         at com.vmware.vim.vmomi.client.http.impl.HttpExchangeBase.parseResponse(HttpExchangeBase.java:226)         at com.vmware.vim.vmomi.client.http.impl.HttpExchange.invokeWithinScope(HttpExchange.java:54)         at com.vmware.vim.vmomi.client.http.impl.TracingScopedRunnable.run(TracingScopedRunnable.java:24)         at com.vmware.vim.vmomi.client.http.impl.HttpExchangeBase.run(HttpExchangeBase.java:51)         at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingBase.executeRunnable(HttpProtocolBindingBase.java:227)         at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingImpl.send(HttpProtocolBindingImpl.java:114)         at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.sendCall(MethodInvocationHandlerImpl.java:693)         at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.executeCall(MethodInvocationHandlerImpl.java:674)         at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.completeCall(MethodInvocationHandlerImpl.java:371)         at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invokeOperation(MethodInvocationHandlerImpl.java:322)         at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invoke(MethodInvocationHandlerImpl.java:195)         at com.sun.proxy.$Proxy25.list(Unknown Source)         at com.vmware.vim.lookup.client.tool.util.SsoEndpointUtil.findSso(SsoEndpointUtil.java:49)         at com.vmware.vim.lookup.client.tool.util.SsoEndpointUtil.createSsoConnConfig(SsoEndpointUtil.java:35)         at com.vmware.vim.lookup.client.tool.util.SamlTokenUtil.acquireBearerToken(SamlTokenUtil.java:84)         at com.vmware.vim.lookup.client.tool.util.LookupHelper$LsClient.createStub(LookupHelper.java:53)         at com.vmware.vim.lookup.client.tool.command.Command.callLsEx(Command.java:191)         at com.vmware.vim.lookup.client.tool.command.Command.callLs(Command.java:163)         at com.vmware.vim.lookup.client.tool.command.UnregisterCommand.execute(UnregisterCommand.java:42)         at com.vmware.vim.lookup.client.tool.LsTool.app(LsTool.java:67)         at com.vmware.vim.lookup.client.tool.LsTool.main(LsTool.java:103)

 

0 Kudos
2 Replies
Martjasek
Contributor
Contributor

Hello,

it looks to be related to certificate, --no-check-cert will probably deal with it. 

Btw. what's the reason behind this task?

Martin

0 Kudos
Ajay1988
Expert
Expert

The syntax is wrong ; that's why  you get "Unexpected status code: 400"
>>

/usr/lib/vmware-lookupsvc/tools/lstool.py unregister --url http://localhost:7090/lookupservice/sdk --id <service-id to be unregistered> --user 'administrator@vsphere.local' --password 'xxxx' --no-check-cert

Change service-id and password 

What task are you trying to run and where did you get that command from? 

If you think your queries have been answered
Mark this response as "Correct" or "Helpful".

Regards,
AJ
0 Kudos