Hi Wido,

Thank you for your reply.

2012/9/3 Wido den Hollander <[email protected]>:
>
>
> On 09/03/2012 09:37 AM, Satoshi Kobayashi wrote:
>>
>> Hello,
>>
>> I'm trying to run kvm agent on development environment by maven. But,
>> the trial has stuck. I think that there is a problem through which
>> dependence circulates (agent & cloud-plugin-hypervisor-kvm).
>>
>> The following is an outline of my trial.
>>
>> 1. execute maven
>>     (mvn exec:java -pl agent
>> -Dexec.mainClass=com.cloud.agent.AgentShell -Dnonoss)
>> -> an exception is raised
>> com.cloud.utils.exception.CloudRuntimeException: Unable to find
>> com.cloud.configuration.DefaultInterceptorLibrary
>>
>> 2. add dependency (cloud-server) to pom.xml of agent and re-execute maven
>> -> an exception is raised
>> Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to
>> find the implementation version of this agent
>>         at com.cloud.agent.AgentShell.init(AgentShell.java:382)
>>         at com.cloud.agent.AgentShell.main(AgentShell.java:630)
>>         ... 6 more
>>
>
> Hmm, that seems something that goes wrong when the Agent is not ran by JSVC.
>
> A couple of weeks ago the AgentShell was changed to run with JSVC:
> https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commitdiff;h=eab3e4783e0f8aba7dab889bdfcc441a028b387a
>
> I'll take a look at this and try to reproduce it locally.
>
> Wido

Is using JSVC recommended even if on development environment?  I would
like to know the development approach recommended for Agent.

Regards,
Satoshi

>
>
>> 3. skip version check and re-execute maven
>> -> permission error
>> Unable to start agent: Unable to create the /var/run/agent.pid.  Are
>> you running as root?
>>
>> 4. run as root
>> -> an exception is raised
>> ERROR [cloud.agent.AgentShell] (com.cloud.agent.AgentShell.main():)
>> Unable to start agent: Resource class not found:
>> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource due to:
>> java.lang.ClassNotFoundException:
>> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
>> Unable to start agent: Resource class not found:
>> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource due to:
>> java.lang.ClassNotFoundException:
>> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
>>
>> 5. add dependency (cloud-plugin-hypervisor-kvm) to pom.xml of agent
>>     and re-execute maven
>> -> maven error
>> [ERROR] The projects in the reactor contain a cyclic reference: Edge
>> between
>> 'Vertex{label='org.apache.cloudstack:cloud-plugin-hypervisor-kvm:4.0.0-SNAPSHOT'}'
>> and 'Vertex{label='org.apache.cloudstack:cloud-agent:4.0.0-SNAPSHOT'}'
>> introduces to cycle in the graph
>> org.apache.cloudstack:cloud-agent:4.0.0-SNAPSHOT -->
>> org.apache.cloudstack:cloud-plugin-hypervisor-kvm:4.0.0-SNAPSHOT -->
>> org.apache.cloudstack:cloud-agent:4.0.0-SNAPSHOT -> [Help 1]
>>
>> Even if it remove dependency of agent from
>> cloud-plugin-hypervisor-kvm, it does not run.
>>
>> It was not found although I looked for the document written about the
>> method of running kvm agent. Or is the method known if it is not maven
>> but ant?
>>
>> The patch used for this trial is attached.
>>
>> Thanks,
>> Satoshi
>>
>



-- 
Satoshi Kobayashi <[email protected]>

Reply via email to