Refactoring to remove duplicate code (by Frank/Nuage)#3538
Refactoring to remove duplicate code (by Frank/Nuage)#3538yadvr merged 3 commits intoapache:masterfrom
Conversation
|
@fmaximus please see #3537, we'll need to revert your PR #3152 for this purpose I've reopened your PR from the original branch. Kindly help test and fix regressions discovered in your branch, esp around registration and upload of archived templates and iso (templates/isos that are extractable like *.bz2, *gz etc). |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-230 |
|
@blueorangutan package |
|
@fmaximus thanks for self assigning, can you help fix the conflict? I'll try and help you to get this merge now that master is not frozen anymore. |
Make use of Java 8 default implementation in interfaces, to remove code duplication between XxxCmd and XxxCmdAsAdmin.
Refactor checkFormat by pre-calculating the supported extensions. Also make use of this in ImageStoreUtil. Makes it easier to add new file and compression formats.
713b804 to
94d9858
Compare
|
@rhtyd Conflict is resolved. |
|
Thanks @fmaximus I'll kick a build |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-277 |
|
@blueorangutan test matrix |
|
@rhtyd a Trillian-Jenkins matrix job (centos6 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
(el6 failure expected) |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-283 |
|
@blueorangutan test matrix |
|
@rhtyd a Trillian-Jenkins matrix job (centos7 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
Trillian test result (tid-373)
|
|
Trillian test result (tid-375)
|
|
@fmaximus @rhtyd does this also remove this global settings? |
|
@svenvogel No, that's not part of it. This was a change I had been working on, |
|
@fmaximus thanks for answer. will this removed from you in a seperated PR or should the community track this? |
|
@svenvogel That should go in a separate PR for sure, as it's a bugfix which should be fixed in the same release as Remove Nuage Plugin. |
|
CentOS7 job failed, rekicking |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-377)
|
|
LGTM, tests LGTM as well. Using lgtms from the original PR, merging this. |
Refactor: Cleanup duplicate code Make use of Java 8 default implementation in interfaces, to remove code duplication between XxxCmd and XxxCmdAsAdmin. Refactor checkFormat by pre-calculating the supported extensions. Also make use of this in ImageStoreUtil. Makes it easier to add new file and compression formats.

The #3537 would revert the merged PR #3152 as we're close to 4.13 RC1 and have low confidence on what other regressions it might add. This simply re-creates PR #3152 using the same source fork/branch. We can work on this PR and attempt again to merge towards 4.14 after fixing discovered regressions and a more thorough review and testing.
Types of changes