3318 Commits

Author SHA1 Message Date
Cao Xuan Hoang
f7eec152c2 Use ThemableChoiceField
There are still remain some ChoiceField that have not covered.

Closes-Bug: #1732317
Change-Id: Ib9be4f252eba08374f87e4fef5e702a6ea8c1226
2017-11-15 02:27:56 +00:00
Marek Lycka
ed7e51af57 Show a better error message for network delete failure
Previously deleting a network shows an unclear error message
and it is not easy for a user to identify the reason:

  Error: Failed to delete network <network_name>

With this fix it will now show proper error message including
the error reason when neutron returns 409 (Conflict) response.

NOTE: This is a fix for the https://review.openstack.org/#/c/140614/
patch, which I couldn't restore.

Change-Id: I5779725f1095d59a012d8e6cf6e47bbd11dda36a
Closes-Bug: #1400667
2017-11-11 17:17:07 +00:00
Zuul
d6df45eeb0 Merge "Fix style of the submit button on confirmation modal" 2017-11-09 16:50:13 +00:00
Zuul
ed6a22b0fd Merge "Support security groups association per port" 2017-11-08 08:39:24 +00:00
Zuul
2e1b80a1f5 Merge "[Micro version] Support description for instance" 2017-10-26 18:42:57 +00:00
liyingjun
2161b91264 [Micro version] Support description for instance
In Nova Compute API microversion 2.19, you can specify a “description”
attribute when creating, rebuilding, or updating a server instance. This
description can be retrieved by getting server details, or list details
for servers, this patch adds support for this attribute for instance in
horizon.

Change-Id: Ic9217234021d236aee8295915f1a9c3c544396b0
Implement-blueprint: support-description-for-instance
2017-10-26 22:36:00 +08:00
Trygve Vea
b5896d6fbb Implement setting availability zone hint on network creation
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
2017-10-24 16:25:19 +00:00
Zuul
5d386afb1a Merge "Add a checkbox to disable SNAT on routers" 2017-10-24 16:24:52 +00:00
Zuul
bed7a2194d Merge "Support fixed ip address when attaching interface" 2017-10-24 15:47:38 +00:00
Zuul
14cf54696d Merge "Properly sort Heat stacks on Created field" 2017-10-24 15:37:47 +00:00
Zuul
bb2e5804f4 Merge "Implement network availability zone column in network list" 2017-10-24 14:41:58 +00:00
Trygve Vea
edcd22244f Add a checkbox to disable SNAT on routers
When creating a router, or when setting a gateway on a router - a checkbox
is displayed, which can be unchecked to disable SNAT.

Change-Id: I8bc040018645fe2bde534b7d48e14c17984cc9c4
Closes-bug: #1673076
2017-10-23 16:10:48 +00:00
Ivan Kolodyazhny
1a6b16b785 Switch Cinder-related tests to mock
This patch changes mox to mock for the following test module:
* openstack_dashboard/dashboards/project/volumes/tests.py

The next patch in this series will finish migration to mock in this
moudle with tests refactoring making code cleaner and more supportable.

Change-Id: Icb40ee4d844f34f37839c0e74de29a47c3d3f228
Partially-Implements: blueprint mock-framework-in-unit-tests
2017-10-23 15:43:48 +00:00
Zuul
6941262e03 Merge "Wrap various API calls with try/except in Router panel" 2017-10-23 15:01:59 +00:00
Trygve Vea
2949a9800f Implement network availability zone column in network list
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
2017-10-23 12:29:35 +00:00
Trygve Vea
a6ae818e71 Wrap various API calls with try/except in Router panel
This patch adds a try/except around all api.neutron-calls that are not already
covered by exception handling.

