Updating the machines

Don't screw the machines...

Now that this bit of advice is done, for the serious stuff.

Get an admin proxy

 dirac-proxy-init -g diracAdmin 

Start the cli:

 dirac-admin-sysadmin-cli 
then
 set host voilcdirac<XX>.cern.ch 
Then
 show info 
The CLI is a usual DIRAC cli: help is available.

To update it's

 update v12r0p2 [-g <lcg_release>] 
The version can be found in ilcdirac.git and that should do the trick. Then you need to restart the services:
 restart *
Then the connection is lost. so you need to do the set host again.

All the machines should be updated the same way.

Then you have to make sure that all the services have restarted properly by checking the log files on every machine, agent and services. Logs can be found here: https://ilcdirac.cern.ch/DIRAC/ILC-Production/diracAdmin/systems/SystemAdministration/display (right click on the agent/service --> Log)

Things to do for the moment when updating

- There are several hacks that are needed because of the way we run:

You also need to change the extendable production type for the production Monitoring page on the web portal. Simply edit

/opt/dirac/pro/Web/dirac/public/javascripts/jobs/ProductionMonitor.js
line 369 should read
  if(type == 'MCGeneration'){

- Adding the JIRA report issue button Edit /opt/dirac/pro/Web/dirac/templates/diracPage.mako (on volcd04) and add

<script type="text/javascript" src="https://its.cern.ch/jira/s/en_US-nzmpdc-418945332/850/82/1.2.9/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?collectorId=d37d5599"></script>
in the header of the html block.

(Or what you find in Jira Administration -> Issue Collector)

Then restart Web_paster.

Patching the machines

  • Get the ILCDiracOps git repository.
  • install pssh (available via yum on SL6)
  • pssh -t0 -x '-t -t' -i -h hostFile "sudo /home/dirac/patchDirac.sh $BRANCH"
  • After the patching the services or agents that were patched need to be restarted.

-- AndreSailer - 2015-08-21

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2015-08-21 - AndreSailer
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CLIC All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback