Commit Graph

24 Commits

Author SHA1 Message Date
Akihiro Motoki d9266fd82c Address RemovedInDjango40Warning (3)
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path().

https://docs.djangoproject.com/en/4.0/releases/3.1/#id2

Change-Id: I484694f8718f61c022126a1935cf28fce075894b
2022-02-04 16:26:54 +09:00
manchandavishal 6ac31e0ba8 Drop Django based implementation of launch instance
horizon already deprecated launch instance Django based implementation
in the wallaby cycle [1]. This patch remove code for launch instance
Django based implementation as angular based implementation is the
default one from long and all features gaps between angular and Django
implementation is closed.

It also moves SetAdvanced step code to ``resize_instance.py`` as
``workflows/create_instance.py`` file is deleted and remove server_group
option from Advanced Options of resizing instance action because
"server_group" is not required while resizing an instance as per
nova-api reference [2].

Closes-Bug: #1869222

[1] https://review.opendev.org/c/openstack/horizon/+/779125
[2] https://docs.openstack.org/api-ref/compute/?expanded=resize-server-resize-action-detail#resize-server-resize-action

Change-Id: I5e01cd81f309491f1a58ea93911030366a86e3c7
2022-01-24 16:21:18 +05:30
pengyuesheng ffa8b5404e Support of rescue instance in Horizon
Change-Id: Ie195befde8fe10ce419583ead06fdb759dd3813c
Implements: blueprint instance-rescue-horizon-support
2018-11-20 10:25:37 +00:00
Akihiro Motoki ff5b622da5 Add instance interfaces tab for easy security group edit
There is no easy way to edit security groups of ports attached
to an instance. This commit adds a table of ports attached to
an insntace to the instance detail. Users now can access attached
ports easily and edit their security groups.

Partial-Bug: #1750147
Change-Id: Ia2bd19f92251702878be3b12d0ea2a5c6618c65e
2018-04-22 07:40:52 +09:00
Akihiro Motoki dd0eba2128 Support simple FIP disassociation (with FIP release)
We previously supported so-called "Simple FIP disassociation"
which allows users to disassociate and release a FIP in a single action.
We no longer support nova-network based features, but I believe it is worth
implemented even in a neutron-only era. This patch introduces a checkbox
"Release floating IP" to support this with neutron.

At the same time, this patch also fixes a bug that the existing FIP
disassociation action disassociates and releases a first FIP of
a requested server. Even though it is a rare case where a single
server has multiple FIPs, this is a bug. After this patch, FIPs
associated with the requested server are listed in the form and
a user can select an FIP to be disassociated.

This patch drops a setting parameter 'simple_ip_management' without
deprecation notice. This is actually no side effect because this setting
just toggled the FIP disassociate action in the instance table and
it provides nothing more than that. We can do the same thing by
the policy file.

Change-Id: Ie8053bdd3a3e4c7897c7c906788d40c2a1d3f708
Closes-Bug: #1226003
2018-04-08 07:29:54 +09:00
Akihiro Motoki 974f0418ef Redirect VM console dynamically
Previously when a user accesses the network topology panel
horizon resolves VM console URL when returning server data.
This requires one API call to nova per VM, and this causes
a scaling issue.

Actually there is no need to resolves VM console URL when
the network topology. A console URL corresponding to a requested
VM can be resolved when a user actually accesses a console.
This reduces the number of API calls drastically and addresses
the scaling issue reported in the bug report.

Change-Id: Icc667449e2988e6227012a6e899835a97ce0d738
Closes-Bug: #1723142
2017-11-30 23:25:16 +09:00
Ankur Gupta f75db42662 Implement Manage Attachments in Instances
Allow users in Project view/tables the option to attach
existing volumes to an instance.
This allows user to be able to attach existing volumes without
having to switch tabs or views from instance to volume.
Allowing for greater ease of access.

Co-Authored-By: Eric Peterson <eric.peterson1@twcable.com>

Closes Bug: #1518459
Partially Implements Blueprint: manage-volume-instance-views

Change-Id: I9daf508b181aaaf2ac003639f8ab9729442e201b
2016-06-28 09:41:41 -05:00
Rob Cresswell 15e83c6448 Update URLs to Django 1.8+ style
Django 1.8 altered and deprecated the existing pattern for defining
URLs. This will be removed in 1.10, meaning that many deprecation
warnings show up under Django 1.9. We should fix the URLs promptly to
avoid logspam, and to support Django 1.10 in Newton.

See
https://docs.djangoproject.com/en/1.9/releases/1.8/#django-conf-urls-patterns

Change-Id: I074d20850de59bfe678a3bc72e9f0f25bd743cbf
Partially-Implements: blueprint dj110
2016-03-28 11:03:08 +01:00
liyingjun 74645e1289 Detach interface support
Add interface detach support in the instance action list.
Note: the policy for detach interface not exists in nova.json,
once it's added, it should be added to the DetachInterface
table.

Closes-bug: #1445004
Change-Id: I4f37da6659c79808a5cdc061c8bc10f11a12118f
2015-05-04 10:14:35 +08:00
liyingjun a5946f1cce Add support for attaching interface
It would be nice to add attach interface support in horizon.

Change-Id: Ibdf97247b1503d57606fc02c4e3a0e33e787d10e
Closes-bug: #1445004
2015-05-04 10:11:54 +08:00
Randy Bertram 6ab60fde7f Serial Console
Adds support for serial console, in addition to VNC,
SPICE, and RDP.

Depends on term.js being added to OpenStack global
requirements: https://review.openstack.org/#/c/145825

