summaryrefslogtreecommitdiff
path: root/openstack_dashboard
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Use nova os-services to retrieve host list"Zuul2018-02-077-167/+124
|\
| * Use nova os-services to retrieve host listAkihiro Motoki2018-02-017-167/+124
| | | | | | | | | | | | | | | | | | novaclient version 10 has dropped the support for novaclient.v2.hosts. os-aggregates and migrateLive APIs expects host from os-services, so this commit retrieves host list from os-services API. Change-Id: I5ec007ab1f244ca8caee1eb7b5d4262ac6c32171 Closes-Bug: #1745502
* | Merge "Sync nova policy"Zuul2018-02-076-142/+71
|\ \
| * | Sync nova policyAkihiro Motoki2018-02-056-142/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on nova commit 32c8ac6b7dfe4ca0c211cbce7c5a67d88558126f The new file was generated by oslopolicy-sample-generator: oslopolicy-sample-generator --namespace nova --format json nova uses policy-in-code now, so there is a lot of differences. Sorted version diff is http://paste.openstack.org/show/628742/ All policies with "@" have been dropped. Dropped policies used in horizon are: os_compute_api:os-certificates:create os_compute_api:os-scheduler-hints:discoverable os_compute_api:os-server-groups:discoverable [discoverable] "discoverable" policies are related to nova API extensions but the API extension mechanism has gone in Nova Queens, so these policies now make no sense in Nova. In Horizon side, we are still use a bit older API version to launch instance, so it seems some fallback policies are needed and they are added as conf/nova_policy.d. [os_compute_api:os-certificates:create] No corresponding policy is found, so the related policy check is dropped. EC2 API is provided as a separate project from nova. I guess this is the reason the policy was dropped. DownloadEC2 action referred to it, but we already checks EC2 service is available so I believe the policy can be dropped safely. [openstack_dashboard.test.unit.api.rest.test_policy] Unit tests are updated according to the nova policy change. Note that test_rule_alone previously succeeded because it used non-existing policy and fallbacked to 'default' rule. The rule is changed to a policy for non-admin user. Change-Id: I68f91bc29b20a4ecd613fc75735d38b9a48162ee
* | | Imported Translations from ZanataOpenStack Proposal Bot2018-02-053-15/+380
| | | | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I623b25d9b36865da552ddb9dc3d09c55e32a383a
* | | Imported Translations from ZanataOpenStack Proposal Bot2018-02-042-4/+103
|/ / | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: Iee579bb1ad44bdf17e8abb0d7361b1a952493cf4
* | Merge "Missing VNIC type parameter when using it to create a port"Zuul2018-02-021-0/+2
|\ \
| * | Missing VNIC type parameter when using it to create a portwei.ying2018-02-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | In the project creation port page, regardless of the choice of VNIC Type, the created port VNIC Type is displayed as Normal, since the creation port does not specify the 'binding__vnic_type' parameter. Change-Id: I29700b29e163363dbd7c85a2d5c68c8a6b635ee6 Closes-Bug:#1746977
* | | Views accessible via url even if user doesn't match policy rulesDavid Gutman2018-02-021-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a user doesn't match the policy rules of a panel then the panel tab is removed from the menu of the left, but panel views are still accessible using directly the url (ex /admin/flavors/). In most of the case, views won't work correctly because of the lack of right in the backend, but it may cause trouble when you play with policies. I think it could be more elegant to return directly a "You are not authorized to access this page" from the frontend when user try to access a view of a panel (via url) without matching the policy rules. Change-Id: I7bc93fed29568adfc14d5bcadfc8728d3b5cf633 Closes-Bug: #1741051
* | | Imported Translations from ZanataOpenStack Proposal Bot2018-02-027-26/+689
| | | | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I3797025c69fa36d3ae322ab2fa337e1da7e66836
* | | Merge "Imported Translations from Zanata"Zuul2018-02-0128-1223/+245
|\ \ \ | |/ / |/| |
| * | Imported Translations from ZanataOpenStack Proposal Bot2018-02-0128-1223/+245
| | | | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I0972f5608c547062d2ede5e8a9ad58db3030290d
* | | Merge "fix english grammatical error"Zuul2018-02-011-1/+1
|\ \ \ | |/ / |/| |
| * | fix english grammatical errorHanieh Rajabi2018-01-311-1/+1
| | | | | | | | | | | | Change-Id: Ibe93b639b0589c8f59502067b22b65aa89737b16
* | | Merge "font for transfer table heading enlarged"Zuul2018-02-011-2/+8
|\ \ \
| * | | font for transfer table heading enlargedSimon Collins2018-01-181-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changed the heading type from h5 to h4 to enlarge it without altering the appearance of other h5's. This was done because the current font size made locating the text amongst the many larger elements on the page, this change allows a user to quickly identify the purpose of the sections below. Closes-Bug #1743683 Change-Id: I992ed598d59e4fef6baa18139288782003a1ade3
* | | | Merge "i18n: Fix untranslated messages"Zuul2018-02-012-2/+6
|\ \ \ \
| * | | | i18n: Fix untranslated messagesAkihiro Motoki2018-01-312-2/+6
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trunk-subports.help.html: The <p translate> tag was not closed appropriately. This confused angular-gettext and as a result translations are not used properly. launch-instance/networkports/ports.html: "on subnet" was marked as translation string in bug 1745873, but one "on subnet" is forgot to mark. This commit fixes it. Related-Bug: #1745873 Change-Id: I01c653161c9a91d499bf493590bb5f511901f31a
* | | | Merge "i18n: Do not include html directives in translation strings"Zuul2018-02-013-18/+25
|\ \ \ \
| * | | | i18n: Do not include html directives in translation stringsAkihiro Motoki2018-01-313-18/+25
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is important not to include html directives in translation targets as much as possible to avoid unnecessary errors when selecting translated languages. Note that this commit does not necessarily exclude all html directives from translation strings. Some of them needs to be included to allow translators to control the word order properly. This commit mainly focuses on eliminate unrelated html directives. Change-Id: I66a24d4b01e695aab226b7c1cd4bc4f50ab33a7f
* | | | Merge "Trunks panel: admin panel"Zuul2018-02-0113-57/+265
|\ \ \ \ | |/ / / |/| | |
| * | | Trunks panel: admin panelLajos Katona2018-01-2913-57/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable admin panel for trunks. For the admin panel the delete action and the readonly operations are enabled (table view and details view). Change-Id: Icfc01612cc60798e4b0ff7379a9c8b83d3f1d60b Implements: blueprint neutron-trunk-ui
* | | | Merge "Fix back button on Firefox and Safari"Zuul2018-01-311-0/+1
|\ \ \ \
| * | | | Fix back button on Firefox and SafariRuslan Aliev2018-01-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Firefox (and Safari) uses bfcache (back-forward cache) to load re-visited pages. The solution is to force a reload when page is loaded from bfcache, so back button will work correctly. More information can be found here [1] and here [2]. [1] https://madhatted.com/2013/6/16/you-do-not-understand-browser-history [2] https://stackoverflow.com/questions/8788802/prevent-safari-loading-from-cache-when-back-button-is-clicked Change-Id: If023bca7c73f983e55c383856e304379c7b8be3a Closes-bug: #1686315
* | | | | Imported Translations from ZanataOpenStack Proposal Bot2018-01-3115-61/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: Ib69c6785423874993c0bde06bfdf235821d71fd1
* | | | | Merge "i18n: Allow translator to control the word order (trunk)"Zuul2018-01-313-5/+25
|\ \ \ \ \
| * | | | | i18n: Allow translator to control the word order (trunk)Akihiro Motoki2018-01-293-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "<IP address> on subnet <subnet>" format in "Parent Port" and "Subports" tabs in "Create Trunk" and "Edit Trunk" form did not allow translators to control the word order because only "on subnet" was marked as translation string and they are concatenated. This commit improves the translation string by using the "translate parameters" feature of Angular gettext. Also "on subnet" in the "Network Ports" tab of "Create Instance" workflow is now marked as translation string. Change-Id: I189897eee8037466ace2b68b8f9be3dc242c4252 Closes-Bug: #1745873
* | | | | | Merge "Correct odd exception message"Zuul2018-01-311-1/+1
|\ \ \ \ \ \
| * | | | | | Correct odd exception messageAkihiro Motoki2018-01-301-1/+1
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "Invalid service catalog service" looks odd. This commit also fixes typo and unnecessary capitalizations. TrivialFix Change-Id: I356a2da683aa859b791890837dc6bfe060b5b670
* | | | | | Imported Translations from ZanataOpenStack Proposal Bot2018-01-309-64/+4179
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I66ee7142a5ab3c9cd354a97bb2e0219f839d6a23
* | | | | Merge "Horizon UI message when browser cookies disabled"Zuul2018-01-292-0/+15
|\ \ \ \ \
| * | | | | Horizon UI message when browser cookies disabledOla Khalifa2018-01-292-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Used dijango's CSRF_FAILURE_VIEW setting to create a view indicating the reason the request was rejected. This information is passed on to the login page so it can render the error. Change-Id: I61c7195c9bafb269816fde12b058e19ebc69953c Closes-Bug: #1412483
* | | | | | Merge "Tabs in launch server wizard not depending on ↵Zuul2018-01-294-7/+34
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | OPENSTACK_NOVA_EXTENSIONS_BLACKLIST"
| * | | | | Tabs in launch server wizard not depending on ↵David Gutman2018-01-264-7/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OPENSTACK_NOVA_EXTENSIONS_BLACKLIST OPENSTACK_NOVA_EXTENSIONS_BLACKLIST is used to disable specific extension. In the launch instance wizard, by example the Server Group tab should be hidden when the extension "ServerGroups" is blacklisted but it isn't. It could be interesting to make these tabs dependent of the supported extensions. Change-Id: I15ea0f1010e3889c217c63e98f1752a4c1ad9ceb Closes-Bug: #1745367
* | | | | | Imported Translations from ZanataOpenStack Proposal Bot2018-01-286-15/+376
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I2752d161c7b0ea66a76e4a50bb92af0bb36edf16
* | | | | | Merge "Handle novaclient ec2 cert support removal"Zuul2018-01-274-28/+0
|\ \ \ \ \ \
| * | | | | | Handle novaclient ec2 cert support removalDavid Lyle2018-01-254-28/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Queens, ec2 cert support was removed from python-novaclient. This causes horizon to be unable to get the keystone values of ec2 credentials. This patch removes the code that handles ec2 certs from nova. Since the ec2 cert code in nova was removed in Mitaka. There is no real risk of breaking backwards compatibility. Change-Id: I470761d67004f6e6b188d3afc4b7f081b7bc708f Closes-Bug: #1729175
* | | | | | | Merge "Imported Translations from Zanata"Zuul2018-01-2635-1063/+66
|\ \ \ \ \ \ \
| * | | | | | | Imported Translations from ZanataOpenStack Proposal Bot2018-01-2635-1063/+66
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I0e4fbacf064d92edddf36acddf7199b74b75c850
* | | | | | | Merge "Sync cinder policy"Zuul2018-01-263-95/+132
|\ \ \ \ \ \ \
| * | | | | | | Sync cinder policyAkihiro Motoki2017-12-203-95/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on cinder commit 55b2f349514fce1ffde5fd2244cfc26d7daad6a6 The new file was generated by oslopolicy-sample-generator. nova uses policy-in-code now, so there is a lot of differences. Sorted version diff is http://paste.openstack.org/show/628744/ Removed policies are: backup:backup-export consistencygroup:create consistencygroup:create_cgsnapshot consistencygroup:delete consistencygroup:delete_cgsnapshot consistencygroup:get consistencygroup:get_all consistencygroup:get_all_cgsnapshots consistencygroup:get_cgsnapshot consistencygroup:update default volume:get_volume_admin_metadata volume_extension:replication:promote volume_extension:replication:reenable volume_extension:types_extra_specs Horizon still uses consistency group panel, so the removed policies related to consistency group are still required. They are added as cinder_policy.d/consistencygroup.json. Change-Id: I3292fae2b9d2b368954bfbaa19df391d3860bdfe
* | | | | | | | Merge "Sync keystone policy"Zuul2018-01-264-161/+149
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | |
| * | | | | | | Sync keystone policyAkihiro Motoki2018-01-264-161/+149
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on keystone commit cfbc2aa30b7406b4bc77e40a55561d1f46174b5c keystone uses policy-in-code now, so there is a lot of differences. The new file was generated by oslopolicy-sample-generator. Sorted version diff is http://paste.openstack.org/show/628745/. Removed policies are: default identity:change_password identity:get_identity_providers 'identity:change_password' is used in horizon. There seems no corresponding new policy, so the corresponding horizon rules are dropped in this commit. Our UT depends on the identity policy file. This commit updates the UTs in a more robust way. Change-Id: I76eb9f95c7112bcbad75ee151f363f892298d081
* | | | | | | Merge "usage: split out the limit related logic into ProjectUsageView"Zuul2018-01-257-185/+138
|\ \ \ \ \ \ \
| * | | | | | | usage: split out the limit related logic into ProjectUsageViewAkihiro Motoki2018-01-147-185/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously limit information was always retrieved but it is not used in the admin overview. This commit moves the limit related logic into a separate class ProjectUsageView. testing of usage.views is covered by individual panel tests, so UTs for panels which uses UsageView rather than the new ProjectUsageView need to be updated in this commit. blueprint make-quotas-great-again Change-Id: Id93b66d11e3b0c98d1fbb0454bb43984c2999d92
* | | | | | | | Merge "API tests: Avoid UnhashableKeyWarning"Zuul2018-01-251-2/+2
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | |
| * | | | | | | API tests: Avoid UnhashableKeyWarningAkihiro Motoki2017-12-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Array is not hashable. We need to pass tuple instead to avoid UnhashableKeyWarning. Change-Id: I169ce9012e0dbad345d6bf0d9abcc35569289fc1
* | | | | | | | Merge "Improve exception message in network related Batch/DeleteAction"Zuul2018-01-256-176/+74
|\ \ \ \ \ \ \ \
| * | | | | | | | Improve exception message in network related Batch/DeleteActionAkihiro Motoki2018-01-236-176/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DeleteActiona and BatchAction in the network, subnet and router tables are improved using handle_exception_with_detail_message decorator. There is no need to have separate delete action in the admin network and subnet tables now, so they are merged into the corresponding delete actions in the project tables. Change-Id: I976e4e6ed8e9c1430f82ac362c080853744b5d07 Closes-Bug: #1733207
* | | | | | | | | Imported Translations from ZanataOpenStack Proposal Bot2018-01-253-7/+239
| |_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I112a54fb15bd3ed88a6f6bc0f643af58f8f2f242