If you are new to vRO or coming form vRO 7.x, you may find restarting vRO a little tricky and might want to know how to restart vRO in an ordered way to avoid any service failure or corrupt configuration etc. Historically, in 7.x version of vRO, there used to have a restart button in its VAMI interface which generally restart it gracefully but version 8.x skipped that ability. However, there are new ways that we’ll see today in this post.
- via vSphere – restart VM guest OS
- via SSH – pod recreation
- via SSH – run deploy.sh
- via Control Center
- Older ways to restart vRO services
via vSphere – restart VM guest OS
- Click Virtual Machines in the VMware Host Client inventory, select vRO VM.
- To restart a virtual machine, right-click the virtual machine and select Power > Restart Guest OS.
via SSH – pod recreation
- One way is to scale down pods to ZERO which basically destroys them. You can do so by copy paste these commands on your vRO Server over a SSH session.
kubectl scale deployment orchestration-ui-app --replicas=0 -n prelude kubectl scale deployment vco-app --replicas=0 -n prelude sleep 120 kubectl scale deployment orchestration-ui-app --replicas=1 -n prelude kubectl scale deployment vco-app --replicas=1 -n prelude
- Other way would be to delete these pods directly using this command. After this command, K8s will auto-deploy the pods back again.
kubectl delete pod vco-app kubectl delete pod orchestration-ui-app
Now monitor till both pods will be fully recreated (3/3 and 1/1) using this command:
kubectl -n prelude get pods
When all services are listed as Running or Completed, vRealize Orchestrator is ready to use. Generally, pod creation may take up to 5-7 mins.
via SSH – run deploy.sh
- Login to the vRO appliance using SSH or VMRC
- To stop all services, run/opt/scripts/deploy.sh –onlyClean
- To shutdown the appliance, run /opt/scripts/deploy.sh –shutdown
- To start all services, run /opt/scripts/deploy.sh
- Validate the deployment has finished by reviewing the output from the deploy.sh script
- Once the command execution completes, ensure that all of the pods are running correctly with the following command ‘kubectl get pods –all-namespaces‘
When all services are listed as Running or Completed, vRealize Orchestrator is ready to use.
via Control Center
- Go to Control Center.
- Open System Properties and add a new property.
- This will auto-restart the vRO in 2 mins.
Older ways to restart vRO services
There are some older ways of restarting vRO and its services, perhaps for vRO 6.x & 7.x only. But these are not valid anymore for version 8.x. They are just here for the records.
via SSH – restart services
- Take an SSH session and run this command will restart vRO services.
service vco-server stop && service vco-configurator stop
via Control Center – Startup Options
- Open Control Center and go to Startup Options.
- Click Restart button.
via vRA VAMI – for embedded vRO
- Open vRA VAMI Interface and go to vRA -> Orchestrator settings.
- Select Service type and Click Restart button.
That’s all in this post. Please comment down if you use any way other than mentioned here. I’ll be happy to add it here. And don’t forget to share this post. #vRORocks