-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Embedded Tomcat & Jetty #372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reduced cloudstack-management_4.6.0-snapshot_all.deb size from 211Mb to 94Mb (CentOS is 92Mb) This deb file was packing two copies of the systemvm (which is alread packed in cloudstack-common), so removed like in CentOS RPM specs Fedora 21 support for management :) Removed Fedora specific branches (symlink fedora2x points to centos7 so, using same installer :) Small cleanup of duplicate files Added embedded jetty Support for choosing tomcat or jetty on package.sh Removed mysql driver distro dependency Replaced old mortbay jetty 6 with eclipse jetty 9 Removed duplicate files Tidy up debian packaging Make things work on debian Cleanup, fixes, distro abstraction, etc Fix simulator for new jetty plugin Fix servlet engines on older mvn version Config jetty version Fix juli logging manager error on tomcat Fix dep problem with mysqlha plugin
|
cloudstack-pull-requests #341 FAILURE |
|
By the way, what kind of testing has this undergone? In particular I'm interested in upgrade testing, as we don't want to break any old installations. |
|
Hi @terbolous About the testing, I've tested manually deploying a datacenter with this package in: Sadly, i've done no testing on upgrades, but i can easily do so in a few days and fix whatever issue may arise... although i don't foresee any issues. |
|
We can't bundle mysql-connector-java. It is licensed as GPL which is CatX and thus verboten. We can make it a system dependency. |
|
How about switching to https://downloads.mariadb.org/client-java/ |
|
Marcus on [email protected] replies: |
|
bummer that Apache does not allow LGPL. |
|
How about the FOSS license exception? FOSS License List |
|
Marcus on [email protected] replies: |
|
Hi there @rsafonseca Cool to see you contribution, thanks for that, but I think the PRs should be broken down. You listed 11 changes and said that you might have forgotten another few. That's a bit dangerous and also make testing the PR way to expansive for the reviewers. We should have 1 PR per feature/fix, or perhaps a couple of fixes, depending on their size (fixing findbugs is a good example). Another good practice is to add the environment where the things were tested, and also the steps you took to test it, in the PR. Adding those afterwards, as comments, it's also not very good to follow. Reading your list I would say that you have at least 4 PRs.
In addition, the a PR should be independent of any other. Thus, we could for example test 4 and merge it without waiting for 2 or 3. If PR follows that structure I think we can get them merge way faster than now. I hope you appreciate the feedback. We are working to achieve the same goal. Cheers, |
|
I'm with Wilder on this. Thank you for being active and submitting really useful patches - its much appreciated. However, it would be best if you can split the commits into multiples - as 1 fix per commit (or more if related). Mainly, it would be easier to revert a commit - in case something is wrong and loose 1 functionality VS reverting 1 commit because 1 item is broken, but as cascade effect, 10 fixes will be reverted as well. Regards |
|
Hi @wilderrodrigues , @serverchief Thank you for your feedback :) I understand your point, but since there are a lot of changes and most are interconnected or change the same files, breaking it down would make it take a long time to get things done and i'm used to working fast with a lot of changes, sorry about that ;) . This is still not all the cleaning up i'd like to do in packaging, and packing it all together makes it also a lot faster to test for issues, than to do complete tests for a big bunch of PRs individually, although a complete code review will be a bit taxing of course, either way, reviewing 5x 200 lines of code, should be no faster than to review 1000 line of code once, although testing packaging and functionality once is a lot faster than doing it 5x, don't you agree? I will try to break down a some things in the coming days like i did with the last packaging PR, but ultimately, the work goes a lot faster if i'm not waiting for each individual change to get reviewed and merged before moving on to the next step to improve the same thing. This is a particular case because all the changes revolve around the same things: packaging and distribution. I will also be sure to review all the changes myself and add anything relevant i may have forgotten about, if any, to the initial comment to make it easier to follow :) Other than this packaging PR which is something that needed an overhaul in my opinion, I will try to keep my PRs as small as possible as you have suggested. Cheers, |
|
I'm with Wilder & co on this. If you break it down, it's easier to test and thus merge. For instance, the mysql licensing could now potentially hold the complete Erik On Tue, Jun 9, 2015 at 9:10 AM, Rafael da Fonseca [email protected]
|
|
Hi @terbolous I'm here to help, so i'll try to break it down a bit in the coming days as i mentioned :) Btw, the change with mysql has 2 objectives: Either way, do you all mean easier to review? I don't see how testing a bunch of PRs would be faster or easier to test a single one :) |
|
Thanks @rsafonseca, your efforts are well appreciated, don't think otherwise. Small changes equals, atleast usually, a smaller set of testing. So, while some might have the time and willingness to test packaging, they might not have time, the experience or willingness to test the other changes. The bigger a change is, the harder it is to track why it was done, and it's implications, especially when it's not related to a Jira issue/FS or similar. This is not to say that your PR cannot be merged, but waiting for someone to either have tested all the changes, or for enough people to have tested each subset could take time. |
|
Any progress on this PR? Since I really do like the proposal, but my knowledge of Jetty/Tomcat is indeed to limited. I can test the packaging, but I have no idea how to test the rest. |
|
Hi @wido , On this comment #372 (comment) I suggested that the PR should be split so we could tackle the changes in an independent way. Unfortunately, I don't know the current status but I hope that @rsafonseca could bring some light on the subject. Cheers, |
|
Hi @wido |
|
@rsafonseca Can you close this PR? If I understand correctly the work will be split over multiple new PRs. Hope you're doing OK, talk to you soon. |
This closes apache#577 This closes apache#566 This closes apache#562 This closes apache#561 This closes apache#556 This closes apache#555 This closes apache#554 This closes apache#548 This closes apache#544 This closes apache#540 This closes apache#508 This closes apache#384 This closes apache#372
This closes apache#577 This closes apache#566 This closes apache#562 This closes apache#561 This closes apache#556 This closes apache#555 This closes apache#554 This closes apache#548 This closes apache#544 This closes apache#540 This closes apache#384 This closes apache#372
This closes apache#577 This closes apache#566 This closes apache#562 This closes apache#561 This closes apache#556 This closes apache#555 This closes apache#554 This closes apache#548 This closes apache#544 This closes apache#540 This closes apache#384 This closes apache#372
|
anyone working on progressing this PR, I really like it and it has some good things; if no one is I can help take over some things in future (cc @rsafonseca) |
|
We should keep it open though. |
|
tag:pickup |
Changes adapted from PR apache#372 Signed-off-by: Rohit Yadav <[email protected]>
Changes adapted from PR apache#372 Signed-off-by: Rohit Yadav <[email protected]>
Changes adapted from PR apache#372 Signed-off-by: Rohit Yadav <[email protected]>
|
this is old, the writer has left the project it seems and it combines many changes; closing |
|
Just discussed with @rhtyd, We still want this functionality so I will open a smaller PR with a reference to this. |
Changes adapted from PR apache#372 and apache#1546 Signed-off-by: Rohit Yadav <[email protected]> WIP packaging (debian) Signed-off-by: Rohit Yadav <[email protected]> (cherry picked from commit ec1df13) Signed-off-by: Rohit Yadav <[email protected]>
WIP embedded jetty support Changes adapted from PR apache#372 and apache#1546 Signed-off-by: Rohit Yadav <[email protected]>
- New config.json global config file - Customisation: API endpoint, app name, doc link, logo, error and banner images, theme - Basic external plugin support to allow users to write UI plugins in any framework, build and import/plug a html file as integration Signed-off-by: Rohit Yadav <[email protected]> Co-authored-by: Rohit Yadav <[email protected]>
Well, this spruces things up a bit :)
Some of the features/fixes (i may have forgotten a couple as this involved a lot of changes ;) )
The package.sh script packages ASF Tomcat by default, you can package it with Jetty instead by passing -j or --jetty :)
There's still a couple more things to consolidate and a couple more places to remove hardcoding of configs like the cloud user, but i'll take care of that on a later PR :)