Hi,

Okay , I've figured the Problem , It was the Hostname resolution causing
the problem,

log4j:ERROR  Error in crearting snmp object, cloudstack.cloud2:
cloudstack.cloud2
log4j:ERROR  size of ip addresses , communities, and ports list doesn't
match, setting all to null

cloudstack.cloud2 it is my VMbox hostname , it troubleshooted the DNS and
it works fine.

Also I faced some POMs problem in the build of cloud-awsapi

[INFO] Apache CloudStack AWS API Bridge .................. FAILURE [1.488s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6:19.165s
[INFO] Finished at: Fri Sep 13 06:31:34 JST 2013
[INFO] Final Memory: 53M/416M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
(default-compile) on project cloud-awsapi: Compilation failure:
Compilation failure:
[ERROR] error: error reading
/root/.m2/repository/org/apache/axis2/mex/1.5.4/mex-1.5.4-impl.jar;
error in opening zip file
[ERROR] error: error reading
/root/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.4/axis2-mtompolicy-1.5.4.jar;
error in opening zip file
[ERROR] error: error reading
/root/.m2/repository/org/apache/ws/commons/axiom/axiom-dom/1.2.10/axiom-dom-1.2.10.jar;
error in opening zip file
[ERROR] error: error reading
/root/.m2/repository/org/opensaml/opensaml1/1.1/opensaml1-1.1.jar;
error in opening zip file
[ERROR] error: error reading
/root/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar;
error in opening zip file
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :cloud-awsapi
error: Bad exit status from /var/tmp/rpm-tmp.uKNLdw (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.uKNLdw (%build)


I 've Corrected it by removing the older depedencies and downloading
new ones into ./m2/repository:


# cd /root/.m2/repository/org/apache/axis2/mex/1.5.4/
# mv mex-1.5.4-impl.jar mex-1.5.4-impl.jar.html
# wget 
http://mirrors.ibiblio.org/maven2/org/apache/axis2/mex/1.5.4/mex-1.5.4-impl.jar
# file mex-1.5.4-impl.jar
mex-1.5.4-impl.jar: Zip archive data, at least v1.0 to extract

# cd /root/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.4/
# mv axis2-mtompolicy-1.5.4.jar axis2-mtompolicy-1.5.4.jar.html
# wget 
http://mirrors.ibiblio.org/maven2/org/apache/axis2/axis2-mtompolicy/1.5.4/axis2-mtompolicy-1.5.4.jar
# file axis2-mtompolicy-1.5.4.jar
axis2-mtompolicy-1.5.4.jar: Zip archive data, at least v1.0 to extract

# cd /root/.m2/repository/org/apache/ws/commons/axiom/axiom-dom/1.2.10/
# mv axiom-dom-1.2.10.jar axiom-dom-1.2.10.jar.html
# wget 
http://mirrors.ibiblio.org/maven2/org/apache/ws/commons/axiom/axiom-dom/1.2.10/axiom-dom-1.2.10.jar

# cd /root/.m2/repository/org/opensaml/opensaml1/1.1/
# mv opensaml1-1.1.jar opensaml1-1.1.jar.html
# wget 
http://mirrors.ibiblio.org/maven2/org/opensaml/opensaml1/1.1/opensaml1-1.1.jar

# cd /root/.m2/repository/commons-lang/commons-lang/2.3/
# mv commons-lang-2.3.jar commons-lang-2.3.jar.html
# wget 
http://mirrors.ibiblio.org/maven2/commons-lang/commons-lang/2.3/commons-lang-2.3.jar

# cd /root/.m2/repository/bouncycastle/bcprov-jdk14/140/
# mv 140/bcprov-jdk14-140.jar bcprov-jdk14-140.jar.html
# wget 
http://repo1.maven.org/maven2/bouncycastle/bcprov-jdk14/140/bcprov-jdk14-140.jar


After that , RPMs are builded and the are ready for yum repository



On Wed, Nov 27, 2013 at 12:28 PM, Go Chiba <go.ch...@gmail.com> wrote:

> Hi tawfiq,
>
> from the jenkins's build result, it should path the build process.
> http://jenkins.buildacloud.org/view/4.3/job/cloudstack-4.3-package-rpm/
>
> try it once again after clean up under the dist/ directory.
>
>
>
>
>
> On Wed, Nov 27, 2013 at 7:13 PM, tawfiq zidi <tawfiq.z...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I'm Tryin to build CloudStack 4.3 RPMs From source.
> >
> > When I execute ./package.sh script , errors are shown about
> > goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test
> >
> > How to resolve this problem ?
> >
> > Here's a Snappet of the Build Log:
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> >  T E S T S
> > -------------------------------------------------------
> > Running org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest
> > log4j:ERROR  Error in crearting snmp object, cloudstack.cloud2:
> > cloudstack.cloud2
> > log4j:ERROR  size of ip addresses , communities, and ports list doesn't
> > match, setting all to null
> > log4j:ERROR  Invalid format for the IP Addresses or Ports parameter
> > log4j:ERROR  Invalid format for the IP Addresses or Ports parameter
> > log4j:ERROR  size of ip addresses , communities, and ports list doesn't
> > match, setting all to null
> > Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.48 sec
> > <<< FAILURE!
> > Running org.apache.cloudstack.alert.snmp.SnmpEnhancedPatternLayoutTest
> > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.139 sec
> >
> > Results :
> >
> > Failed tests:
> > appendTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest):  error
> > snmpHelper list size not as expected  expected:<0> but was:<2>
> >
> > Tests run: 9, Failures: 1, Errors: 0, Skipped: 0
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Reactor Summary:
> > [INFO]
> > [INFO] Apache CloudStack ................................. SUCCESS
> [3.064s]
> > [INFO] Apache CloudStack Maven Conventions Parent ........ SUCCESS
> [0.031s]
> > [INFO] Apache CloudStack Framework - Managed Context ..... SUCCESS
> [5.248s]
> > [INFO] Apache CloudStack Utils ........................... SUCCESS
> > [14.260s]
> > [INFO] Apache CloudStack Framework ....................... SUCCESS
> [0.018s]
> > [INFO] Apache CloudStack Framework - Event Notification .. SUCCESS
> [9.355s]
> > [INFO] Apache CloudStack Framework - Configuration ....... SUCCESS
> [4.601s]
> > [INFO] Apache CloudStack API ............................. SUCCESS
> > [23.970s]
> > [INFO] Apache CloudStack Framework - REST ................ SUCCESS
> [3.837s]
> > [INFO] Apache CloudStack Framework - IPC ................. SUCCESS
> [7.236s]
> > [INFO] Apache CloudStack Cloud Engine .................... SUCCESS
> [0.051s]
> > [INFO] Apache CloudStack Cloud Engine API ................ SUCCESS
> [5.144s]
> > [INFO] Apache CloudStack Core ............................ SUCCESS
> > [16.628s]
> > [INFO] Apache CloudStack Agents .......................... SUCCESS
> [9.869s]
> > [INFO] Apache CloudStack Framework - Clustering .......... SUCCESS
> [4.198s]
> > [INFO] Apache CloudStack Framework - Jobs ................ SUCCESS
> [3.647s]
> > [INFO] Apache CloudStack Cloud Engine Schema Component ... SUCCESS
> > [19.398s]
> > [INFO] Apache CloudStack Framework - Event Notification .. SUCCESS
> [2.272s]
> > [INFO] Apache CloudStack Cloud Engine Internal Components API  SUCCESS
> > [3.306s]
> > [INFO] Apache CloudStack Server .......................... SUCCESS
> > [1:39.880s]
> > [INFO] Apache CloudStack Usage Server .................... SUCCESS
> > [32.614s]
> > [INFO] Apache XenSource XAPI ............................. SUCCESS
> [6.876s]
> > [INFO] Apache CloudStack Cloud Engine Orchestration Component  SUCCESS
> > [14.139s]
> > [INFO] Apache CloudStack Cloud Services .................. SUCCESS
> [1.463s]
> > [INFO] Apache CloudStack Secondary Storage Service ....... SUCCESS
> [8.387s]
> > [INFO] Apache CloudStack Engine Storage Component ........ SUCCESS
> > [24.345s]
> > [INFO] Apache CloudStack Engine Storage Volume Component . SUCCESS
> [5.943s]
> > [INFO] Apache CloudStack Engine Storage Image Component .. SUCCESS
> [3.852s]
> > [INFO] Apache CloudStack Engine Storage Data Motion Component  SUCCESS
> > [3.443s]
> > [INFO] Apache CloudStack Engine Storage Cache Component .. SUCCESS
> [3.150s]
> > [INFO] Apache CloudStack Engine Storage Snapshot Component  SUCCESS
> > [9.557s]
> > [INFO] Apache CloudStack Cloud Engine API ................ SUCCESS
> [5.949s]
> > [INFO] Apache CloudStack Cloud Engine Service ............ SUCCESS
> [5.662s]
> > [INFO] Apache CloudStack Plugin POM ...................... SUCCESS
> [1.071s]
> > [INFO] Apache CloudStack Plugin - API Rate Limit ......... SUCCESS
> > [17.425s]
> > [INFO] Apache CloudStack Plugin - API Discovery .......... SUCCESS
> [5.555s]
> > [INFO] Apache CloudStack Plugin - ACL Static Role Based .. SUCCESS
> [2.825s]
> > [INFO] Apache CloudStack Plugin - Host Anti-Affinity Processor  SUCCESS
> > [2.496s]
> > [INFO] Apache CloudStack Plugin - Explicit Dedication Processor  SUCCESS
> > [2.566s]
> > [INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment
> Planner
> >  SUCCESS [2.839s]
> > [INFO] Apache CloudStack Plugin - User Dispersing Deployment Planner
> >  SUCCESS [3.815s]
> > [INFO] Apache CloudStack Plugin - Implicit Dedication Planner  SUCCESS
> > [14.777s]
> > [INFO] Apache CloudStack Plugin - Host Allocator Random .. SUCCESS
> [8.765s]
> > [INFO] Apache CloudStack Plugin - Dedicated Resources .... SUCCESS
> [7.809s]
> > [INFO] Apache CloudStack Plugin - Hypervisor OracleVM .... SUCCESS
> [3.758s]
> > [INFO] Apache CloudStack Plugin - Open vSwitch ........... SUCCESS
> [4.018s]
> > [INFO] Apache CloudStack Plugin - Hypervisor Xen ......... SUCCESS
> > [13.882s]
> > [INFO] Apache CloudStack Plugin - Hypervisor KVM ......... SUCCESS
> > [25.787s]
> > [INFO] Apache CloudStack Plugin - RabbitMQ Event Bus ..... SUCCESS
> [9.991s]
> > [INFO] Apache CloudStack Plugin - Hypervisor Baremetal ... SUCCESS
> [6.095s]
> > [INFO] Apache CloudStack Plugin - Hypervisor UCS ......... SUCCESS
> [3.488s]
> > [INFO] Apache CloudStack Plugin - Hypervisor Hyper-V ..... SUCCESS
> [5.921s]
> > [INFO] Apache CloudStack Plugin - Network Elastic Load Balancer  SUCCESS
> > [3.756s]
> > [INFO] Apache CloudStack Plugin - Network Internal Load Balancer  SUCCESS
> > [12.745s]
> > [INFO] Apache CloudStack Plugin - Network Juniper Contrail  SUCCESS
> > [14.696s]
> > [INFO] Apache CloudStack Plugin - Palo Alto .............. SUCCESS
> [7.682s]
> > [INFO] Apache CloudStack Checkstyle Configuration ........ SUCCESS
> [0.339s]
> > [INFO] Apache CloudStack Plugin - Network Nicira NVP ..... SUCCESS
> > [21.897s]
> > [INFO] Apache CloudStack Plugin - BigSwitch Virtual Network Segment
> >  SUCCESS [7.276s]
> > [INFO] Apache CloudStack Plugin - Midokura Midonet ....... SUCCESS
> [8.978s]
> > [INFO] Apache Cloudstack Plugin - Stratosphere SSP ....... SUCCESS
> > [11.526s]
> > [INFO] Apache CloudStack Plugin - Storage Allocator Random  SUCCESS
> > [6.879s]
> > [INFO] Apache CloudStack Plugin - User Authenticator LDAP  SUCCESS
> [5.875s]
> > [INFO] Apache CloudStack Plugin - User Authenticator MD5 . SUCCESS
> [2.589s]
> > [INFO] Apache CloudStack Plugin - User Authenticator Plain Text  SUCCESS
> > [2.865s]
> > [INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted
>  SUCCESS
> > [8.764s]
> > [INFO] Apache CloudStack Plugin - Dns Notifier Example ... SUCCESS
> [5.413s]
> > [INFO] Apache CloudStack Plugin - Storage Image S3 ....... SUCCESS
> [3.883s]
> > [INFO] Apache CloudStack Plugin - Storage Image Swift provider  SUCCESS
> > [2.024s]
> > [INFO] Apache CloudStack Plugin - Storage Image default provider  SUCCESS
> > [2.808s]
> > [INFO] Apache CloudStack Plugin - Storage Image sample provider  SUCCESS
> > [1.940s]
> > [INFO] Apache CloudStack Plugin - Storage Volume SolidFire Provider
> >  SUCCESS [8.465s]
> > [INFO] Apache CloudStack Plugin - Storage Volume default provider
>  SUCCESS
> > [7.102s]
> > [INFO] Apache CloudStack Plugin - Storage Volume sample provider  SUCCESS
> > [5.342s]
> > [INFO] Apache CloudStack Plugin - SNMP Alerts ............ FAILURE
> [8.617s]
> > [INFO] Apache CloudStack Plugin - Syslog Alerts .......... SKIPPED
> > [INFO] Apache CloudStack Plugin - Network VXLAN .......... SKIPPED
> > [INFO] Apache CloudStack Framework - Spring Life Cycle ... SKIPPED
> > [INFO] cloud-framework-spring-module ..................... SKIPPED
> > [INFO] Apache CloudStack Test ............................ SKIPPED
> > [INFO] Apache CloudStack Console Proxy ................... SKIPPED
> > [INFO] Apache CloudStack Console Proxy - Server .......... SKIPPED
> > [INFO] Apache CloudStack System VM ....................... SKIPPED
> > [INFO] Apache CloudStack Client UI ....................... SKIPPED
> > [INFO] Apache CloudStack Console Proxy - RDP Client ...... SKIPPED
> > [INFO] Apache CloudStack Framework - QuickCloud .......... SKIPPED
> > [INFO] Apache CloudStack AWS API Bridge .................. SKIPPED
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 11:10.376s
> > [INFO] Finished at: Wed Nov 27 11:36:28 CET 2013
> > [INFO] Final Memory: 61M/168M
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test)
> on
> > project cloud-plugin-snmp-alerts: There are test failures.
> > [ERROR]
> > [ERROR] Please refer to
> >
> >
> /root/cloudstack/dist/rpmbuild/BUILD/cloudstack-4.4.0-SNAPSHOT/plugins/alert-handlers/snmp-alerts/target/surefire-reports
> > for the individual test results.
> > [ERROR] -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e
> > switch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please read the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > [ERROR]
> > [ERROR] After correcting the problems, you can resume the build with the
> > command
> > [ERROR]   mvn <goals> -rf :cloud-plugin-snmp-alerts
> > error: Bad exit status from /var/tmp/rpm-tmp.KOOtvL (%build)
> >
> >
> > RPM build errors:
> >     Bad exit status from /var/tmp/rpm-tmp.KOOtvL (%build)
> >
>
>
>
> --
> 千葉 豪  Go Chiba
> E-mail:go.ch...@gmail.com
>

Reply via email to