-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable CRUD for Network provider elements for non-OpenStack providers #1007
Disable CRUD for Network provider elements for non-OpenStack providers #1007
Conversation
@Ladas Please review. I also need a confirmation on the following -- 2.3.1 :009 > EmsNetwork.first
ManageIQ::Providers::NetworkManager Load (2.4ms) SELECT "ext_management_systems".* FROM "ext_management_systems" WHERE "ext_management_systems"."type" IN ('ManageIQ::Providers::NetworkManager', 'ManageIQ::Providers::Google::NetworkManager', 'ManageIQ::Providers::Nuage::NetworkManager', 'ManageIQ::Providers::Openstack::NetworkManager', 'ManageIQ::Providers::Amazon::NetworkManager', 'ManageIQ::Providers::Azure::NetworkManager', 'ManageIQ::Providers::Vmware::NetworkManager') ORDER BY "ext_management_systems"."id" ASC LIMIT $1 [["LIMIT", 1]]
ManageIQ::Providers::NetworkManager Inst Including Associations (0.2ms - 1rows)
=> #<ManageIQ::Providers::Openstack::NetworkManager id: 1000000000025, name: "OSP7 Packstack (10.39.167.117) Network Manager", created_on: "2017-04-11 19:24:28", updated_on: "2017-04-11 19:24:28", guid: "7b279290-1eec-11e7-a56e-b8e856429d10", zone_id: nil, type: "ManageIQ::Providers::Openstack::NetworkManager", api_version: nil, uid_ems: nil, host_default_vnc_port_start: nil, host_default_vnc_port_end: nil, provider_region: nil, last_refresh_error: nil, last_refresh_date: nil, provider_id: nil, realm: nil, tenant_id: nil, project: nil, parent_ems_id: 1000000000007, subscription: nil, last_metrics_error: nil, last_metrics_update_date: nil, last_metrics_success_date: nil, tenant_mapping_enabled: nil> Note that the 2.3.1 :010 > NetworkRouter.class_by_ems(EmsNetwork.first).supports_create?
ManageIQ::Providers::NetworkManager Load (1.5ms) SELECT "ext_management_systems".* FROM "ext_management_systems" WHERE "ext_management_systems"."type" IN ('ManageIQ::Providers::NetworkManager', 'ManageIQ::Providers::Google::NetworkManager', 'ManageIQ::Providers::Nuage::NetworkManager', 'ManageIQ::Providers::Openstack::NetworkManager', 'ManageIQ::Providers::Amazon::NetworkManager', 'ManageIQ::Providers::Azure::NetworkManager', 'ManageIQ::Providers::Vmware::NetworkManager') ORDER BY "ext_management_systems"."id" ASC LIMIT $1 [["LIMIT", 1]]
ManageIQ::Providers::NetworkManager Inst Including Associations (0.2ms - 1rows)
=> false Does that seem right that It returns a |
@tzumainn could you verify which actions are supported on OpenStack? |
@Ladas This looks right to me - we support :create for all three of these. |
@tzumainn In that case, |
@AparnaKarve Ah, sorry - it looks like the network router code hasn't been updated yet; it supports :create_network_router instead |
abf6fe8
to
d0f2689
Compare
Checked commits AparnaKarve/manageiq-ui-classic@a4dc1fa~...d0f2689 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Thanks @tzumainn. |
…rud_for_non_openstack Disable CRUD for Network provider elements for non-OpenStack providers (cherry picked from commit 7cf860a) https://bugzilla.redhat.com/show_bug.cgi?id=1442150
Fine backport details:
|
@miq-bot remove_label euwe/conflict |
EUWE PR: ManageIQ/manageiq#15077 |
Backported to Euwe via ManageIQ/manageiq#15077 |
Disable CRUD for Network provider elements (like
Network Routers
,Floating IPs
,Security Groups
) for non-Openstack providers.https://bugzilla.redhat.com/show_bug.cgi?id=1440684
Configuration Menu for
Networks -> Security Groups
when at least one OpenStack Network Manager existsAdd a New Security Group
is enabledConfiguration Menu for
Networks -> Security Groups
when OpenStack Network Managers do not existAdd a New Security Group
is disabledScreenshots for
Add a New Network Router
andAdd a new Floating IP
would be similar in the presense/absence of an OpenStack Network Manager