Re: Error building Cloudstack 4.2 RPMs

2013-10-08 Thread motty cruz
I installed it using yum
I created the following file in /etc/yum.repo.d/cloudstack.repo

[cloudstack]
name=cloudstack
baseurl=*http://cloudstack.apt-get.eu/rhel/4.1/*
enabled=1
gpgcheck=0


then run the following command
yum install cloudstack-management

(if  you want cloudstack 4.2 change the viersion to 4.2 instead of 4.1) but
that is the way I installed in CentOS 64bit 6.4

On Tue, Oct 8, 2013 at 6:51 PM, Jamie Carranza wrote:

> Hi All, I'm trying to build Cloudstack 4.2 RPMs and keep running up
> against the same error, this looks like the most important part:
>
> Failed tests: 
> appendTest(org.apache.**cloudstack.alert.snmp.**SnmpTrapAppenderTest):
> error snmpHelper list size not as expected  expected:<0> but was:<2>
>
> The full error is here: http://pastebin.com/0i4hbibQ
>
> I start from a fresh CentOS 6.3 or 6.4 box and follow instructions from
> here: https://cloudstack.apache.org/**docs/en-US/Apache_CloudStack/**
> 4.2.0/html/Installation_Guide/**sect-source-buildrpm.htmlwith
>  no luck.
>
> Has anyone else run into a similar error?
>
> -Jamie
>


Re: Error building Cloudstack 4.2 RPMs

2013-10-08 Thread David Nalley
Hi Jamie:

So as has been pointed out, you can use pre-built RPMs if you wish.

If you really need to build your ownI don't know what to suggest -
the RPMs built fine for me on CentOS 6.4 x86_64 from the tarball.

A couple of things - what version of Java? 6 or 7? OpenJDK or
something else? Any chance system log4j is installed?

I am copying Francois on this - he ran into the same test failure back
in March - perhaps he knows how it was resolved.

--David

On Tue, Oct 8, 2013 at 9:51 PM, Jamie Carranza  wrote:
> Hi All, I'm trying to build Cloudstack 4.2 RPMs and keep running up against
> the same error, this looks like the most important part:
>
> Failed tests:
> appendTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest): error
> snmpHelper list size not as expected  expected:<0> but was:<2>
>
> The full error is here: http://pastebin.com/0i4hbibQ
>
> I start from a fresh CentOS 6.3 or 6.4 box and follow instructions from
> here:
> https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Installation_Guide/sect-source-buildrpm.html
> with no luck.
>
> Has anyone else run into a similar error?
>
> -Jamie


Re: Error building Cloudstack 4.2 RPMs

2013-10-09 Thread Jamie Carranza
Ah ya, unfortunately my company wants me to build our own RPMs from 
source.  I did see while searching for a solution that this issue had 
popped up in earlier builds but it looked like a fix had been merged in.


# java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.11.90) 
(rhel-1.62.1.11.11.90.el6_4-x86_64)

OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

btw, I've tried w/ maven 3.04, 3.05, 3.1.1

# mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
Maven home: /usr/local/apache-maven-3.0.4
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-358.18.1.el6.x86_64", arch: "amd64", 
family: "unix"


-Jamie

On 10/08/2013 08:19 PM, David Nalley wrote:

Hi Jamie:

So as has been pointed out, you can use pre-built RPMs if you wish.

If you really need to build your ownI don't know what to suggest -
the RPMs built fine for me on CentOS 6.4 x86_64 from the tarball.

A couple of things - what version of Java? 6 or 7? OpenJDK or
something else? Any chance system log4j is installed?

I am copying Francois on this - he ran into the same test failure back
in March - perhaps he knows how it was resolved.

--David

On Tue, Oct 8, 2013 at 9:51 PM, Jamie Carranza  wrote:

Hi All, I'm trying to build Cloudstack 4.2 RPMs and keep running up against
the same error, this looks like the most important part:

Failed tests:
appendTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest): error
snmpHelper list size not as expected  expected:<0> but was:<2>

The full error is here: http://pastebin.com/0i4hbibQ

I start from a fresh CentOS 6.3 or 6.4 box and follow instructions from
here:
https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Installation_Guide/sect-source-buildrpm.html
with no luck.

Has anyone else run into a similar error?

-Jamie




Re: Error building Cloudstack 4.2 RPMs

2013-10-22 Thread Zack Payton
On Tue, Oct 8, 2013 at 9:51 PM, Jamie Carranza  wrote:
> Hi All, I'm trying to build Cloudstack 4.2 RPMs and keep running up against
> the same error, this looks like the most important part:
>
> Failed tests:
> appendTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest): error
> snmpHelper list size not as expected  expected:<0> but was:<2>

So I joined this list just to report the answer to your question
Jamie.  I found the solution after digging into the code.  Essentially
you need to configure your host to pass the hostname --fqdn test
before the SnmpAppenderTest class will pass the junit test.

I simply added my hostname to /etc/hosts and was able to build
successfully.  Just wanted to share so if anyone else caring to build
from source ran into this issue, that they would know what to do.
FYI, this was on Centos 6.4 64-bit with Cloudstack 4.2.


Sincerely,

Z