Uh oh!
There was an error while loading. Please reload this page.
Add new command to update security group name - #3739
Conversation
Uh oh!
There was an error while loading. Please reload this page.
0d7ff87 to
b1a5aa6Compareyadvr
commented
Jan 28, 2020
@ravening few points:
|
By default, once we create a security group we cant change its name. In this feature, we introduce a new API command "updateSecurityGroup" which allows us to rename the security group name. Although we can't change the name of the "default" security group.
b1a5aa6 to
d8a442eCompareravening
commented
Jan 30, 2020
@rhtyd I have made the necessary changes. Please review it again |
yadvr
commented
Jan 31, 2020
thanks @ravening |
blueorangutan
commented
Jan 31, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Jan 31, 2020
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-725 |
yadvr
commented
Jan 31, 2020
@blueorangutan test |
blueorangutan
commented
Jan 31, 2020
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
yadvr
commented
Feb 6, 2020
@blueorangutan package |
blueorangutan
commented
Feb 6, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
yadvr
commented
Feb 6, 2020
I did not test it. |
blueorangutan
commented
Feb 6, 2020
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-763 |
DaanHoogland
left a comment
There was a problem hiding this comment.
code lgtm, remarks are definitely not -1-worthy. I am planning a quick test in our lab (time and lab space are at short hand atm)
| @Override | ||
| public String getCommandName() { | ||
| return s_name; |
There was a problem hiding this comment.
I'd rather see it constructed form the API name .toLower()+"response". no biggy
| return securityGroup.getAccountId(); | ||
| } | ||
| return Account.ACCOUNT_ID_SYSTEM; // no account info given, parent this command to SYSTEM so ERROR events are tracked |
There was a problem hiding this comment.
isn't this an exceptional situation? wouldn't there always be at least root admin responsible for creating a sec-group?
| public SecurityGroupVO doInTransaction(TransactionStatus status) { | ||
| SecurityGroupVO group = _securityGroupDao.lockRow(groupId, true); | ||
| if (group == null) { | ||
| throw new InvalidParameterValueException("Unable to find security group by id " + groupId); |
There was a problem hiding this comment.
the message here could better be "unable to acquire lock for security group with id " + groupId
DaanHoogland
commented
Feb 6, 2020
tested and works, just one remark. I think this is a generic details page problem in cloudstack but after saving, the old name is still used instead of the altered one. |
andrijapanicsb
commented
Feb 7, 2020
log out and in, or force refresh page - I recall similar issues on other parts of the gui |
yadvr
commented
Feb 12, 2020
@blueorangutan package |
blueorangutan
commented
Feb 12, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Feb 12, 2020
Packaging result: ✖centos6 ✖centos7 ✔debian. JID-819 |
GabrielBrascher
commented
Feb 12, 2020
@blueorangutan package |
blueorangutan
commented
Feb 12, 2020
@GabrielBrascher a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Feb 12, 2020
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-841 |
yadvr
commented
Feb 14, 2020
@blueorangutan package |
blueorangutan
commented
Feb 14, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Feb 14, 2020
Packaging result: ✖centos6 ✖centos7 ✖debian. JID-862 |
andrijapanicsb
commented
Feb 14, 2020
will be regression tested in Trillian, when possible. thx |
yadvr
commented
Feb 17, 2020
@blueorangutan package |
blueorangutan
commented
Feb 17, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Feb 17, 2020
Packaging result: ✖centos6 ✔centos7 ✖debian. JID-884 |
yadvr
commented
Feb 18, 2020
@blueorangutan package |
blueorangutan
commented
Feb 18, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Feb 18, 2020
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-889 |
yadvr
commented
Feb 18, 2020
@blueorangutan test |
blueorangutan
commented
Feb 18, 2020
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Feb 18, 2020
Trillian test result (tid-1027)
|
yadvr
commented
Feb 19, 2020
@ravening can you enable the specific UI action in primate: https://github.com/apache/cloudstack-primate/blob/master/src/config/section/network.js#L188 |
By default, once we create a security group we cant change its name. In this feature, we introduce a new API command "updateSecurityGroup" which allows us to rename the security group name. Although we can't change the name of the "default" security group.
By default, once we create a security group we cant change its name. In this feature, we introduce a new API command "updateSecurityGroup" which allows us to rename the security group name. Although we can't change the name of the "default" security group.
By default, once we create a security group we cant change its name. In this feature, we introduce a new API command "updateSecurityGroup" which allows us to rename the security group name. Although we can't change the name of the "default" security group.
By default, once we create a security group we cant change its name. In this feature, we introduce a new API command "updateSecurityGroup" which allows us to rename the security group name. Although we can't change the name of the "default" security group.
Description
By default, once we create a security group we cant change its name.
In this feature, we introduce a new API command "updateSecurityGroup"
which allows us to rename the security group name. Although we can't
change the name of the "default" security group.
Types of changes
Screenshots (if appropriate):
Navigate to "Network" section in the main window and select "Security groups" from the drop-down menu in the top left section
Click on "Add Security group" to create a new security group

Once the security group is created you can rename it using the edit button
How Has This Been Tested?
Testing
New integration test case has been added which validates different test cases in updating the security group name. This can be run using
nosetests --with-marvin --marvin-config=<config file> test/integration/component/test_update_security_group.py