- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Re: How to install SDN
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2014 04:54 AM
09-13-2014 04:54 AM
How to install SDN
Hi Everyone,
I have tried to install the hp-sdn-sdk-2.3.5 through the use of the bin/install-sdk script.
The issue is that Eclipse believes that only some of the libraries are there. It can see some of the com.hp.util.* libraries (but not com.hp.utils.ip.* library). There are a few other libraries it can see too, but the most important library for my project is com.hp.of.* so I can start to hook into the PACKET_IN requests.
Can anyone shed some light as to where I should start looking or start hooking into things such that I can get what i'm looking for?
--
Regards,
Matthew Hart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2014 08:30 AM
09-16-2014 08:30 AM
Re: How to install SDN
Hello Matthew Hart,
We need to understand few questions to support you in a better way.
1) Is this a fresh installation or Upgrade from some older version to 2.3.5?
2) Are you getting any error when you tried to install SDN/SDK/dependencies? If yes can you please share the screenshots of the error message?
3) Did you follow the installation guide?
4) Please do shed some light on your setup.
This looks like some Jar file missing, we need some clarity to pin point the issue.
Please advise
Thanks,
HP SDN Team
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2014 04:04 PM
09-16-2014 04:04 PM
Re: How to install SDN
Hi Team,
1) Is this a fresh installation or Upgrade from some older version to 2.3.5?
This is a fresh install.
2) Are you getting any error when you tried to install SDN/SDK/dependencies? If yes can you please share the screenshots of the error message?
All of the SDN/SDK/Dependencies installed fine with no errors.
3) Did you follow the installation guide?
I followed the installation guide and everything was successful.
4) Please do shed some light on your setup.
This is a fresh install of Ubuntu Server 12.04 LTS with HP SDN VAN Controller vesion 2.3.5 and the 2.3.5 SDK. This is running in a virtual box because it is just for developmental ideas and isn't doing much in regards to heavy lifting (mininet will be used to generate network traffic).
Interestingly, I re-ran the installer and now Eclipse is able to find hp.com.of.lib.* but it is unable to find hp.com.of.ctl.* or any other libraries under the hp.com.of.* package.
Given that running the reinstall helped, I completely removed the ~/.m2 folder and re-ran the install script. This put me in the same position as above. I can nost see the hp.com.of.lib.* library, but nothing else uder the hp.com.of.* package.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2014 02:10 AM
09-17-2014 02:10 AM
Re: How to install SDN
Hello Matthew,
Thanks for the details that you have provided. After sucessfully building the sample app (which was generated by running the script gen-sdn-app) ,you should create eclipse project by running below command
mvn eclipse:eclipse
Was this tried?
Then you can import java project as mentioned on SDN programming guide page 208 and there you can see all package import statement resolved automatically.
Please note that the file supplied is not meant to be a complete working example rather it should be considered as some guideline code snippets to further modification. However import statement should not show any error.
Please let us know if this helps or still you are facing some issue.
Thanks
HP SDN team
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2014 04:46 AM
09-17-2014 04:46 AM
Re: How to install SDN
Hi Team,
Yes, I have generated my sample app through the use of the gen-sdn-app script and then run mvn eclipse:eclipse.
I also imported the app into Eclipse as per the instructions in the programming guide and, yes the import statements resolved automatically (after a restart).
The issue is that not all of the libraries that are mentioned in the SDK API have been imported correctly. For example, I am missing the com.hp.of.* library. I am also missing part of the utils library (com.hp.utils.ip.* for example).
I noticed that during the install-sdk command, these libraries are not mentioned anywhere. The two install locations are ~/.m2/repository/com/hp/sdn and ~/.m2/repository/com/hp/utils.
What folders are supposed to be in the ~/.m2/repository/com/hp/ folder?
Also, what are the jar's that handle the missing libraries? Can I get them and import them manually somehow?
--
Regards,
Matthew Hart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2014 03:06 AM
09-18-2014 03:06 AM
Re: How to install SDN
Hello Matthew,
Did you set M2_REPO variable as per programming guide page 246 ?
Setting up this variable properly, will also resolve many dependencies.
Also please note that there is no package com.hp.utils (and no directory ~/.m2/repository/com/hp/utils) rather it is package com.hp.util (and the directory ~/.m2/repository/com/hp/util)
After running install-sdk there will be two sub directories under ~/.m2/repository/com/hp/ - (1) sdn (2) util
If still you are facing problem ,please share the screenshot of your code in eclipse having red marked dependency error.
Thanks,
HP SDN Team
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2014 12:23 AM
09-19-2014 12:23 AM
Re: How to install SDN
Hi Team,
I've attached some images of my setup. It's util, not utils in my setup too.
You should be able to see that some of the libraries are linking fine, but some are just not there (or not linking for whatever reason).
Can you tell me what the $PATH variable should be? Also, any other environment variables that I need for this project to work (even outside of Eclipse). Also, ~/.bashrc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2014 09:56 AM
09-23-2014 09:56 AM
Re: How to install SDN
Hello Matthew,
We tried to regenerate the error as mentioned in the screenshots shared by you and we regenerated the error.
However to solve that error we added M2_REPO variable as per the SDN Programming guide and rebuild all and this solved the problem.
So can you please delete M2_REPO variable ,rebuild all and see what errors come.
Then you add M2_REPO (for e.g. M2_REPO=/home/user/.m2/repository) and rebuild all and let us know if this helps or not.
Please make sure M2_REPO variable has the correct value (i.e. /home/YOUR_USER_DIRECTORY_NAME/.m2/repository)
Thanks,
HP SDN Team
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2014 04:11 PM
09-23-2014 04:11 PM
Re: How to install SDN
Hi Team,
I removed and re-added the classpath (M2_REPO) as you requested and the issue still exists.
I've attached a couple of images and the build error output for you to take a look at.
For your reference, the program that I am trying to get working can be found at this thread (http://h30499.www3.hp.com/t5/SDN-Development/Packet-In/td-p/6301111#.VB9h4S6Sztn) under the file name "SampleManager.txt" which I have renamed to Manager.java
Coming back to my previous question, do there need to be any local environment variables in the computer (such as in $PATH or .bashrc) that I need to have in conjunction with M2_REPO in eclipse?
I have read the install guide and the SDN programming guide cover to cover and nothing in either document has helped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2014 02:13 AM
09-24-2014 02:13 AM
Re: How to install SDN
Hello Matthew,
Before putting the code mentioned in the link http://h30499.www3.hp.com/t5/SDN-Development/Packet-In/td-p/6301111#.VB9h4S6Sztn , were you able to build the project(generated by gen-sdn-app script) successfully ?
First please make sure you are successfully building the generated project ,later you can modify the java files.
Please make sure you are done with below steps successfully(each step must be successfully completed)
- install-sdk script runs
- gen-sdn-app runs successfully
- Then you got to hm-root directory and run mvn clean install successfully, and you see the generated target zip file under hm-app/target/
- Then only you run mvn eclipse:eclipse command from hm-root directory . This must build successfully
- Then you can import java project to eclipse [page 243 SDN Programming guide 2.3]
Please have a look on the above steps and make sure you have completed successfully. In case you get any error in any step please let us know.
Again if you get those import errors please share the screenshot of 2 tabs ( 1-Libraries and 2-Order and Export ).These tabs you can find in java build path as below-
Right click on project(e.g. hm-bl)àselect properties à then type “Java Build Path” in the ‘type filter text’ box there you can see two tabs ‘Libraries’ and ‘Order and Export’
Thanks,
HP SDN Team