Statistics
| Branch: | Tag: | Revision:

root / lib @ 1eacf6a2

Name Size
  build
  client
  cmdlib
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
  rpc
  server
  storage
  tools
  utils
  watcher
__init__.py 1.2 kB
_constants.py.in 285 Bytes
asyncnotifier.py 6.1 kB
backend.py 146.2 kB
bootstrap.py 43 kB
cli.py 139.6 kB
compat.py 4.3 kB
config.py 98.9 kB
constants.py 2.9 kB
daemon.py 27.6 kB
errors.py 10.9 kB
hooksmaster.py 10 kB
ht.py 17.1 kB
jqueue.py 76 kB
jstore.py 6.1 kB
locking.py 60.9 kB
luxi.py 7.8 kB
mcpu.py 18.3 kB
netutils.py 19.7 kB
network.py 7.7 kB
objects.py 66.9 kB
opcodes.py.in_after 391 Bytes
opcodes.py.in_before 7.2 kB
opcodes_base.py 7.8 kB
outils.py 4.5 kB
ovf.py 66 kB
pathutils.py 6.2 kB
qlang.py 9.5 kB
query.py 87.1 kB
rpc_defs.py 26 kB
runtime.py 8.4 kB
serializer.py 4.5 kB
ssconf.py 13.5 kB
ssh.py 10.7 kB
uidpool.py 11.7 kB
vcluster.py 7.5 kB
workerpool.py 18.3 kB

Latest revisions

# Date Author Comment
1eacf6a2 05/30/2014 03:06 pm Jose A. Lopes

Assume that instance keys might not be present in watcher

Before having the watcher cleanup down instances, the assumption was
that if the instance data was contained in the watcher's state, then
the number of restart attempts would definitely be present. This is...

1692a215 05/30/2014 03:06 pm Jose A. Lopes

Modify 'Hypervisor.ListInstances' to exclude user downs

Modify 'Hypervisor.ListInstances' to exclude instances that have been
shutdown by the user. In other words, 'ListInstances' includes only
instances that are actually running. This modification requires also...

6398450f 05/30/2014 03:05 pm Jose A. Lopes

Allow instance start for user down instances

  • Given the previous changes to user down report status, we can lift
    the restriction that user down instances could not be directly
    started. This patch modifies instance startup to first cleanup user
    down instances before starting them....
b3876df2 05/30/2014 03:05 pm Jose A. Lopes

Modify watcher to properly cleanup user down instances

  • Query addtional instance fields, namely, 'admin_state' and
    'admin_state_source'. Together with the instance field 'status',
    the watcher is able to determine whether an instance was shutdown by...
76a0798e 05/30/2014 03:05 pm Jose A. Lopes

Modify instance shutdown to optionally mark as user down

Modify opcode and LU for instance shutdown to mark an instance as user
down. This is used by the watcher to cleanup instances that were
shutdown by the user while retaining the instance status 'USER_down'....

7e5b3914 05/30/2014 03:05 pm Jose A. Lopes

Fix instance queries to correctly report USER_down

  • Fix instance queries (gnt-instance list and info) in Python and
    Haskell to report 'USER_down' when the instance is not running but
    the admin state is 'ADMINST_down' and the admin state source is the...
cf695285 05/30/2014 03:05 pm Jose A. Lopes

Modify config to update 'admin_state_source'

Extend the configuration to update the instance field
'admin_state_source' whenever there is a change to the instance field
'admin_state'.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

73a5b37c 05/30/2014 03:05 pm Jose A. Lopes

Add field 'admin_state_source' to the Instance class

... which keeps track of who last changed the instance field
'admin_state', namely, the admin or the user.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

aad2d389 05/30/2014 03:05 pm Jose A. Lopes

Add type 'AdminStateSource', tracks changes to 'admin_state'

  • Add type 'AdminStateSource' which keeps track of who last changed
    the instance field 'admin_state': the admin or the user.
  • Add constants 'adminSource', 'userSource', and 'adminStateSources',...
44bc2a82 05/30/2014 03:05 pm Apollon Oikonomopoulos

Correctly report user-down instance status

Info queries on user-down instances would fail, because of a check
against instance.hvparams which only contains the instance's non-default
parameters. To fix this, we use GetUpdatedParams, to merge with the cluster...

View revisions

Also available in: Atom