To try this patch:
1. In `nova.conf`:
     [serial_console]
     enable=True
     base_url =
       ws://<location-of-serial-console-proxy>:6083/
2. Set CONSOLE_TYPE = "SERIAL" in local_settings.py.
3. You may need to start nova-serialproxy.
4. You may need to port-forward 6083.

https://review.openstack.org/#/c/143615 will make the
serial console available from Network Topology,
along with other consoles.

Co-Authored-By: Richard Jones<r1chardj0n3s@gmail.com>

Implements blueprint serial-console

Change-Id: If83c4efa1a96f9d393110af27f90a0808a23e641
2015-02-19 04:49:11 +00:00
Akihiro Motoki 2a9349bd67 Fix E128 errors in openstack_dashboard/dashboards/project/
E128 continuation line under-indented for visual indent

Partial-Bug: #1375929
Change-Id: I6bc8db7dab6fc2c3aad7fa54b6e07643b595f230
2014-10-16 16:53:52 +09:00
Tatiana Ovchinnikova 539c14e1c6 Remove #noqa from two common imports and add them to import_exceptions
We have two imports with #noqa: django.conf.urls.patterns and
django.conf.urls.url however using them is a standard way of creating
any urls.py module. So there are over 150 imports in Horizon code
where #noqa could be replaced with two lines in list of import_exceptions.

Change-Id: I81c3290e0dc958b5037dd6a87e44df18adfbe751
2014-09-16 14:08:28 +04:00
He Yongli e790ac070e Remove extraneous vim configuration comments
Remove vim setting:
comment - # vim: tabstop=4 shiftwidth=4 softtabstop=4

at the top of source code files, except for files in
openstack/common.

Change-Id: I9a5c6b17c6ef7ecec601f4503dfc7b31fc72e90a
Close-bug: #1229324
2014-05-06 15:30:10 +08:00
Jenkins e8e839996a Merge "Decrypt and display VM generated password" 2014-03-07 19:09:59 +00:00
Ala Rezmerita ee83ba3ac8 Decrypt and display VM generated password
Add optional Retrieve Password action on instance that allows users
to decrypt, on client side, the password generated for the Admin
session.

Change-Id: I37cc93ae7871bf78e90513f58e169883fbfd1621
Implements: blueprint decrypt-and-display-vm-generated-password
2014-03-05 17:53:29 +01:00
Alessandro Pilotti ccfbdedb11 Adds support for Nova RDP console
Hyper-V employs RDP to access virtual machine consoles, unlike most
other hypervisors which support VNC.

In order to support this scenario, the get_rdp_console API has been
added to Nova. This commit adds the corresponding UI feature,
implemented in a way consistent with existing VNC and SPICE console
support.

Change-Id: I9722a1aef5d26184f5a6bc278e306acbdae76b7b
Blueprint: hyper-v-rdp-console
2014-03-01 01:21:47 +02:00
Kieran Spear 311b6299c5 Fix django.conf.urls.defaults imports
These imports aren't available in Django 1.6. We need to use
django.conf.urls instead.

Partially-implements blueprint django-1point6

Change-Id: I692439a76de4fe5abff9ab9395bad5c10f1cdbba
2013-11-04 17:10:57 +11:00
Tatiana Mazur 953d1b9793 Enable H302 check
This patch replaces some method imports with module imports and
makes H302 test enabled.

Fixes bug 1188531

Change-Id: Ibfbddeaa19cbbb244da58ffd5c918c41f03a0c65
2013-08-22 17:39:09 +04:00
Justin Shepherd 89b86c266d Adding rebuild action under Project/Instances
Fixes: bug #1188885
Change-Id: I1871500cac752e5034730aac31188c8ead4b40e7
2013-08-15 15:57:57 -05:00
Matthias Runge cea720e793 Sort imports alphabetically
This patch also re-organizes imports to import one per line.

Change-Id: Ia958e3a30a48d4308d08d51df243c1272425c316
Fixes: bug 1188529
Fixes: bug 1188537
2013-06-14 12:05:55 +02:00
hyphon-zh 8770b32dfa Resizing a server by means of changing its flavor
Sometime we need resize the server when it is launched, such as the number of vcpu, the size of memory and the size of disk.
We can achieve this by means of changing its flavor.

Change-Id: I1ab6b61f286e951b644a2e66383ac62c6a6f887e
Implements: blueprint resize-server
2013-06-04 15:52:27 +08:00
Daniel P. Berrange 59b7e6011b Add support for SPICE consoles
While in theory both VNC and SPICE can be enabled at the same
time, this is not expected to be common. Thus, rather than
adding a 'SPICE console' tab, this renames the existing
'VNC console' tab to simply be 'Console'. This tab is setup
to prefer exposing a VNC console, but if that is not enabled,
then expose the SPICE console. The reason for this order is
that the noVNC widget has had much more testing than the
current spice-html5 widget. Thus if both VNC & SPICE are
enabled, VNC is likely a more reliable choice at this point
in time.

Blueprint: libvirt-spice
Change-Id: If3d3769fe8e29c5930ac8b42d841c92182c4be72
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2013-01-24 10:14:55 +00:00
Gabriel Hurley cb8e7c1f8f Splits OpenStack Dashboard bits from framework app code.
Moves everything OpenStack-specific (dashboards, apis, etc.)
into the openstack_dashboard project, achieving a much
cleaner separation between the project-specific code and
the generic Horizon framework code.

Change-Id: I7235b41d449b26c980668fc3eb4360b24508717b
2012-10-11 11:47:50 -07:00