This patch correct the wrong policy for add allowed address pair
and add policy for delete allowed address pair.
Closes-Bug: #1702804
Change-Id: Idb47a924fbf659459c6537f32dc2ad378e436255
(cherry picked from commit 95c0109f2a)
If we do some resource action(e.g. create/update/delete ...),
UpdateRow will be started.
And then resource status will be updated automatically in front-end.
But in case removing resource, number of resource that displayed
on both above and bottom of table will not be updated correctly.
I fixed update_footer_count function in horizon.tables.js.
This function only updates number of resource in footer field.
(tfoot span.table_count)
But we also need to update header field. (thead span.table_count)
So I add header update logic into this file.
Change-Id: Idc4330fe779b62607ada39a9db3637de82d014f7
Closes-Bug: #1694207
(cherry picked from commit 5b2fe409ed)
I found an interesting bug in images panel.
In images panel, set filter to be "visibility: public", I got one
image listed in the table, then I changed language from "en" to
"zh_CN" and filter images again, I got none.
In the tab of browser developer tool, I saw a correct response
with one image data, but it was not appeared in the table. Later
I found the attribute "isServer" of visibility filter is false,
that caused the above bug.
Change-Id: I130d07727fe74ce65aba72d3e63fdfe0c8721795
Closes-Bug: #1691683
(cherry picked from commit 3724066224)
The visibility field on create image modal and edit image
modal should be shown if it's allowed based on the
glance policy.
Change-Id: I36f1b1c6e93c5ce06873f6a5f6106d8759fac6d0
Closes-bug: #1698490
(cherry picked from commit 932511031f)
When there is an error from createImage, it still invokes
onCreateImage function which should be invoked only when
successful service call. Fixed onError function to throw
the error and the error will show up in the modal toast
message.
Change-Id: I20725f894835714d8245ec8b192937110cf11ab5
Closes-bug: #1630833
(cherry picked from commit 9d2c4b0485)
This patch makes the "Select Boot Source" dropdown in the Source step of
the new Launch Instance have a deterministic order.
The slight downside to this is that the order needs to be recalculated
as new possible boot sources are loaded. However, given that this is the
second step of the workflow, this is unlikely to ever be noticed by a
user.
Change-Id: Iaa2e37bae02c9ce5ab654ac8a3327c0834e7b49e
Closes-Bug: 1640493
(cherry picked from commit b0099bbb87)
This patch adds the ability to configure the default "create volume"
value when launching an instance with Cinder enabled.
Co-Authored-By: Rob Cresswell <robert.cresswell@outlook.com>
Closes-Bug: 1678109
Change-Id: I272f7f1b20cc1276976c464a82d1776de92d17e7
(cherry picked from commit d734f482ec)
In general, in the case where there is no cinder v1 endpoint created
(or deleted - use openstack service delete cinder to reproduce) certain
volume related menu entries are not displayed
This patch add a a new function to check cinder v2/v3 endpoints instead
of only checking the v1 endpoint in instance launch model.
Also, in the image panel, instead of checking v1 endpoint,
it should check v2 and v3 as well.
Change-Id: I642b2f62bb9502f958593c9fcad76e21ee1c80ad
Closes-Bug: #1670789
(cherry picked from commit 5ced2f87ef)
500.html template has incorrect styles for OpenStack logo. This patch
fixes margins and background image size to fit into the container.
Change-Id: Icc2af2731eb8a842c12c073474f3865709b6de2b
Closes-Bug: #1696437
(cherry picked from commit 2b3c7bdbcb)
The novaAPI.getFlavors() call takes only a single parameter, which
should be an object with params. But it is being called with two
parameters here, both "true", which makes IE11 fail with TypeError
later on, when it tries to iterate over keys of params.
Change-Id: I0dcfcdca3dda2d94509d7a574184e7f82f21ca22
Closes-Bug: #1694574
Prevent raising of KeyError when one or more fields are missing in
the form data.
Change-Id: Icf795651773289ecc3b4ef5f22626947bdb5ccd2
Closes-bug: #1688577
admin_state_up is a boolean value but the network and port edit forms
expected a string version of True/False. As a result, True/False string
was shown as the default value in these forms. The field is implemented
as ChoiceField, but there is no special reason not to use BooleanField
for a boolean field and admin_state(_up) fields are the only exceptions
in horizon. This commit replaces all admin_state(_up) fields to
use BooleanField.
As far as I checked, this pattern is used only in the networking
related panels and this patch clean them up.
Conflicts:
openstack_dashboard/dashboards/project/networks/ports/forms.py
openstack_dashboard/dashboards/project/networks/workflows.py
Closes-Bug: #1672213
Change-Id: I9286f6c29d67fec7a88b74661bc8eca945fd9061
(cherry picked from commit c8cd03189a)
The enabled files for the Developer dashboard and Theme Preview
panel have been moved to contrib.
Added the step for copying enabled files to the local folder.
Change-Id: I3182aafd86e1ed1ba610d4b11bed81f8a65eb0e3
Closes-bug: #1691291
(cherry picked from commit 3cb953e1c7)
The api.glance.image_list_detailed() function accepts a list of
filters which it then translates into a form that is acceptable for
Glance v1 or Glance v2. These translations included support for
mapping 'is_public' to 'visibility', but did not include support for
mapping 'property-owner_id' to 'owner'.
This changes adds support for mapping 'property-owner_id' to 'owner'
for Glance v2, and mapping 'owner' to 'property-owner_id' for Glance
v1.
Before this fix, "rebuild instance" from the instances page did not
properly list project-specific images as options. After this fix,
"rebuild instance" is working as expected.
Change-Id: Ica750f8b36bdbadd02a81aed41fd250864a49a66
Closes-Bug: 1671693
(cherry picked from commit 445117eb1f)
The floating IPs tab on access and security panel was moved to
its own panel in Ocata.
Replaced the example of disabling floating IPs tab with an example
to disable the orchestration services tab.
Change-Id: Ibba5834b17a116f16b761c495732928b103b7324
Closes-bug: #1688147
(cherry picked from commit 78ccc9a68a)
This patch enables breadcrumb navigation for panels using
horizon.browsers.views.AngularIndexView.
Closes-Bug: #1664374
Change-Id: If6d100472e61c1cb00e18c56e25300b45d8a7098
(cherry picked from commit 21e3d07644)
Previously 'format' and 'mask_fields' in OPERATION_LOG_OPTIONS
were completely ignored. OPERATION_LOG_OPTIONS is a dict, but
the logic tried to get attributes, so these options were ignored.
Change-Id: Ide4826ebf74218873a81b67aaa0dd817c4798702
Closes-Bug: #1675176
(cherry picked from commit fdb21222b6)
Since this bp reorganise-access-and-security,
move access_and_security to separate panel,
there are some places url need to change too.
Closes-Bug: #1679895
Change-Id: I59560c479ad77d2452484b2138065a003451f376
(cherry picked from commit b1a9078404)
(cherry picked from commit a1de2b5447)