Re: Nexus repository dependencies
Hi Frank, thanks for your response! I have tried that already but it doesn't seem to work. At the beginning I thought it's a juniper-contrail repository problem. Then I tried another project with another repository (midonet) but it doesn't work either. Nexus won't even show me the remote files. Probably I'm using the wrong URLs. What I found weird, is that a normal install (without nexus) does work fine but as soon as I type those URLs as a proxy server in Nexus it cannot find the artifacts. Best regards, Ramzi On Mon, Nov 2, 2015 at 10:58 AM, Frank Maximus < frank.maxi...@nuagenetworks.net> wrote: > HI, > > If you take a look into plugins/network-elements/junipercontrail/pom.xml, > you will see that a repository is defined there: > > > juniper-contrail > http://juniper.github.io/contrail-maven/snapshots > > > > If you use maven mirror for all repositories, you will need to define the > juniper-contrail repo in nexus too. > Same will apply for kvm and midonet. > > Kind Regards, > Frank > > On Sun, Nov 1, 2015 at 6:53 PM, Ramzi Youssefi <ryouss...@gmail.com> > wrote: > > > Hi, > > > > I was trying to use Nexus as a local repository for cloudstack > deployment. > > Everything went fine until this happened: > > > > [WARNING] The POM for > > net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT is missing, no > > dependency information available > > > > I have tried everything to make it work but it doesn't. > > Does some of you have experience in this field? > > > > For more information, please see this thread: > > > > > > > http://stackoverflow.com/questions/33463410/maven-nexus-could-not-resolve-juniper-contrail-api > > > > Best regards, > > -- > > Ramzi Youssefi > > Görlitzer Str. 49 > > 01099 Dresden, Germany. > > Cell: +49 173 1965465 > > Email: ryouss...@gmail.com > > > > > -- > Frank Maximus > *nuage*networks.net > Antwerp, Belgium > -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Nexus repository dependencies
Hi, I was trying to use Nexus as a local repository for cloudstack deployment. Everything went fine until this happened: [WARNING] The POM for net.juniper.contrail:juniper-contrail-api:jar:1.0-SNAPSHOT is missing, no dependency information available I have tried everything to make it work but it doesn't. Does some of you have experience in this field? For more information, please see this thread: http://stackoverflow.com/questions/33463410/maven-nexus-could-not-resolve-juniper-contrail-api Best regards, -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
UsageMonitor UI Plugin ready
Hello everyone, herby I share with everyone our first UI Plugin to monitor the usage resources. Here is the link: https://github.com/BIT-Group-GmbH/cloudstack-plugin-ui-usagemonitor Any thoughts will be very much appreciated. Cheers and have fun! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Custom dictionary implementation
Hello everyone, I'm implementing a UI Plugin and I would like to have a custom dictionary for the labels. Could you guys please provide an example on how to do this? I need three different languages and I would like to have the labels in the dictionary within the plugin. Any help would be greatly appreciated. Regards, -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Re: Current project context
I will reply my own question in case someone needs the same. In an Ajax request, when you give the projectid parameter a -1 then you will get the id of the current project where you are currently in. Cheers! On Fri, Apr 24, 2015 at 11:15 AM, Ramzi Youssefi ryouss...@gmail.com wrote: Hello everyone, I'm currently developing a UI Javascript Plugin for Cloudstack and I was wondering if there is a global variable that tells me in which project I'm currently in. For example, if I list something in the ViewList, than the context will be something like this: var description = args.context.listDevices_list_view[0].description; Now I need something similar but regarding the project where I'm currently in (since project can be selected in the upper left corner). Thanks a lot! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Current project context
Hello everyone, I'm currently developing a UI Javascript Plugin for Cloudstack and I was wondering if there is a global variable that tells me in which project I'm currently in. For example, if I list something in the ViewList, than the context will be something like this: var description = args.context.listDevices_list_view[0].description; Now I need something similar but regarding the project where I'm currently in (since project can be selected in the upper left corner). Thanks a lot! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Re: Current project context
nope, I was wrong.. is done automatically as soon one select a project. Cool! On Fri, Apr 24, 2015 at 1:27 PM, Ramzi Youssefi ryouss...@gmail.com wrote: I will reply my own question in case someone needs the same. In an Ajax request, when you give the projectid parameter a -1 then you will get the id of the current project where you are currently in. Cheers! On Fri, Apr 24, 2015 at 11:15 AM, Ramzi Youssefi ryouss...@gmail.com wrote: Hello everyone, I'm currently developing a UI Javascript Plugin for Cloudstack and I was wondering if there is a global variable that tells me in which project I'm currently in. For example, if I list something in the ViewList, than the context will be something like this: var description = args.context.listDevices_list_view[0].description; Now I need something similar but regarding the project where I'm currently in (since project can be selected in the upper left corner). Thanks a lot! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
listUsageRecord only for Admins? Why?
Hello developers! is there any reason why listUsageRecords api call is only limited to root and admin users? I think this use case is very common and it would be nice if clients can see their usage records in their projects. Is there any workaround for that? Best, -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Re: API: listUsageRecords
Hi Praveen, thank you very much! I will have a look at it! Best, On Mon, Apr 6, 2015 at 2:10 PM, Praveen B pbprave...@gmail.com wrote: Hi Ramzi, I have uploaded one sample file at https://s3-ap-southeast-1.amazonaws.com/praveenamazonbucket/usage.xml in XML format. Please let me know if this file works for you or not. Thanks, Praveen On Sun, Apr 5, 2015 at 2:38 PM, Ramzi Youssefi ryouss...@gmail.com wrote: Hi Praveen, thank you for your reply! I was checking in the database for usage data and I realised that all usage tables are empty. I think this is because I'm using the simulator, which only mocks some virtual machines and storage devices (among others). It would be great if I could at least have a json file with some data examples. Do you know where I can find something like this? Thanks! On Sun, Apr 5, 2015 at 4:53 AM, Praveen B pbprave...@gmail.com wrote: Hi Ramzi, A couple of checks for troubleshooting your usage data issue 1) Check whether usage data is generated for the selective range - You can validate this by going through usage log located in /var/log/cloudstack/usage/usage.log file OR check data in usage DB tables. To make it simple, always check for latest data. 2) If you have an other cloudstack instance, execute same API call on it to confirm whether API parameters are correct or not. I am not sure about simulator whether it can generate and show usage data or not. Give us the API call that you used. listUsageRecords API is programmed in a way that it can be executed by only admins. Users may not be able to execute it. Since you are calling this API through billing module, can you try to use admin's keys for all users in the code and see if normal users also can list usage data? Thanks, Praveen On Sun, Apr 5, 2015 at 1:31 AM, Ramzi Youssefi ryouss...@gmail.com wrote: Hello dear developers, I'm developing a billing module for Cloudstack and I'm having troubles in two points: 1.- When I call the API I just a receive a response without data (maybe because I'm using the simulator?). Maybe I'm using the wrong call? (startdate and enddate are set) 2.- The idea is that the client can query their usage data but the API won't work for users. Only root and domain admin. Is there any way to make possible that the users can call the API? Thanks for your help! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Re: API: listUsageRecords
Hi Praveen, thank you for your reply! I was checking in the database for usage data and I realised that all usage tables are empty. I think this is because I'm using the simulator, which only mocks some virtual machines and storage devices (among others). It would be great if I could at least have a json file with some data examples. Do you know where I can find something like this? Thanks! On Sun, Apr 5, 2015 at 4:53 AM, Praveen B pbprave...@gmail.com wrote: Hi Ramzi, A couple of checks for troubleshooting your usage data issue 1) Check whether usage data is generated for the selective range - You can validate this by going through usage log located in /var/log/cloudstack/usage/usage.log file OR check data in usage DB tables. To make it simple, always check for latest data. 2) If you have an other cloudstack instance, execute same API call on it to confirm whether API parameters are correct or not. I am not sure about simulator whether it can generate and show usage data or not. Give us the API call that you used. listUsageRecords API is programmed in a way that it can be executed by only admins. Users may not be able to execute it. Since you are calling this API through billing module, can you try to use admin's keys for all users in the code and see if normal users also can list usage data? Thanks, Praveen On Sun, Apr 5, 2015 at 1:31 AM, Ramzi Youssefi ryouss...@gmail.com wrote: Hello dear developers, I'm developing a billing module for Cloudstack and I'm having troubles in two points: 1.- When I call the API I just a receive a response without data (maybe because I'm using the simulator?). Maybe I'm using the wrong call? (startdate and enddate are set) 2.- The idea is that the client can query their usage data but the API won't work for users. Only root and domain admin. Is there any way to make possible that the users can call the API? Thanks for your help! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
API: listUsageRecords
Hello dear developers, I'm developing a billing module for Cloudstack and I'm having troubles in two points: 1.- When I call the API I just a receive a response without data (maybe because I'm using the simulator?). Maybe I'm using the wrong call? (startdate and enddate are set) 2.- The idea is that the client can query their usage data but the API won't work for users. Only root and domain admin. Is there any way to make possible that the users can call the API? Thanks for your help! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
cloudstack ui plugin
Hello everyone! I'm trying to develop a UI plugin in javascript for cloudstack. I have read a lot but I think the documentation for this purpose is very little. For instance, I'm trying to use tabs to divide the content of the plugin in many parts. Each tab will show different data and so on. What I have read until now is that you can either show the content through show: function() { } or listView: { } None of these methods allow me to place tabs. Is there any alternative to do this? or even better, is there any documentation on how to develop plugins? the existing documentation in https://cwiki.apache.org/confluence/display/CLOUDSTACK/UI+Plugin+Tutorial is not sufficient. Thanks a lot!! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Cloudstack LOG files
Hello everyone, I'm developing with Cloudstack 4.6.0-SNAPSHOT from the git repository. I'm using the simulator and sometimes when I create a new instance, I errors like: Failed to deploy Vm with Id: 3on Host with Id: null My question is: where can I find the Cloudstack's log files? I have read that they are under /var/log/cloudstack ... but since I'm just running the project from the git repo, I think they might be somewhere else. Thanks for your help! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Re: Cloudstack LOG files
Thanks Rajani, I found them! On Fri, Jan 16, 2015 at 1:12 PM, Rajani Karuturi raj...@apache.org wrote: assuming you are running it through mvn -pl client jetty:run, check api.log and vmops.log files ~Rajani On Fri, Jan 16, 2015 at 5:31 PM, Ramzi Youssefi ryouss...@gmail.com wrote: Hello everyone, I'm developing with Cloudstack 4.6.0-SNAPSHOT from the git repository. I'm using the simulator and sometimes when I create a new instance, I errors like: Failed to deploy Vm with Id: 3on Host with Id: null My question is: where can I find the Cloudstack's log files? I have read that they are under /var/log/cloudstack ... but since I'm just running the project from the git repo, I think they might be somewhere else. Thanks for your help! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Cloudstack Simulator: unable to simulate infrastructure from basic.cfg
Hello everyone, Following this documentation: http://docs.cloudstack.apache.org/en/latest/developer_guide.html I was trying to simulate an infrastructure with the simulator but I get the following error: ryoussefi@callisto:~/Projects/cloudstack$ mvn -Pdeveloper,marvin.setup -Dmarvin.config=setup/dev/basic.cfg -pl :cloud-marvin integration-test [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Apache CloudStack marvin 4.6.0-SNAPSHOT [INFO] [INFO] [INFO] --- maven-checkstyle-plugin:2.11:check (cloudstack-checkstyle) @ cloud-marvin --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- gmaven-plugin:1.5:execute (setproperty) @ cloud-marvin --- [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (generate-sources) @ cloud-marvin --- [INFO] [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-marvin --- [INFO] [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ cloud-marvin --- [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (pre-integration-test) @ cloud-marvin --- Usage: deployAndRun.py [options] deployAndRun.py: error: no such option: -c [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 10.415s [INFO] Finished at: Fri Dec 19 12:49:36 CET 2014 [INFO] Final Memory: 42M/294M [INFO] [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (pre-integration-test) on project cloud-marvin: Command execution failed. Process exited with an error: 2 (Exit value: 2) - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException I have to say as well that the pip command pip install tools/marvin/dist/Marvin-4.6.0-SNAPSHOT.tar.gz was run with that compressed file and not with Marvin-0.1.0.tar.gz Thanks for your help! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Cloudstack Simulator: unable to simulate infrastructure from basic.cfg
Hello everyone, Following this documentation: http://docs.cloudstack.apache.org/en/latest/developer_guide.html I was trying to simulate an infrastructure with the simulator but I get the following error: ryoussefi@callisto:~/Projects/cloudstack$ mvn -Pdeveloper,marvin.setup -Dmarvin.config=setup/dev/basic.cfg -pl :cloud-marvin integration-test [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building Apache CloudStack marvin 4.6.0-SNAPSHOT [INFO] [INFO] [INFO] --- maven-checkstyle-plugin:2.11:check (cloudstack-checkstyle) @ cloud-marvin --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- gmaven-plugin:1.5:execute (setproperty) @ cloud-marvin --- [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (generate-sources) @ cloud-marvin --- [INFO] [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-marvin --- [INFO] [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ cloud-marvin --- [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (pre-integration-test) @ cloud-marvin --- Usage: deployAndRun.py [options] deployAndRun.py: error: no such option: -c [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 10.415s [INFO] Finished at: Fri Dec 19 12:49:36 CET 2014 [INFO] Final Memory: 42M/294M [INFO] [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (pre-integration-test) on project cloud-marvin: Command execution failed. Process exited with an error: 2 (Exit value: 2) - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException I have to say as well that the pip command pip install tools/marvin/dist/Marvin-4.6.0-SNAPSHOT.tar.gz was run with that compressed file and not with Marvin-0.1.0.tar.gz Thanks for your help! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Development environment
Hi! I would like to ask how to setup a proper development environment in Cloudstack. Until now I have been able only to download CS from git cloudstack and deploy it with maven. Once I run jetty:run, I can see CS in the browser. I even can do this with eclipse. The thing is that I want to create a plugin in Cloudstack. There are many tutorials on how to do that but the thing is that every time I create something, I need to re-deploy everything again and it takes at least 5 minutes to run the maven commands and see the changes. Is there any way to develop the plugins or to do changes in the code on the fly? so I can type something and press F5 in my browser and see the changes immediately? What is the right project that I have to download to do this? Thank you for your response! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Re: Development environment
Hi Rohit, thanks for your email! that is exactly what I need! I just want to make sure that I understood what you wrote: Once I deploy the project, I need to run it with: mvn -pl client jetty:run After I did a change, I need to stop it maybe? and then run it again with: mvn clean install -pl ui/plugins/testPlugin/testPlugin.js, client or mvn clean install -pl ui/plugins/testPlugin, client I tried both ways and I get the following error: [ERROR] Could not find the selected project in the reactor: ui/plugins - [Help 1] Thanks again! On Fri, Dec 12, 2014 at 3:04 PM, Rohit Yadav rohit.ya...@shapeblue.com wrote: Hi Ramzi, On Friday 12 December 2014 07:20 PM, Ramzi Youssefi wrote: Hi! I would like to ask how to setup a proper development environment in Cloudstack. Until now I have been able only to download CS from git cloudstack and deploy it with maven. Once I run jetty:run, I can see CS in the browser. I even can do this with eclipse. https://cwiki.apache.org/confluence/display/CLOUDSTACK/ Setting+up+CloudStack+Development+Environment The thing is that I want to create a plugin in Cloudstack. There are many tutorials on how to do that but the thing is that every time I create something, I need to re-deploy everything again and it takes at least 5 minutes to run the maven commands and see the changes. Is there any way to develop the plugins or to do changes in the code on the fly? so I can type something and press F5 in my browser and see the changes immediately? What is the right project that I have to download to do this? If you make change to your plugin or any other component you don't have to build the entire codebase since that takes a lot of time. Instead do this; mvn clean install -pl path to your plugin, client this will only build the plugin and rebuilt client which is where all plugins and dependencies get compiled in a war file (the mgmt server). -- Regards, Rohit Yadav Software Architect, ShapeBlue M. +91 8826230892 | rohit.ya...@shapeblue.com Blog: bhaisaab.org | Twitter: @_bhaisaab PS. If you see any footer below, I did not add it :) Find out more about ShapeBlue and our range of CloudStack related services IaaS Cloud Design Buildhttp://shapeblue.com/ iaas-cloud-design-and-build// CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/ CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/ CloudStack Software Engineeringhttp://shapeblue.com/cloudstack-software- engineering/ CloudStack Infrastructure Supporthttp://shapeblue.com/ cloudstack-infrastructure-support/ CloudStack Bootcamp Training Courseshttp://shapeblue.com/ cloudstack-training/ This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark. -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
Re: Development environment
Thank you guys! I think I'm getting closer. I should have explained that I wanted to create a UI plugin. If I keep the jetty server running and in another tab I type: mvn clean install -pl client then it takes like 20 seconds and I can see the changes. This is because the UI plugins are in the client project. I was also following the indication regarding the generated-webapp: vi client/target/generated-webapp/plugins/testPlugin/testPlugin.js Although I change something in the .js file, the changes are not shown when I hit F5. Any ideas why? I also copied everything with cp -rf ui/* client/target/generated-webapp/ but nothing happens. Thanks! On Fri, Dec 12, 2014 at 4:20 PM, Rohit Yadav rohit.ya...@shapeblue.com wrote: Hi Ramzi, On Friday 12 December 2014 08:12 PM, Ramzi Youssefi wrote: Hi Rohit, thanks for your email! that is exactly what I need! I just want to make sure that I understood what you wrote: Once I deploy the project, I need to run it with: mvn -pl client jetty:run After I did a change, I need to stop it maybe? and then run it again with: mvn clean install -pl ui/plugins/testPlugin/testPlugin.js, client The clean install command is for building cloudstack, the jetty one is for running the mgmt server. A typical development cycle looks like this; 1. You make changes for the first time, build the entire codebase once: mvn clean install -P developer,systemvm (add a -D noredist if you're working on non-oss components or -Dsimulator if you want to run simulator too) 2. You run mgmt server: mvn -pl client jetty:run 3. Now, you make minor/major changes to say a plugin or few components, you need to stop jetty either by Ctrl+C (break the process or 2) or by; mvn -pl client jetty:stop 4. Next, you need to rebuilt so as to test those changes; mvn clean install -pl path to plugin1,comma separated paths to other components,client 5. Run jetty again Refer: https://cwiki.apache.org/confluence/display/CLOUDSTACK/ How+to+build+CloudStack In case of UI, as Gabor mentioned you may edit directly edit the UI from client/target/generated-webapp or use something like Chrome source/inspector to make changes and test it. That's another way to cheat without building. or mvn clean install -pl ui/plugins/testPlugin, client I tried both ways and I get the following error: [ERROR] Could not find the selected project in the reactor: ui/plugins - [Help 1] Thanks again! On Fri, Dec 12, 2014 at 3:04 PM, Rohit Yadav rohit.ya...@shapeblue.com wrote: Hi Ramzi, On Friday 12 December 2014 07:20 PM, Ramzi Youssefi wrote: Hi! I would like to ask how to setup a proper development environment in Cloudstack. Until now I have been able only to download CS from git cloudstack and deploy it with maven. Once I run jetty:run, I can see CS in the browser. I even can do this with eclipse. https://cwiki.apache.org/confluence/display/CLOUDSTACK/ Setting+up+CloudStack+Development+Environment The thing is that I want to create a plugin in Cloudstack. There are many tutorials on how to do that but the thing is that every time I create something, I need to re-deploy everything again and it takes at least 5 minutes to run the maven commands and see the changes. Is there any way to develop the plugins or to do changes in the code on the fly? so I can type something and press F5 in my browser and see the changes immediately? What is the right project that I have to download to do this? If you make change to your plugin or any other component you don't have to build the entire codebase since that takes a lot of time. Instead do this; mvn clean install -pl path to your plugin, client this will only build the plugin and rebuilt client which is where all plugins and dependencies get compiled in a war file (the mgmt server). -- Regards, Rohit Yadav Software Architect, ShapeBlue M. +91 8826230892 | rohit.ya...@shapeblue.com Blog: bhaisaab.org | Twitter: @_bhaisaab PS. If you see any footer below, I did not add it :) Find out more about ShapeBlue and our range of CloudStack related services IaaS Cloud Design Buildhttp://shapeblue.com/ iaas-cloud-design-and-build// CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/ CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/ CloudStack Software Engineeringhttp://shapeblue. com/cloudstack-software- engineering/ CloudStack Infrastructure Supporthttp://shapeblue.com/ cloudstack-infrastructure-support/ CloudStack Bootcamp Training Courseshttp://shapeblue.com/ cloudstack-training/ This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based
Re: Development environment
It work like a charm!!! thank you very much guys!! On Fri, Dec 12, 2014 at 5:03 PM, Gabor Apati-Nagy gabor.apati-n...@citrix.com wrote: No problem. I forgot to mention that there are compressed version for each file there, those are needed to be deleted first. rm -r *.gz Gabor -Original Message- From: Ramzi Youssefi [mailto:ryouss...@gmail.com] Sent: 12 December 2014 15:42 To: dev Subject: Re: Development environment Thank you guys! I think I'm getting closer. I should have explained that I wanted to create a UI plugin. If I keep the jetty server running and in another tab I type: mvn clean install -pl client then it takes like 20 seconds and I can see the changes. This is because the UI plugins are in the client project. I was also following the indication regarding the generated-webapp: vi client/target/generated-webapp/plugins/testPlugin/testPlugin.js Although I change something in the .js file, the changes are not shown when I hit F5. Any ideas why? I also copied everything with cp -rf ui/* client/target/generated-webapp/ but nothing happens. Thanks! On Fri, Dec 12, 2014 at 4:20 PM, Rohit Yadav rohit.ya...@shapeblue.com wrote: Hi Ramzi, On Friday 12 December 2014 08:12 PM, Ramzi Youssefi wrote: Hi Rohit, thanks for your email! that is exactly what I need! I just want to make sure that I understood what you wrote: Once I deploy the project, I need to run it with: mvn -pl client jetty:run After I did a change, I need to stop it maybe? and then run it again with: mvn clean install -pl ui/plugins/testPlugin/testPlugin.js, client The clean install command is for building cloudstack, the jetty one is for running the mgmt server. A typical development cycle looks like this; 1. You make changes for the first time, build the entire codebase once: mvn clean install -P developer,systemvm (add a -D noredist if you're working on non-oss components or -Dsimulator if you want to run simulator too) 2. You run mgmt server: mvn -pl client jetty:run 3. Now, you make minor/major changes to say a plugin or few components, you need to stop jetty either by Ctrl+C (break the process or 2) or by; mvn -pl client jetty:stop 4. Next, you need to rebuilt so as to test those changes; mvn clean install -pl path to plugin1,comma separated paths to other components,client 5. Run jetty again Refer: https://cwiki.apache.org/confluence/display/CLOUDSTACK/ How+to+build+CloudStack In case of UI, as Gabor mentioned you may edit directly edit the UI from client/target/generated-webapp or use something like Chrome source/inspector to make changes and test it. That's another way to cheat without building. or mvn clean install -pl ui/plugins/testPlugin, client I tried both ways and I get the following error: [ERROR] Could not find the selected project in the reactor: ui/plugins - [Help 1] Thanks again! On Fri, Dec 12, 2014 at 3:04 PM, Rohit Yadav rohit.ya...@shapeblue.com wrote: Hi Ramzi, On Friday 12 December 2014 07:20 PM, Ramzi Youssefi wrote: Hi! I would like to ask how to setup a proper development environment in Cloudstack. Until now I have been able only to download CS from git cloudstack and deploy it with maven. Once I run jetty:run, I can see CS in the browser. I even can do this with eclipse. https://cwiki.apache.org/confluence/display/CLOUDSTACK/ Setting+up+CloudStack+Development+Environment The thing is that I want to create a plugin in Cloudstack. There are many tutorials on how to do that but the thing is that every time I create something, I need to re-deploy everything again and it takes at least 5 minutes to run the maven commands and see the changes. Is there any way to develop the plugins or to do changes in the code on the fly? so I can type something and press F5 in my browser and see the changes immediately? What is the right project that I have to download to do this? If you make change to your plugin or any other component you don't have to build the entire codebase since that takes a lot of time. Instead do this; mvn clean install -pl path to your plugin, client this will only build the plugin and rebuilt client which is where all plugins and dependencies get compiled in a war file (the mgmt server). -- Regards, Rohit Yadav Software Architect, ShapeBlue M. +91 8826230892 | rohit.ya...@shapeblue.com Blog: bhaisaab.org | Twitter: @_bhaisaab PS. If you see any footer below, I did not add it :) Find out more about ShapeBlue and our range of CloudStack related services IaaS Cloud Design Buildhttp://shapeblue.com/ iaas-cloud-design-and-build// CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/ CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/ CloudStack Software Engineeringhttp://shapeblue. com