Commit Graph

147 Commits

Author SHA1 Message Date
Pedro Martins 1db1764749 Add NAT rules to the floating IP workflow
The floating IP workflow is now able to manage NAT
rules (portforwarding) if the floating IP is not
associated with any NICs (ports).

This patch is the one of a series of patches
to implement floating ip port forwarding with
port ranges.

The specification is defined in:
https://github.com/openstack/neutron-specs/blob/master/specs/wallaby/port-forwarding-port-ranges.rst

Implements: blueprint https://blueprints.launchpad.net/neutron/+spec/floatingips-portforwarding-ranges
Change-Id: Id715da6591124de45f41cc367bf39a6bfe190c9a
2023-03-01 10:38:16 -03:00
Akihiro Motoki cd7c1b5110 Address RemovedInDjango40Warning (2)
django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(),
ungettext(), and ungettext_lazy() are deprecated in favor of the
functions that they’re aliases for: django.utils.translation.gettext(),
gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy().

https://docs.djangoproject.com/en/4.0/releases/3.0/#id3

Change-Id: I77878f84e9d10cf6a136dada81eabf4e18676250
2022-02-04 16:22:07 +09:00
zitptan 1800750804 Add Create QoS operation to Network QoS Panel
Enabled Network QoS panel and added a button for
creating a new network qos policy with parameters
name(string), description(maxlen-255), and
shared(checkbox)

Partially-Implements: https://blueprints.launchpad.net/horizon/+spec/create-network-qos-policy

Change-Id: Ifabfac7553ddbb65fe387187da5dd2fafad31351
2021-08-09 13:12:02 +00:00
manchandavishal 1d39ac761f Add Volume backups support for admin panel
This commit allows admin to list/show cinder volume backups
using horizon dashboard and the user can perform the
following table action :
1. backup-restore
2. backup-delete
3. update backup-state
4. backup force-delete

Implements https://blueprints.launchpad.net/horizon/+spec/add-volume-backups-support-for-admin-panel

Change-Id: I2fea140a972eb4bd4f18ad1c83cfa4df58c23f6c
2021-03-05 00:15:08 +00:00
Akihiro Motoki 431fd6c16b Drop cinder consistency group support
Cinder consistency group has been replaced by the generic group feature.
Horizon support of the generic group (in the project dashboard) is
available since Rocky release and it covers all existing support
for consistency group in horizon.

The consistency group support is horizon was marked as deprecated
in Stein release [1].

This commit drops the consistency group support.

[1] https://review.openstack.org/#/c/626846/

Change-Id: I11187d2b03b7e0033a6c6ba3f8be25b8b5e4dd74
2019-05-03 18:16:23 +00:00
Zuul 1ace678b2d Merge "Add volume-group snapshot for admin panel" 2019-02-21 15:53:12 +00:00
manchandavishal 9497a23723 Add volume-group snapshot for admin panel
This commit allow admin to list/show and delete volume-group snapshots
using horizon dashboard.

Partially-Implements blueprint cinder-generic-volume-groups

Change-Id: If00d156a7a56ed699425b35ac60314c3a8cd049c
2019-02-15 08:02:31 +00:00
manchandavishal 5764aa588c Add volume group-type list/show support for admin panel
This commit allow admin to list/show cinder volume group-type
using horizon dashboard and user can perform the following
table action :
1. group-type-create
2. group-type-delete
3. group-type-update

TODO:
1.group-type-specs support

Partially-Implements blueprint cinder-generic-volume-groups

Change-Id: Iea18913765cda146a0fcae7abe64c999a29cccfe
2019-02-06 18:44:35 +00:00
Zuul 48a60ad524 Merge "Add volume group list/show support for admin panel" 2019-01-25 08:25:18 +00:00
manchandavishal c2a3c62039 Add volume group list/show support for admin panel
This commit allows admin to list /show cinder volume groups
using horizon dashboard.

TODO:
1. Modify/Delete volume groups

Partially-Implements blueprint cinder-generic-volume-groups

