Skip to content

[4.11] Fix set initial reservation on public IP ranges#2980

Merged
rafaelweingartner merged 2 commits into
apache:4.11from
shapeblue:iprangedomainuifix
Nov 7, 2018
Merged

[4.11] Fix set initial reservation on public IP ranges#2980
rafaelweingartner merged 2 commits into
apache:4.11from
shapeblue:iprangedomainuifix

Conversation

@nvazquez
Copy link
Copy Markdown
Contributor

Description

Fix initial reservation on public IP range addition. Also, if the range is dedicated for system VMs do not allow dedicating it to any account

Fixes: #2929

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)

Screenshots (if appropriate):

How Has This Been Tested?

  • Set reservation to a domain, add range. Verify domain is set to the domain.

@nvazquez nvazquez changed the title Iprangedomainuifix Fix set initial reservation on public IP ranges Oct 29, 2018
@nvazquez nvazquez changed the title Fix set initial reservation on public IP ranges [4.11] Fix set initial reservation on public IP ranges Oct 29, 2018
@yadvr
Copy link
Copy Markdown
Member

yadvr commented Oct 30, 2018

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

@yadvr
Copy link
Copy Markdown
Member

yadvr commented Oct 30, 2018

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

// This VLAN is domain-wide, so create a DomainVlanMapVO entry
//final DomainVlanMapVO domainVlanMapVO = new DomainVlanMapVO(domain.getId(), vlan.getId());
//_domainVlanMapDao.persist(domainVlanMapVO);
final DomainVlanMapVO domainVlanMapVO = new DomainVlanMapVO(domain.getId(), vlan.getId());
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.

the rest of the change seems trivial. I just wonder why these lines where commented in the first place. Can you explain @nvazquez ?

Copy link
Copy Markdown
Contributor

@svenvogel svenvogel Oct 30, 2018

Choose a reason for hiding this comment

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

Hi @nvazquez as i can say. we tested it. it works now! Great work!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks @svenvogel for testing it.

@DaanHoogland it was conflicting with the public IP range retrieval for system VMs. If the selected range was for system VMs then it won't be considered because of the entry on domain_vlan_map

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.

@nvazquez is there any problem to merge it?

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-3129)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 23742 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2980-t3129-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_ssvm.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Intermittent 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
runTest Error 0.00 test_vm_life_cycle.py
test_04_rvpc_network_garbage_collector_nics Failure 261.39 test_vpc_redundant.py

@svenvogel
Copy link
Copy Markdown
Contributor

@nvazquez will it merged?

@nvazquez
Copy link
Copy Markdown
Contributor Author

nvazquez commented Nov 7, 2018

@DaanHoogland @borisstoyanov @rafaelweingartner are we ok with this fix?

Copy link
Copy Markdown
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

@rafaelweingartner rafaelweingartner added this to the 4.11.2.0 milestone Nov 7, 2018
@rafaelweingartner rafaelweingartner merged commit 7d8eb37 into apache:4.11 Nov 7, 2018
@nvazquez nvazquez deleted the iprangedomainuifix branch November 7, 2018 16:04
Tonitzpp pushed a commit to scclouds/cloudstack that referenced this pull request Dec 18, 2025
Reverte o !1037

Closes apache#2980

See merge request scclouds/scclouds!1257
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