10327 Commits

Author SHA1 Message Date
Zuul
0add65eddc Merge "Add OPENSTACK_KEYSTONE_ENDPOINT_TYPE config opt" 2022-12-15 17:50:38 +00:00
Zuul
5fa4941310 Merge "Add the filter function in c-bak dashboard for both Project & Admin" 2022-12-14 17:35:23 +00:00
Rafael Weingärtner
ba1e7ddc9b Enable floating search bar
Depending on the size of the datatable, sometimes, the search
bar is "hidden" due to the user scrolling. To make the
interface more user-friendly, it is interesting that both
the search bar and the sidebar are always displayed. Therefore,
this patch is introducing changes to always pin the search bar
and the sidebar at the top of the page.

Closes-Bug: #1928678
Change-Id: I9186a4fa1dd2a16f75464ff3bb1c0c9b76a12cc7
2022-12-09 08:43:38 -03:00
Zuul
19a0132ab2 Merge "Attach video even if the exception happens in cleanup" 2022-12-03 00:31:04 +00:00
Tatiana Ovchinnikova
452c37dd36 Fix preselection for launch Instance dialog
Launch instance from a volumes/volume snapshot/instance snapshot
should open a dialog with preselected boot source. However the
dialog shows Image as selected boot source in any case, discarding
the preselection.

This patch fixes it, explicitly changing the boot source according to
the preselection.

Change-Id: I1a5a46d7be12ed179474a6a74647d0872b27b492
2022-11-23 15:48:24 -06:00
Radomir Dopieralski
6d7ecc1441 Attach video even if the exception happens in cleanup
The way we were handling attaching video in integration tests, it would
not attach it if the error happened in a cleanup, not in the main body
of the test. This should fix that.

Change-Id: I356e6849892ed87b2827740e265fcf15fc076cb5
2022-11-14 17:03:32 +01:00
OpenStack Proposal Bot
68d89e6981 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1a67153ecf9afaf9fa16b78c721df74f158bc052
2022-11-05 03:55:11 +00:00
Zuul
e1ce2bb8e0 Merge "Fix flavor id auto generation" 2022-11-04 11:34:26 +00:00
Jan Jasek
b14958df8b Fix instance error with attribute cells.
Selenium read data faster than the data are loaded.
Added wait until element is visible.

Change-Id: I2975ea5836a898d113a2baaab6a8f9bf8af8d742
2022-11-03 11:29:12 +01:00
Tatiana Ovchinnikova
af7e6c4f75 Fix flavor id auto generation
Currently the flavor creation form always check for the uniqueness
of the UUID field, even when it is set to "auto". That means that if
we create a flavor with UUID value of "auto", the check will fail.

This patch disable the check when UUID is automatically generated.

Change-Id: Ie31307d67cf3857e3bb80c124e92c81e0c6a2982
2022-11-02 14:13:36 -05:00
Akihiro Motoki
516e57bc89 Add UT coverage for attach_interface by port
Previously attach_interface tests in project/instances/tests.py
did not cover the case of attach_interface by port.
This commit adds UT for such cases.

Details:
- The second call of the mocked network_list_for_tenant retured
  an empty list. It sounds tricky to change the return value for
  network_list_for_tenant() in two calls, but this trick was used
  to skip the processing of port_field_data.
  This should return a same value for the two calls to test
  port_field_data() function.
- To test the behavior of attach_interface by "port",
  an unbound port (whose device_owner/device_id of the port is empty)
  is required, so this commit adds it to neutron_data.py.
- test_interface_attach_get() covers a list of choices when "By Port"
  is selected in the form.
- test_interface_attach_post_by_port() is added.

Related to the addition of an unbound port to neutron_data.py,
the following other tests are adjusted.
They assumed that all non-network ports are owned by servers,
but it is no longer true as an unbound port is added to the test data.
Note that associating an unbound port with a floating IP is a valid
operation in neutron, so there is no problem to adjust UTs.

- openstack_dashboard/dashboards/project/floating_ips/tests.py
- openstack_dashboard/test/unit/api/test_neutron.py

Related-Bug: #1943639
Change-Id: Ib0ee342463e5668858078db43c04fe0a1be6e995
2022-10-26 15:34:17 -05:00
Zuul
a4718409f5 Merge "Fix rescue of volume-based instances" 2022-10-25 21:21:34 +00:00
Zuul
794472df8e Merge "Handle empty image_type in launch-instance workflow" 2022-10-23 00:57:27 +00:00
Zuul
fade123b22 Merge "Fix success_url parameter issue for Edit Snapshot" 2022-10-21 18:24:45 +00:00
Zuul
fc7374f493 Merge "Fix delete image tests." 2022-10-21 12:17:19 +00:00
Victor Coutellier
01afd1ba70 Handle empty image_type in launch-instance workflow
Fix the getImageType function to handle edge case
when image_type attribute is present but is an
empty string.

