Open fatemehm opened 6 years ago
Hi, @fatemehm
Did you solve this problem?
Hi @sandinojardim Unfortunately, I couldn't run and compile the new version :( if you could figure out the problem, please let me know
There is a pull request with a bug fix suggestion:
hg.hosts = new ArrayList<SDNHost>((Collection<? extends SDNHost>) (Collection<? extends Node>)topology.getConnectedNodesLow(e));
I replaced that line by the above suggestion and worked for me.
Hi there!
@sandinojardim is right! The problem is related with the casting! That kind of casting using the wildcard operator could be a little tricky. You also can use something like this:
hg.hosts = new ArrayList<SDNHost>((Collection<? extends SDNHost>)(Collection<?>)topology.getConnectedNodesLow(e));
Cheers,
@sandinojardim thanks you very much, let me check this :) I hope it works for me too.
@davidperezabreu Thanks, actually I'm new in CloudsimSDN and java programming. I need to extend this framework in order to support NFV ( Network function virtualization) and SFCs ( service function chaining) but I don't know exactly which of the packages I have to extend.
hello i'm trying to setup the cloudsimsdn v.2 but i appears this method "getCloudletFailedList()" is not available in the package org.cloudbus.cloudsim.sdn
can i have help with to fix this problem please
is there another version of the cloudsim 3.0.3 jar file please that implements "getCloudletFailedList()"??
Hi @anyanteh I've faced the same problem. could you figure out the problem? you can find cloudsim4.0 in this link : https://github.com/Cloudslab/cloudsim/releases/tag/cloudsim-4.0
@anyanteh It works with "cloudsim-4.0.jar" . You have to put this Jar file in the Jar folder.
thanks for your feedback,just tried it but its still doesn't work.Is there any particular thing u did aside setting up cloudsim v.4 cloudsim sdn v.2 and adding the maven dependencies, please??
@anyanteh try to compile all of the folders one by one. actually, I could not run the example, because of some problem in the vmallocation folder, I altered "getFreeMips().add(host.getTotalMips());" (line 65 in the VmAllocationPolicyCombinedMostFullFirst.java) to "getFreeMips().add((long)host.getTotalMips());" . Then try to run with this ( in Linux) : java -cp jars/*:. org/cloudbus/cloudsim/sdn/example/SimpleExample LFF dataset-energy/energy-physical.json dataset-energy/energy-virtual.json dataset-energy/energy-workload.csv > results.out
@ fatemehm, thank u so much for your help.
You were right. I reproduced the compile error with 3.0.3. When I brought in 4.0, the compile issue went away. This is bad ... to deliver a code repository containing an incorrect version number in the pom.xml file. I just did not want to believe it.
@fatemehm regarding the example, i think the project (CLoudsimSDN v.2.0) was updated on 14th of February and a these files might be available for use. you might want to give that shot Cheers
@anyanteh Hi, could you run the StartExperimentSFCEdge and StartExperimentSFC?
hey, I remember it run when i first set it up.but its seems not to be run at the moment. Let me look it up and get back to you. Cheers
Hi @fatemehm and @anyanteh,
I recently have time to look at the code and fixed the bugs appeared in the example of StartExperimentSFCEdge and StartExperimentSFC, which is caused by the bugs in CloudSim 4.0. It is because the createDataCenter called in SDNDataCenter for creating the inter-cloud networking physical topology is failed as there are no physical hosts defined with available Pes.
Please download the CloudSim4.0 again to use the newest one. Cheers.
@hetianzhang thanks for the update, tried it last night with both the cloudsim 4.0 and the CloudsimSDN 2.0 for had no luck.followed all the steps you put in the updated readme file as well.Do let me know if there's another way of doing it. cheers
@anyanteh I followed the tutorial and everything works well. Just download the cloudsim-4.0.zip and source code from the release https://github.com/Cloudslab/cloudsimsdn/releases/tag/v2.0.1-beta and put the cloudsim-4.0.jar in the project directory and run "mvn clean install".
@hetianzhang having a look right away
@hetianzhang can you please help with some explanation to these questions please
has anyone tried to use ANN on cloudsimSDN-NFV?? your advice will be gladly appreciated .. Thank you
I also wanna use this , if you have please help me
@anyanteh I followed the tutorial and everything works well. Just download the cloudsim-4.0.zip and source code from the release https://github.com/Cloudslab/cloudsimsdn/releases/tag/v2.0.1-beta and put the cloudsim-4.0.jar in the project directory and run "mvn clean install".
I am trying to install the cloudsimsdn but it is troubleshooting ,please guide
Hey, I am trying to compile and run CloudSimSDN on my machine but I've faced this error: java:128: error: incompatible types: Collection cannot be converted to Collection<? extends SDNHost>
hg.hosts = new ArrayList((Collection<? extends SDNHost>)topology.getConnectedNodesLow(e));
^
1 error
unfortunately, I couldn't figure out the error. I should run this as soon as possible.