You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide the option of disabling/Enabling Shared/Isolated/L2 networks, #8442
@alexandremattioli can you comment @kiranchavala I see some discrepancies in your description, though I think there is some merit to this issue. Can you check and improve it?
to allow to undo the on-display flag, we must display it, so an exemption to the non-display directive must be defined to do that. A trivial solution is the non-display networks are visible to admins, but then again they would have to not see them during deploy... I think this is overcomplicated for what we are trying to achieve for the user.
to allow to undo the on-display flag, we must display it, so an exemption to the non-display directive must be defined to do that. A trivial solution is the non-display networks are visible to admins, but then again they would have to not see them during deploy... I think this is overcomplicated for what we are trying to achieve for the user.
yes
we could add a switch button next to the "Projects". this is only for root admins, and applies on other resources (volumes, vm, etc) as well.
for the non-display networks, since they are not displayed, they should not be in the list of networks in vm deployment.
As an admin user from the UI if I can disable "Display network" for a particular network. The admin user must also have the option to enable the "Display network" back.
@kiranchavala and others If I'm understanding it right I guess we are mixing listall functionality with displaynetwork functionality. displaynetwork param description says an optional field, whether to the display the network to the end user or not.
It is an admin only parameter to allow making network not viewable to the end user.
Later admin can list such networks using API, passing the same network:
Also, Kiran there is no param name in listNetworks API.
IMO, list* apis should list all resources for root admins irrespective of the value of displaynetwork, displayvm, displayvolume fields but we have prevented that for all types of accounts for a long, bbf5a91
Activity
DaanHoogland commentedon Jan 22, 2024
@alexandremattioli can you comment
@kiranchavala I see some discrepancies in your description, though I think there is some merit to this issue. Can you check and improve it?
weizhouapache commentedon Jan 22, 2024
display or not-display, not enable/disable, right ?
DaanHoogland commentedon Jan 23, 2024
yes @weizhouapache ,
to allow to undo the on-display flag, we must display it, so an exemption to the non-display directive must be defined to do that. A trivial solution is the non-display networks are visible to admins, but then again they would have to not see them during deploy... I think this is overcomplicated for what we are trying to achieve for the user.
weizhouapache commentedon Jan 23, 2024
yes
we could add a switch button next to the "Projects". this is only for root admins, and applies on other resources (volumes, vm, etc) as well.
for the non-display networks, since they are not displayed, they should not be in the list of networks in vm deployment.
alexandremattioli commentedon Feb 2, 2024
@kiranchavala I'm struggling to see the use case.
Is the idea to disable a network so no new VMs can use it?
kiranchavala commentedon Feb 9, 2024
@alexandremattioli @DaanHoogland @weizhouapache
From the Ui point of view
As an admin user from the UI if I can disable "Display network" for a particular network. The admin user must also have the option to enable the "Display network" back.
The bug related to the issue is
Steps to reproduce the bug.
cmk > create network name=test networkofferingid=1f106372-654f-40ab-abe4-c0258e1b51f1 zoneid=412fd1ab-8341-4fef-9d94-c178fd816613
cmk> list networks name=test
The output is displayed correctly
cmk >update network displaynetwork=false id=9ba79732-9e85-4f21-8af0-c930cece8010
cmk > list networks name=test
cmk > list networks listall=true
No response
cmk > create network name=test2 networkofferingid=1f106372-654f-40ab-abe4-c0258e1b51f1 zoneid=412fd1ab-8341-4fef-9d94-c178fd816613
cmk > list networks name=test
The api response displays that of test2 network which is incorrect
shwstppr commentedon May 9, 2024
@kiranchavala and others If I'm understanding it right I guess we are mixing listall functionality with displaynetwork functionality.
displaynetworkparam description saysan optional field, whether to the display the network to the end user or not.It is an admin only parameter to allow making network not viewable to the end user.
Later admin can list such networks using API, passing the same network:
Also, Kiran there is no param
namein listNetworks API.IMO, list* apis should list all resources for root admins irrespective of the value of displaynetwork, displayvm, displayvolume fields but we have prevented that for all types of accounts for a long, bbf5a91