wakame-vdc icon indicating copy to clipboard operation
wakame-vdc copied to clipboard

vdc-manage allows setting non-existant hypervisor

Open Metallion opened this issue 10 years ago • 1 comments

Problem

When modifying a host node's hypervisor, there is no check done to see if the hypervisor is valid.

vdc-manage>> host modify hn-hva1 --hypervisor hvm
vdc-manage>> host show
UUID     Node ID   Hypervisor  Architecture  Usage  Status  Scheduling
hn-hva1  hva.hva1  hvm         x86_64        0%     online  true

Solution

Add a check and fail if the hypervisor being set is invalid.

Metallion avatar Nov 04 '15 09:11 Metallion

These are the supported hypervisors. https://github.com/axsh/wakame-vdc/blob/develop/dcmgr/lib/dcmgr/constants/host_node.rb#L17

This is the line that doesn't seem to work. https://github.com/axsh/wakame-vdc/blob/develop/dcmgr/lib/dcmgr/cli/host.rb#L68-L70

Metallion avatar Aug 19 '16 09:08 Metallion