If the 'network_availability_zone'-extension is enabled, this patch adds a
field to the Create Network-workflow named 'Availability Zone Hints'.
Change-Id: Ic4206d5765c2d01afedf0e64f9aa50ffce76b661
Closes-Bug: #1725617
This patch changes mox to mock for the following test module:
* openstack_dashboard/dashboards/admin/volumes/tests.py
Change-Id: Id487feb397207b3544c9398a446077e3f6a39b1a
Partially-Implements: blueprint mock-framework-in-unit-tests
If the 'network_availability_zone'-extension is enabled, this patch adds a
column in the Networks-table named 'Availability Zones'.
Change-Id: Iea2bac351b922a0d267c4a55e0d74f6c2639d967
Partial-Bug: #1725617
This patch adds the availability zone column for network agents on the system
information page, if either the router_availability_zone or the
network_availability_zone extension is enabled.
Change-Id: Id7509fab440383bff45cb8ce5bdc3f8eb62045f4
Closes-Bug: #1716638
This patch support operation for operators and project users to
associate security groups to a port. The feature is mentioned at
the neutron user feedback session in Barcelona summit [1].
This function UI is same as the function of security groups
association per instance. To realize this, the way of implementation
for 'Edit port' is changed, which move from a single modal to a
workflow base.
[1] https://etherpad.openstack.org/p/ocata-neutron-end-user-operator-feedback (L.35+)
Also we need to display how security groups is associated at a port.
At the moment, there is not way to be able to see it (only this function).
It should be done as an another patch.
Change-Id: I96e0fafdffbf05b8167ec1b85f7430176fdaab90
Closes-Bug: #1637444
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
When 'availability_zone'-extension is enabled, we present the user with
a column showing the availability zones for which the router is
scheduled in.
Change-Id: I87f6bfcee1f129a77e6bf9efa973a79bfa2afe14
Partial-bug: #1716638
We still can show instance info on admin/instances page even if tenant
is deleted or we can't retrieve tenant's information.
Change-Id: Idb1a5ffbb4103cce5258657d559bf4fe784b98d6
Closes-Bug: #1712565
Currently when checking the subnets quota in admin networks table,
the current tenant subnets quota is checked, while the subnet is
created, using the tenant of the selected network[1], this doesn't
look the same. Similarly, in the network details subnets table,
the creation of subnets actions lacks quota checking.
[1] https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/admin/networks/subnets/workflows.py#L75
Change-Id: Ifb88b97168fc4f500e4bb15658f96363ddc7651f
Closes-Bug:#1719606
Filters like "image_name", "flavor_name" and "project" in instance
panels are keys not supported in Nova List-Servers API directly, so they
should be converted to "image", "flavor" and "project_id", respectively,
before Horizon calling Nova List-Servers API.
That used to work, but was broken in commit
df194c8b4c25c6128f03a98fd0e628ba14b743ff because the code change messed
up the order. This commit fixes it by converting those filters first and
then calling Nova API with modified filters.
Change-Id: I504caaab2b6f256e7eb8c2605acaec39c004e80f
Closes-Bug: #1718725
Currently users can only add and delete networks on admin networks panel.
This patch adds the add subnet action to the admin networks panel so it
is consistent with the project networks panel.
Change-Id: I84e2d51baa4d2adb81ca3fd36e35063a69097326
Closes-bug: #1710723
When running openstack_dashboard unit tests,
we see an error message:
Error while checking action permissions.
...
Http302
This is caused by unsufficient mocking.
Change-Id: I0edb89a0e804f38be891c9397438fce0ddd469ff
To ensure project imports are placed after third party import,
we need to specify application-import-names.
Previously flake8-import-check checks only standard imports or not.
Change-Id: I9beb2105f686dc7d9aebfce8e21c5e182698e2fe
At the current moment user can not suspend an
instance from the instance "Details" page if the
instance does not belong to the first page of the
instances list. This is fixed.
Co-Authored-By: Ivan Kolodyazhny <e0ne@e0ne.info>
Co-Authored-By: Vladislav Kuzmin <vkuzmin@mirantis.com>
Change-Id: I4d805e4a65e838242af38677cbb9efefc498a96f
Closes-Bug: #1553142
Ports has quota management in a project, if quota is exceeded,
will create failure and API returns
"Recoverable error: Quota exceeded for resources: ['port']".
So, it should be like creating a network and subnet to
perform quota checks on ports, and if the quota is exceeded,
add text descriptions to the create port button and disable it.
Change-Id: I31bd8f93c312179b86115544ba0fadc9a9ffec63
Closes-Bug:#1712556
'groups' in cinder quota is not marked as translatable in
the default quota table. 'groups' means the number of volume generic groups
in Cinder, but 'groups' is too generic, so this commit uses 'Volume Groups'
as a lable.
Also sort quota names per back-end services (nova and cinder)
Change-Id: I2deff8fcdd832e9c2a7987ef3e54017b4aa47daf
Closes-Bug: #1710775
This patch change UpdatePort form to workflow in order to
be able to add extra tabs like the setting of security groups.
Originally, this work is a part of the subsequent patch
"Support security groups association per port",
but the changes are big so it is divided into two patches.
This patch focuses on refactoring the existing implementation
from the form to the workflow.
Change-Id: Id42b311242b66ee25e8870ed86e45b5464e19c01
Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Related-bug: #1637444
For the admin router view, list_l3_agent_hosting_router is called.
If this extension is not supported, it returns "resource not found"
and an error popup.
This api should not be called in case the extension is not supported.
Closes-bug: #1708081
Change-Id: I38f7386689d95dde3fc76bbf4d6b5e781b515878
* This patch adds support for the virtio-forwarder VNIC type.
* The virtio-forwarder VNIC type has been added as another option for
setting the "binding:vnic_type" property on a port. This requests a
low-latency virtio port inside the instance, likely backed by hardware
acceleration.
* The documentation for OPENSTACK_NEUTRON_NETWORK/supported_vnic_types
has been updated to clarify the term "supported VNIC types".
Unfortunately, the VNIC binding happens at scheduling and error
reporting in core Nova and Neutron is not optimal in this case.
* Corresponding python-openstackclient change:
https://review.openstack.org/#/c/483532/
* Corresponding neutron-lib change:
https://review.openstack.org/#/c/483530/
Signed-off-by: Jan Gutter <jan.gutter@netronome.com>
Closes-Bug: 1705548
Depends-On: I28315fb12f62dc7d52d099c211086b2b81eca39a
Change-Id: I02dc3581de8f31c659e545e340cbdf6a1b2bb837
When we remove one or more projects from a flavor access list,
it doesn't work, now I fix it.
Change-Id: I92f4fd83a958ff7a7249d0848f9fd128fc73e13f
Closes-bug: #1703760
Nova server_list() wrapper needs to receive an explicit `all_tenants`
boolean flag in order to request instances for _all_ tenants -
otherwise while rendering Admin->Volumes table Django will request
missing instances (to get their names for volume attachments) one by
one, thus significantly increasing response time.
This patch adds check if all_tenants in search_opts and add it to
the search else uses tenant_id in the search_opts.
Co-Authored-By: Dmitry Sutyagin <dsutyagin@mirantis.com>
Co-Authored-By: Ivan Kolodyazhny <e0ne@e0ne.info>
Change-Id: I4761d7da15036b69619649871aef91e1799ee385
Closes-Bug: #1508568
Updated the template used for LinkAction to add the css class for
destructive action if action_type is set to "danger".
Removed the action_type for live migration action because it is
not a destructive action.
Change-Id: Ib957597aa065df4c8a65303b1dc95a5c762ae3d3
Closes-bug: #1704014
When creating a network there is currently a default value of 'default'
which causes the network creation to fail. It is nonsensical to have
a default value here as it will change depending on the provider
network type and needs to be set according to custom settings if the
user is not creating a simple local network which then does not require
the physical network value at all.
Change-Id: I448713d986f17ea1c00cd4dd22487291545cfe2a
Closes-Bug: #1417305
In reviews we usually check import grouping but it is boring.
By using flake8-import-order plugin, we can avoid this.
This flake8 plugin is already used in tempest.
It enforces loose checking so it sounds good to use.
Note that flake8-import-order version is pinned to avoid unexpected
breakage of pep8 job.
Change-Id: I8ccd05eb70350a2441cc2a4d1eafc09ee690b83b
An availabe snapshot has three row actions in admin snapshots table,
but four row actions in its detail page. This inconsistency seems to be
due to the admin snapshot table inheriting the project.
Change-Id: I33e5d5c1e78d714f6792c5c23538f7f015d30b3c
Closes-Bug: #1678462
* (admin/instances/tables.py)
_(" ") is confusing to translators. We already use an empty string ""
in the project instance table, so there is no need to use a string
only with a space.
* (project/instances/templates/instances/_detail_overview.html)
"Locked" in the instance detail template means an attribute name.
The word "locked" is potentially used in various contexts:
passive voice, adjective or some name like attribute name.
We can clarify the meaning of the string by using gettext context.
* (Angular workflow/launch-instance/keypair/create-keypair.html)
<label> with "translate" attribute leads to an extracted string
with HTML tagws. It can be avoided by using <translate> tag.
The fix is same as what were fixed in commit fcd30d95e8.
Change-Id: Ib30306d82e45d81188393d4965493abac93699e3
Added a column to show the locked status on project/admin instances table.
There will be a locked or unlocked icon with help tooltip if nova 2.9 or
above is used. See openstack_dashboard/api/microversions.py
Added the locked field on project/admin instance details panel.
Change-Id: If31ae281d2782c71cd6112f3bd6228647a6130e4
Closes-bug: #1593903
horizon/templates/horizon/common/_data_table_pagination.html template
that responsible for pagination link uses
"has_prev_data" and "has_more_data" methods.
These methods available in "snapshots" object that return
the "openstack_dashboard.dashboards.project.snapshots.SnapshotView"
(and "openstack_dashboard.dashboards.admin.snapshots.SnapshotView")
views. In turn, these views inherits from
"horizon.tables.PagedTableMixin" and "horizon.tables.DataTableView".
If we look at the chain of inheritance of the "DataTableView" class
we can see the following inheritance
MultiTableMixin -> MultiTableView -> DataTableView.
Class MultiTableMixin has it own "has_prev_data"
and "has_more_data" methods that in always return "False"
and bacause of this pagination doesn't work.
In turn, class PagedTableMixin also has "has_prev_data"
and "has_more_data" methods. These method returns value from
self._has_prev_data and self._has_more_data that assigned
in the original view. Because of this pagination depends
on multiple inheritance in this case.
Do it for Admin and Project tab.
To test: set 'Items Per Page' in the UI Settings page to a low number.
Change-Id: I08ccc430dd0a5d425a15e824ee0906995b56a425
Closes-Bug: #1695052