Status: New
Owner: ----

New issue 411 by [email protected]: '$ gnt-instance move instance' locks the whole cluster for modifying instance parameters
http://code.google.com/p/ganeti/issues/detail?id=411

What software version are you running? Please provide the output of "gnt-
cluster --version" and "gnt-cluster version".
gnt-cluster (ganeti v2.6.2) 2.6.2
Software version: 2.6.2
Internode protocol: 2060000
Configuration format: 2060000
OS api version: 20
Export interface: 0

What distribution are you using?
Gentoo
Linux 3.5.3 Vanilla

What steps will reproduce the problem?
1. gnt-instance move instance1
2. gnt-instance modify --net 0:link=brX instance2

What is the expected output? What do you see instead?
$ gnt-job list
ID     Status  Summary
...
174677 running INSTANCE_MOVE(customer-exch1.exchange.local)
...
174678 waiting QUERY(instance),QUERY(node)
174679 waiting INSTANCE_QUERY_DATA
...
174682 waiting INSTANCE_SET_PARAMS(exch05.exchange.local)
...

Please provide any additional information below.

Doing a '$ gnt-cluster move' locks the whole cluster for updating instance parameters. This move will take around 24 hour and stop me for working with the cluster.

There can't be any reason why the whole cluster needs to be locked due to a move. The lock should be set on the given instance.

node2 ~ # gnt-job list
ID     Status  Summary
174661 success INSTANCE_QUERY_DATA
174662 success INSTANCE_QUERY_DATA
174663 success INSTANCE_QUERY_DATA
174668 success INSTANCE_QUERY_DATA
174677 running INSTANCE_MOVE(customer-exch1.exchange.local)
174678 waiting QUERY(instance),QUERY(node)
174679 waiting INSTANCE_QUERY_DATA
174680 success INSTANCE_QUERY_DATA
174681 success INSTANCE_QUERY_DATA
174682 waiting INSTANCE_SET_PARAMS(exch05.exchange.local)
174683 success INSTANCE_QUERY_DATA
174684 success INSTANCE_QUERY_DATA
174685 success INSTANCE_QUERY_DATA
174686 success INSTANCE_QUERY_DATA
174687 success INSTANCE_STARTUP(exch05.exchange.local)
174688 success INSTANCE_QUERY_DATA
174689 success INSTANCE_QUERY_DATA

# gnt-job info 174677
Job ID: 174677
  Status: running
  Received:         2013-04-05 12:58:05.258624
  Processing start: 2013-04-05 12:58:05.541240 (delta 0.282616s)
  Processing end:   unknown (None)
  Total processing time: N/A
  Opcodes:
    OP_INSTANCE_MOVE
      Status: running
      Processing start: 2013-04-05 12:58:05.541240
      Execution start:  2013-04-05 12:58:05.814217
      No processing end time
      Input fields:
        comment: None
        debug_level: 0
        depends: None
        dry_run: False
        ignore_consistency: False
        ignore_ipolicy: False
        instance_name: customer-exch1.exchange.local
        priority: 0
        shutdown_timeout: 120
        target_node: node2.cluster.ganeti.local
      No output data
      Execution log:
1:2013-04-05 12:58:06.161552:message - INFO: Shutting down instance customer-exch1.exchange.local on source node node1.cluster.ganeti.local 2:2013-04-05 13:00:16.012852:message - INFO: Copying data for disk 0

# gnt-job info 174678
Job ID: 174678
  Status: waiting
  Received:         2013-04-05 13:00:02.869039
  Processing start: 2013-04-05 13:00:03.104400 (delta 0.235361s)
  Processing end:   unknown (None)
  Total processing time: N/A
  Opcodes:
    OP_QUERY
      Status: waiting
      Processing start: 2013-04-05 13:00:03.104400
      No execution start time
      No processing end time
      Input fields:
        comment: None
        debug_level: 0
        depends: None
        dry_run: None
fields: name,status,admin_state,snodes,pnode.group.uuid,snodes.group.uuid
        priority: 0
        qfilter: =,pnode.group.uuid,47f52391-9fef-467c-a22e-0efd08c161b9
        use_locking: True
        what: instance
      No output data
      Execution log:
    OP_QUERY
      Status: queued
      No processing start time
      No execution start time
      No processing end time
      Input fields:
        fields: name,bootid,offline
        qfilter: =,group.uuid,47f52391-9fef-467c-a22e-0efd08c161b9
        use_locking: True
        what: node
      No output data
      Execution log:

# gnt-job info 174679
Job ID: 174679
  Status: waiting
  Received:         2013-04-05 13:01:01.157750
  Processing start: 2013-04-05 13:01:01.402965 (delta 0.245215s)
  Processing end:   unknown (None)
  Total processing time: N/A
  Opcodes:
    OP_INSTANCE_QUERY_DATA
      Status: waiting
      Processing start: 2013-04-05 13:01:01.402965
      No execution start time
      No processing end time
      Input fields:
        comment: None
        debug_level: 0
        depends: None
        dry_run: None
        instances: exch05.exchange.local
        priority: 0
        static: False
        use_locking: True
      No output data
      Execution log:

# gnt-job info 174682
Job ID: 174682
  Status: waiting
  Received:         2013-04-05 14:32:31.610139
  Processing start: 2013-04-05 14:32:32.056301 (delta 0.446162s)
  Processing end:   unknown (None)
  Total processing time: N/A
  Opcodes:
    OP_INSTANCE_SET_PARAMS
      Status: waiting
      Processing start: 2013-04-05 14:32:32.056301
      No execution start time
      No processing end time
      Input fields:
        beparams: {}
        comment: None
        debug_level: 0
        depends: None
        disk_template: None
        disks:
        dry_run: False
        force: False
        force_variant: False
        hvparams: {}
        ignore_ipolicy: False
        instance_name: exch05.exchange.local
        nics: ['modify', 0, {'link': 'br10'}]
        offline: None
        os_name: None
        osparams: {}
        priority: 0
        remote_node: None
        runtime_mem: None
        wait_for_sync: True
      No output data
      Execution log:

--
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