Closes-Bug: 1993579
Change-Id: Ie08cf1010d64ff927515b4792e9b052a76b6344d
2022-10-20 10:33:28 +02:00
OpenStack Proposal Bot
28349ee91b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I938820bb4827b4bf578ed81182572ca878e96758
2022-10-18 03:58:00 +00:00
Jan Jasek
01c4ab920d Fix delete image tests.
Add wait until checkbox is in active state.

Fix edit_image_description_and_name test.
Add wait until the name text box is filled by default name (is not empty).
In the other case selenium write new name into text box faster than default
name is written there so default name then rewrite the new name.

Change-Id: I56803e19dd80180cc432ca872a28a7ee7f41290d
2022-10-17 17:13:04 +02:00
Rodrigo Barbieri
6eeaf98524 Fix app cred create without project_id for domain admins
Users with domain admin role that are not cloud admins are
not able to get scoped context and create an application
credential with project_id, so this change forces the
scoped context in that particular case.

Closes-bug: #1827120
Change-Id: I076a97a6f943ab74a2db8bc5179a7db194009db4
2022-10-11 07:43:06 +00:00
OpenStack Proposal Bot
a645545584 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic32b69d9f50860ef20b0c564e777cc738e0b2b81
2022-10-06 03:11:09 +00:00
Tatiana Ovchinnikova
d0e9e976f2 Fix flavor specification at instance overview page
The details page uses flavor id to resolve instance flavor, relying
on legacy Nova API v2.46. This patch adds the current Nova API
option, resolving instance flavor by flavor name, so flavor
specification at instance overview page is displayed properly.

Change-Id: I1fe45063c9d1cdd8682998329d81f843d30f80b3
2022-09-29 18:49:01 +00:00
Tobias Urdin
b22a6d65f7 Add OPENSTACK_KEYSTONE_ENDPOINT_TYPE config opt
The [1] changed the previous behavior of Horizon by
changing the hardcoded internal endpoint type to using
OPENSTACK_ENDPOINT_TYPE so it's no longer possible to use
internal endpoint type for Keystone but public for others.

This adds the OPENSTACK_KEYSTONE_ENDPOINT_TYPE config opt
to set the endpoint type for Keystone when grabbing it from
the service catalog.

[1] https://review.opendev.org/c/openstack/horizon/+/730781

Change-Id: I8438bedaf7cead452fc499e484d23690b48894d9
2022-09-29 13:23:59 +00:00
Zuul
535171fbf9 Merge "Integration test navigation machinery for Angular pages" 2022-09-28 19:12:54 +00:00
Zuul
a0560b4bf5 Merge "Fix "Set admin password" checkbox visibility" 2022-09-27 08:58:18 +00:00
Tatiana Ovchinnikova
4743c6c748 Integration test navigation machinery for Angular pages
There's an implementation of navigation modules for pages written
in Angular.
Legacy tests for images page are rewritten to work with the new
navigation.

Change-Id: Ib8a40f0adb0a46c9d646c6796a4242988eefa6e3
2022-09-26 14:19:50 -05:00
OpenStack Proposal Bot
9443035163 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib6e48db072cceed717a011c0a65e993c0a10aaf6
2022-09-24 03:17:58 +00:00
Zuul
443134b54a Merge "Don't try and update port security if its not changing" 2022-09-20 17:43:01 +00:00
Zuul
34b2e82343 Merge "volume-backup add incremental flag" 2022-09-20 06:43:09 +00:00
Zuul
0850f71df6 Merge "Allow volumes in error_restoring/error_managing to be deleted" 2022-09-19 22:59:07 +00:00
Zuul
c884f79e76 Merge "Sync default policy rules" 2022-09-19 21:18:42 +00:00
Zuul
e53f5ce8fb Merge "Fix redirect after deleting from details page" 2022-09-19 18:25:33 +00:00
Zuul
753a19cdfb Merge "Use SetUp and cleanup for the network pagination tests" 2022-09-16 20:28:31 +00:00
manchandavishal
79d1395942 Fix success_url parameter issue for Edit Snapshot
The "success_url" param is used when updating the project snapshot
[1] and it lacks sanitizing the input URL that allows an attacker to
redirect the user to another website. This patch update 'Updateview'
class to not use the "sucess_url" method.

Closes-bug: #1982676

[1] https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/snapshots/views.py#L109

Change-Id: Ied142440965b1a722e7a4dd1be3b1be3b3e1644b
2022-09-14 22:23:27 +05:30
Tatiana Ovchinnikova
1011d4237e Fix redirect after deleting from details page
On apache environments, when WEBROOT is "/dashboard/" and not "/",
redirection after deleting from Angular details page is broken. If
we go to image/key pair/server group/etc details page, and delete
it from this page, redirect url is "/dashboard/dashboard/project/..."
instead of "/dashboard/project/..."

This patch switches from using WEBROOT depentent panel navigation to
getting default index url directly from details view controller.
It also cleans up a work around that was implemented for some pages.