Change-Id: I75d463204cf83492b30523f46dd0507bbb86dd2e
2019-01-23 10:11:53 +00:00
Akihiro Motoki ac7ac272b3 pylint: fix several coding convention violations
openstack_dashboard/context_processors.py:94:15: C0122: Comparison should be link['url'] != 'horizon:project:api_access:openrcv2' (misplaced-comparison-constant)
openstack_dashboard/settings.py:467:4: C0412: Imports from package horizon are not grouped (ungrouped-imports)
openstack_dashboard/enabled/_1370_project_vg_snapshots.py:9:0: C0301: Line too long (86/80) (line-too-long)
openstack_dashboard/enabled/_1360_project_volume_groups.py:9:0: C0301: Line too long (85/80) (line-too-long)
openstack_dashboard/usage/base.py:62:8: W0106: Expression "[instance_list.extend(u.server_usages) for u in self.usage_list]" is assigned to nothing (expression-not-assigned)
openstack_dashboard/dashboards/project/images/utils.py:43:12: W0106: Expression "[public_images.append(image) for image in images]" is assigned to nothing (expression-not-assigned)
openstack_dashboard/dashboards/project/images/utils.py:75:12: W0106: Expression "[community_images.append(image) for image in images]" is assigned to nothing (expression-not-assigned)
openstack_dashboard/api/glance.py:47:4: C0412: Imports from package glanceclient are not grouped (ungrouped-imports)
openstack_dashboard/api/cinder.py:60:4: C0412: Imports from package cinderclient are not grouped (ungrouped-imports)
openstack_auth/user.py:358:4: E0211: Method has no argument (no-method-argument)
openstack_auth/user.py:362:4: E0211: Method has no argument (no-method-argument)
openstack_dashboard/api/keystone.py:75:4: C0412: Imports from package keystoneclient are not grouped (ungrouped-imports)
horizon/loaders.py:43:16: W0706: The except handler raises immediately (try-except-raise)
horizon/themes.py:174:8: W0706: The except handler raises immediately (try-except-raise)

Change-Id: I40cf3ffbc4519657e11180d2e2fe7401387c5556
2019-01-17 00:05:27 +09:00
shutingm d65ebe2054 Add RBAC policies feature to horizon dashboard
Add RBAC Policies panel to support Role-Based Access Control
functionality.

Implements: blueprint rbac-policies
Change-Id: I883ad629d735dadf49e8bf9c50475050fdfcf797
2019-01-02 17:05:07 +08:00
Akihiro Motoki 32d463a298 Generic volume group support
This commit adds cinder generic group support.
Consistency group support are not shown if the generic group
support is available.

blueprint cinder-generic-volume-groups
Change-Id: I038eeaf2508926f18b6053db0082a8aa3f3e20c6
2018-06-09 06:39:18 +00:00
Colleen Murphy 2d69444bad Add support for application credentials
This patch adds support for creating application credentials in
keystone[1]. Application credentials can be created by any user for
themselves. An application credential is created for the currently
selected project. A user may provide their own secret for the application
credential, or may allow keystone to generate a secret for them. After
the application credential is created, the secret is revealed once to
the user. At that point they may download a clouds.yaml or openrc file
that contains the application credential secret and will enable them to
use it to authenticate. The secret is not revealed again.

[1] https://docs.openstack.org/keystone/latest/user/application_credentials.html

bp application-credentials

Depends-On: https://review.openstack.org/557927
Depends-On: https://review.openstack.org/557932
Change-Id: Ida2e836cf81d2b96e0b66afed29a900c312223a4
2018-04-26 09:32:00 +02:00
wei.ying ce283b4a31 Add angular server groups panel
This patch adds angular server groups panel under the
project->compute panel group.

To be added in subsequent patches:
 - Create Action
 - Delete Action
 - Detais

To view the server groups panel only the 'ServerGroups' nova API
extension is available.

Change-Id: Ide9f54439c52cce9642c2dd417f9e7a8ad98e846
Implements: blueprint ng-server-groups
2018-03-10 17:29:41 +08:00
Lajos Katona aa669f0d02 Trunks panel: admin panel
Enable admin panel for trunks. For the admin panel the delete action and
the readonly operations are enabled (table view and details view).

Change-Id: Icfc01612cc60798e4b0ff7379a9c8b83d3f1d60b
Implements: blueprint neutron-trunk-ui
2018-01-29 20:24:05 +01:00
Akihiro Motoki 8ae967ac92 Make enabled filenames consistent
Previously _2150_admin_flavor_panel.py used double underscores,
but there is no reason to use double underscores.
This commit makes the enabled filenames consistent.

