Project

General

Profile

Feature #27457

[NEW UI/VM] Buttons "Stop" and "Power off" guests.

Added by Marcelo Araujo almost 3 years ago. Updated over 2 years ago.

Status:
Done
Priority:
Important
Assignee:
Damian Szidiropulosz
Category:
GUI (new)
Estimated time:
Severity:
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

Now there are 2 buttons to deal with stop and power off a guest vm.

1) Stop button: It will send a SIGTERM and will wait till the guest vm gracefully stops.
websocket call: midclt call vm.stop <vm_id>

2) Power off button: Will perform a hard power off on the guest vm.
websocket call: midclt call vm.stop <vm_id> 'true'


Related issues

Related to FreeNAS - Bug #26741: Add menu item in new UI to restart VMDone

History

#1 Updated by Dru Lavigne almost 3 years ago

  • Status changed from Untriaged to Unscreened

#2 Updated by Dru Lavigne almost 3 years ago

  • Category changed from 38 to GUI (new)

#3 Updated by Damian Szidiropulosz almost 3 years ago

  • Status changed from Unscreened to Closed: Behaves correctly

The vm page uses the new api service. The services api definition is already set to use the vm.start and vm.stop websocket calls.

#4 Updated by Dru Lavigne almost 3 years ago

  • Status changed from Closed: Behaves correctly to Unscreened
  • Assignee changed from Damian Szidiropulosz to Erin Clark

Erin: can you verify if these fields appear in the new UI?

#5 Updated by Damian Szidiropulosz almost 3 years ago

  • Status changed from Unscreened to Screened
  • Assignee changed from Erin Clark to Damian Szidiropulosz

This will probably require a redesign of the current card layout since we're going from a simple two state toggle (on/ off) to now requiring four different operations. There was another ticket (#26741) asking for a restart button.

#6 Updated by Dru Lavigne over 2 years ago

  • Related to Bug #26741: Add menu item in new UI to restart VM added

#7 Updated by Dru Lavigne over 2 years ago

  • Status changed from Screened to Not Started

#8 Updated by Damian Szidiropulosz over 2 years ago

  • Status changed from Not Started to In Progress

#9 Updated by Damian Szidiropulosz over 2 years ago

  • Status changed from In Progress to Done

Fixed with PR 648. Kept the main power button in place for basic power toggle. Replaced the old delete button with a popup menu with more start/stop options as well as delete option.

#10 Updated by Dru Lavigne over 2 years ago

  • Target version changed from 11.2-BETA1 to Master - FreeNAS Nightlies
  • Needs Merging changed from Yes to No

Also available in: Atom PDF