1348 Commits

Author SHA1 Message Date
Tatiana Ovchinnikova
71ed12f622 Fix Angular mediumDateFilter
Angular mediumDateFilter provides user with a readable date format
using predefined localizable format "medium". However it should be
more flexible with different types of inputs. This patch fixes the
filter and applies it at the images overview page.

Change-Id: I7079c306c6f98f13c779e6dae7357ccabba2d460
Closes-Bug: #1841049
2020-08-26 17:06:50 -05:00
Zuul
f00f013f16 Merge "Revert "Add required mark on Create and Update image form"" 2020-08-19 14:16:17 +00:00
Ivan Kolodyazhny
d5368c97a4 Revert "Add required mark on Create and Update image form"
This reverts commit 55878ae4b2c85f26350a8ddfae18930eaeea58d9.

Minimum Disk and Minimum RAM are not required in the Glance API [1].


[1]https://docs.openstack.org/api-ref/image/v2/index.html?expanded=create-image-detail#request

Change-Id: I79212d0b5552fce3dffb5c5527b65e48e1325f52
2020-08-19 10:31:49 +00:00
Simon Merrick
2735f2c08d Add support for multiple swift storage policies
+ Adds endpoint for listing available policies
+ Support to select a storage policy for new containers
+ Display container storage polcy on dashboard.

Change-Id: I588452fd5d6417859f5dd19ccedcb18f420ab646
2020-04-16 22:18:06 +12:00
Radomir Dopieralski
ef4055e288 Fix use of ngettext in registry getName
The setNames and getNames functions in the resource registry were
calling ngettext() on already translated strings that were marked for
translation with gettext() and not ngetttext(). That lead to some
page titles in some locales being displayed as single characters.

Closes-Bug: #1762089
Change-Id: I0ef365e0c0de6ae27a2e80bcb5257132f8c6ba29
2019-12-20 09:44:48 +00:00
Zuul
daffc72bfc Merge "Send binary frame in websocket client" 2019-11-26 14:00:48 +00:00
Zuul
20b91e4216 Merge "Remove dependency on novaclient list_extensions API" 2019-10-25 14:08:08 +00:00
Zuul
a9c322ba75 Merge "Add required mark on Create and Update image form" 2019-10-25 11:30:16 +00:00
Matt Riedemann
b148c92075 Remove dependency on novaclient list_extensions API
The novaclient list_extensions API binding was removed in the
16.0.0 release [1]. The ability to enable/disable extensions
in nova has been deprecated since Liberty [2] and was removed
in Newton [3].

For horizon this only matters for the OPENSTACK_NOVA_EXTENSIONS_BLACKLIST
config setting and some javascript code used to compile panels based on
enabled extensions. In order to work with novaclient 16.0.0+, this
change removes the list_extensions usage since all extensions
are enabled in nova and thus for horizon a nova extension is only
not supported if it's in the configured blacklist. To continue supporting
the javascript code which uses the getExtensions function, the extension
names are hard-coded. Note that the method meant to test that code,
_test_extension_list, was wrong but never ran because of the underscore
prefix on the method name. That is fixed here.

[1] https://review.opendev.org/686516/
[2] https://review.opendev.org/214592/
[3] https://review.opendev.org/351362/

Change-Id: Iebb1e78c718b931d632445e4de6d7a29ccb92be2
Closes-Bug: #1847959
2019-10-24 15:24:39 -04:00
Hongbin Lu
ea2212ebe5 Send binary frame in websocket client
Websockify 0.9.0 rejected receiving text frame:
8eb5cb0cdc
We have to switch to binary frame instead.

Change-Id: I2677b8879ccb27def22126811c347d5c08f5aada
Closes-Bug: #1847889
2019-10-13 02:54:14 +00:00
Zuul
1d072dbe69 Merge "Add the unit test for trunks" 2019-10-10 07:40:03 +00:00
Zuul
548dc64551 Merge "Add the unit test for images" 2019-10-03 08:25:45 +00:00
Zuul
d5bddba437 Merge "Updated max-width to be dynamic for .member class" 2019-09-26 14:20:48 +00:00
pengyuesheng
4a504c571e Add the unit test for images
Change-Id: Id2139f4870781a9c06db87cacc75ec98475fe698
2019-09-20 15:30:52 +08:00
pengyuesheng
59f4c68f83 Add the unit test for trunks
Change-Id: I8eef0d53020ca500df49d46603f7e246ace149c3
2019-09-20 15:06:49 +08:00
pengyuesheng
55878ae4b2 Add required mark on Create and Update image form
Minimum Disk and Minimum RAM are required but do not have a required mark

This patch Add required mark