Change-Id: I9c2de7075c715c1c41798c098e97560c14a554be
2017-12-27 10:13:32 +00:00
Zuul b4fccffccc Merge "Drop Heat related code from horizon" 2017-12-09 10:27:43 +00:00
Akihiro Motoki eac3e7032a Drop Heat related code from horizon
Orchestration tab in the admin info panel needs a discussion.
It seems not to be covered by heat-dashboard yet.

blueprint heat-dashboard-split-out

Change-Id: I56e6edb1f2ac72e2f42d0e9f3291308e67f24cad
2017-12-05 07:38:55 +00:00
Bence Romsics 7caead688e Trunks panel: enable project trunk panel by default
The trunk panel in the project dashboard is completed,
so this commit enables it by default.

To test it build devstack with neutron trunk support. Eg:

  local.conf:
  enable_plugin neutron https://git.openstack.org/openstack/neutron
  enable_service q-trunk

As long as the 'trunk' API extension is available (openstack
extension show trunk) the panel should automatically appear under
Project/Network/Trunks.

Change-Id: I5f5e343f21ac92e4195825e44f0f3d58b44c134a
Implements: blueprint neutron-trunk-ui
2017-11-27 14:05:43 +01:00
Ivan Kolodyazhny 6d122914a1 Remove license headers to openstack_dashboard/enabled/* files
We don't need license headers in config files. That's why it's
safe to skip this check.

Change-Id: I1ec3c0ade4377f2ca001e7c48620d76b96caff48
2017-10-09 11:45:57 +03:00
chao liu 1eb9596a8d Set default panel of identity with pluggable settings mechanism
The way of setting default panel of project dashboard and admin
dashboard is the "pluggable settings" mechanism, but for identity
dashboard, a traditional "hard-coded" way is used. It's a good
idea to make it consistent with other dashboards.

Change-Id: I52c584b5ef4981ede981385d39615ab8e7922abe
Closes-Bug: #1717932
2017-09-19 07:33:13 +00:00
Jenkins caa8a8a91b Merge "Revert "Enable to refresh ngdetails view"" 2017-08-05 04:26:50 +00:00
Rob Cresswell c16ceb149c Revert "Enable to refresh ngdetails view"
This reverts commit fe0df4579c.

Change-Id: I017f27ad1e8833465d6727118019b78ade4c04d6
2017-08-02 18:31:22 +00:00
Jenkins 1ba4ffb586 Merge "Enable to refresh ngdetails view" 2017-07-29 06:59:17 +00:00
Jenkins 2fb1c0ad35 Merge "QoS panel: default to disabled" 2017-07-27 16:07:02 +00:00
Beth Elwell c415181b6c QoS panel: default to disabled
The QoS panel is not complete and so is being disabled by default.
The merged part is working though, and users can view and delete trunks.
The panel can be re-enabled by deleting the DISABLED flag from the
file enabling the panel:

openstack_dashboard/enabled/_1510_project_network_qos_panel.py

Implements: blueprint network-bandwidth-limiting-qos
Change-Id: I5870885487ceeb2a73752a08945ca7de6ced423b
2017-07-27 16:01:55 +01:00
Bence Romsics 7aad32e83e Trunks panel: default to disabled
Unfortunately we missed to complete the trunks panel until the Pike
freeze. Since it is incomplete we better disable it by default.
The merged part is working though, users can view and delete trunks.
The panel can be re-enabled by deleting the DISABLED flag from the
file enabling the panel:

openstack_dashboard/enabled/_1500_project_trunks_panel.py

Change-Id: I956c10666f0449478e3489f13d7eff049ad95890
Partially-Implements: blueprint neutron-trunk-ui
2017-07-27 14:54:01 +02:00
Shu Muto fe0df4579c Enable to refresh ngdetails view
For now refreshing ngdetails view by browser using F5 key or reload
button, it causes 404 error from django. To fix this issue, this patch
adds the url for '/ngdetails'.

Furthermore, to specify current navigation and to check access grants
to current panel, each access to Horizon django framework needs its
dashboard and panel objects. It means that we need to specify dashboard
and panel that ngdetails view belongs to.

Also, this patch adds the process and settings to specify dashboard and
panel object for each ngdetails view.

Change-Id: I4bcffd2e222ce2df186551cceba0aa38f600d9c8
Closes-Bug: #1681627
2017-07-27 11:31:33 +09:00
Jenkins a8927dcf39 Merge "Cleanup ngdetails" 2017-07-07 16:43:58 +00:00
Shu Muto 394ebf1153 Cleanup ngdetails
'ngdetails' had removed 'project' from its URL as following:
https://review.openstack.org/#/c/396800/
The change for URL is coded in 'openstack_dashboard/static/app/core/
core-constants.module.js'.

Furthermore ngdetails is not linked from any django panels and
doesn't have urls.py for '/project/ngdetails' originally.
On the otherside Angularized panel has routes for details view as SPA.
So 'ngdetails' doesn't need django panel for '/project/ngdetails/'.

This patch removes django panel for '/project/ngdetails/'

Change-Id: I1431c93eeabaa1778a35c0cbacd019b44822edc9
2017-07-04 10:59:00 +09:00
Akihiro Motoki 385870317a Split out FWaaS dashboard
Implement blueprint split-out-neutron-xaas-dashboards
Change-Id: Ieaca88dbe28cc2330d9b333082ff7e92c91e8639
2017-06-27 14:20:03 +00:00
Akihiro Motoki 1d6a217da1 Split out VPNaaS dashboard
Implement blueprint split-out-neutron-xaas-dashboards
Change-Id: Ib304ddef381d80011f7030fdd5049aab0e901ae6
2017-06-27 14:20:03 +00:00
Beth Elwell 12fe351823 Adds basic angular QoS panel to Horizon
This patch adds the QoS panel which displays Neutron QoS policies.
This patch allows read only view of the policies, displaying the name,
id, description and shared status of each policy. Policy actions and
rules to be added in follow-up patches.

To test:
Neutron's QoS plugin must be enabled in your setup.
To enable the QoS plugin in devstack please add the following lines
in the local.conf

    enable_plugin neutron git://git.openstack.org/openstack/neutron
    enable_service q-qos

and rebuild your stack (./stack.sh).

Create some qos policies via CLI (neutron qos-policy-create policy1).
now you can list the policies using this patch.

Based on initial commit: https://review.openstack.org/#/c/247997
Co-Authored-By: Masco <mkaliyam@redhat.com>
Co-Authored-By: Rob Cresswell <robert.cresswell@outlook.com>

Change-Id: If46aeb04879d91a1a9305a94a23cecea2041d378
Implements: blueprint network-bandwidth-limiting-qos
2017-06-13 16:36:29 +01:00
Lajos Katona 3524b3d4f7 New readonly panel for trunks
Enable display of trunks on the project dashboard.

To test it devstack needs to have neutron with trunk support, eg:

 local.conf:
 enable_plugin neutron https://git.openstack.org/openstack/neutron
 enable_service q-trunk

No special horizon config is needed. As long as the 'trunk'
API extension is available (openstack extension show trunk)
the panel should automatically appear under Project/Network/Trunks.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Co-Authored-By: Bence Romsics <bence.romsics@ericsson.com>
Change-Id: Iacb83f22f81e09457953622e61065f0bb2c27407
Partially-Implements: blueprint neutron-trunk-ui
2017-05-24 02:34:33 +00:00
Akihiro Motoki c83a38f18e Reorganize Admin dashboard menus
Admin dashboard shows too many panels now.
This commit introduces panel groups for Admin dashboard
as we do for Project dashboard.

The new order of admin panel groups are:
Compute, Volume, Network and System.

Note that the slug of "System" panel group is not changed
to avoid breaking horizon plugins which register panels to
Admin System panel group.

Implements blueprint reorganize-admin-dashboard
Change-Id: I533e60f7cbfab2539b9f8aa7044f7234165f2518
2017-03-13 04:53:20 +00:00
Rob Cresswell 1d4e171a24 Fix new volumes enabled files panel groups
The new volumes panels in Admin had incorrect panel groups, causing a
failure to load.

Change-Id: I274e69b27af1b028b4f191817e9c86d3cc77de26
2017-03-10 12:48:47 +00:00
Richard Jones e0b6936178 Refactor Volumes from tabbed panel to stand-alone
This edit unfortunately contains more changes than the others
because it effectively merges a bunch of files under
admin/volumes/*.py

Change-Id: I52f3444a92fc83982a95760673419b4b4d746ad3
Implements: blueprint reorganise-volumes
2017-03-09 18:43:05 +00:00
Richard Jones a22bba4af9 Move Volume Types out of tabbed panel
Change-Id: Ie8ddc78a6638e02b673582b081a67f05ec0a2a0a
Implements: blueprint reorganise-volumes
2017-03-09 14:30:56 +11:00
Richard Jones e89c377599 Move Admin Volume Snapshots out of tabbed panel
Change-Id: I8c569a0d0fa5e990524012cacee50f9a249aa5e1
Implements: blueprint reorganise-volumes
2017-03-09 13:47:31 +11:00
Richard Jones 46ad19dbf0 Refactor Project Volumes stand-alone panel
Note that there was state leaking from one of the existing
tests that was relied upon in other tests and moving that test
in the run order caused the others to fail. All related tests
have been altered to not leak state.

Change-Id: I972bc5650fa77044de8a027f570cf2cb41febef8
Implements: blueprint reorganise-volumes
2017-03-06 15:50:09 +11:00
Richard Jones 0b340eccc0 Move Consistency Group Snapshots out of Volumes panel
Change-Id: I2c02ff63c4e98040b3e46ded5331e706033dc746
Implements: blueprint reorganise-volumes
2017-03-06 15:50:02 +11:00
Richard Jones f85e0ffa91 Move Consistency Groups out of Volumes panel
Notes on enabling consistency groups in devstack:
http://docs.openstack.org/admin-guide/blockstorage-consistency-groups.html

You'll also need to modify the local cinder policy file.

Though that's not actually enough to make it work since
devstack only provides the LVM volume type and CGs don't
work with LVM. You can attempt to create CGs, but they
will error.

Change-Id: I0ab541c81570cd5f67bb7d04c01bc92bc5cc3ab5
Implements: blueprint reorganise-volumes
2017-03-06 15:49:53 +11:00
Richard Jones 921f84a7ce Move Volume Backups out of tabbed panel
Notes on enabling backup:
https://github.com/coolsvap/devstack-cinder-backup

Change-Id: Ie6bcfad30d04ee35c75d693f5637197297ca84ef
Implements: blueprint reorganise-volumes
2017-03-06 15:49:45 +11:00
Jenkins e3e5eeefc4 Merge "Move Volume snapshots out of tabbed panel" 2017-03-02 13:44:44 +00:00
Jenkins 72b2752735 Merge "Revert "Add Angular Project Volumes Panel"" 2017-03-02 13:06:24 +00:00
Richard Jones 97589ec0fb Move Volume snapshots out of tabbed panel
In doing this I found that the permission check on the
project Volume Snapshots table was incorrectly defined,
resulting in always-denied. Removing a level of nesting
in the permission structure fixed it.

Change-Id: I1bc5bd4820700d29861ec1dcd6c87a41b5230266
Implements: blueprint reorganise-volumes
2017-02-28 14:05:26 +11:00
adrian-turjak 65e26e9bc0 Move API Access panel to default panel group
Change-Id: I249524a58b15492f2824382a63c7cc978e52cc7a
Implements: blueprint reorganise-access-and-security
2017-02-08 13:58:29 +13:00
Rob Cresswell e2698063e2 Move Security Groups into its own panel
This patch moves the Security Groups tab from the Access and Security
panel into its own panel under the Network panel group. As this is the
last tab in Access and Security, that panel is also removed by this
patch.

Change-Id: Id29c7ce635d46383742aec140def265d4b249aa5
Implements: blueprint reorganise-access-and-security
2017-02-02 13:19:21 +11:00
Rob Cresswell 99849ad88f Move Floating IPs from Access & Security to panel
This patch makes the Floating IPs tab in Access & Security its own panel
under Project > Network

Change-Id: Ibb83ae5a0448d2824c10f867e620cec8219b7b72
Implements: blueprint reorganise-access-and-security
2017-02-01 18:57:44 +00:00