changes for 3.0
[monitor.git] / todo
1
2 TODO:
3  * install openssh-server, passwd, perl-libwww-perl (for rt), rt-3.4.1,  MySQL-python
4         * had to mount -t devpts devpts /dev/pts to get ssh to work inside the
5           chroot. also, disable the pam modules in /etc/pam.d/sshd
6
7  * auto configuration for php configuration.  
8         maybe run translation of monitor.conf before loading monitorconfig.php?
9
10  * A setup script of some kind would be nice that walked through : 
11     - writing monitorconfig.py
12         - creation of monitorconfig.php
13         - run syncplcdb.py
14         - testapi.py
15         - findbad.py on sample site.
16         - nodebad.py
17         - findbadpcus.py
18         - nodequery.py
19         - nodegroups.py
20         - loads webpage for those retreived values to confirm setup succeeded.
21
22  * reimplement the config.py / .config mechanism.  I'd like for many commands
23    to share very similar argument or argument sets, as well as have some
24    common config options.  I'm not sure the best way to do this.
25     
26          - features of config.py
27                 * parse arguments and return an object with attributes equal to the
28                   parser values.
29                 * maintain values consistently across modules at run time.
30                 * have default values that are not specified at each run time.
31                 * easy to import and use
32
33          - config module is available via 'import config' or as returned by
34                   parsermodule.parse_args()
35      - python supports load-once modules, so subsequent imports refer to the
36           same module object.
37            
38  * have package pull in threadpool from easy_install
39
40  * place PKL files in a real database
41
42  * clean up plc.py; there's a lot of redundent code.
43
44  * figure out python paths for user commands.
45    - directories for pickle files.
46    - add user in rpm install
47    - user permissions for data files for day-to-day operations.
48
49  * fix BayTechCtrlCUnibe expect script.
50
51  * separate modules into different, logical categories, and create a python
52    module as part of the install:
53                 command line, 
54                 configuration, 
55                 policy, 
56                 data model, 
57                 data access,
58                 object interfaces.
59
60 Lower priority:
61  * Add a more structured, 'automate' library of scripts and means of making
62    batch calls, etc.
63
64  * add a third package for user tools that will interact with the Monitor
65    service.  Mostly, I'm guessing this would be queries for the live status of
66    nodes and a more reliable 'reboot' and 'reinstall' mechanism than currently
67    availble with PLC.
68
69 Done:
70  * Find a better location to place and pull the PKL files currently in the pdb
71    directory.  Ultimately, these should be stored in a real DB.  Until then,
72    they should sit in a location that is accessible from the www scripts,
73    backend scripts, and user utilities.
74  * nodebad loads plc_hn2lb unconditionally
75  * nodeinfo loads act_all unconditionally
76  * change findbad.py default db name
77  * remove deps on www.printbadnodes
78  * reboot.py loads findbadpcus unconditionally.
79  * nodequery loads findbad unconditionally
80  * unified_model loads findbad unconditionally
81
82  * threadpool package.
83  * build cmdamt with g++ prior to packaging
84
85  * www/*.py need appropriate access to database.py,  config.py, monitorconfig.py, etc.
86         - need to convert monitor.conf into monitorconf.sh and monitorconf.php
87
88  * pull out global configuration information from various files, like rt_db,
89    mailer.py,  auth.py, and any others.  Create a single configuration file
90    from which all others pull.
91
92    - convert plc and other files to use the new monitorconfig.py rather than
93      auth, or plc.*
94    - need to alter all import 'auth' statements.