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