Status: New
Owner: ----

New issue 1011 by [email protected]: replace-disks fails on offline instance
https://code.google.com/p/ganeti/issues/detail?id=1011

What software version are you running? Please provide the output of "gnt-
cluster --version", "gnt-cluster version", and "hspace --version".

$ gnt-cluster --version
gnt-cluster (ganeti v2.10.1) 2.10.1

$ gnt-cluster version
Software version: 2.10.1
Internode protocol: 2100000
Configuration format: 2100000
OS api version: 20
Export interface: 0
VCS version: (ganeti) version v2.10.1

$ hspace --version
hspace (ganeti) version v2.10.1
compiled with ghc 7.4
running on linux x86_64

What distribution are you using?
Ubuntu 12.04 (precise)

What steps will reproduce the problem?
1. gnt-instance modify --offline instance1
2. gnt-instance replace-disks --auto instance1

What is the expected output? What do you see instead?
Expected: disks of instance1 will be checked for any degradation and replaced if necessary
Actual (snippet from gnt-job info):
      Result:
        OpPrereqError
[Please run activate-disks on instance instance1.example.com first, wrong_state]
      Execution log:
1:2014-12-29 16:16:58.324484:message - INFO: Checking disk/0 on node1.example.com

Please provide any additional information below.
Is it possible for replace-disks to activate the disks automatically if necessary rather than throwing an error? In fact, in http://git.ganeti.org/?p=ganeti.git;a=blob;f=lib/cmdlib/instance_storage.py;hb=HEAD#l2443, it appears that the disks of the instance are already activated by replace-disks, if they are not already active. However, in http://git.ganeti.org/?p=ganeti.git;a=blob;f=lib/cmdlib/instance_storage.py;hb=HEAD#l2306 the prereq check fails if the disks are not activated. https://code.google.com/p/ganeti/issues/detail?id=606#c3 makes it sound like this works correctly for instances that are "down", but it seems there is still a problem at least for offline instances.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Reply via email to