IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25493 for trunk/ippTools/share


Ignore:
Timestamp:
Sep 23, 2009, 10:22:33 AM (17 years ago)
Author:
bills
Message:

In distribution server merge rcDSProduct into rcDestination. It was illogical for
a product to be shared by multiple destinations.
In defineinterest define by query to allow destination names and target parameters
to be used. Much more administrator friendly.
Add a label to pstampRequest. Not used yet.
Split reverting of faults in distRuns from faults building components.

Location:
trunk/ippTools/share
Files:
2 added
6 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/Makefile.am

    r25429 r25493  
    110110     disttool_definebyquery_stack.sql \
    111111     disttool_definebyquery_warp.sql \
     112     disttool_defineinterest.sql \
     113     disttool_listinterest.sql \
    112114     disttool_pending_camera.sql \
    113115     disttool_pending_chip.sql \
     
    122124     disttool_queuercrun.sql \
    123125     disttool_revertrcrun.sql \
    124      disttool_revertrun_update.sql \
    125      disttool_revertrun_delete.sql \
     126     disttool_revertrun.sql \
     127     disttool_revertcomponent.sql \
    126128     disttool_revertfileset.sql \
    127129     disttool_toadvance.sql \
  • trunk/ippTools/share/disttool_pendingfileset.sql

    r24422 r25493  
    55    stage_id,
    66    CONCAT_WS('.', distRun.outroot, CONVERT(distRun.dist_id, CHAR)) as dist_dir,
    7     rcDSProduct.name AS product_name,
    8     rcDSProduct.prod_id,
    9     rcDSProduct.dbname AS ds_dbname,
    10     rcDSProduct.dbhost AS ds_dbhost
     7    rcDestination.name AS product_name,
     8    rcDestination.prod_id,
     9    rcDestination.dbname AS ds_dbname,
     10    rcDestination.dbhost AS ds_dbhost
    1111FROM rcDestination
    1212JOIN rcInterest USING(dest_id)
    1313JOIN distTarget USING(target_id)
    14 JOIN rcDSProduct USING(prod_id)
    1514JOIN distRun USING(target_id)
    16 LEFT JOIN rcDSFileset USING(prod_id, dist_id)
     15LEFT JOIN rcDSFileset USING(dest_id, dist_id)
    1716WHERE distRun.state = 'full'
    1817    AND rcDestination.state = 'enabled'
  • trunk/ippTools/share/disttool_queuercrun.sql

    r23912 r25493  
    1313JOIN rcInterest USING(dest_id)
    1414JOIN distTarget USING(target_id)
    15 JOIN rcDSProduct USING(prod_id)
    1615JOIN distRun USING(target_id, stage)
    17 JOIN rcDSFileset USING(prod_id, dist_id)
     16JOIN rcDSFileset USING(dest_id, dist_id)
    1817LEFT JOIN rcRun using(fs_id, dest_id)
    1918WHERE rcRun.rc_id IS NULL
  • trunk/ippTools/share/disttool_revertcomponent.sql

  • trunk/ippTools/share/disttool_revertrun.sql

  • trunk/ippTools/share/disttool_updatercrun.sql

    r23912 r25493  
    11UPDATE rcRun
    22JOIN rcDestination USING(dest_id)
    3 JOIN rcDSProduct USING(prod_id)
    4 JOIN rcDSFileset using(prod_id, fs_id)
     3JOIN rcDSFileset using(dest_id, fs_id)
    54SET
    65    -- set hook %s
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r25479 r25493  
    12321232        name VARCHAR(64) UNIQUE,
    12331233        reqType VARCHAR(16),
     1234        label VARCHAR(64),
    12341235        outProduct VARCHAR(64),
    12351236        uri VARCHAR(255),
     
    12971298
    12981299
    1299 CREATE TABLE rcDSProduct (
    1300     prod_id     BIGINT AUTO_INCREMENT,
    1301     name        VARCHAR(64),
    1302     dbname      VARCHAR(64),
    1303     dbhost      VARCHAR(64),
    1304     PRIMARY KEY(prod_id)
    1305 )  ENGINE=innodb DEFAULT CHARSET=latin1;
    1306 
    13071300CREATE TABLE rcDestination (
    13081301    dest_id     BIGINT AUTO_INCREMENT,
    1309     prod_id     BIGINT,
    13101302    name        VARCHAR(64),
    13111303    status_uri  VARCHAR(255),
    13121304    comment     VARCHAR(255),
    13131305    last_fileset VARCHAR(255),
     1306    dbname      VARCHAR(64),
     1307    dbhost      VARCHAR(64),
    13141308    state       VARCHAR(64),
    1315     PRIMARY KEY(dest_id),
    1316     FOREIGN KEY(prod_id) REFERENCES rcDSProduct(prod_id)
     1309    PRIMARY KEY(dest_id)
    13171310)  ENGINE=innodb DEFAULT CHARSET=latin1;
    1318 
    13191311
    13201312CREATE TABLE rcInterest (
     
    13321324    fs_id       BIGINT AUTO_INCREMENT,
    13331325    dist_id     BIGINT,
    1334     prod_id     BIGINT,
     1326    dest_id     BIGINT,
    13351327    name        VARCHAR(255),
    13361328    state       VARCHAR(64),
    13371329    registered  TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    13381330    fault       SMALLINT DEFAULT 0,
    1339     PRIMARY KEY(dist_id, prod_id),
     1331    PRIMARY KEY(dist_id, dest_id),
    13401332    KEY(fs_id),
    13411333    FOREIGN KEY(dist_id) REFERENCES distRun(dist_id),
    1342     FOREIGN KEY(prod_id) REFERENCES rcDSProduct(prod_id)
    1343 --    KEY(dist_id, prod_id)
     1334    FOREIGN KEY(dest_id) REFERENCES rcDestination(dest_id)
    13441335)  ENGINE=innodb DEFAULT CHARSET=latin1;
    13451336
  • trunk/ippTools/share/rcserver_updatercrun.sql

    r23912 r25493  
    11UPDATE rcRun
    22JOIN rcDestination USING(dest_id)
    3 JOIN rcDSProduct USING(prod_id)
    4 JOIN rcDSFileset using(prod_id, fs_id)
     3JOIN rcDSFileset using(dest_id, fs_id)
    54SET
    6 rcRun.fault= 42, rcDestination.last_fileset = 'o4741g0236o.chip.14519.33.1'
    7 
    8 
    9 
Note: See TracChangeset for help on using the changeset viewer.