api, server: fix add-remove vpn user without vpn owner#5850
Conversation
Fixes apache#5711 ACS should not add a new user in Add state when the owner account does not have VPN access. While removing VPN user ACS should not fail completely when owner account ahs no VPN. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2249 |
|
@blueorangutan test |
|
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@blueorangutan package |
|
@sureshanaparti a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✖️ debian ✔️ suse15. SL-JID 2260 |
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2282 |
|
@blueorangutan test |
|
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Packaging result: ✖️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2514 |
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 2518 |
|
@blueorangutan package |
|
@weizhouapache a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✔️ suse15. SL-JID 2521 |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
|
||
| List<? extends VpnUser> listVpnUsers(long vpnOwnerId, String userName); | ||
|
|
||
| void removeVpnUserWithoutValidVpnOwner(long id); |
There was a problem hiding this comment.
@shwstppr is removeVpnUserWithoutValidVpnOwner used somethere ?
There was a problem hiding this comment.
@weizhouapache
--edit--
removed unused method
There was a problem hiding this comment.
@shwstppr it uses another method removeVpnUserWithoutRemoteAccessVpn
There was a problem hiding this comment.
@weizhouapache sorry realized that. I've removed the unused method now
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2531 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
weizhouapache
left a comment
There was a problem hiding this comment.
I have tested some scenarios, the following are good.
create vpn users for other accounts (I believe same results when create vpn users for same account by api)
(1) has no isolated network
(2) has isolated network in Allocated state, and no remote access vpn
(3) has isolated network in Implemented state, and no remote access vpn
(4) has isolated network in Implemented state, and remote access vpn is enabled
(5) has isolated network in Allocated state, and remote access vpn is enabled
I did not test
(1) has multiple isolated networks, but fail to apply vpn user in one of the VRs.
|
Trillian test result (tid-3240)
|
|
@blueorangutan test |
|
@weizhouapache a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Hi @shwstppr @weizhouapache what's the concensus here, is this PR good to go / merge? |
@sureshanaparti |
borisstoyanov
left a comment
There was a problem hiding this comment.
LGTM, manually tested
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@blueorangutan package |
|
@sureshanaparti a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2538 |
|
Trillian test result (tid-3257)
|
Not noticed this test failure in the last run, seems to be intermittent and is unrelated to this PR changes. |
* api, server: fix add-remove vpn user without vpn owner Fixes apache#5711 ACS should not add a new user in Add state when the owner account does not have VPN access. While removing VPN user ACS should not fail completely when owner account ahs no VPN. * change , fixes * remove unused method Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Description
Fixes #5711
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?