Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9731DD8A for ; Tue, 25 Sep 2012 01:28:06 +0000 (UTC) Received: (qmail 78269 invoked by uid 500); 25 Sep 2012 01:28:06 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 78217 invoked by uid 500); 25 Sep 2012 01:28:06 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 78208 invoked by uid 99); 25 Sep 2012 01:28:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2012 01:28:06 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Edison.su@citrix.com designates 66.165.176.89 as permitted sender) Received: from [66.165.176.89] (HELO SMTP.CITRIX.COM) (66.165.176.89) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2012 01:28:02 +0000 X-IronPort-AV: E=Sophos;i="4.80,478,1344211200"; d="scan'208,223";a="39030031" Received: from sjcpmailmx01.citrite.net ([10.216.14.74]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 25 Sep 2012 01:27:40 +0000 Received: from SJCPMAILBOX01.citrite.net ([10.216.4.72]) by SJCPMAILMX01.citrite.net ([10.216.14.74]) with mapi; Mon, 24 Sep 2012 18:27:40 -0700 From: Edison Su To: "cloudstack-dev@incubator.apache.org" Date: Mon, 24 Sep 2012 18:27:40 -0700 Subject: RE: CloudStack Development tutorial for newbies Thread-Topic: CloudStack Development tutorial for newbies Thread-Index: Ac2Zwk36VIeQJLvJT/Swec7wBCZ0pAA+lxyA Message-ID: References: <4055238377709449003@unknownmsgid> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org >From http://jenkins.cloudstack.org/job/build-4.0-rhel63/ and http://jenkins= .cloudstack.org/view/master/job/build-master-rhel63/, you can get latest RP= M build, then install them on your host. > -----Original Message----- > From: Kamil Gardziejczyk [mailto:belussi.pl@gmail.com] > Sent: Sunday, September 23, 2012 12:33 PM > To: cloudstack-dev@incubator.apache.org > Subject: Re: CloudStack Development tutorial for newbies > > OK. I successfully build rpms ;) What do you mean saying "deploy as > normal"? I want install management server and agent using install.sh > script > because this is the easist way ;) Is there any place where I can > download > latest official build and just replace rpms? > > 2012/9/23 Gavin Lee > > > You may build the source and package into rpm/deb, then deploy as > > normal, see [1]. > > After that, you can replace the scripts/modules with yours for > > dev/debug purpose. > > May not help you more since I don't have much experience on this part. > > > > [1] > > > https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+with+Ma > ven > > > > On Sun, Sep 23, 2012 at 10:08 PM, Kamil Gardziejczyk > > wrote: > > > Oliver: > > > You just have to add ant-nodeps-1.7.1.jar file to classpath. Find > that > > file > > > on you file system. I had in at /usr/share/nat/lib. > > > > > > export CLASSPATH=3D/path/to/your/ant-nodeps-1.7.1.jar:$CLASSPATH > > > > > > Gavin: > > > I`m asking about deploying CS Agent on the same machine as > management > > > server because I just want to make some development on this. I`m > sure > > that > > > is possible. Could you help me with this? I mean, write short > tutorial > > how > > > to deploy agent? ;) I have already installed KVM host. Do I need to > do > > some > > > special KVM configuration? > > > > > > 2012/9/23 Gavin Lee > > > > > >> KVM agent will be installed on KVM hypervisor, do you plan to use > host > > >> for both management server and KVM hypervisor? > > >> Suggest install the agent on a clean KVM hypervisor. > > >> > > >> On Sun, Sep 23, 2012 at 6:11 PM, Kamil Gardziejczyk > > >> wrote: > > >> > Ok. My managment service is working fine ;) > > >> > > > >> > Now i have a quastion about KVM agnet. How to deploy it from > source? > > with > > >> > ant? Should I install it on a separted machin or can it be > shared with > > >> > management server? > > >> > > > >> > > > >> > > > >> > 2012/9/23 Kamil Gardziejczyk > > >> > > > >> >> Hmmm There is also issue with ant. I had installed ant before > and > > >> >> everthing works fine...ehhhh > > >> >> > > >> >> compile-utils: > > >> >> [mkdir] Created dir: > > >> >> > > >> > > /root/workspace/incubator-cloudstack/artifacts/rpmbuild/BUILD/cloud- > 4.0.0/target/classes/cloud-utils.jar > > >> >> > > >> >> BUILD FAILED > > >> >> > > >> > > /root/workspace/incubator-cloudstack/artifacts/rpmbuild/BUILD/cloud- > 4.0.0/build/build-cloud.xml:180: > > >> >> The following error occurred while executing this line: > > >> >> > > >> > > /root/workspace/incubator-cloudstack/artifacts/rpmbuild/BUILD/cloud- > 4.0.0/build/build-common.xml:62: > > >> >> Problem: failed to create task or type depend > > >> >> Cause: the class > org.apache.tools.ant.taskdefs.optional.depend.Depend > > >> was > > >> >> not found. > > >> >> This looks like one of Ant's optional components. > > >> >> Action: Check that the appropriate optional JAR exists in > > >> >> -/usr/share/ant/lib > > >> >> -/root/.ant/lib > > >> >> -a directory added on the command line with the -lib > argument > > >> >> > > >> >> Do not panic, this is a common problem. > > >> >> The commonest cause is a missing JAR. > > >> >> > > >> >> This is not a bug; it is a configuration problem > > >> >> > > >> >> > > >> >> > > >> >> 2012/9/23 Kamil Gardziejczyk > > >> >> > > >> >>> Thanks! I should check it before... ;) > > >> >>> > > >> >>> So, I almost run it. But i have some strange tomcat issue: > > >> >>> > > >> >>> java.lang.LinkageError: loader constraint violation: loader > > (instance > > >> of org/apache/jasper/servlet/JasperLoader) previously initiated > loading > > for > > >> a different type with name "javax/servlet/http/HttpServletRequest" > > >> >>> java.lang.Class.getDeclaredMethods0(Native Method) > > >> >>> java.lang.Class.privateGetDeclaredMethods(Class.java:2444) > > >> >>> java.lang.Class.getDeclaredMethods(Class.java:1808) > > >> >>> > > >> > > > org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrappe > r.java:172) > > >> >>> > > >> > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j > ava:369) > > >> >>> > > >> > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) > > >> >>> > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) > > >> >>> > javax.servlet.http.HttpServlet.service(HttpServlet.java:722) > > >> >>> > > >> >>> I`m not sure, but I think it could be connected with my > previous > > >> cloudstack installation. Some servelt is duplicated? Any ideas? I > just > > >> don`t want reinstall my OS... > > >> >>> > > >> >>> > > >> >>> 2012/9/22 Chip Childers > > >> >>> > > >> >>>> Please check the top level README.md file. That should have > the > > >> >>>> rudimentary build instructions. > > >> >>>> > > >> >>>> - chip > > >> >>>> > > >> >>>> Sent from my iPhone. > > >> >>>> > > >> >>>> On Sep 22, 2012, at 3:35 PM, Kamil Gardziejczyk < > > belussi.pl@gmail.com > > >> > > > >> >>>> wrote: > > >> >>>> > > >> >>>> > UPDATE: > > >> >>>> > > > >> >>>> > What I did: > > >> >>>> > 1. Pulled CloudStack repo. > > >> >>>> > 2. Ran mv > > >> >>>> > 3. Ran deps/install-non-oss.sh > > >> >>>> > > > >> >>>> > I got oputput: > > >> >>>> > > > >> >>>> > [INFO] Scanning for projects... > > >> >>>> > Downloading: > > >> >>>> > http://repo1.maven.org/maven2/org/apache/apache/11/apache- > 11.pom > > >> >>>> > [WARNING] Unable to get resource 'org.apache:apache:pom:11' > from > > >> >>>> repository > > >> >>>> > central (http://repo1.maven.org/maven2): Error transferring > > file: > > >> >>>> > Connection timed out > > >> >>>> > [INFO] > > >> >>>> > > > >> >>>> > > >> ------------------------------------------------------------------ > ------ > > >> >>>> > [ERROR] FATAL ERROR > > >> >>>> > [INFO] > > >> >>>> > > > >> >>>> > > >> ------------------------------------------------------------------ > ------ > > >> >>>> > [INFO] Error building POM (may not be this project's POM). > > >> >>>> > > > >> >>>> > > > >> >>>> > Project ID: org.apache.cloudstack:cloudstack:pom:4.0.0- > SNAPSHOT > > >> >>>> > > > >> >>>> > Reason: Cannot find parent: org.apache:apache for project: > > >> >>>> > org.apache.cloudstack:cloudstack:pom:4.0.0-SNAPSHOT for > project > > >> >>>> > org.apache.cloudstack:cloudstack:pom:4.0.0-SNAPSHOT > > >> >>>> > > > >> >>>> > > > >> >>>> > [INFO] > > >> >>>> > > > >> >>>> > > >> ------------------------------------------------------------------ > ------ > > >> >>>> > [INFO] Trace > > >> >>>> > org.apache.maven.reactor.MavenExecutionException: Cannot > find > > >> parent: > > >> >>>> > org.apache:apache for project: > > >> >>>> > org.apache.cloudstack:cloudstack:pom:4.0.0-SNAPSHOT for > project > > >> >>>> > org.apache.cloudstack:cloudstack:pom:4.0.0-SNAPSHOT > > >> >>>> > at > > >> >>>> > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404) > > >> >>>> > at > > >> >>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272) > > >> >>>> > at > > >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > > >> >>>> > at > org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > > >> >>>> > at > > >> >>>> > > > >> > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > > >> >>>> > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > >> Method) > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja > va:57) > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso > rImpl.java:43) > > >> >>>> > at java.lang.reflect.Method.invoke(Method.java:616) > > >> >>>> > at > > >> >>>> > > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > >> >>>> > at > > >> org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > >> >>>> > at > > >> >>>> > > > >> > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > > >> >>>> > at > > org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > >> >>>> > Caused by: > org.apache.maven.project.ProjectBuildingException: > > Cannot > > >> >>>> find > > >> >>>> > parent: org.apache:apache for project: > > >> >>>> > org.apache.cloudstack:cloudstack:pom:4.0.0-SNAPSHOT for > project > > >> >>>> > org.apache.cloudstack:cloudstack:pom:4.0.0-SNAPSHOT > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(Def > aultMavenProjectBuilder.java:1396) > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Defau > ltMavenProjectBuilder.java:823) > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile > Internal(DefaultMavenProjectBuilder.java:508) > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenP > rojectBuilder.java:200) > > >> >>>> > at > > >> >>>> > org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604) > > >> >>>> > at > > >> >>>> > > > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487) > > >> >>>> > at > > >> >>>> > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391) > > >> >>>> > ... 12 more > > >> >>>> > Caused by: > org.apache.maven.project.ProjectBuildingException: POM > > >> >>>> > 'org.apache:apache' not found in repository: Unable to > download > > the > > >> >>>> > artifact from any repository > > >> >>>> > > > >> >>>> > org.apache:apache:pom:11 > > >> >>>> > > > >> >>>> > from the specified remote repositories: > > >> >>>> > central (http://repo1.maven.org/maven2) > > >> >>>> > > > >> >>>> > for project org.apache:apache > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromReposi > tory(DefaultMavenProjectBuilder.java:605) > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(Def > aultMavenProjectBuilder.java:1392) > > >> >>>> > ... 18 more > > >> >>>> > Caused by: > > >> >>>> org.apache.maven.artifact.resolver.ArtifactNotFoundException: > > >> >>>> > Unable to download the artifact from any repository > > >> >>>> > > > >> >>>> > org.apache:apache:pom:11 > > >> >>>> > > > >> >>>> > from the specified remote repositories: > > >> >>>> > central (http://repo1.maven.org/maven2) > > >> >>>> > > > >> >>>> > > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defa > ultArtifactResolver.java:228) > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defa > ultArtifactResolver.java:90) > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromReposi > tory(DefaultMavenProjectBuilder.java:558) > > >> >>>> > ... 19 more > > >> >>>> > Caused by: > org.apache.maven.wagon.ResourceDoesNotExistException: > > >> >>>> Unable to > > >> >>>> > download the artifact from any repository > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Defau > ltWagonManager.java:404) > > >> >>>> > at > > >> >>>> > > > >> >>>> > > >> > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defa > ultArtifactResolver.java:216) > > >> >>>> > ... 21 more > > >> >>>> > > > >> >>>> > > > >> >>>> > 2012/9/22 Kamil Gardziejczyk > > >> >>>> > > > >> >>>> >> Hi, > > >> >>>> >> I`m looking for help with setting up CloudStack > development > > >> >>>> environment. I > > >> >>>> >> found some tutorials but i still have some issues... > > >> >>>> >> > > >> >>>> >> > > >> >>>> > > >> > > > http://docs.cloudstack.org/Knowledge_Base/How_to_set_up_a_CloudStack_de > velopment_environment > > >> >>>> >> > > >> >>>> >> > > >> >>>> >> I have already pull newest Repo, but there is no ant > inside.... > > >> >>>> >> > > >> >>>> >> Could anyone help me with this. I mean, show how to set up > > >> developemnt > > >> >>>> >> enviroment step by step? I need to set up CS management > server > > on > > >> >>>> RHEL 6.2 > > >> >>>> >> and on the second machine CS KVM agenet. Any help would be > > greatly > > >> >>>> >> appreciated. > > >> >>>> >> -- > > >> >>>> >> Pozdrawiam, > > >> >>>> >> Kamil Gardziejczyk > > >> >>>> >> > > >> >>>> >> > > >> >>>> > > > >> >>>> > > > >> >>>> > -- > > >> >>>> > Pozdrawiam, > > >> >>>> > Kamil Gardziejczyk > > >> >>>> > > >> >>> > > >> >>> > > >> >>> > > >> >>> -- > > >> >>> Pozdrawiam, > > >> >>> Kamil Gardziejczyk > > >> >>> > > >> >>> > > >> >> > > >> >> > > >> >> -- > > >> >> Pozdrawiam, > > >> >> Kamil Gardziejczyk > > >> >> > > >> >> > > >> > > > >> > > > >> > -- > > >> > Pozdrawiam, > > >> > Kamil Gardziejczyk > > >> > > >> > > >> > > >> -- > > >> Gavin > > >> > > > > > > > > > > > > -- > > > Pozdrawiam, > > > Kamil Gardziejczyk > > > > > > > > -- > > Gavin > > > > > > -- > Pozdrawiam, > Kamil Gardziejczyk