CloudStack Usage Server Fails To Start

On a freshly installed Apache CloudStack 4.3.0 installation, the cloudstack-usage server fails to start as below:

[root@csman11 ~]# /etc/init.d/cloudstack-usage start
Starting CloudStack Usage Monitor cloudstack-usage19/06/2014 15:37:20 27499 jsvc error: Cannot locate Java Home
cat: /var/run/cloudstack-usage.pid: No such file or directory [FAILED]

This is probably a side effect of newer version of OpenJDK being released for CentOS via EPEL which /etc/init.d/cloudstack-usage start script does not know about.

[root@csman11 ~]# rpm -qa|grep ^java
java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
java-1.7.0-openjdk-1.7.0.55-2.4.7.1.el6_5.x86_64
java_cup-0.10k-5.el6.x86_64

The right location for java-1.7.0-openjdk JAVA_HOME is /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64 and and is easily fixed with the below patch:

Continue reading CloudStack Usage Server Fails To Start

Shanker Balan

Shanker Balan is a devops and infrastructure freelancer with over 14 years of industry experience in large scale Internet systems. He is available for both short term and long term projects on contract. Please use the Contact Form for any enquiry.

More Posts - Website

Follow Me:
TwitterLinkedIn

Talk: Creating CentOS Templates For CloudStack

Update (20140324): The presentation is available at SlideShare or for download (PDF) here here. See you all for the next meetup.

The most popular section on my blog happens to be around creating OS templates for CloudStack. More specifically, creating CentOS templates for CloudStack.

I will be presenting a talk on the same topic at the Bangalore CloudStack meetup on Wednesday, March 19th at the InMobi campus. Please do join me and the other CloudStacker’s at the meetup.

Please RSVP via the meetup page.

Shanker Balan

Shanker Balan is a devops and infrastructure freelancer with over 14 years of industry experience in large scale Internet systems. He is available for both short term and long term projects on contract. Please use the Contact Form for any enquiry.

More Posts - Website

Follow Me:
TwitterLinkedIn

FreeBSD 10 On CloudStack + KVM

Motty Cruz, recently reported having issues installing and running FreeBSD on his CloudStack 4.2.1/CentOS 6.5 KVM environment.

My environment is very similar, except that I prefer to run FreeBSD on XenServer instead of KVM. FreeBSD 10 and later versions have XENHVM support possibly making Xen a better platform for FreeBSD.

So does FreeBSD have issues running on Apache CloudStack 4.2.1 and CentOS 6.5 KVM hypervisors?

Continue reading FreeBSD 10 On CloudStack + KVM

Shanker Balan

Shanker Balan is a devops and infrastructure freelancer with over 14 years of industry experience in large scale Internet systems. He is available for both short term and long term projects on contract. Please use the Contact Form for any enquiry.

More Posts - Website

Follow Me:
TwitterLinkedIn