| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
LGTM on the code
Sorry, something went wrong.
|
@ravening few points:
|
Sorry, something went wrong.
There was a problem hiding this comment.
Please see my comment.
Sorry, something went wrong.
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.
@rhtyd I have made the necessary changes. Please review it again |
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-725 |
Sorry, something went wrong.
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
I did not test it. |
Sorry, something went wrong.
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-763 |
Sorry, something went wrong.
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)
Sorry, something went wrong.
|
|
||
| @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
Sorry, something went wrong.
| 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?
Sorry, something went wrong.
| 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
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
log out and in, or force refresh page - I recall similar issues on other parts of the gui |
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✖centos6 ✖centos7 ✔debian. JID-819 |
Sorry, something went wrong.
|
@GabrielBrascher a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-841 |
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✖centos6 ✖centos7 ✖debian. JID-862 |
Sorry, something went wrong.
|
will be regression tested in Trillian, when possible. thx |
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✖centos6 ✔centos7 ✖debian. JID-884 |
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-889 |
Sorry, something went wrong.
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Sorry, something went wrong.
|
Trillian test result (tid-1027)
|
Sorry, something went wrong.
|
@ravening can you enable the specific UI action in primate: https://github.com/apache/cloudstack-primate/blob/master/src/config/section/network.js#L188 |
Sorry, something went wrong.
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.
| Back | FazBrowse Home | New Git URL |
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