django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(),
ungettext(), and ungettext_lazy() are deprecated in favor of the
functions that they’re aliases for: django.utils.translation.gettext(),
gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy().
https://docs.djangoproject.com/en/4.0/releases/3.0/#id3
Change-Id: I77878f84e9d10cf6a136dada81eabf4e18676250
In python3, super() does not always require a class and self reference.
In other words, super() is enough for most cases.
This is much simpler and it is time to switch it to the newer style.
pylint provides a check for this.
Let's enable 'super-with-arguments' check.
NOTE: _prepare_mappings() method of FormRegion in
openstack_dashboard/test/integration_tests/regions/forms.py is refactored.
super() (without explicit class and self referece) does not work when
a subclass method calls a same method in a parent class multiple times.
It looks better to prepare a separate method to provide a common logic.
Change-Id: Id9512a14be9f20dbd5ebd63d446570c7b7c825ff
(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was depreacted in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3
blueprint django2-support
Change-Id: I46ab5c325491274b8eaffbf848e5d80f83c2fd26
Cancel buttons are quite hard coded in their styles, and most templates
are overriding the default modal-footer template.
This patch removes most of the straight duplications in the
modal-footer.
Co-Authored-By: Rob Cresswell <robert.cresswell@outlook.com>
Closes-bug: #1551455
Change-Id: I496381e3f512856ad37619108b45af3c1da800a5
Most of the page_header blocks were removed by previous patches, but
then brought back by regressions in Volumes and Data Processing. This
patch removes those leftover page_header blocks, and removes a few
templates that are not used in Horizon that were found during the
process.
Change-Id: Icbd03f0809a5c664b9b83f06bc398139c3de1184
Closes-Bug: 1436311
This patch adds migrate capability to Horizon for host
already marked for maintenance.
All instances could be cold migrated.
There is an option also for running instance to allow
making live migration to them.
All running instances will be migrated as the same
migrating configuration, if the administrator wants to
migrate a specific instance in a specific configuration he
could do it from the instance dashboard.
blueprint migrate-all-instances-from-hosts-in-maintenance-mode
Change-Id: Ia1260831e79ede66a9d4320b092bebeb023796bc
Co-Authored-By: Bartosz Fic <bartosz.fic@intel.com>
Patch https://review.openstack.org/#/c/142802/15 adds a method of
reducing duplication of page title logic, this patch applies that change
to the admin hypervisors views.
Change-Id: I848c90b685859bf0822722cfc9dcbe7ce7624479
Partial-Bug: 1413749
To prevent further scheduling of instance launch on a compute we
need to run:
* nova service-disable --reason REASON NODENAME nova-compute
It would be helpful if we can send this through the hypervisors menu.
New Actions: 'Disable Service' and 'Enable Service' will be added to
Admin -> Hypervisors -> Compute Host action menu to disable/enable
service. So this is a small but useful addition to horizon.
Implement blueprint: service-disable-enable
Change-Id: Ic58d6a6410ec640aecd808ef3e586026e562ac6a
Implement host evacuate in the hypervisors panel.
An extra tab was added to show in the first one hypervisors
and on the second one compute host. on each compute host
that is down an evacuate host button was added.
If the user press the button a modal windows is shown to
request the needed data to perform the evacuation.
blueprint evacuate-host
Co-Authored-By: Leandro Costantino <leandro.i.costantino@intel.com>
Co-Authored-By: David Lyle <david.lyle@hp.com>
Change-Id: I57a16f99fddd84c287429085c7e90beb59a17aa3