Skip to content

server: allow normal users to create isolated network without source nat#5920

Merged
sureshanaparti merged 1 commit into
apache:4.16from
weizhouapache:4.16-allow-normal-user-snat
Feb 3, 2022
Merged

server: allow normal users to create isolated network without source nat#5920
sureshanaparti merged 1 commit into
apache:4.16from
weizhouapache:4.16-allow-normal-user-snat

Conversation

@weizhouapache
Copy link
Copy Markdown
Member

Description

This PR allows normal users to create isolated networks without source nat.

fixes #5897

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)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

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

@DaanHoogland
Copy link
Copy Markdown
Contributor

your code looks good @weizhouapache can you think of the testing we need to do for this?
The obvious is just creating a network as normal user with a network offering without source-nat. But other than that?
Or do we just let it go with the generic regression testing on the RC?

@blueorangutan
Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2420

@weizhouapache
Copy link
Copy Markdown
Member Author

your code looks good @weizhouapache can you think of the testing we need to do for this? The obvious is just creating a network as normal user with a network offering without source-nat. But other than that? Or do we just let it go with the generic regression testing on the RC?

@DaanHoogland
I think we need to test the network creation with different network type, by different account type.
in my opinion, the expected results are
(1) root admin, can create shared, L2 and isolated with/without source nat
(2) domain admin, can create L2 and isolated with/without source nat
(2) normal user, can create L2 and isolated with/without source nat

Other features like firewall, lb, pf, static nat and vpc should work.

@weizhouapache
Copy link
Copy Markdown
Member Author

@blueorangutan test

@apache apache deleted a comment from blueorangutan Feb 2, 2022
@blueorangutan
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

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

code LGTM

@blueorangutan
Copy link
Copy Markdown

Trillian test result (tid-3114)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 31602 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5920-t3114-kvm-centos7.zip
Smoke tests completed. 92 look OK, 0 have errors
Only failed tests results shown below:

Test Result Time (s) Test File

Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

@DaanHoogland
Copy link
Copy Markdown
Contributor

(1) root admin, can create shared, L2 and isolated with/without source nat
(2) domain admin, can create L2 and isolated with/without source nat
(2) normal user, can create L2 and isolated with/without source nat

above tested and functional, the with sourcenet offerings used were with full services enabled so

Other features like firewall, lb, pf, static nat and vpc should work.

should all work

Copy link
Copy Markdown
Contributor

@shwstppr shwstppr left a comment

Choose a reason for hiding this comment

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

Code LGTM

@sureshanaparti sureshanaparti merged commit 4a1ebb3 into apache:4.16 Feb 3, 2022
@weizhouapache weizhouapache deleted the 4.16-allow-normal-user-snat branch December 9, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants