Mice/Rohit/Prasanna,

When I'm building the systemvm profile, using either "mvn -Dnonoss 
-DskipTests=true -Psystemvm clean install" or " mvn -Pdeveloper, systemvm clean 
install " I'm seeing this error:

  File 
"/root/data/mywork/ws/cloudstack/actual-workspaces/asf/incubator-cloudstack/tools/apidoc/gen_toc.py",
 line 190
    with file(out, 'w') as f:
            ^
SyntaxError: invalid syntax
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache CloudStack ................................. SUCCESS [5.628s]
[INFO] Apache CloudStack Utils ........................... SUCCESS [20.645s]
[INFO] Apache CloudStack API ............................. SUCCESS [26.986s]
[INFO] Apache CloudStack Core ............................ SUCCESS [15.205s]
[INFO] Apache CloudStack Agents .......................... SUCCESS [12.620s]
[INFO] Apache CloudStack SystemVM Patches ................ SUCCESS [0.933s]
[INFO] Apache CloudStack Console Proxy ................... SUCCESS [13.974s]
[INFO] Apache CloudStack Server .......................... SUCCESS [1:23.936s]
[INFO] Apache CloudStack Usage Server .................... SUCCESS [5.758s]
[INFO] Apache XenSource XAPI ............................. SUCCESS [9.830s]
[INFO] Apache CloudStack Plugin POM ...................... SUCCESS [0.302s]
[INFO] Apache CloudStack Plugin - API Rate Limit ......... SUCCESS [7.324s]
[INFO] Apache CloudStack Plugin - API Discovery .......... SUCCESS [14.521s]
[INFO] Apache CloudStack Plugin - ACL Static Role Based .. SUCCESS [2.882s]
[INFO] Apache CloudStack Plugin - User Concentrated Pod Deployment Planner  
SUCCESS [2.028s]
[INFO] Apache CloudStack Plugin - User Dispersing Deployment Planner  SUCCESS 
[3.135s]
[INFO] Apache CloudStack Plugin - Host Allocator Random .. SUCCESS [1.978s]
[INFO] Apache CloudStack Plugin - Hypervisor OracleVM .... SUCCESS [5.162s]
[INFO] Apache CloudStack Plugin - Open vSwitch ........... SUCCESS [2.994s]
[INFO] Apache CloudStack Plugin - Hypervisor Xen ......... SUCCESS [8.088s]
[INFO] Apache CloudStack Plugin - Hypervisor KVM ......... SUCCESS [14.822s]
[INFO] Apache CloudStack Plugin - Hypervisor Simulator ... SUCCESS [6.460s]
[INFO] Apache CloudStack Plugin - Network Elastic Load Balancer  SUCCESS 
[4.506s]
[INFO] Apache CloudStack Plugin - Network Nicira NVP ..... SUCCESS [9.929s]
[INFO] Apache CloudStack Plugin - Storage Allocator Random  SUCCESS [3.031s]
[INFO] Apache CloudStack Plugin - User Authenticator LDAP  SUCCESS [2.116s]
[INFO] Apache CloudStack Plugin - User Authenticator MD5 . SUCCESS [3.232s]
[INFO] Apache CloudStack Plugin - User Authenticator Plain Text  SUCCESS 
[2.785s]
[INFO] Apache CloudStack Plugin - User Authenticator SHA256 Salted  SUCCESS 
[4.156s]
[INFO] Apache CloudStack Plugin - Dns Notifier Example ... SUCCESS [2.126s]
[INFO] Apache CloudStack Client UI ....................... SUCCESS [13.217s]
[INFO] Apache CloudStack Test ............................ SUCCESS [13.546s]
[INFO] Apache CloudStack Developer Tools ................. SUCCESS [0.093s]
[INFO] Apache CloudStack apidoc Tools .................... FAILURE [8.294s]
[INFO] Apache CloudStack DevCloud ........................ SKIPPED
[INFO] Apache CloudStack DevCloud-KVM .................... SKIPPED
[INFO] Apache CloudStack Developer Tools: marvin ......... SKIPPED
[INFO] Apache CloudStack Developer Tools: cloudmonkey cli  SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:33.877s
[INFO] Finished at: Mon Jan 28 15:03:19 EST 2013
[INFO] Final Memory: 26M/67M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec 
(compile) on project cloud-apidoc: Command execution failed. Process exited 
with an error: 1 (Exit value: 1) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (compile) on project 
cloud-apidoc: Command execution failed.
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution 
failed.
        at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:362)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an 
error: 1 (Exit value: 1)
        at 
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
        at 
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
        at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:610)
        at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:352)
        ... 21 more


The build complains of a syntax error in tools/apidoc/gen_toc.py - the syntax 
looks fine to me though, so I'm not sure what the problem is. I checked for 
indentation spaces/tab issues but that was fine.

For now, how can I skip the apidoc profile/dependency?

Regards,
Vijay


-----Original Message-----
From: Mice Xia [mailto:mice_...@tcloudcomputing.com] 
Sent: Sunday, January 27, 2013 10:44 PM
To: cloudstack-dev@incubator.apache.org
Subject: RE: systemvm.iso and injectkeys.sh issue in nonoss mgmt server?

Hi Prasanna,

Thanks for your hint, I should have read the wiki carefully. 'mvn -Dnonoss 
-DskipTests=true -Psystemvm clean install', this generates systemvm.iso

-Mice

