Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti @ 658eb2dc

Name Size
  Confd
  Cpu
  Curl
  DataCollectors
  HTools
  Hs2Py
  Hypervisor
  Monitoring
  Query
  Storage
  THH
BasicTypes.hs 9.3 kB
Common.hs 14.4 kB
Compat.hs 1.4 kB
Config.hs 14.8 kB
ConfigReader.hs 10.8 kB
ConstantUtils.hs 5.3 kB
Constants.hs 119.3 kB
Daemon.hs 15.6 kB
Errors.hs 6.5 kB
Hash.hs 1.8 kB
JQScheduler.hs 12.3 kB
JQueue.hs 21.4 kB
JSON.hs 10.9 kB
Jobs.hs 3.3 kB
Kvmd.hs 11.5 kB
Logging.hs 4.9 kB
Luxi.hs 11.9 kB
Network.hs 3.5 kB
Objects.hs 25.3 kB
OpCodes.hs 26.9 kB
OpParams.hs 46.4 kB
Parsers.hs 1.7 kB
Path.hs 3.9 kB
PyValue.hs 2.9 kB
Rpc.hs 22.5 kB
Runtime.hs 7.3 kB
Ssconf.hs 5.2 kB
THH.hs 46.5 kB
Types.hs 28.2 kB
UDSServer.hs 12.1 kB
Utils.hs 22.7 kB
VCluster.hs 1.6 kB
Version.hs.in 246 Bytes

Latest revisions

# Date Author Comment
658eb2dc 01/24/2014 02:38 pm Klaus Aehlig

Implement auto-archiving of jobs

As luxid is taking over the handling of the job queue, it
also needs to handle the automated archiving of jobs. Here
we replicate the semantics of the current python implementation
of archiving as many jobs older than the given time as possible,...

c867cfe1 01/24/2014 02:38 pm Klaus Aehlig

Add a utility function to try archiving jobs

Provide a function that walks through a list of job ids and
archives them if appropriate. Abort that process if a given
timeout is reached.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

8b5a4b9a 01/24/2014 02:38 pm Klaus Aehlig

Support computation on Timestamp

As timestamps are also used to determine if an event is sufficiently
long in the past (e.g., on archiving jobs), support adding a time
interval to a Timestamp.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

ae66f3a9 01/24/2014 02:38 pm Klaus Aehlig

Add constructor function for Timestamp

Provide means to get Ganeti's internal timestamps
from standard clock time.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

370f63be 01/24/2014 02:38 pm Klaus Aehlig

Add a predicate on Jobs on whether it can be archived

Jobs usually are archived a given time after they have finished.
For finalized jobs without end-time, the start-time is taken en
lieu. This function provides the pure predicate for this decision.

Signed-off-by: Klaus Aehlig <>...

857cbfb1 01/24/2014 02:38 pm Klaus Aehlig

Make ArchiveJob in luxid create the archive, if necessary

As jobs are archived in groups of 10000, creating new subdirectories
of the archive might be necessary when archiving a job. Use a
function that takes care of this.

Signed-off-by: Klaus Aehlig <>...

b3f95121 01/24/2014 02:38 pm Klaus Aehlig

Provide a safe version of rename

...that also creates the target directory, if needed.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

f4d0c84a 01/24/2014 02:38 pm Klaus Aehlig

Fix expectation for the return value of jobqueue_rename

On sucess, jobqueue_rename returns a list containing one
null per change request.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

6fadcbab 01/23/2014 12:25 pm Klaus Aehlig

fix off-by-one error in indentation

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Helga Velroyen <>

6fdc84ab 01/23/2014 12:03 pm Klaus Aehlig

Implement ArchiveJob queries in luxid

With luxid taking over the tasks of masterd, archiving
jobs also belongs to its responsibilities. As archiving
a job affects the global state of the job queue, synchronise
over the queue lock.

Signed-off-by: Klaus Aehlig <>...

View revisions

Also available in: Atom