Revision e2fa2baf

b/AUTHORS
1
Iustin Pop <iustin@google.com>
b/Ganeti/HTools/CLI.hs
6 6

  
7 7
-}
8 8

  
9
{-
10

  
11
Copyright (C) 2009 Google Inc.
12

  
13
This program is free software; you can redistribute it and/or modify
14
it under the terms of the GNU General Public License as published by
15
the Free Software Foundation; either version 2 of the License, or
16
(at your option) any later version.
17

  
18
This program is distributed in the hope that it will be useful, but
19
WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21
General Public License for more details.
22

  
23
You should have received a copy of the GNU General Public License
24
along with this program; if not, write to the Free Software
25
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
26
02110-1301, USA.
27

  
28
-}
29

  
9 30
module Ganeti.HTools.CLI
10 31
    ( CLIOptions(..)
11 32
    , EToolOptions(..)
b/Ganeti/HTools/Cluster.hs
5 5

  
6 6
-}
7 7

  
8
{-
9

  
10
Copyright (C) 2009 Google Inc.
11

  
12
This program is free software; you can redistribute it and/or modify
13
it under the terms of the GNU General Public License as published by
14
the Free Software Foundation; either version 2 of the License, or
15
(at your option) any later version.
16

  
17
This program is distributed in the hope that it will be useful, but
18
WITHOUT ANY WARRANTY; without even the implied warranty of
19
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20
General Public License for more details.
21

  
22
You should have received a copy of the GNU General Public License
23
along with this program; if not, write to the Free Software
24
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25
02110-1301, USA.
26

  
27
-}
28

  
8 29
module Ganeti.HTools.Cluster
9 30
    (
10 31
     -- * Types
b/Ganeti/HTools/Container.hs
5 5

  
6 6
-}
7 7

  
8
{-
9

  
10
Copyright (C) 2009 Google Inc.
11

  
12
This program is free software; you can redistribute it and/or modify
13
it under the terms of the GNU General Public License as published by
14
the Free Software Foundation; either version 2 of the License, or
15
(at your option) any later version.
16

  
17
This program is distributed in the hope that it will be useful, but
18
WITHOUT ANY WARRANTY; without even the implied warranty of
19
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20
General Public License for more details.
21

  
22
You should have received a copy of the GNU General Public License
23
along with this program; if not, write to the Free Software
24
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25
02110-1301, USA.
26

  
27
-}
28

  
8 29
module Ganeti.HTools.Container
9 30
    (
10 31
     -- * Types
b/Ganeti/HTools/IAlloc.hs
2 2

  
3 3
-}
4 4

  
5
{-
6

  
7
Copyright (C) 2009 Google Inc.
8

  
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
13

  
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
General Public License for more details.
18

  
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
02110-1301, USA.
23

  
24
-}
25

  
5 26
module Ganeti.HTools.IAlloc
6 27
    ( parseData
7 28
    , formatResponse
b/Ganeti/HTools/Instance.hs
4 4
intelligence is in the "Node" and "Cluster" modules.
5 5

  
6 6
-}
7

  
8
{-
9

  
10
Copyright (C) 2009 Google Inc.
11

  
12
This program is free software; you can redistribute it and/or modify
13
it under the terms of the GNU General Public License as published by
14
the Free Software Foundation; either version 2 of the License, or
15
(at your option) any later version.
16

  
17
This program is distributed in the hope that it will be useful, but
18
WITHOUT ANY WARRANTY; without even the implied warranty of
19
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20
General Public License for more details.
21

  
22
You should have received a copy of the GNU General Public License
23
along with this program; if not, write to the Free Software
24
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25
02110-1301, USA.
26

  
27
-}
28

  
7 29
module Ganeti.HTools.Instance where
8 30

  
9 31
import qualified Ganeti.HTools.Types as T
b/Ganeti/HTools/Loader.hs
4 4

  
5 5
-}
6 6

  
7
{-
8

  
9
Copyright (C) 2009 Google Inc.
10

  
11
This program is free software; you can redistribute it and/or modify
12
it under the terms of the GNU General Public License as published by
13
the Free Software Foundation; either version 2 of the License, or
14
(at your option) any later version.
15

  
16
This program is distributed in the hope that it will be useful, but
17
WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19
General Public License for more details.
20

  
21
You should have received a copy of the GNU General Public License
22
along with this program; if not, write to the Free Software
23
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24
02110-1301, USA.
25

  
26
-}
27

  
7 28
module Ganeti.HTools.Loader
8 29
    ( mergeData
9 30
    , checkData
b/Ganeti/HTools/Node.hs
4 4
    updated value.
5 5
-}
6 6

  
7
{-
8

  
9
Copyright (C) 2009 Google Inc.
10

  
11
This program is free software; you can redistribute it and/or modify
12
it under the terms of the GNU General Public License as published by
13
the Free Software Foundation; either version 2 of the License, or
14
(at your option) any later version.
15

  
16
This program is distributed in the hope that it will be useful, but
17
WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19
General Public License for more details.
20

  
21
You should have received a copy of the GNU General Public License
22
along with this program; if not, write to the Free Software
23
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24
02110-1301, USA.
25

  
26
-}
27

  
7 28
module Ganeti.HTools.Node
8 29
    ( Node(failN1, name, idx, t_mem, n_mem, f_mem, r_mem, t_dsk, f_dsk,
9 30
           p_mem, p_dsk, p_rem,
b/Ganeti/HTools/PeerMap.hs
7 7

  
8 8
-}
9 9

  
10
{-
11

  
12
Copyright (C) 2009 Google Inc.
13

  
14
This program is free software; you can redistribute it and/or modify
15
it under the terms of the GNU General Public License as published by
16
the Free Software Foundation; either version 2 of the License, or
17
(at your option) any later version.
18

  
19
This program is distributed in the hope that it will be useful, but
20
WITHOUT ANY WARRANTY; without even the implied warranty of
21
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22
General Public License for more details.
23

  
24
You should have received a copy of the GNU General Public License
25
along with this program; if not, write to the Free Software
26
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
27
02110-1301, USA.
28

  
29
-}
30

  
10 31
module Ganeti.HTools.PeerMap
11 32
    ( PeerMap
12 33
    , Key
b/Ganeti/HTools/QC.hs
1
{-| Unittests for htools
2

  
3
-}
4

  
5
{-
6

  
7
Copyright (C) 2009 Google Inc.
8

  
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
13

  
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
General Public License for more details.
18

  
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
02110-1301, USA.
23

  
24
-}
25

  
1 26
module Ganeti.HTools.QC
2 27
    ( test_PeerMap
3 28
    , test_Container
b/Ganeti/HTools/Rapi.hs
2 2

  
3 3
-}
4 4

  
5
{-
6

  
7
Copyright (C) 2009 Google Inc.
8

  
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
13

  
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
General Public License for more details.
18

  
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
02110-1301, USA.
23

  
24
-}
25

  
5 26
module Ganeti.HTools.Rapi
6 27
    (
7 28
      loadData
b/Ganeti/HTools/Text.hs
5 5

  
6 6
-}
7 7

  
8
{-
9

  
10
Copyright (C) 2009 Google Inc.
11

  
12
This program is free software; you can redistribute it and/or modify
13
it under the terms of the GNU General Public License as published by
14
the Free Software Foundation; either version 2 of the License, or
15
(at your option) any later version.
16

  
17
This program is distributed in the hope that it will be useful, but
18
WITHOUT ANY WARRANTY; without even the implied warranty of
19
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20
General Public License for more details.
21

  
22
You should have received a copy of the GNU General Public License
23
along with this program; if not, write to the Free Software
24
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25
02110-1301, USA.
26

  
27
-}
28

  
8 29
module Ganeti.HTools.Text
9 30
    where
10 31

  
b/Ganeti/HTools/Types.hs
2 2

  
3 3
-}
4 4

  
5
{-
6

  
7
Copyright (C) 2009 Google Inc.
8

  
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
13

  
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
General Public License for more details.
18

  
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
02110-1301, USA.
23

  
24
-}
25

  
5 26
module Ganeti.HTools.Types
6 27
    ( Idx
7 28
    , Ndx
b/Ganeti/HTools/Utils.hs
1 1
{-| Utility functions -}
2 2

  
3
{-
4

  
5
Copyright (C) 2009 Google Inc.
6

  
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
11

  
12
This program is distributed in the hope that it will be useful, but
13
WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
General Public License for more details.
16

  
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20
02110-1301, USA.
21

  
22
-}
23

  
3 24
module Ganeti.HTools.Utils
4 25
    (
5 26
      debug
b/hail.1
45 45
.SH SEE ALSO
46 46
.BR hn1 "(1), " hscan "(1), " ganeti "(7), " gnt-instance "(8), "
47 47
.BR gnt-node "(8)"
48

  
49
.SH "COPYRIGHT"
50
.PP
51
Copyright (C) 2009 Google Inc. Permission is granted to copy,
52
distribute and/or modify under the terms of the GNU General Public
53
License as published by the Free Software Foundation; either version 2
54
of the License, or (at your option) any later version.
55
.PP
56
On Debian systems, the complete text of the GNU General Public License
57
can be found in /usr/share/common-licenses/GPL.
b/hail.hs
2 2

  
3 3
-}
4 4

  
5
{-
6

  
7
Copyright (C) 2009 Google Inc.
8

  
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
13

  
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
General Public License for more details.
18

  
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
02110-1301, USA.
23

  
24
-}
25

  
5 26
module Main (main) where
6 27

  
7 28
import Data.List
b/hbal.1
520 520
.SH SEE ALSO
521 521
.BR hn1 "(1), " hscan "(1), " ganeti "(7), " gnt-instance "(8), "
522 522
.BR gnt-node "(8)"
523

  
524
.SH "COPYRIGHT"
525
.PP
526
Copyright (C) 2009 Google Inc. Permission is granted to copy,
527
distribute and/or modify under the terms of the GNU General Public
528
License as published by the Free Software Foundation; either version 2
529
of the License, or (at your option) any later version.
530
.PP
531
On Debian systems, the complete text of the GNU General Public License
532
can be found in /usr/share/common-licenses/GPL.
b/hbal.hs
2 2

  
3 3
-}
4 4

  
5
{-
6

  
7
Copyright (C) 2009 Google Inc.
8

  
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
13

  
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
General Public License for more details.
18

  
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
02110-1301, USA.
23

  
24
-}
25

  
5 26
module Main (main) where
6 27

  
7 28
import Data.List
b/hn1.1
291 291
.SH SEE ALSO
292 292
.BR hbal "(1), " hscan "(1), " ganeti "(7), " gnt-instance "(8), "
293 293
.BR gnt-node "(8)"
294

  
295
.SH "COPYRIGHT"
296
.PP
297
Copyright (C) 2009 Google Inc. Permission is granted to copy,
298
distribute and/or modify under the terms of the GNU General Public
299
License as published by the Free Software Foundation; either version 2
300
of the License, or (at your option) any later version.
301
.PP
302
On Debian systems, the complete text of the GNU General Public License
303
can be found in /usr/share/common-licenses/GPL.
b/hn1.hs
2 2

  
3 3
-}
4 4

  
5
{-
6

  
7
Copyright (C) 2009 Google Inc.
8

  
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
13

  
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
General Public License for more details.
18

  
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
02110-1301, USA.
23

  
24
-}
25

  
5 26
module Main (main) where
6 27

  
7 28
import Data.List
b/hscan.1
118 118

  
119 119
.SH SEE ALSO
120 120
.BR hbal "(1), " hn1 "(1), " ganeti "(7), " gnt-instance "(8), " gnt-node "(8)"
121

  
122
.SH "COPYRIGHT"
123
.PP
124
Copyright (C) 2009 Google Inc. Permission is granted to copy,
125
distribute and/or modify under the terms of the GNU General Public
126
License as published by the Free Software Foundation; either version 2
127
of the License, or (at your option) any later version.
128
.PP
129
On Debian systems, the complete text of the GNU General Public License
130
can be found in /usr/share/common-licenses/GPL.
b/hscan.hs
2 2

  
3 3
-}
4 4

  
5
{-
6

  
7
Copyright (C) 2009 Google Inc.
8

  
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
13

  
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
General Public License for more details.
18

  
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
02110-1301, USA.
23

  
24
-}
25

  
5 26
module Main (main) where
6 27

  
7 28
import Data.List
b/test.hs
2 2

  
3 3
-}
4 4

  
5
{-
6

  
7
Copyright (C) 2009 Google Inc.
8

  
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
13

  
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
General Public License for more details.
18

  
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22
02110-1301, USA.
23

  
24
-}
25

  
5 26
module Main(main) where
6 27

  
7 28
import Test.QuickCheck.Batch

Also available in: Unified diff