...
Exporting vRealize Automation 6.2.x Advanced Service Designer (ASD) blueprints using vRealize CodeStream management pack fails. In the vRealize Orchestrator workflow, you see errors similar to: <YYYY-MM-DD>T<time></time> [E] Error in (Workflow:Capture ASD Element / Success? (item5)#5) Error: Failed to export ASD content. <YYYY-MM-DD>T<time></time> [E] Workflow execution stack: *** item: 'Capture ASD Element/item5', state: 'failed', business state: 'null', exception: 'Error: Failed to export ASD content. (Workflow:Capture ASD Element / Success? (item5)#5)' workflow: 'Capture ASD Element' (a308306d-47df-41a5-af73-0521fd59170b) | 'attribute': name=exportFilePath type=string value=/storage/external/master/ASD-Blueprint/599ba015-7988-492b-b2e9-7a7fd9367f9b-v2/vra/asd/ASDExport.zip | 'attribute': name=actionResult type=string value=__NULL__ | 'attribute': name=errorDetails type=string value= | 'attribute': name=asdType type=string value=ServiceBlueprint | 'attribute': name=vcoWorkflowId type=string value= | 'attribute': name=vcoExportCommand type=SecureString value=__NULL__ | 'attribute': name=asdFile type=string value= | 'attribute': name=contentFilename type=string value=ASDExport.zip | 'attribute': name=contentSubfolder type=string value=vra/asd/ | 'attribute': name=fileExported type=boolean value=false | 'attribute': name=sleepTime type=number value=3.0 | 'attribute': name=metadataAttr type=string value=includeDependencies=true,icon=1485367486_on_off.png,service=My Blueprint - Dev/Test | 'attribute': name=retries type=number value=3.0 | 'attribute': name=counter type=number value=3.0 | 'attribute': name=keepTempFiles type=boolean value=true | 'attribute': name=errorCode type=string value= | 'input': name=packageName type=string value=Blueprint to do Things | 'input': name=sourceConfig type=string value=vRA Development | 'input': name=exportDir type=string value=/storage/external/master/ASD-Blueprint/599ba015-7988-492b-b2e9-7a7fd9367f9b-v2/ | 'input': name=catalogRequestId type=string value=d1f91a2f-cbe1-446d-a26b-68c530075f5d | 'input': name=branch type=string value=master | 'input': name=packageType type=string value=ASD-Blueprint | 'input': name=includeDependencies type=boolean value=true | 'output': name=metadata type=string value=null *** End of execution stack. Exporting vRealize Automation 6.2.x ASD blueprints from CloudClient fails. In the cloudclient-trace.log file, you see entries similar to: <YYYY-MM-DD>T<time></time> cc: [priority="ERROR" thread="Spring Shell"] com.vmware.cloudclient.plugin.vraext.commands.ASDContentManagementCommands.exportASDFileAndTest:948 - exportASDFileAndTest: Failed to export ASD Content <YYYY-MM-DD>T<time></time> cc: [priority="ERROR" thread="Spring Shell"] com.vmware.cloudclient.core.authentication.BaseAuthentication.afterThrowingInvocation:415 - Failed to export ASD Content com.vmware.cloudclient.exception.CloudClientException: Failed to export ASD Content at com.vmware.cloudclient.plugin.vraext.commands.ASDContentManagementCommands.exportASDByNamesToZip(ASDContentManagementCommands.java:342) ~[plugin-vra-extensions-v6-2.2.0.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_79] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79] at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) ~[spring-core-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.shell.core.SimpleExecutionStrategy.invoke(SimpleExecutionStrategy.java:64) ~[spring-shell-1.1.0.RELEASE.jar:1.1.0.RELEASE] at org.springframework.shell.core.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:48) [spring-shell-1.1.0.RELEASE.jar:1.1.0.RELEASE] at org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:127) [spring-shell-1.1.0.RELEASE.jar:1.1.0.RELEASE] at org.springframework.shell.core.JLineShell.promptLoop(JLineShell.java:533) [spring-shell-1.1.0.RELEASE.jar:1.1.0.RELEASE] at org.springframework.shell.core.JLineShell.run(JLineShell.java:179) [spring-shell-1.1.0.RELEASE.jar:1.1.0.RELEASE] at java.lang.Thread.run(Unknown Source) [?:1.7.0_79] In the /var/log/vmware/catalina.out log of the vRealize Automation appliance that is the source for the ASD blueprints, you see errors similar to: <YYYY-MM-DD>T<time></time>,158 vcac: [component="cafe:advanced-designer" priority="INFO" thread="eventPublisherExecutor-3699" tenant] com.vmware.vcac.core.eventlog.rest.client.service.ServiceEventPublisher.run:112 - Event to be published: [eventType: INFO, userName: myadminaccount@mydomain.local, tenantId: dev, targetType: Tenant, targetId: dev, description: Export started for tenant dev] <YYYY-MM-DD>T<time></time>,158 vcac: [component="cafe:advanced-designer" priority="INFO" thread="tomcat-http--4" tenant="dev"] com.vmware.vcac.contentmanagement.service.ContentManagementServiceImpl.exportContent:119 - Export of content started. Content Filter:com.vmware.vcac.contentmanagement.domain.FilterInfo@27e8fe2f <YYYY-MM-DD>T<time></time>,193 vcac: [component="cafe:identity" priority="INFO" thread="tomcat-http--14" tenant="vsphere.local"] com.vmware.vcac.authorization.controller.AuthoritiesController.getExtendedContextPermissionsByPrincipalRefs:205 - Getting extended context permissions for principals with size: [1] <YYYY-MM-DD>T<time></time>,196 vcac: [component="cafe:identity" priority="INFO" thread="tomcat-http--14" tenant="vsphere.local"] com.vmware.vcac.authorization.controller.AuthoritiesController.getExtendedContextPermissionsByPrincipalRefs:211 - Getting extended context permissions completed for principals with size: [1] <YYYY-MM-DD>T<time></time>,538 vcac: [component="cafe:advanced-designer" priority="INFO" thread="tomcat-http--4" tenant="dev"] com.vmware.vcac.contentmanagement.service.ContentManagementServiceImpl.exportContent:131 - Can not export the ASD contentNo such file or directory <YYYY-MM-DD>T<time></time>,539 vcac: [component="cafe:advanced-designer" priority="INFO" thread="eventPublisherExecutor-3699" tenant] com.vmware.vcac.core.eventlog.rest.client.service.ServiceEventPublisher.run:112 - Event to be published: [eventType: ERROR, userName: myadminaccount@mydomain.local, tenantId: dev, targetType: Tenant, targetId: dev, description: Export failed for tenant dev: No such file or directory] <YYYY-MM-DD>T<time></time>,636 vcac: [component="cafe:advanced-designer" priority="INFO" thread="eventPublisherExecutor-3699" tenant] com.vmware.vcac.core.eventlog.rest.client.service.ServiceEventPublisher.run:112 - Event to be published: [eventType: INFO, userName: myadminaccount@mydomain.local, tenantId: dev, targetType: Tenant, targetId: dev, description: Export successful for tenant dev] Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
In vRealize Automation 6.2.x, CloudClient and the vRealize CodeStream Management Pack performs client side filtering of ASD blueprint exports and initiate the retrieval of all blueprints during the process. If there is a forward slash (/) in the name of any of the ASD blueprints, even if they are not the blueprints being exported, it creates an invalid directory path in the vRealize Automation export and cause the attempt to fail.
To resolve this issue, remove all the forward slashes (/) from the names of the Advanced Service Designer (ASD) blueprints.
简体中文:使用 CloudClient 和 vRealize Code Stream Management Pack 导出高级服务设计器蓝图失败