VMware Cloud Community
dRuddy201110141
Contributor
Contributor

Custom Template Error

Hi,

I created a custom CentOs 6.4 template and I'm having some errors.

First when I run the custos installer downloaded from the BDE management server I get errors. I resolved them by installing Ruby, rubygems, and rubygems-devl. In the past when I created templates I didn't need to do this.

I noticed during the script that it does download Ruby from and FTP site. Is is possible that the download changed?

After getting the custos installer to work I get the following error during a deployment as listed in ironfan.log

Ironfan

10.10.81.223 [Wed, 04 Dec 2013 06:41:09 -0800] INFO: Set Bootstrap Action to ''

10.10.81.223 [Wed, 04 Dec 2013 06:41:09 -0800] INFO: mounting data disk /dev/disk/by-id/scsi-36000c2962205c4d813e725e95c38f91e-part1 at /mnt/scsi-36000c2962205c4d813e725e95c38f91e-part1

10.10.81.223 [Wed, 04 Dec 2013 06:41:09 -0800] ERROR: Running exception handlers

10.10.81.223 [Wed, 04 Dec 2013 06:41:09 -0800] FATAL: Saving node information to /var/chef/cache/failed-run-data.json

10.10.81.223 [Wed, 04 Dec 2013 06:41:09 -0800] ERROR: Exception handlers complete

10.10.81.223 [Wed, 04 Dec 2013 06:41:09 -0800] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out

10.10.81.223 [Wed, 04 Dec 2013 06:41:09 -0800] FATAL: NoMethodError: undefined method `realpath' for File:Class

Bootstrapping node PivotalCompute-ComputeMaster-0 (10.10.81.223) completed with exit status 1

Any ideas on this error? Thought it might be the scsi controller, had originally installed para-virtualized. Reinstalled with LSI and still get the same error.

0 Kudos
1 Reply
jessehuvmw
Enthusiast
Enthusiast

"I noticed during the script that it does download Ruby from and FTP site. Is is possible that the download changed?"  You can use vi to edit installer.sh and change the ftp://...ruby...tar.gz/ to any other ruby source code tarball.


FATAL: NoMethodError: undefined method `realpath' for File:Class : this error means you installed ruby 1.8 in your template, but serengeti requires ruby 1.9


"I resolved them by installing Ruby, rubygems, and rubygems-devl."  you don't need to install ruby manually, just ensure your template can connect to Internet, then the installer.sh will install ruby for you. If you need a http_proxy in the template to connect to Internet, run this "./installer.sh /path/to/java_home http://yourproxyserver:port

Cheers, Jesse Hu
0 Kudos