-----Original Message-----
From: Prasanna Santhanam [mailto:prasanna.santha...@citrix.com]
Sent: Monday, January 28, 2013 2:17 PM
To: 'cloudstack-dev@incubator.apache.org'
Subject: Re: systemvm.iso and injectkeys.sh issue in nonoss mgmt server?

Is this happening with the systemvm profile enabled when compiling?

I use mvn -Pdeveloper, systemvm clean install



----- Original Message -----
From: Mice Xia [mailto:weiran.x...@gmail.com]
Sent: Monday, January 28, 2013 11:39 AM
To: cloudstack-dev@incubator.apache.org <cloudstack-dev@incubator.apache.org>
Subject: Re: systemvm.iso and injectkeys.sh issue in nonoss mgmt server?

I ran into the same problem on the dev environment. Maven does not package 
systemvm.iso at this moment.
For a workaround, I copied authorized_keys, cloud-scripts.tgz and systemvm.zip 
to a directory and run mkisofs -o systemvm.iso <directory>, then copy the 
systemvm.iso to the folder CS asks for.

-Mice

2013/1/26 Rajesh Battala <rajesh.batt...@citrix.com>:
> I remember Saksham had got into the issue, workaround he had followed is copy 
> the systemvm.iso from another machine to the host. After that it was working 
> fine.
>
> -----Original Message-----
> From: Vijayendra Bhamidipati
> [mailto:vijayendra.bhamidip...@citrix.com]
> Sent: Saturday, January 26, 2013 6:02 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: systemvm.iso and injectkeys.sh issue in nonoss mgmt server?
>
> Hi,
>
> Has anyone run into permission issues with the injectkeys.sh script when 
> enabling a zone in a nonoss deployment (vmware) on the mgmt. server? I'm also 
> seeing exceptions thrown because the mgmt. server cannot find the 
> systemvm.iso file. Pasting the stack trace below. Would be very helpful if 
> someone already knows of these issues and/or the resolution. I'm following 
> the instructions on 
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch
>  to build/start the mgmt. server.
>
> Regards,
> Vijay
>
> Stack trace
> =========
>
>
> INFO  [vmware.mo.HypervisorHostHelper] (DirectAgent-20:10.223.74.132) 
> Blank VM: v-2-VM is ready for use INFO 
> [vmware.manager.VmwareManagerImpl] (DirectAgent-20:10.223.74.132) 
> Inject SSH key pairs before copying systemvm.iso into secondary 
> storage INFO  [cloud.server.ConfigurationServerImpl]
> (DirectAgent-20:10.223.74.132) Processing updateKeyPairs INFO 
> [cloud.server.ConfigurationServerImpl] (DirectAgent-20:10.223.74.132) 
> Keypairs already in database INFO 
> [cloud.server.ConfigurationServerImpl] (DirectAgent-20:10.223.74.132) 
> Keypairs already in database, skip updating local copy (not running as 
> cloud user) INFO  [cloud.server.ConfigurationServerImpl]
> (DirectAgent-20:10.223.74.132) Going to update systemvm iso with 
> generated keypairs if needed ERROR [vmware.manager.VmwareManagerImpl]
> (DirectAgent-20:10.223.74.132) Unexpected exception
> java.io.FileNotFoundException: /usr/lib/cloud/common/vms/systemvm.iso (No 
> such file or directory)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:137)
>         at com.cloud.utils.FileUtil.copyfile(FileUtil.java:68)
>         at 
> com.cloud.hypervisor.vmware.manager.VmwareManagerImpl.prepareSecondaryStorageStore(VmwareManagerImpl.java:628)
>         at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:2051)
>         at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:416)
>         at 
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> ERROR [vmware.manager.VmwareManagerImpl]
> (DirectAgent-20:10.223.74.132) Unable to copy systemvm ISO on 
> secondary storage. src location:
> /usr/lib/cloud/common/vms/systemvm.iso, dest location: 
> /mnt/VM/7064181016283.658878fe/systemvm/systemvm-4.1.0-SNAPSHOT.iso
> WARN  [vmware.resource.VmwareResource] (DirectAgent-20:10.223.74.132) 
> StartCommand failed due to Exception:
> com.cloud.utils.exception.CloudRuntimeException
> Message: Unable to copy systemvm ISO on secondary storage. src
> location: /usr/lib/cloud/common/vms/systemvm.iso, dest location: 
> /mnt/VM/7064181016283.658878fe/systemvm/systemvm-4.1.0-SNAPSHOT.iso
>
> com.cloud.utils.exception.CloudRuntimeException: Unable to copy systemvm ISO 
> on secondary storage. src location: /usr/lib/cloud/common/vms/systemvm.iso, 
> dest location: 
> /mnt/VM/7064181016283.658878fe/systemvm/systemvm-4.1.0-SNAPSHOT.iso
>         at 
> com.cloud.hypervisor.vmware.manager.VmwareManagerImpl.prepareSecondaryStorageStore(VmwareManagerImpl.java:634)
>         at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:2051)
>         at 
> com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:416)
>         at 
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> INFO  [cloud.vm.VirtualMachineManagerImpl] (consoleproxy-1:) Unable to 
> start VM on Host[-1-Routing] due to StartCommand failed due to
> Exception: com.cloud.utils.exception.CloudRuntimeException
> Message: Unable to copy systemvm ISO on secondary storage. src
> location: /usr/lib/cloud/common/vms/systemvm.iso, dest location: 
> /mnt/VM/7064181016283.658878fe/systemvm/systemvm-4.1.0-SNAPSHOT.iso

Reply via email to