Change-Id: I5da17414ea932def6f2a21b2a8dca981e755cca6
2017-10-23 12:27:02 +00:00
Zuul
b4d37681da Merge "Rename "Import Key Pair" to "Import Public Key"" 2017-10-21 13:03:11 +00:00
Zuul
cb6fcc1d7a Merge "Fixes toggle behavior in Network Topology graphs" 2017-10-21 05:46:15 +00:00
Zuul
842e2cdd0c Merge "Hide IPv6-addresses when assigning floating IP addresses" 2017-10-21 00:38:17 +00:00
Kenji Ishii
1e012e7fad Support fixed ip address when attaching interface
At the moment, when a user attaches an interface to
an instance, only a network can be specified.
But actually in nova, it is supported to specify a
fixed IP address or a port.
This patch will support these ways.

Change-Id: I3535024a4f6ffd26b508f5e9afb25232202e1e02
Closes-Bug: #1595913
2017-10-21 00:06:47 +00:00
Kenji Ishii
e9db12382e Support security groups association per port
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>
2017-10-20 23:57:40 +00:00
Zuul
b488cbb2d9 Merge "Router lists display availability zone information" 2017-10-20 23:51:56 +00:00
Zuul
ce3bd3208e Merge "Fix UnhashableKeyWarning when calling get_security_groups function" 2017-10-20 23:48:54 +00:00
Zuul
0ff122d830 Merge "Routers can be created with availability zone" 2017-10-20 22:19:21 +00:00
Trygve Vea
9d5be5251f Hide IPv6-addresses when assigning floating IP addresses
A floating IP can only be associated with an IPv4 address, so we should
not show IPv6 addresses in the list of ports when assigning floating IP
addresses.

Change-Id: I7b39a263445204a9efbc8fe113cc79146d9bee8c
Closes-Bug: #1703360
Closes-Bug: #1724393
2017-10-20 21:30:27 +00:00
Zuul
4927f5fae4 Merge "Revert "Remove the quota check for "Launch Instance" button"" 2017-10-19 15:42:43 +00:00
Trygve Vea
b9664a1bf1 Routers can be created with availability zone
When 'availability_zone'-extension is enabled, we present the user with
a drop-down menu containing a list of available availability zones.
This sets the 'availability_zone_hints' parameter on router creation.

Change-Id: I96293202ddd855823e89c4c7ba0b1f6a6423aab2
Partial-bug: #1716638
2017-10-19 11:53:39 +02:00
Trygve Vea
59021766b8 Router lists display availability zone information
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
2017-10-19 07:14:32 +02:00
Zuul
04894a0858 Merge "Remove unused function calls in project instances attach volume form" 2017-10-19 01:13:57 +00:00
Ying Zuo
827ed2d596 Revert "Remove the quota check for "Launch Instance" button"
This reverts commit 4083d08e863878fe7990556bae72852a019d39e1.

Change-Id: If583c69fce4182d4512e6377cef1558b192572be
2017-10-18 21:02:23 +00:00
wei.ying
0a51d07dfb Remove unused function calls in project instances attach volume form
The function get_object wasn't used anywhere, so there is no purpose
to have it there.

Change-Id: I9fa93683ff2d2cffeec9426698d7b95c8841ed23
Closes-Bug: #1689010
2017-10-18 00:01:49 +08:00
wei.ying
9808567f3b Correct the log info when get networks failed in project router form
Change-Id: I6735019abb00dea2b052d2868e7aea56d96ee88e
2017-10-17 23:44:56 +08:00
Zuul
30ca07e2fc Merge "Show subnet detail with prefix_delegation subnetpool properly" 2017-10-17 04:51:14 +00:00
Zuul
1437fa6533 Merge "Fix displaying pool name for floating ip" 2017-10-16 16:57:38 +00:00
Jenkins
80643ca53f Merge "Remove hardcoded check for subnet actions of a shared network" 2017-10-14 11:58:22 +00:00
Ying Zuo
f9705f0f03 Remove hardcoded check for subnet actions of a shared network
Currently create subnet, update subnet, and delete subnet actions
for a shared network are restricted to admin users only.

This patches removed this requirement so that the actions are
enabled based on the neutron policy.