Change-Id: I9430e0cf970490597019a1087390a08e6eecde64
2019-09-18 15:31:51 +08:00
白子玉
ba75bafc69 Specify proper container_format for 'vhd' disk_format
When editing an image, if the disk_fomrat is 'vhd',
the container_format was wrongly set to 'bare' before.
'ovf' is the correct container_format for 'vhd' disk images.

Closes-Bug: #1539722
Change-Id: Ic6b0c66af0d5c8db2d802d6eea2b97721d92b7eb
2019-09-18 06:20:54 +00:00
Gloria Gu
b635e625f7 Updated max-width to be dynamic for .member class
When member name is longer than $members-list-item-width
(130px) in members list (for example, project group in Edit
Project), current text-overflow will put ... (ellipsis) at
the end of the name and name will be truncated.

Updated the styling of .member class to make max-width
dynamic 80% and wrap the name in case it is really long.

Change-Id: Ic295a9b1e7fd3525c633d51a60054e713da6a657
Closes-bug: #1843480
2019-09-11 16:26:12 -07:00
Zuul
78524a0e87 Merge "After deleting the server group, jump to the correct page" 2019-08-08 07:13:58 +00:00
Zuul
9d69f5613a Merge "Add the unit test for flavor" 2019-07-30 12:02:37 +00:00
pengyuesheng
e0d0c9b7b2 Add the unit test for flavor
Change-Id: Ie8c7c7b3a120062c3bf03ecd96840f2c50d59214
2019-07-30 15:08:17 +08:00
Zuul
3f24db4d27 Merge "Add the unit test for network_qos" 2019-07-29 10:40:09 +00:00
pengyuesheng
6dc4bd203d After deleting the server group, jump to the correct page
On the server group Details page, after deleting the server group,
jump to a wrong page.

This patch jump to the correct page after deleting the server group.

Change-Id: If47aa64a8539bcc3996aa484db1e847a3059c2aa
Closes-Bug: #1821851
2019-07-26 10:55:19 +08:00
Zuul
350efbe4f2 Merge "Add the unit test for keypairs" 2019-07-11 08:45:22 +00:00
pengyuesheng
808f4cca16 Add the unit test for keypairs
Change-Id: I0fc8916bc44c2408fb7d915b3d9c15e30354c31c
2019-07-05 13:53:02 +08:00
pengyuesheng
a9989330f3 Add the unit test for network_qos
Change-Id: I834088edd449fe1326f5d58059aedb47873a4e11
2019-07-04 16:40:15 +08:00
pengyuesheng
f0fff4fe4f Add unit test for image detail
Change-Id: I8ae82e37be53b8b7642534e4f6772cb1e52ef3d6
2019-06-20 14:06:17 +08:00
Zuul
1557c3c9e3 Merge "Uniform asterisk mark color and location" 2019-06-19 06:03:26 +00:00
pengyuesheng
cbd15bf910 Uniform asterisk mark color and location
The asterisk mark color and location are inconsistent
in the Create Key Pair and Import Key Form.

This Patch uniform asterisk mark color and location in some forms

Change-Id: Ia55db622b35005e9da4ff83f39414a37ddc19e87
Closes-Bug: #1832288
2019-06-11 10:04:46 +08:00
pengyuesheng
9f18dde70e Image Name is optional parameter on create and update image form
Change-Id: I36f26a30311a5827f8f411d1e3ed40ac434188b1
Closes-Bug: #1831180
2019-06-10 09:39:30 +08:00
Zuul
e3d64d8c46 Merge "Disable textbox on create image form when submitting" 2019-05-29 12:39:19 +00:00
Zuul
6c6b5249cf Merge "Correct the prompt message when creating a volume in the image panel" 2019-05-28 14:51:05 +00:00
pengyuesheng
09da336e9c Correct the prompt message when creating a volume in the image panel
Even when creating a volume fails, the message type was success.
It is better to change the message type to info as a volume creation
might fail when the message is shown.

Change-Id: I1606745a83b33339db3e9cf8b5edebd6b1b3e4f8
Closes-Bug: #1817253
2019-05-28 11:56:44 +00:00
ZhongShengping
a569f0faf3 Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org
counterparts.

Change-Id: I7f5506455ed52e4670b8e428548e931db13b13db
2019-04-24 12:25:40 +08:00
Zuul
c63073d6ed Merge "Periodically check item status if it in transition state" 2019-04-22 16:21:08 +00:00
BubaVV
ff4644261f Periodically check item status if it in transition state
Several Angular based dashboards, such as images and snapshots,
not regenerated after some item on this page changes its status
from transition state.
For example, an image may be shown forever in the "Creating" state
with running progress bar. To improve UI this patch re-upload items
list until some item in transition state.
If status of item changed, then 'trackBy' field changed and
Angular will re-render row with this particular item with
ng-repeat-start directive and won't re-render all entire page.

