Skip to content

Refactoring to remove duplicate code.#3152

Merged
yadvr merged 2 commits into
apache:masterfrom
nuagenetworks:feature/cleanup_cpd
Jul 27, 2019
Merged

Refactoring to remove duplicate code.#3152
yadvr merged 2 commits into
apache:masterfrom
nuagenetworks:feature/cleanup_cpd

Conversation

@fmaximus

Copy link
Copy Markdown
Contributor

Description

  • Removing Code Duplication by refactoring Admin Commands.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

How Has This Been Tested?

Added new Unit Tests.

@yadvr yadvr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, regression testing needed.

@yadvr

yadvr commented Mar 26, 2019

Copy link
Copy Markdown
Member

@fmaximus master is unfrozen now, can you fix the conflict. We can merge this after running a final regression test. Thanks.

@fmaximus
fmaximus force-pushed the feature/cleanup_cpd branch from 09edb79 to 21557ad Compare April 3, 2019 21:25
@fmaximus

fmaximus commented Apr 3, 2019

Copy link
Copy Markdown
Contributor Author

Sorry for the delay. I've resolved the conflicts.

@fmaximus
fmaximus force-pushed the feature/cleanup_cpd branch from 21557ad to 39b35b0 Compare April 16, 2019 12:35
@yadvr

yadvr commented May 27, 2019

Copy link
Copy Markdown
Member

@blueorangutan package

@yadvr yadvr added this to the 4.13.0.0 milestone May 27, 2019
@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✖centos7 ✔debian. JID-2790

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2803

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@yadvr

yadvr commented Jun 12, 2019

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2885

@yadvr

yadvr commented Jun 12, 2019

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3691)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 26532 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3152-t3691-kvm-centos7.zip
Smoke tests completed. 71 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@yadvr

yadvr commented Jun 20, 2019

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✖centos6 ✖centos7 ✖debian. JID-2915

@yadvr

yadvr commented Jun 25, 2019

Copy link
Copy Markdown
Member

Hi @DaanHoogland - can you help review and stabilize this PR? Thanks.

@fmaximus
fmaximus force-pushed the feature/cleanup_cpd branch from c2fa404 to 58c4058 Compare June 25, 2019 12:22
@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-121)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 28651 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3152-t121-kvm-centos7.zip
Smoke tests completed. 71 look OK, 1 have error(s)
Only failed tests results shown below:

@yadvr

yadvr commented Jul 10, 2019

Copy link
Copy Markdown
Member

@anuragaw anuragaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - did some manual testing locally on admin vs user API commands but did not test all possible API calls.

@borisstoyanov borisstoyanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fmaximus can you fix the merge conflict pls?

fmaximus added 2 commits July 19, 2019 15:24
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.
@fmaximus
fmaximus force-pushed the feature/cleanup_cpd branch from 99afbe1 to 10a5ccf Compare July 19, 2019 13:29
@yadvr

yadvr commented Jul 22, 2019

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-161

@yadvr

yadvr commented Jul 22, 2019

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@yadvr

yadvr commented Jul 25, 2019

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-187

@yadvr

yadvr commented Jul 25, 2019

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-223)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 29550 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3152-t223-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_internal_lb.py
Intermittent failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 77 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@yadvr

yadvr commented Jul 26, 2019

Copy link
Copy Markdown
Member

@blueorangutan test centos7 xenserver-71

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + xenserver-71) has been kicked to run smoke tests

@yadvr

yadvr commented Jul 26, 2019

Copy link
Copy Markdown
Member

@blueorangutan test centos7 vmware-65u2

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-226)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 31027 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3152-t226-xenserver-71.zip
Intermittent failure detected: /marvin/tests/smoke/test_list_ids_parameter.py
Intermittent failure detected: /marvin/tests/smoke/test_scale_vm.py
Smoke tests completed. 75 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_03_list_snapshots Error 0.05 test_list_ids_parameter.py
test_01_scale_vm Failure 16.58 test_scale_vm.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-227)
Environment: vmware-65u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 38914 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3152-t227-vmware-65u2.zip
Intermittent failure detected: /marvin/tests/smoke/test_network.py
Intermittent failure detected: /marvin/tests/smoke/test_routers.py
Intermittent failure detected: /marvin/tests/smoke/test_snapshots.py
Intermittent failure detected: /marvin/tests/smoke/test_usage.py
Smoke tests completed. 73 look OK, 4 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_reboot_router Error 333.39 test_network.py
test_08_start_router Error 68.72 test_routers.py
test_09_reboot_router Error 0.16 test_routers.py
test_02_list_snapshots_with_removed_data_store Error 1.24 test_snapshots.py
test_01_volume_usage Error 10.43 test_usage.py

@yadvr
yadvr merged commit 7a27e35 into apache:master Jul 27, 2019
@yadvr yadvr mentioned this pull request Aug 1, 2019
5 tasks
yadvr added a commit to shapeblue/cloudstack that referenced this pull request Aug 2, 2019
This reverts commit 7a27e35.

We're near 4.13 RC1, we've low confidence if the changes from apache#3152
would cause other regressions so reverting this. The author may send a
PR again towards 4.14.

Regressions found are all related to template and iso registration and
upload.
@yadvr

yadvr commented Aug 2, 2019

Copy link
Copy Markdown
Member

Reopened it here: #3538

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants