Skip to content
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

[CLOUDSTACK-10307] Remove unused things from HostDaoImpl #2438

Merged

Conversation

rafaelweingartner
Copy link
Member

Remove unnecessary annotation of HostDaoImpl. While removing this annotation I noticed that one of the methods were not necessary. While removing it, I found some code in CloudZonesStartupProcessor that was also not used, and removed it.

@DaanHoogland
Copy link
Contributor

DaanHoogland commented Jan 31, 2018

@rafaelweingartner how did you determine they were not used? I hope you didn't rely on an IDE for that.

@rafaelweingartner
Copy link
Member Author

What method are you talking about?
I used the IDE call hierarchy function. It works if all of the projects are compiling without problems. However, I also did a file search. If there is no reference, the method is not used. Then, I built CloudStack to see if something would break.

@DaanHoogland
Copy link
Contributor

great, and with noredist? i'll kick regression tests on this.

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

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

@rafaelweingartner
Copy link
Member Author

I forgot the no redistributable, but I can do it right now.

@blueorangutan
Copy link

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

@rafaelweingartner
Copy link
Member Author

@DaanHoogland I just finished a noredist build, and everything is ok.
I used the following maven command: mvn clean install -P developer,systemvm -Dsimulator -Dnoredist -Dmaven.test.skip=false

@blueorangutan
Copy link

@DaanHoogland I understand these words: "help", "hello", "thanks", "package", "test"
Test command usage: test [mgmt os] [hypervisor] [additional tests]
Mgmt OS options: ['centos6', 'centos7', 'ubuntu']
Hypervisor options: ['kvm-centos6', 'kvm-centos7', 'kvm-ubuntu', 'xenserver-71', 'xenserver-65sp1', 'xenserver-62sp1', 'vmware-65', 'vmware-60u2', 'vmware-55u3', 'vmware-51u1', 'vmware-50u1']
Additional tests: list of space separated tests with paths relative to the test/integration directory, for example: component/test_acl_listvm.py component/test_volumes.py
Note: when additional tests are passed, you need to specify mgmt server os and hypervisor or use the matrix command.

Blessed contributors for kicking Trillian test jobs: ['rhtyd', 'nvazquez', 'PaulAngus', 'borisstoyanov', 'DaanHoogland']

@DaanHoogland
Copy link
Contributor

@blueorangutan test centos7 vmware-60u2

@apache apache deleted a comment from blueorangutan Jan 31, 2018
@blueorangutan
Copy link

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

Copy link
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

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

@rafaelweingartner can you please add JIRA item

@borisstoyanov
Copy link
Contributor

@blueorangutan test centos7 vmware-60u2

@blueorangutan
Copy link

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

@rafaelweingartner rafaelweingartner changed the title Remove unused things from HostDaoImpl [CLOUDSTACK-10307] Remove unused things from HostDaoImpl Feb 26, 2018
@rafaelweingartner
Copy link
Member Author

@borisstoyanov done.
Thanks for the review here.

@borisstoyanov
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Trillian test result (tid-2283)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 24033 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2438-t2283-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_internal_lb.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermitten failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 66 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_hostha_enable_ha_when_host_in_maintenance Error 5.01 test_hostha_kvm.py

@rafaelweingartner
Copy link
Member Author

@borisstoyanov is this "test_hostha_enable_ha_when_host_in_maintenance" failure a false positive?
I have seen this around in some other PRs.
In the log file I see the following:
2018-02-26 19:01:11,248 DEBUG [c.c.a.m.AgentManagerImpl] (API-Job-Executor-63:ctx-62ff4a7f job-2987 ctx-3ead5878) (logid:c3cec415) Can not send command com.cloud.agent.api.MaintainCommand due to Host 2 is not up

It looks like an environment problem.

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Trillian test result (tid-2288)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 27218 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2438-t2288-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_public_ip_range.py
Intermitten failure detected: /marvin/tests/smoke/test_templates.py
Intermitten failure detected: /marvin/tests/smoke/test_usage.py
Intermitten failure detected: /marvin/tests/smoke/test_volumes.py
Smoke tests completed. 64 look OK, 3 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_04_extract_template Failure 128.28 test_templates.py
ContextSuite context=TestISOUsage>:setup Error 0.00 test_usage.py
test_06_download_detached_volume Failure 136.56 test_volumes.py

@rafaelweingartner
Copy link
Member Author

It seems that in this new run the number of errors increased?

@rafaelweingartner
Copy link
Member Author

@borisstoyanov are these errors persistent ones, or should I take a look into them?

@borisstoyanov
Copy link
Contributor

let me re-run them again, I think they might be ignored, but still let's see if they'll appear again
@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Trillian test result (tid-2360)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 24338 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2438-t2360-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Intermitten failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 65 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_04_rvpc_network_garbage_collector_nics Failure 262.94 test_vpc_redundant.py
test_hostha_enable_ha_when_host_in_maintenance Error 0.62 test_hostha_kvm.py

@rafaelweingartner
Copy link
Member Author

Well, now, errors changed. I am not sure if this is a good sign though.

@borisstoyanov
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

@GabrielBrascher
Copy link
Member

Thanks, @rafaelweingartner!
Based on code review and that you have checked all the ways that a code has to be called, this PR LGTM.

Copy link
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

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

LGTM based on test results

@DaanHoogland
Copy link
Contributor

@borisstoyanov @rafaelweingartner i have not seen any succesful tests for vmware on this; not merging!
@blueorangutan test centos7 vmware-60u2

@blueorangutan
Copy link

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

@rafaelweingartner
Copy link
Member Author

So, I wait for the results.

@rafaelweingartner
Copy link
Member Author

@DaanHoogland do you have the test results? It seems that something went wrong and they never got posted here.

@DaanHoogland
Copy link
Contributor

sorry for the late response, @rafaelweingartner . I have no idea what is keeping them, I'll look.

@DaanHoogland
Copy link
Contributor

@blueorangutan test centos7 vmware-65

@blueorangutan
Copy link

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

@blueorangutan
Copy link

Trillian test result (tid-2415)
Environment: vmware-65 (x2), Advanced Networking with Mgmt server 7
Total time taken: 26863 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2438-t2415-vmware-65.zip
Smoke tests completed. 67 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@rafaelweingartner
Copy link
Member Author

@DaanHoogland the test result came and everything seems to be ok.
Do you want to do other tests?

@DaanHoogland
Copy link
Contributor

lgtm

@DaanHoogland DaanHoogland merged commit 0afcec6 into apache:master Mar 27, 2018
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.

5 participants