VMware Cloud Community
Sharanappa_B
Contributor
Contributor

Cloud Client4.0 error

Hello,

I'm trying to import vRA windows template for SQL server 2014 using cloud client 4.0 but I'm getting below java error and also i want to know, how do i set these sessions to ACTIVE

session: [INACTIVE],  and IaaS Model Manager login: [INACTIVE].

Any help with this will greatly appreciated.

C:\cloudclient-4.0.0-3343843\bin>cloudclient.bat

JRE Version: 1.8.0_66

Version : 4.0.0

*Tip* : You can hit tab to move through commands and arguments

*Tip* : You can autologon with a CloudClient.properties file

Welcome to the VMware CloudClient

CloudClient>vra login userpass --user usera@vsphere.local --tenant vsphere.local --server https://vrava.domain.com

vRA Password for user@vsphere.local: **********

vRA 7.0 login: [ACTIVE], session: [INACTIVE], user=[user@vsphere.local], server=[https://vrava.domain.com], tenant=[vsphere.local] IaaS Model Manager login: [INACTIVE]

CloudClient>vra login isauthenticated all

vRA 7.0 login: [ACTIVE], session: [INACTIVE], user=[user@vsphere.local], server=[https://vrava.domain.com], tenant=[vsphere.local] IaaS Model Manager login: [INACTIVE]

CloudClient>vra content import --path c:\Installers\MicrosoftSQLServer2014.zip --dry-run  true --resolution SKIP

+------------+

|Notification|

+------------+

* Performing import dry run for [c:\Installers\MicrosoftSQLServer2014.zip]. Note this operation does not import any content.

Error: Java heap space

Exception in thread "Spring Shell" java.lang.OutOfMemoryError: Java heap space

        at java.util.Arrays.copyOf(Unknown Source)

        at java.io.ByteArrayOutputStream.grow(Unknown Source)

        at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)

        at java.io.ByteArrayOutputStream.write(Unknown Source)

        at org.springframework.util.StreamUtils.copy(StreamUtils.java:124)

        at org.springframework.http.converter.ResourceHttpMessageConverter.writeInternal(ResourceHttpMessageConverter.java:92)

        at org.springframework.http.converter.ResourceHttpMessageConverter.writeInternal(ResourceHttpMessageConverter.java:45)

        at org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:212)

        at org.springframework.http.converter.FormHttpMessageConverter.writePart(FormHttpMessageConverter.java:352)

        at org.springframework.http.converter.FormHttpMessageConverter.writeParts(FormHttpMessageConverter.java:332)

        at org.springframework.http.converter.FormHttpMessageConverter.writeMultipart(FormHttpMessageConverter.java:321)

       at org.springframework.http.converter.FormHttpMessageConverter.write(FormHttpMessageConverter.java:236)

        at org.springframework.http.converter.FormHttpMessageConverter.write(FormHttpMessageConverter.java:89)

        at org.springframework.web.client.RestTemplate$HttpEntityRequestCallback.doWithRequest(RestTemplate.java:794)

        at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:587)

        at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:550)

        at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:350)

        at com.vmware.vcac.platform.rest.client.impl.RestClientImpl.post(RestClientImpl.java:408)

        at com.vmware.vcac.platform.rest.client.services.AbstractService.postForObject(AbstractService.java:143)

        at com.vmware.vcac.contentmanagement.rest.client.service.PackageService.validatePackage(PackageService.java:283)

        at com.vmware.cloudclient.vcac.service.cafe.content.PackageService.validatePackage(PackageService.java:218)

        at com.vmware.cloudclient.vcac.commands.cafe.content.ContentCommands.importContent(ContentCommands.java:316)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:211)

        at org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleExecutionStrategy.java:64)

        at org.springframework.shell.core.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:48)

        at org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:127)

        at org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:533)

        at org.springframework.shell.core.JLineShell.run(JLineShell.java:179)

 

C:\cloudclient-4.0.0-3343843\bin>

 

 

C:\cloudclient-4.0.0-3343843\bin>cloudclient.bat
JRE Version: 1.8.0_66
===================================================
_____ _                 _ _____ _ _            _
/  __ \ |               | /  __ \ (_)          | |
| /  \/ | ___  _   _  __| | /  \/ |_  ___ _ __ | |_
| |   | |/ _ \| | | |/ _` | |   | | |/ _ \ '_ \| __|
| \__/\ | (_) | |_| | (_| | \__/\ | |  __/ | | | |_
\____/_|\___/ \__,_|\__,_|\____/_|_|\___|_| |_|\__|
 
 
===================================================
Version : 4.0.0
*Tip* : You can hit tab to move through commands and arguments
*Tip* : You can autologon with a CloudClient.properties file
 
Welcome to the VMware CloudClient
 
 
CloudClient>vra login userpass --user usera@vsphere.local --tenant vsphere.local --server https://vrava.domain.com
vRA Password for user@vsphere.local: **********
vRA 7.0 login: [ACTIVE], session: [INACTIVE], user=[user@vsphere.local], server=[https://vrava.domain.com], tenant=[vsphere.local] IaaS Model Manager login: [INACTIVE]
CloudClient>vra login isauthenticated all
vRA 7.0 login: [ACTIVE], session: [INACTIVE], user=[user@vsphere.local], server=[https://vrava.domain.com], tenant=[vsphere.local] IaaS Model Manager login: [INACTIVE]
CloudClient>vra content import --path c:\Installers\MicrosoftSQLServer2014.zip --dry-run  true --resolution SKIP
 
+------------+
|Notification|
+------------+
* Performing import dry run for [c:\Installers\MicrosoftSQLServer2014.zip]. Note this operation does not import any content.
Error: Java heap space
Exception in thread "Spring Shell" java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Unknown Source)
        at java.io.ByteArrayOutputStream.grow(Unknown Source)
        at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)
        at java.io.ByteArrayOutputStream.write(Unknown Source)
        at org.springframework.util.StreamUtils.copy(StreamUtils.java:124)
        at org.springframework.http.converter.ResourceHttpMessageConverter.writeInternal(ResourceHttpMessageConverter.java:92)
        at org.springframework.http.converter.ResourceHttpMessageConverter.writeInternal(ResourceHttpMessageConverter.java:45)
        at org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:212)
        at org.springframework.http.converter.FormHttpMessageConverter.writePart(FormHttpMessageConverter.java:352)
        at org.springframework.http.converter.FormHttpMessageConverter.writeParts(FormHttpMessageConverter.java:332)
        at org.springframework.http.converter.FormHttpMessageConverter.writeMultipart(FormHttpMessageConverter.java:321)
       at org.springframework.http.converter.FormHttpMessageConverter.write(FormHttpMessageConverter.java:236)
        at org.springframework.http.converter.FormHttpMessageConverter.write(FormHttpMessageConverter.java:89)
        at org.springframework.web.client.RestTemplate$HttpEntityRequestCallback.doWithRequest(RestTemplate.java:794)
        at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:587)
        at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:550)
        at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:350)
        at com.vmware.vcac.platform.rest.client.impl.RestClientImpl.post(RestClientImpl.java:408)
        at com.vmware.vcac.platform.rest.client.services.AbstractService.postForObject(AbstractService.java:143)
        at com.vmware.vcac.contentmanagement.rest.client.service.PackageService.validatePackage(PackageService.java:283)
        at com.vmware.cloudclient.vcac.service.cafe.content.PackageService.validatePackage(PackageService.java:218)
        at com.vmware.cloudclient.vcac.commands.cafe.content.ContentCommands.importContent(ContentCommands.java:316)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:211)
        at org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleExecutionStrategy.java:64)
        at org.springframework.shell.core.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:48)
        at org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:127)
        at org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:533)
        at org.springframework.shell.core.JLineShell.run(JLineShell.java:179)
 
C:\cloudclient-4.0.0-3343843\bin>
 
0 Kudos
10 Replies
CFSCENetAdmin
Contributor
Contributor

It doesn't look like you authenticated to IaaS as this is where the blueprint is imported to, I believe.

vRA 7.0 login: [ACTIVE], session: [INACTIVE], user=[user@vsphere.local], server=[https://vrava.domain.com/https://vrava.domain.com], tenant=[vsphere.local] IaaS Model Manager login: [INACTIVE]

IaaS Model Manager login: [INACTIVE] has to be [active] as well I believe...

vra login iaas --server https://iaasweb --user usera@vsphere.local --password xxxxx.

Try logging in with iaasweb being your web server that has the model manager.

0 Kudos
Sharanappa_B
Contributor
Contributor

Thanks for your response to the query, but I see can't import the package.

After login into iaaweb, IaaS Model Manager login become ACTIVE but still i see the Session show's INACTIVE/

CloudClient>vra login iaas --server vra-web01.domain.com --user administrator@domain.com --password xxxxxx

Authentication Success : IaaS Service.

vRA 7.0 login: [ACTIVE], session: [INACTIVE], user=[user@vsphere.local], server=[https://vrava.domain.com], tenant=[mytenant]

 

IaaS Model Manager login: [ACTIVE], session: [INACTIVE], user=[administrator@domain.com], server=[vra-web01.domain.com]

CloudClient>vra content import --path C:\Installers\MicrosoftSQLServer2014.zip --dry-run true --resolution SKIP

+------------+

|Notification|

+------------+

 * Performing import dry run for [C:\Installers\MicrosoftSQLServer2014.zip]. Note this operation does not import any content.

CloudClient>vra content import --path C:\Installers\MicrosoftSQLServer2014.zip --resolution OVERWRITE --precheck WARN --verbose

+------------+

|Notification|

+------------+

 * Performing import precheck for [C:\Installers\MicrosoftSQLServer2014.zip]. Note this operation does not import any content.

CloudClient>vra login iaas --server vra-web01.imsvcloud.com --user administrator@imsvcloud.com --password  F3d3r4t10N
Authentication Success : IaaS Service.
vRA 7.0 login: [ACTIVE], session: [INACTIVE], user=[sbasappa@vsphere.local], server=[https://vrava.imsvcloud.com], tenant=[IMSvCloud]
IaaS Model Manager login: [ACTIVE], session: [INACTIVE], user=[administrator@imsvcloud.com], server=[vra-web01.imsvcloud.com]
0 Kudos
CFSCENetAdmin
Contributor
Contributor

By the looks of the path, you have cloud client installed on a windows machine, correct?

It might be that cloud client is unable to see the path C:\Installers

session: [INACTIVE]  shows up on ours as well, but as long as login:[ACTIVE] is true it should work.

In our environment, I installed cloud client 4.0 on one of the vRA appliances, used winscp to copy the package to the /tmp folder and import from there.

Once installed and running I logged into first vra, then iaas.

then ran the command:

   vra content import --path /tmp/MicrosoftSharePoint2013-composite-blueprint.zip --dry-run true --resolution overwrite

once verified it would work changed the dry-run flag to false.

I also had an issue where logging into the model manager first logged in but stopped once logging into vra.

It might also be that the package you are trying to import is invalid, the SharePoint2013 one include the software blueprint that you are trying to import.

Hope this helps

0 Kudos
Ahmed_Morgan
Contributor
Contributor

You can create Client.Properties , is the best way for autologin

0 Kudos
mvr007
Contributor
Contributor

I don't see any answer to this issue. I am also getting the same error using Cloud Client 4.4. Any solution ?

CloudClient>vra content import --path F:\GuestAgents\SQL-2014\SQL-2014.zip --dry-run true --resolution SKIP

+------------+

|Notification|

+------------+

* Performing import dry run for [F:\GuestAgents\SQL-2014\SQL-2014.zip]. Note this operation does not import any content.

Error: Java heap space

Exception in thread "Spring Shell" java.lang.OutOfMemoryError: Java heap space

        at java.util.Arrays.copyOf(Unknown Source)

        at java.io.ByteArrayOutputStream.grow(Unknown Source)

        at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)

        at java.io.ByteArrayOutputStream.write(Unknown Source)

        at org.springframework.util.StreamUtils.copy(StreamUtils.java:138)

        at org.springframework.http.converter.ResourceHttpMessageConverter.writeContent(ResourceHttpMessageConverter.java:110)

        at org.springframework.http.converter.ResourceHttpMessageConverter.writeInternal(ResourceHttpMessageConverter.java:102)

        at org.springframework.http.converter.ResourceHttpMessageConverter.writeInternal(ResourceHttpMessageConverter.java:45)

        at org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:227)

        at org.springframework.http.converter.FormHttpMessageConverter.writePart(FormHttpMessageConverter.java:373)

        at org.springframework.http.converter.FormHttpMessageConverter.writeParts(FormHttpMessageConverter.java:353)

        at org.springframework.http.converter.FormHttpMessageConverter.writeMultipart(FormHttpMessageConverter.java:342)

        at org.springframework.http.converter.FormHttpMessageConverter.write(FormHttpMessageConverter.java:257)

        at org.springframework.http.converter.FormHttpMessageConverter.write(FormHttpMessageConverter.java:89)

        at org.springframework.web.client.RestTemplate$HttpEntityRequestCallback.doWithRequest(RestTemplate.java:882)

        at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:650)

        at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:613)

        at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:380)

        at com.vmware.vcac.platform.rest.client.impl.RestClientImpl.post(RestClientImpl.java:403)

        at com.vmware.vcac.platform.rest.client.services.AbstractService.postForObject(AbstractService.java:143)

        at com.vmware.vcac.contentmanagement.rest.client.service.PackageService.validatePackage(PackageService.java:283)

        at com.vmware.cloudclient.vcac.service.cafe.content.PackageService.validatePackage(PackageService.java:218)

        at com.vmware.cloudclient.vcac.commands.cafe.content.ContentCommands.importContent(ContentCommands.java:322)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

        at java.lang.reflect.Method.invoke(Unknown Source)

        at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:216)

        at org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleExecutionStrategy.java:64)

        at org.springframework.shell.core.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:48)

        at org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:127)

        at org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:533)

0 Kudos
daphnissov
Immortal
Immortal

What are the contents of the ZIP file you're trying to import? From the error message, it seems unusually large. The package must be a custom property(ies) or a blueprint of some kind.

0 Kudos
mvr007
Contributor
Contributor

ZIP file contains the SQL 2014 dump around 3GB. I have updated the java configuration ( -Xmx6144) but no change. I am trying to create SQL application blueprint in VRA7.3. Content needs to be imported using vra content import (cloud client)

For testing, I tried a small zip file(JRE dump file) and I am getting the following error.

* Performing import dry run for [/Users/Documents/jre-1.8.0_121-lin64.zip]. Note this operation does not import any content.

Error: I/O error on POST request for "https://vraweb.vmware.net/content-management-service/api/packages/validate/": Broken pipe (Write failed); nested exception is java.net.SocketException: Broken pipe (Write failed)

0 Kudos
daphnissov
Immortal
Immortal

There's your problem. It only supports importing blueprints, custom properties, a couple other artifacts, but not binaries of applications, libraries, etc. vRA is not going to hold the bits for your SQL application and cannot deploy those. If you want to understand that a little better and help you along, just go grab one of my software blueprints I uploaded for SQL 2014 on VMware Code. This you can import and see the code. The binaries are referenced but must be stored on another server of some sort.

mvr007
Contributor
Contributor

Thanks for confirmation. I appreciate your help. I got a PDF from solutionexchange and followed the steps. I assumed that zip file is the SQL source Smiley Happy

Validate that the MicrosoftSQLServer2014.zip file content is available.

vra content import --path /<Path>/ MicrosoftSQLServer2014.zip --dry-run true --resolution

SKIP/OVERWRITE

0 Kudos
daphnissov
Immortal
Immortal

By content it meant that the .zip file which contains the yaml code is available, not the installation artifacts.