Software Defined Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

"Dependency satisfaction failed" when deploying the Device Health Monitor example

 
SOLVED
Go to solution
Highlighted
Frequent Advisor

"Dependency satisfaction failed" when deploying the Device Health Monitor example

Hello,

 

After having followed the example "Device Health Monitor" given in the programming guide, once I try to deploy my application, I've obtained the following message: "Dependency satisfaction failed" .

 

My "mvn clean install " works and I obtained the hm-1.0.6-SNAPSHOT.zip. That certainly means I have no compilation error ? isnt'it ? In this case why te deployement of my ZIP file genrate the previous error ?

 

How can I check why the controler and where the controler have Dependency problem ? Is it possible to obtain more LOG than the simple message "Dependency satisfaction failed" ?

 

Regards,

 

Serge

5 REPLIES 5
Highlighted
Advisor

Re: "Dependency satisfaction failed" when deploying the Device Health Monitor example

The log file is located at /var/log/sdn/virgo/logs/log.log.

You are most likely using external artifacts that are not published in the Virgo repositories of the controller. If that is the case, either publish them[1] or configure Maven to export/import them with your code[2].

 

[1] http://eclipse.org/virgo/documentation/virgo-documentation-2.1.1.RELEASE/docs/virgo-user-guide/html/ch08.html

 

[2] http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html

Highlighted
Trusted Contributor
Solution

Re: "Dependency satisfaction failed" when deploying the Device Health Monitor example

Hello Serge,

 

Just doing a follow up to see if you are still facing issue with respect to this query. As you rightly understood, since you were able to generate the *.zip file then it means there is no compilation error.

Did you manage to see the log files in the location mentioned in the earlier post?

 

Please  do share us the Log file in case you need more assistance.

 

Thanks

HP SDN Team

Highlighted
Occasional Visitor

Re: "Dependency satisfaction failed" when deploying the Device Health Monitor example

Hello,

 

I think I have the same issue that Serge had.

 

After trying to deploy the Device Health Monitor application, I get an "Dependency satisfaction failed". Here his an extract of the Virgo log file:
Installation of plan 'Device Health Monitor' version '1.0.0.SNAPSHOT' failed. org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'com.hp.hm.hm-model' at version '1.0.0.SNAPSHOT': Cannot resolve: com.hp.hm.hm-model
    Resolver report:
        An Import-Package could not be resolved. Resolver error data <Import-Package: com.hp.sdn; version="[2.0.0,3.0.0)">. Caused by missing constraint in bundle <com.hp.hm.hm-model_1.0.0.SNAPSHOT>
             constraint: <Import-Package: com.hp.sdn; version="[2.0.0,3.0.0)">
        An Import-Package could not be resolved. Resolver error data <Import-Package: com.hp.sdn.rs.misc; version="[2.0.0,3.0.0)">. Caused by missing constraint in bundle <com.hp.hm.hm-ui_1.0.0.SNAPSHOT>
             constraint: <Import-Package: com.hp.sdn.rs.misc; version="[2.0.0,3.0.0)">
        An Import-Package could not be resolved. Resolver error data <Import-Package: com.hp.hm.model; version="[1.0.0,2.0.0)">. Caused by missing constraint in bundle <com.hp.hm.hm-api_1.0.0.SNAPSHOT>
             constraint: <Import-Package: com.hp.hm.model; version="[1.0.0,2.0.0)">
        An Import-Package could not be resolved. Resolver error data <Import-Package: com.hp.sdn.rs.misc; version="[2.0.0,3.0.0)">. Caused by missing constraint in bundle <com.hp.hm.hm-rs_1.0.0.SNAPSHOT>
             constraint: <Import-Package: com.hp.sdn.rs.misc; version="[2.0.0,3.0.0)">
        An Import-Package could not be resolved. Resolver error data <Import-Package: com.hp.hm.api; version="[1.0.0,2.0.0)">. Caused by missing constraint in bundle <com.hp.hm.hm-bl_1.0.0.SNAPSHOT>
             constraint: <Import-Package: com.hp.hm.api; version="[1.0.0,2.0.0)">

The application zip file is containing the following files:

Archive: hm-1.0.0-SNAPSHOT.zip
inflating: hm-api-1.0.0-SNAPSHOT.jar
inflating: hm-bl-1.0.0-SNAPSHOT.jar
inflating: hm-model-1.0.0-SNAPSHOT.jar
inflating: hm-rs-1.0.0-SNAPSHOT.war
inflating: hm-ui-1.0.0-SNAPSHOT.war
inflating: hm.descriptor
inflating: hm.plan

 

I don't understand why the deployment fails and would greatly appreciate if you could help me to solve this error.

 

Best regards,

Highlighted
Trusted Contributor

Re: "Dependency satisfaction failed" when deploying the Device Health Monitor example

Hello AurelienLegrand,

 

If you are just trying to deploy the sample application Device Health Monitor provided in SDN Programming guide without any code changes , you should get it successfully  deployed provided you have completed below steps successfully –

1-You have downloaded HP VAN SDN Controller SDK and unzipped the zip file successfully.

2-Successfully run bin/install-sdk  as per page 8  from SDN Programming guide.

3-Successfully run bin/gen-sdn-app  as per page 115 from SDN Programming guide.

4-Build the app by running the command mvn clean install as per page 115 from SDN Programming guide.

 

Please let us know if there was any warning/error while you executed above steps.

 

Thanks,

HP SDN Team

Highlighted
Trusted Contributor

Re: "Dependency satisfaction failed" when deploying the Device Health Monitor example

Hello AurelienLegrand,

Doing a follow up to check if you need any further assistance with respect to the query posted.
Please do let us know  if your problem is solved.

If you have more questions on the same topic please do reply on the same thread or open a new post if new topic.

Thanks
HP SDN Team