Change-Id: I2308baebb65b11180d66bd69d834386022c2ad84
Closes-bug: #1797592
2019-04-22 12:51:28 +04:00
Zuul
0699e1d8ab Merge "After deleting the trunk, jump to the correct page" 2019-04-22 07:35:19 +00:00
pengyuesheng
f8e5c4ef8e Disable textbox on create image form when submitting
In the process of creating the image,
can still edit the name, description,
Source Type and file.
This patch is Disable textbox when submitting

Change-Id: I4607b3b6d90ce28ba1b63808fd2028755039dcde
Closes-Bug: #1825102
2019-04-17 15:16:53 +08:00
pengyuesheng
42349acc2f Modify the regex for name on import public key form
This patch fix does not match the regex in horizon and nova [1].

The service supports underscores, but the restriction imposed in horizon
is different, so the regex is updated.

[1] 6ebb2c4cae/nova/compute/api.py (L5674-L5690)

Change-Id: Icc5e9c6447253d6087c578ab931b52a923128e38
2019-04-04 15:27:27 +00:00
Zuul
a235ebde56 Merge "Support setting more visibility options for edit/create image" 2019-03-27 07:08:47 +00:00
pengyuesheng
0d8fba2a3d After deleting the trunk, jump to the correct page
Change-Id: Ie1835e67d7c5e0879cd372cee996853c4d7a36bc
Closes-Bug: #1821835
2019-03-27 10:06:46 +08:00
Akihiro Motoki
ffbe0e2f2f network topology: handle port AZ correctly
Previously d3 version of the network topology view handles ports with
device_owner 'compute:nova' and 'compute:None' specially. This leads
to the situtaion that neutron ports with non-default AZ are not shown
properly. There is no reason to handle neutron ports with the default
AZ differently. What we would like to do is just to classify neutron
ports attached to nova servers.

This commit changes the logic to check device_owner of ports have
a prefix 'compute:'. Note that we also need to check if device_owner
is a string before checking the prefix.

Change-Id: I472bae9af3d14d8a31efcae8a7610b84c4f09c3d
Closes-Bug: #1820260
2019-03-21 19:17:05 +09:00
Zuul
8035d08c8d Merge "Allow image format edit only for queued images" 2019-03-20 10:23:44 +00:00
Zuul
c27415e822 Merge "Add key_type selection on Keypairs form" 2019-03-20 10:23:42 +00:00
Daniel Vincze
e332cef01c Add key_type selection on Keypairs form
Key type can be selected through both Django and Angular panels.
This change will allow X509 Public Certificates to be imported
or created through Horizon.

Also, the key type is being showed in the keypairs list.

Change-Id: I0a07b4805e6af96f06ec12d2e86708c94946e9c9
Closes-Bug: 1816041
2019-03-13 16:32:06 +02:00
Andy Botting
04fe1156bf Support setting more visibility options for edit/create image
The edit and create image pages could only set public or private
visibility for an image. With Glance v2, we have 'shared' and
'community' available to us. This commit adds buttons for those
pages selectively when the policy allows it.
It also only displays 'public' visibility if policy allows.

Closes-Bug: #1792411

Depends-On: https://review.openstack.org/#/c/614688/

Change-Id: I193bc0580e4bf9351ad7f17b148a5062e95313ab
2019-03-13 09:29:47 +11:00
vmarkov
e37a508636 Implement CSRF_COOKIE_HTTPONLY option support
Proposed patch allows passing of CSRF token as hidden input in template.
Without it, turning on of CSRF_COOKIE_HTTPONLY severely degrades Horizon
functionality.

Change-Id: I1b1db496c31e6c64d0c205189e845c2cc0c09184
Closes-bug: #1819423
2019-03-11 18:57:52 +02:00
Ivan Kolodyazhny
17d793185e Allow image format edit only for queued images
Glance doesn't allow to change image type for uploaded images so Horizon
should follow Glance policy.

Change-Id: Ic17a0410935d0aaf5d8b9bb75623ee2847349a2d
Closes-Bug: #1816632
2019-02-19 18:42:29 +00:00
Zuul
fe0b764faa Merge "Add a prompt on the Create Volume form" 2019-02-12 19:58:04 +00:00
pengyuesheng
07ec6deb59 Add a prompt on the Create Volume form
on create volume form,
do not enter the volume size and no error message shown

Change-Id: I1b3c0d2cdddb77d5a3797d1af8e23299ed8f131b
Closes-Bug: #1812965
2019-02-12 09:17:21 +08:00