Public bug reported: When you create the security group with leading and trailing white spaces in security group name, you can see it using "nova secgroup-list" command, where as in Horizon dashboard under Security Group, the same security group name is displayed without leading and trailing white spaces.
If you click on Edit security group, then security group name will be displayed with leading and trailing white spaces. Steps to reproduce: 1. Create security group with leading and trailing white spaces in name. nova secgroup-create ' Security Group Name ' 'Security Group Description' 2. Run "secgroup-list" from command line you can see Security Group Name with leading and trailing spaces. nova secgroup-list +----+-------------------------+----------------------------+ | Id | Name | Description | +----+-------------------------+----------------------------+ | 2 | Security Group Name | Security Group Description | | 1 | default | default | +----+-------------------------+----------------------------+ 3. Login to the horizon dashboard. 4. Click on "Access & Security link from the tab. 5. It will show you the list of available security groups. 6. Check for the security group name you have created. 7. Here it will display the name as "Security Group Name" instead of " Security Group Name ". 8. Click on More button and select "Edit Security Group" 9. In Popup box security group will be displayed with leading and trailing white spaces. IMO, We should display the security group names on the dashboard as it is stored in the database i.e. with leading and trailing white spaces. If to remove the leading and trailing spaces from the name while creating security groups, we need to write migration script to update the existing security groups to remove the leading and trailing spaces in existing names. ** Affects: horizon Importance: Undecided Assignee: Abhishek Kekane (abhishek-kekane) Status: New ** Tags: ntt ** Changed in: horizon Assignee: (unassigned) => Abhishek Kekane (abhishek-kekane) ** Description changed: When you create the security group with leading and trailing white spaces in security group name, you can see it using "nova secgroup-list" command, where as in Horizon dashboard under Security Group, the same security group name is displayed without leading and trailing white spaces. If you click on Edit security group, then security group name will be displayed with leading and trailing white spaces. - Steps to reproduce: 1. Create security group with leading and trailing white spaces in name. - nova secgroup-create ' Security Group Name ' 'Security Group Description' + nova secgroup-create ' Security Group Name ' 'Security Group Description' 2. Run "secgroup-list" from command line you can see Security Group Name with leading and trailing spaces. - nova secgroup-list + nova secgroup-list - +----+-------------------------+----------------------------+ - | Id | Name | Description | - +----+-------------------------+----------------------------+ - | 2 | Security Group Name | Security Group Description | - | 1 | default | default | - +----+-------------------------+----------------------------+ + +----+-------------------------+----------------------------+ + | Id | Name | Description | + +----+-------------------------+----------------------------+ + | 2 | Security Group Name | Security Group Description | + | 1 | default | default | + +----+-------------------------+----------------------------+ 3. Login to the horizon dashboard. 4. Click on "Access & Security link from the tab. 5. It will show you the list of available security groups. 6. Check for the security group name you have created. 7. Here it will display the name as "Security Group Name" instead of " Security Group Name ". 8. Click on More button and select "Edit Security Group" 9. In Popup box security group will be displayed with leading and trailing white spaces. - - IMO, We should display the security group names on the dashboard as it is stored in - the database. + IMO, We should display the security group names on the dashboard as it + is stored in the database i.e. with leading and trailing white spaces. If to remove the leading and trailing spaces from the name while creating security groups, we need to write migration script to update the existing security groups to remove the leading and trailing spaces in existing names. -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1291367 Title: Leading, trailing spaces are truncated for security group names on dashboard Status in OpenStack Dashboard (Horizon): New Bug description: When you create the security group with leading and trailing white spaces in security group name, you can see it using "nova secgroup-list" command, where as in Horizon dashboard under Security Group, the same security group name is displayed without leading and trailing white spaces. If you click on Edit security group, then security group name will be displayed with leading and trailing white spaces. Steps to reproduce: 1. Create security group with leading and trailing white spaces in name. nova secgroup-create ' Security Group Name ' 'Security Group Description' 2. Run "secgroup-list" from command line you can see Security Group Name with leading and trailing spaces. nova secgroup-list +----+-------------------------+----------------------------+ | Id | Name | Description | +----+-------------------------+----------------------------+ | 2 | Security Group Name | Security Group Description | | 1 | default | default | +----+-------------------------+----------------------------+ 3. Login to the horizon dashboard. 4. Click on "Access & Security link from the tab. 5. It will show you the list of available security groups. 6. Check for the security group name you have created. 7. Here it will display the name as "Security Group Name" instead of " Security Group Name ". 8. Click on More button and select "Edit Security Group" 9. In Popup box security group will be displayed with leading and trailing white spaces. IMO, We should display the security group names on the dashboard as it is stored in the database i.e. with leading and trailing white spaces. If to remove the leading and trailing spaces from the name while creating security groups, we need to write migration script to update the existing security groups to remove the leading and trailing spaces in existing names. To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1291367/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp