Closed jeffpak closed 1 month ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/169135298
The labels on this github issue will be updated when the story is started.
Hey @jeffpak thanks for this issue. We plan on building the security group commands on the v7 cf CLI soon and will review this to see how we an help. Those resources are next up in our roadmap (next two months). Thanks again.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed.
Thank you for your submission. If you still run into this issue with the latest CLI v8, please open a new ticket.
Please fill out the issue checklist below and provide ALL the requested information.
CF_TRACE=1
to help debug the issue.Describe the bug and the command you saw an issue with When trying to bind a security group to an org with no spaces (
cf bind-security-group <security-group> <org>
), runningcf security-groups
shows nothing. We would have expected the output after callingcf bind-security-group
to be similar to the result of callingcf bind-<running | staging>-security-group <security-group>
, where output would show that all spaces inside of the organization are now under the effect of the security group.What happened
After trying to bind a security group to an org with no spaces inside of it, we get the following output:
Expected behavior We would have expected this output:
where
system
is the name of the org we chose to bind to.Returning an error when binding the ASG could also suffice, although that would introduce fundamentally different behavior from
cf bind-<running | staging>-security-group
(which does not care if there are no spaces inside the org).To Reproduce Steps to reproduce the behavior; include the exact CLI commands and verbose output:
cf create-security-group dummy-group /path/to/json
cf create-org o
cf bind-security-group dummy-group o
cf security-groups
Provide more context
We believe that this bug has to do with how the
bind-security-group
command works internally. It does a loop inside of the org to determine all the spaces, and then will bind the security group to each space. So having no spaces would result in no groups being bound. We believe that there should be parity in behavior withcf bind-staging-security-group
orcf bind-running-security-group
. Even if there are no spaces, the user should either know that their command successfully executed for the organization, or that nothing happened as a result of there being no spaces.For reference, this is the current output of
cf security-groups
when there are spaces inside of the org.Submitted by the CF Networking Program