DefinIT Because if IT were easy, everyone would do it…

10Jul/142

HTTP Error 500 installing vCAC IaaS Model Manager Data

Posted by Sam McGeown

This was a fun little error, whilst installing the distributed IaaS roles I couldn’t seem to get the IaaS components to install – when I got the Website and Model Manager Data install it would fail with the following message:

##InitializeRepo Registering solution user in the VA, initializing Repository MetaModel and Authorization 
"C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.exe" RegisterSolutionUser -url https://vcloud.definit.local --Tenant "vsphere.local" -cu "[email protected]" -cp ******  --FileName "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.data" -v 
    VMware.Cafe.HtmlResponseException: Internal Server Error (500) 
    at VMware.Cafe.JsonRestClient.<HandleErrorResponse>d__8d`1.MoveNext() 
  --- End of stack trace from previous location where exception was thrown --- 
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
     at VMware.Cafe.JsonRestClient.<CreateResource>d__2d`1.MoveNext() 
  --- End of stack trace from previous location where exception was thrown --- 
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
     at VMware.Cafe.ComponentRegistryClient.<CreateSolutionUserAsync>d__5.MoveNext() 
  Http response: 
  StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: 
  { 
    Vary: Accept-Encoding 
    Vary: User-Agent 
    Connection: close 
    Date: Thu, 10 Jul 2014 23:20:43 GMT 
    Content-Length: 3784 
    Content-Type: text/html; charset=utf-8 
  } 
  Warning: Non-zero return code. Command failed. 
C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\DeployRepository.xml(556,5): error MSB3073: The command ""C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.exe" RegisterSolutionUser -url https://vcloud.definit.local --Tenant "vsphere.local" -cu "[email protected]" -cp ******  --FileName "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\Cafe\Vcac-Config.data" -v" exited with code 1. 
Done Building Project "C:\Program Files (x86)\VMware\vCAC\Server\Model Manager Data\DeployRepository.xml" (InitializeRepo target(s)) -- FAILED. 
Build FAILED.

image

I’ve pasted it in here because I couldn’t find anything through google that referred to my error messages – hopefully if you’re reading this you’ve found it because you’re looking for it!

I tried all sorts of things before noticing the HTTP header – specifically the Date – which showed an incorrect time. I jumped on the VCAC appliances via SSH and checked the time using “date”. One of my appliances was indeed out of skew - somehow the NTP service had been stopped after I configured it previously.

I edited the ntp.conf (vi /etc/ntp.conf) and checked I had entries in there – e.g. “server 0.uk.pool.ntp.org” and then started the NTP daemon using “rcntp start”, then sync’d using “rcntp ntptimeset”

The moral of the story - check time sync on ALL vCAC components - it's important!

Filed under: vCloud, VMware 2 Comments
1Jul/140

Slow or failed logon to VCSA 5.5 with vCOps in the environment

Posted by Sam McGeown

vsphere logoRecently I encountered this problem in a customer site whereby the logon to VCSA 5.5 would either time out, or take 3-5 minutes to actually log on.

Running a netstat on the VCSA during the attempt to logon showed there was a SYN packet sent to the vCOps appliance on port 443 that never established a connection. Another check was attempting to connect using curl https://<vCOpsIP> –k  - this would time out.

Ensuring connectivity to the vCOps appliance over port 443 fixed the logon timeout issue – presumably a the connection attempt holds up the logon process (single threaded?!) which causes a timeout in the logon process.

26Jun/142

vCAC 6.0 build-out to distributed model – Part 4: Deploying and clustering a secondary vCAC Appliance

Posted by Sam McGeown

This is the fourth article in a series about how to build-out a simple vCAC 6 installation to a distributed model.

By the end of this post we will have deployed a second vCAC Appliance, clustered it with the first appliance and registered the load balanced URL with the Identity Appliance. This will mean logging on to https://vcloud.definit.local/shell-ui-app will be successful.

vCAC deployment with clustered and load balanced vCAC Appliances

vCAC deployment with clustered and load balanced vCAC Appliances

An overview of the steps required are below:

  • Issue and install certificates
  • Deploy an external vPostgres appliance and migrate the vCAC database
  • Configure load balancing
  • Deploy a second vCAC appliance and configure clustering
  • Install and configure additional IaaS server
  • Deploy vCenter Orchestrator Appliance cluster
25Jun/140

vCAC 6.0 build-out to distributed model – Part 3.2: Configure load balancing with NSX

Posted by Sam McGeown

This is the second part of the 3rd article in a series about how to build-out a simple vCAC 6 installation to a distributed model.

By the end of this part, we will not have modified the vCAC deployment in any way, we’ll just have 3 configured load balanced URLs

image

vCAC Simple Install with vPostgres deployed and load balancers prepared

An overview of the steps required are below:

  • Issue and install certificates
  • Deploy an external vPostgres appliance and migrate the vCAC database
  • Configure load balancing
  • Deploy a second vCAC appliance and configure clustering
  • Install and configure additional IaaS server
  • Deploy vCenter Orchestrator Appliance cluster
25Jun/140

vCAC 6.0 build-out to distributed model – Part 3.1: Configure Load Balancing with vCNS

Posted by Sam McGeown

This is the first part of the 3rd article in a series about how to build-out a simple vCAC 6 installation to a distributed model.

By the end of this part, we will not have modified the vCAC deployment in any way, we’ll just have 3 configured load balanced URLs

image

vCAC simple configuration with vPostgres and Load Balancers prepared

An overview of the steps required are below:

  • Issue and install certificates
  • Deploy an external vPostgres appliance and migrate the vCAC database
  • Configure load balancing
  • Deploy a second vCAC appliance and configure clustering
  • Install and configure additional IaaS server
  • Deploy vCenter Orchestrator Appliance cluster
Page 1 of 4412345...102030...Last »