VMware Cloud Community
kevin_tor
Contributor
Contributor

A issue related to request VRA catalog item with software components

Good evening, All.

We are use VRA 7.3 with ESXi 6.0 Patch 6

We have blueprint with software components that include some script to install SQL server,Antivirus agent and some third party software.

When I request item from VRA GUI , it successful deploy vm with the script running

When I request through REST API , with request template( I am use PowrVra .  The machine was deployed, but the script apparently not running

Does anybody running into similar issue?

Thank you in advance,

Reply
0 Kudos
7 Replies
daphnissov
Immortal
Immortal

When you look at the request details, does it show the software component as part of the items? If so, what does it show for the execution?

Reply
0 Kudos
kevin_tor
Contributor
Contributor

I did check Json it does include software components part.

in my JSOn it does contain the software component part.

"data":  {

                 "Generic_-_RHEL_7.4_CIS_-_v1.0.3":  {

                                                         "componentTypeId":  "com.vmware.csp.component.cafe.composition",

                                                         "componentId":  null,

                                                         "classId":  "Blueprint.Component.Declaration",

                                                         "typeFilter":  "DEVGenericRHEL74CISv103*Generic_-_RHEL_7.4_CIS_-_v1.0.3",

                                                         "data":  {

                                                                      "_hasChildren":  false

                                                                  }

                                                     },

                 "VM_Configuration":  {

                                          "componentTypeId":  "com.vmware.csp.component.cafe.composition",

                                          "componentId":  null,

                                          "classId":  "Blueprint.Component.Declaration",

Iam not sure if I am missing any aprt?

Do i have to provide the componentId?

Reply
0 Kudos
daphnissov
Immortal
Immortal

Yes but when you run it and you go look at the requests, what does it show?

Reply
0 Kudos
kevin_tor
Contributor
Contributor

It create the request, and And job seem finished successful.

Our scrip is to install some third party software and modify some folder structure. I can tell the script wasn't running.

I am not sure where can tell why the software components.

The wired part is I create the task manually and it works.

Reply
0 Kudos
daphnissov
Immortal
Immortal

Inside the GUI, go look at your requests tab. Show the detailed execution information. What does it show? Can you take a screenshot?

Reply
0 Kudos
kevin_tor
Contributor
Contributor

sorry fro delay guy.

Just get screen shot. This job was failed.

But I notice something, I am not sue if if it impact.

I run script to get VRA content, i notice 2 stuff has same name.

Id            : 8e3d3d6c-5ab2-4968-a539-d0c2a5246b9b

ContentId     : Software.DEVGenericRHEL74CISv103

Name          : Generic - RHEL 7.4 CIS - v1.0.3

Description   : Software component for RHEL 7.4 CIS Generic

ContentTypeId : software-component

MimeType      :

TenantId      : xxx

SubtenantId   :

Dependencies  : {}

CreatedDate   : 2018-07-25T19:28:57.376Z

LastUpdated   : 2018-09-13T16:58:41.761Z

Version       : 5

Id            : de2cb9ba-1727-4de9-9aef-87daeae4ee4c

ContentId     : DEVGenericRHEL74CISv103

Name          : Generic - RHEL 7.4 CIS - v1.0.3

Description   : Generic - RHEL 7.4 CIS - v1.0.3

ContentTypeId : composite-blueprint

MimeType      :

TenantId      : xxx

SubtenantId   :

Dependencies  : {8e3d3d6c-5ab2-4968-a539-d0c2a5246b9b}

CreatedDate   : 2018-07-30T19:32:55.774Z

LastUpdated   : 2018-08-23T14:02:54.822Z

Version       : 2

Not sure which ID I should put in request JSON  template?

Reply
0 Kudos
daphnissov
Immortal
Immortal

So your request failed at the IaaS provision step which means the software component cannot and will not attempt to run. This is all normal.

Not sure which ID I should put in request JSON  template?

This one:

Id            : de2cb9ba-1727-4de9-9aef-87daeae4ee4c

ContentId     : DEVGenericRHEL74CISv103

Name          : Generic - RHEL 7.4 CIS - v1.0.3

Description   : Generic - RHEL 7.4 CIS - v1.0.3

ContentTypeId : composite-blueprint

MimeType      :

TenantId      : xxx

SubtenantId   :

Dependencies  : {8e3d3d6c-5ab2-4968-a539-d0c2a5246b9b}

CreatedDate   : 2018-07-30T19:32:55.774Z

LastUpdated   : 2018-08-23T14:02:54.822Z

Version       : 2

You see ContentTypeId that says "composite-blueprint"? This is the one which represents the blueprint containing the vSphere machine object and the software component. The software component is an object that, depending on its container, does not get requested directly but instead triggered.

Reply
0 Kudos