VMware Cloud Community
vmwaredownload
Enthusiast
Enthusiast
Jump to solution

Get Username and Business Group details from Hadoop Workflows

Hi folks,

We are able to successfully deploy Hadoop Clusters with the help of  vCAC - vCO Integration. We are trying to update the database with information like username (who requested the Hadoop Cluster), Business Group etc., The problem is, we are not able to pull the username and Business Group details from vCAC through the Hadoop Workflows in vCO. These details are neither the inputs nor attributes nor outputs.. yet, all the details are displayed. But, when the workflow starts we get all the details such as username and Business Group ID in vCO under the 'Variables' tab (Shown in the below picture).  Is there any way we can log this information??

System.log(__asd_tenantref); --doesn't work.

I think these values are updated automatically through vCAC when the cluster deployment is initiated. Is there any way we can track these information?

Thanks,

SK

(In the picture below, the highlighted ones are the required information)

0 Kudos
1 Solution

Accepted Solutions
cdecanini_
VMware Employee
VMware Employee
Jump to solution

To get these variables please use these package : com.vmware.library.asd.package

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter

View solution in original post

0 Kudos
6 Replies
cdecanini_
VMware Employee
VMware Employee
Jump to solution

To get these variables please use these package : com.vmware.library.asd.package

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
vmwaredownload
Enthusiast
Enthusiast
Jump to solution

Thank you for that!

I imported the package to the vCO. Sholud I use the action element in the existing Hadoop Workflows? If yes, how should be this action element used? Can you give more insight on the usage of this? I am not quite getting it.

Thanks

SK

0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

You can either call these actions in your workflow and map the output paramter to a workflow attribute or call them within a scriptable box or copy and paste the content of the code in it.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
suthirkannan
Contributor
Contributor
Jump to solution

'__asd_requestedFor' is not working from actions. Is there any other way to get user details from actions?

0 Kudos
vmwaredownload
Enthusiast
Enthusiast
Jump to solution

Hi,

What is the issue you are facing? Any specific error notifications?

0 Kudos
suthirkannan
Contributor
Contributor
Jump to solution

'__asd_requestedFor' returns null when it has been invoked through presentation from the action module. So requestor cannot see any values when they submit the request. But it returns me the username only when it has been called from the workflow script. I wanted to list all the VMs owned by users group in the presentation.

0 Kudos