Dear community
Good morning.
I am trying to provision VIC Containers Hosts through vRealize Automation portal, following this VMware blog post, Using vRealize Automation to Deploy VMware Virtual Container Hosts as a Service - Cloud Native Apps ...
Has anyone tried successfully?
I am facing some issues, towards importing the XaaS BP through CloudClient
Any help or hints would be much appreciated.
Thanks
Tasos
I'm following that same blog and am stuck at
step #17, Edit the /etc/vco/app-server/properties and add the following property to the bottom of the file: com.vmware.js.allow-local-process=true
There is not a properties file persay, but several properties files. Which one do I add the property to?
lct-vrava-01:/etc/vco/app-server # ls *properties
cafe.properties ldap.properties sso.properties vmo.properties
catalina.properties logging.properties vmo-managed.properties
Any knowledge on what to do next for vRO/vCO
vro; #vco
Damion Terrell . + (He/Him) + . * . + @ + . * . + .
Core IT Service Specialist * . + * . + . + . + * +
UNM – IT Platforms – VIS + . . . . . . . . .
. + . + * . + * .
* . . + . . . . + . + * + .
“You learn the job of the person above you, * + . + * @
and you teach your job to the person below you..” . * +
The file is vmo.properties
I just tried it and got it to work.
Make sure you have the correct variables defined in your CloudClient.properties
vra_server=<appliance server>
vra_iaas_server=<iaas windows server>
vra_tenant=<your tenant, are you using default or sub tenant?>
Do you get login to CloudClient success messages?
CloudClient is logging in IaaS with persisted session
IaaS Model Manager login: [ACTIVE], session: [ACTIVE], sessionKey=[default], user=[blah], server=[blah.blah.com]
CloudClient is logging in vRealize Automation with persisted session
vRA 7.5 login: [ACTIVE], session: [ACTIVE], sessionKey=[default], user=[blah], server=[https://blah.blah.com], tenant=[MySubTenant]
Can you issue vra commands?
CloudClient>vra blueprint list
+---------------------------------------+--------------------------------------------+
| id | name |
+---------------------------------------+--------------------------------------------+
Here is the run from my import:
vra content import --path 02.23.2017/14332562-02c4-41dd-b90a-c2f618f42ade-xaas-blueprint.zip --precheck WARN --verbose true --resolution OVERWRITE
+------------+
|Notification|
+------------+
* Performing import precheck for [.../02.23.2017/14332562-02c4-41dd-b90a-c2f618f42ade-xaas-blueprint.zip]. Note this operation does not import any content.
+--------------+
|Result Details|
+--------------+
[ {
"contentId" : "3d444acd-2eed-4937-99f8-5b887c8a4314",
"contentName" : "Virtual Container Host",
"contentTypeId" : "xaas-resource-type",
"operationStatus" : "SUCCESS",
"messages" : [ ],
"operationErrors" : [ ]
}, {
"contentId" : "14332562-02c4-41dd-b90a-c2f618f42ade",
"contentName" : "Deploy Virtual Container Host",
"contentTypeId" : "xaas-blueprint",
"operationStatus" : "SUCCESS",
"messages" : [ ],
"operationErrors" : [ ]
} ]
+----------------------+
|Import Precheck Result|
+----------------------+
SUCCESS : Import precheck finished Success..
* 2 content(s) were validated successfully.
* Nothing was imported.
+------------+
|Notification|
+------------+
* Importing [.../02.23.2017/14332562-02c4-41dd-b90a-c2f618f42ade-xaas-blueprint.zip]. Note this operation will import the given content unless it encounters failures.
+--------------+
|Result Details|
+--------------+
[ {
"contentId" : "3d444acd-2eed-4937-99f8-5b887c8a4314",
"contentName" : "Virtual Container Host",
"contentTypeId" : "xaas-resource-type",
"operationStatus" : "SUCCESS",
"messages" : [ ],
"operationErrors" : [ ]
}, {
"contentId" : "14332562-02c4-41dd-b90a-c2f618f42ade",
"contentName" : "Deploy Virtual Container Host",
"contentTypeId" : "xaas-blueprint",
"operationStatus" : "SUCCESS",
"messages" : [ ],
"operationErrors" : [ ]
} ]
+-------------+
|Import Result|
+-------------+
SUCCESS : Import finished Success..
* 2 content(s) were imported successfully.
Damion Terrell . + (He/Him) + . * . + @ + . * . + .
Core IT Service Specialist * . + * . + . + . + * +
UNM – IT Platforms – VIS + . . . . . . . . .
. + . + * . + * .
* . . + . . . . + . + * + .
“You learn the job of the person above you, * + . + * @
and you teach your job to the person below you..” . * +
Next issue I found was I was getting error message at the top of Catalog request:
"Failed to retrieve form from provider for blah-blah-blah-blah" in red
Diving into the appliance vrava, /var/log/vmware/vco/app-server/server.log:
2020-04-20 23:56:28.955+0000 [http-nio-127.0.0.1-8280-exec-15] INFO {} [SCRIPTING_LOG] [script: com.vmware.vra.vic/uiGetExternalNetwork] (com.vmware.vra.vic/uiGetExternalNetwork) Target Data Located for << myTarget.blah.com >>
2020-04-20 23:56:28.960+0000 [http-nio-127.0.0.1-8280-exec-15] WARN {} [ScriptModuleRuntimeServiceImpl] Unable to execute action class ch.dunes.util.DunesServerException: TypeError: Cannot read property "value" from null (unnamed script#6)
2020-04-20 23:56:28.961+0000 [http-nio-127.0.0.1-8280-exec-15] ERROR {} [BaseController] Error invoking REST [unknown]
ch.dunes.util.DunesServerException: Action 'uiGetExternalNetwork' in module 'com.vmware.vra.vic' failed : TypeError: Cannot read property "value" from null (unnamed script#6)
In the vRO actions com.vmware.vra.vic/uiGetExternalNetwork, the javascript referenced
targetConfigurations[i].getAttributeWithKey("public-network").value
So if you look at step 6:
Go to the ‘Configurations’ tab and select the configuration element found under the path – VMware->VIC Deploy->vRealize Automation->Targets. 
Note: The element contains example values. Edit the element as per your environment settings. You can change the name of the element as well. Note: If you are using multiple clusters in your environment, you need to add an additional attribute named ‘compute-resource’ and the name of the cluster as its value.
In the Note: you must also add an attribute "public-network" and give it the same network from your cluster.
The catalog request now loads without errors.
Not sure if it works yet. But it is good to probably try and create a few VCH using the CLI utility first to make sure you have all the correct settings you want to have working when you request through vRA.
Will document/update more as it becomes available.
Damion Terrell . + (He/Him) + . * . + @ + . * . + .
Core IT Service Specialist * . + * . + . + . + * +
UNM – IT Platforms – VIS + . . . . . . . . .
. + . + * . + * .
* . . + . . . . + . + * + .
“You learn the job of the person above you, * + . + * @
and you teach your job to the person below you..” . * +