Closes-bug: #1710700
Change-Id: Ia5b903c3678e26a3270bbe30402ae348942b9f50
2017-10-14 10:37:08 +00:00
Jenkins
5943036286 Merge "Fix subnet no show in networktopology graph" 2017-10-14 09:38:39 +00:00
Jenkins
c129cd17ff Merge "Add render method to ThemableCheckboxSelectMultiple" 2017-10-13 09:34:30 +00:00
Ivan Kolodyazhny
c13d6da80e Add render method to ThemableCheckboxSelectMultiple
Django 1.11+ doesn't have RenderMixin class for widgets, so we have to
implement render method for ThemableCheckboxSelectMultiple to get it
rendered in a correct way with all supported Django versions until we
find a better solution for our widgets implementation.

Change-Id: I656afb162e130f2b77853368945b74330bedf747
Closes-Bug: #1715066
2017-10-12 04:39:27 +00:00
Feilong Wang
7e4dd6191f Rename "Import Key Pair" to "Import Public Key"
The text "Import Key Pair" is not accurate technically, using "Import
Public Key" to make more sense.

Change-Id: Ifd313c150cb0ee07c86e5f3834aaee43a0fb801b
2017-10-11 16:29:59 +13:00
Jenkins
d1cf85db76 Merge "Remove the quota check for "Launch Instance" button" 2017-10-10 15:52:38 +00:00
Max Yatsenko
aec3a33a22 Fix displaying pool name for floating ip
It fixes an issue when pool name is not
displayed for floating ip in a case when any
floating ip is not associated with an instance.

Change-Id: Ic20ec3709fa7c5313f59a16aa32b975eb004f753
Closes-Bug: #1716431
2017-10-09 12:39:01 +03:00
Akihiro Motoki
5de6b3eb14 Show subnet detail with prefix_delegation subnetpool properly
Subnet pool ID 'prefix_delegation' is a special subnet pool in Neutron
and there is no real subnet pool with ID 'prefix_delegation',
so we need to skip subnetpool_get() call
if a subnet has 'prefix_delegation' subnet pool.

This commit also adds unit tests which covers subnet pool operations
in the subnet detail view.

Change-Id: I3227a92084ee79b60d2b10262ed94a034e396306
Closes-Bug: #1702466
2017-10-07 16:05:00 +00:00
Jenkins
631df03dfe Merge "Angularize Key Pair Details" 2017-10-07 04:47:13 +00:00
Akihiro Motoki
7b82f7baa3 Fix gettext warning "Empty msgid"
Empty string tag should not be marked as 'translate'.

TrivialFix

Change-Id: I5d584068c11d4352421e3024195b2f1f978ec6f4
2017-10-06 02:15:57 +00:00
Jenkins
a37d9f08b0 Merge "Fix subnets can not be deleted from network topology panel" 2017-10-03 22:31:20 +00:00
Jenkins
6bc974850e Merge "flake8-import-order: Ensure to place project imports last" 2017-10-03 21:46:21 +00:00
Feilong Wang
4083d08e86 Remove the quota check for "Launch Instance" button
This patch is going to remove the quota check for "Launch Instance" button,
because:

1. For some reasons, the quota check/allowed of the launch instance button
will be called 2 times, which takes about 0.14 seconds based on our prod
env (prod API with local horizon)

2. The launch instance form will do the quota check again, so user will
not be able to create instance and don't have to wait resp from nova if
the quota has been exceeded. See https://ibb.co/kor5Tw and
https://ibb.co/kKm8Fb

Partial-Bug: #1662347

Change-Id: I0c4aaf6da29145856f4ab307e40a91c4b47b2135
2017-10-03 23:03:24 +13:00
Shu Muto
194c881396 Angularize Key Pair Details
This patch adds Angularized details view for Key Pair.
Also, added new filter 'mediumDate' that format date as follow:
e.g) Feb 3, 2001 4:05:06 PM

Change-Id: I1eaead66a582c15442b28ae83fb1c573a46b0f43
Partial-Implements: blueprint ng-keypairs
2017-09-28 16:57:49 +09:00
Huan Xiong
6107983761 Fix non-API bound filters in project and admin instance panels
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
2017-09-28 15:10:19 +08:00