Skip to content

CLOUDSTACK-10109: Fix regression from PR #2295 - #2394

Merged
yadvr merged 1 commit into
apache:masterfrom
shapeblue:travis-debug-fix
Jan 9, 2018
Merged

CLOUDSTACK-10109: Fix regression from PR #2295#2394
yadvr merged 1 commit into
apache:masterfrom
shapeblue:travis-debug-fix

Conversation

@yadvr

@yadvryadvr commented Jan 8, 2018

Copy link
Copy Markdown
Member

It seems a regression has come in, this PR/commit is to test what
fails/takes time on travis.

This is a stabilization PR to fix tests, included in 4.11.

@yadvryadvr added this to the 4.11 milestone Jan 8, 2018
@DaanHoogland

Copy link
Copy Markdown
Contributor

@rhtyd isn't the smoke test PR already for this? can we close that one now?

@yadvr

yadvr commented Jan 8, 2018

Copy link
Copy Markdown
MemberAuthor

@DaanHoogland this is to debug and fix the failures in Travis. I created this dummy PR to detect why job 3 has been failing since last few commits, all due to timeout issues. Based on failures, the issues are with:

| test_01_list_sec_storage_vm | Failure | 0.172 | test_ssvm |
| test_dedicate_public | marvin.cloudstackExc | 100.388 | test_public_ip_range |
| _ip_range_for_system | eption.CloudstackAPI | | |
| _vms_cpvm | Exception | | |

@DaanHoogland

Copy link
Copy Markdown
Contributor

Is see that @rhtyd . But i wonder why the smoke health test PR #2376 wasn't useable for that

@yadvr

yadvr commented Jan 8, 2018

Copy link
Copy Markdown
MemberAuthor

@DaanHoogland using Travis/simulator I found regression introduced in pr #2295. Fixing the title and kick a test round.
@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.

@yadvryadvr changed the title travis: debug which test is failing on travisCLOUDSTACK-10109: Fix regression from PR #2295Jan 8, 2018
@blueorangutan

Copy link
Copy Markdown

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

@yadvr

yadvr commented Jan 8, 2018

Copy link
Copy Markdown
MemberAuthor

@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 Jan 8, 2018

Copy link
Copy Markdown
MemberAuthor

Travis has passed finally! /cc @DaanHoogland @mike-tutowski

@DaanHooglandDaanHoogland 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.

jenkins seems broken now:

Build timed out (after 43 minutes). Marking the build as aborted.
Build was aborted

_ipAddressDao.update(publicIp.getId(), publicIp);

return ip;
return fetchNewPublicIp(dcId, null, null, owner, VlanType.VirtualNetwork, guestNtwkId, isSourceNat, true, null, false, vpcId, displayIp, false);

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.

this is a revert of the code in #2295. Is that functionality now broken?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Yes, that PR incorrectly addressed merge conflict. One of the booleans changed from true to false, this fixes that.

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-2083)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 39405 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2394-t2083-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermitten failure detected: /marvin/tests/smoke/test_deploy_vm_iso.py
Intermitten failure detected: /marvin/tests/smoke/test_iso.py
Intermitten failure detected: /marvin/tests/smoke/test_ssvm.py
Smoke tests completed. 63 look OK, 4 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestDeployVirtioSCSIVM>:teardownError38.63test_deploy_virtio_scsi_vm.py
test_deploy_vm_from_isoError1514.47test_deploy_vm_iso.py
test_01_1_create_iso_with_checksum_sha1_negativeError70.60test_iso.py
test_01_create_iso_with_checksum_sha1Error65.49test_iso.py
test_01_create_iso_with_checksum_sha1Error70.59test_iso.py
test_02_1_create_iso_with_checksum_sha256_negativeError70.58test_iso.py
test_02_create_iso_with_checksum_sha256Error65.47test_iso.py
test_02_create_iso_with_checksum_sha256Error70.55test_iso.py
test_03_1_create_iso_with_checksum_md5_negativeError70.59test_iso.py
test_03_create_iso_with_checksum_md5Error65.47test_iso.py
test_03_create_iso_with_checksum_md5Error70.55test_iso.py
test_04_create_iso_with_no_checksumError65.47test_iso.py
test_04_create_iso_with_no_checksumError70.56test_iso.py
test_01_create_isoFailure1514.64test_iso.py
ContextSuite context=TestISO>:setupError3034.58test_iso.py
test_03_ssvm_internalsFailure3.32test_ssvm.py

@yadvr

yadvr commented Jan 9, 2018

Copy link
Copy Markdown
MemberAuthor

@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.

This fixes regression introduced in PR apache#2295:
- Pass assign=true to fetch new public IP
- Use wait_until instead of sleep+wait in tests
- Loop through list of public IP ranges to match the systemvm gateway
- Fix potential NPE seen when adding simulator host(s)
- Removes aria2 installation from setup_agent.sh using yum, it's already
dependency for cloudstack-agent package
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@blueorangutan

Copy link
Copy Markdown

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

@yadvr

yadvr commented Jan 9, 2018

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

yum install aria2 -y
if [ $? -gt 0 ]
then
printf "failed to install aria2"

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

fyi - this is removed as installing cloudstack-agent will install aria2 and this script assumes a yum-enabled system that will fail on debian/ubuntu etc.

@DaanHoogland

Copy link
Copy Markdown
Contributor

good work @rhtyd thanks for clearing my faulty uderstanding

@yadvr

yadvr commented Jan 9, 2018

Copy link
Copy Markdown
MemberAuthor

Thanks @DaanHoogland are you lgtm on it? (pending test results of course)

@DaanHoogland

Copy link
Copy Markdown
Contributor

lgtm

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File

@yadvr

yadvr commented Jan 9, 2018

Copy link
Copy Markdown
MemberAuthor

Merging this based on test results and code reviews, and also that Travis passed.

Sign up for freeto 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.

3 participants

@yadvr@DaanHoogland@blueorangutan