Change-Id: I6bd06ea479f473a319f8100cbf8d168424b62461
2022-09-14 16:37:58 +00:00
Jan Hartkopf
05dd53a3cf Fix rescue of volume-based instances
Rescue of volume-based instances is supported since Nova
microversion 2.87.
However, Horizon does not use this microversion when requesting
rescue of any instances, causing a Nova exception for volume-
based ones.

The patch fixes this by explicitly setting the required
microversion.

Closes-Bug: #1941744
Signed-off-by: Jan Hartkopf <jhartkopf@inovex.de>
Change-Id: Ic0cdfd326475882f839fd218cd7b4bfa62a2a76b
2022-09-12 15:57:31 +02:00
OpenStack Proposal Bot
0b1dd3d89e Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I435d836743280d372178131e2f43f49e653b1232
2022-09-11 04:28:51 +00:00
Zuul
1a4d9e8025 Merge "Add cinder-user-facing messages for Backup" 2022-09-08 12:42:30 +00:00
OpenStack Proposal Bot
9e9fabeb08 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I611d8026eccc1552f5773af86eb2e50a6f6072af
2022-09-07 03:28:05 +00:00
manchandavishal
a8f2153b25 Sync default policy rules
This patch updates default policy-in-code rules in horizon based on
nova/neutron/glance RC deliverables. It doesn't update policy
rules for cinder and keystone as I have found no changes in their
policy rules.

Change-Id: Ifcf911d9bc649f61cc8522ccea60d30cf7f013be
2022-09-06 17:49:24 +05:30
Jesper Schmitz Mouridsen
20a571fdd2 Add cinder-user-facing messages for Backup
This patch adds a tab for cinder user messages for volume backups.
Cinder user messages show error details for cinder resources like if we
are unable to create a volume backup due to some failure in cinder it
will show us the reason for failure.
It also updates project and admin SnapshotDetailsTabs to use
DetailTabsGroup instead of TabGroup to improve top padding.
Also adds the fail_reason in the detail view, if backup errored.

Related-Bug https://bugs.launchpad.net/cinder/+bug/1978729

Change-Id: I4e639211043270e814fac489f915588af03f966a
2022-09-06 07:29:40 +00:00
OpenStack Proposal Bot
58f8329537 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4ac098693bbac4894cfabf895303d0125fa37995
2022-09-04 03:54:25 +00:00
Jesper Schmitz Mouridsen
61df006f4a volume-backup add incremental flag
Signed-off-by: Jesper Schmitz Mouridsen <jesper@schmitz.computer>
Change-Id: Ia99d045eda9a138cb0466930ccedf865d7a6b54f
2022-09-02 08:56:39 +00:00
Andrey Kurilin
3a2e82ab75 Extend settings with OPENSTACK_SERVER_DEFAULT_USER_DATA
The new setting should allow an administrator to specify default user_data
for new VMs. The default user_data can be a string template that accepts
request object which has info about the user, so the default user_data can
be personalized.

Change-Id: I86ac21bf82c1667135abd4f20fb4514da0899450
2022-09-01 19:23:00 +03:00
Zuul
0a77f42156 Merge "Add pagination to Networks table in Launch Instance wizard" 2022-08-31 13:46:22 +00:00
okozachenko
3020cf5e5c Add the filter function in c-bak dashboard for both Project & Admin
Change-Id: I09b0d12e489aad8da8e9ed3dee1b02a5abcb7355
2022-08-31 02:03:07 +10:00
Zuul
272dbb61c7 Merge "Add new settings to LAUNCH_INSTANCE_DEFAULTS" 2022-08-30 11:34:06 +00:00
Andrey Kurilin
e9b8d707da Add new settings to LAUNCH_INSTANCE_DEFAULTS
The new settings ``LAUNCH_INSTANCE_DEFAULTS.enable_metadata`` and
``LAUNCH_INSTANCE_DEFAULTS.enable_net_ports`` allow to hide Metadata and
Network Ports tabs from launch instance workflow.

It is implemented in the similar way to existing enable_scheduler_hints
setting and doesn't change default behaviour

Change-Id: I3d1ae5ab6cee614dd2c400f66570e320efbe6100
2022-08-29 21:39:33 +03:00
Zuul
9bcf50f3cc Merge "Bugfix: Add missing closing </div> tags to network topology" 2022-08-22 15:03:05 +00:00
Zuul
857d17467a Merge "Add setup and teardown to the instances pagination tests" 2022-08-17 18:16:28 +00:00
Takashi Kajinami
58d8484e0f Replace deprecated COMPRESS_CSS_FILTERS
The COMPRESS_CSS_FILTERS option was deprecated in django-compressor
v2.4[1] and causes the following warning message.

```
DeprecationWarning: COMPRESS_CSS_FILTERS setting is deprecated and will
be removed in django-compressor 3.0. Use COMPRESS_FILTERS instead.
```

[1] https://django-compressor.readthedocs.io/en/2.4/changelog/#v2-4-2019-12-02

Change-Id: Ib87906faab507540ba57ee3a1a30c6fc4a92f835
2022-08-01 20:16:29 +09:00