<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Olivier+Devroede</id>
	<title>T2B Wiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Olivier+Devroede"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/Special:Contributions/Olivier_Devroede"/>
	<updated>2026-04-20T16:56:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=676</id>
		<title>UpdateCertificates</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=676"/>
		<updated>2016-05-17T09:17:50Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Procedure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Update and request server certificates ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
All certificates for our machines will have to be updated every year. We will receive mails starting 2 weeks before the certificates expire. &amp;lt;br&amp;gt;&lt;br /&gt;
the decision was taken to update all the certificates at once and Stein De Weirdt wrote a script to do just that. &amp;lt;br&amp;gt;&lt;br /&gt;
The last update of the certificates happened on 2 mai 2008 on a cloudy but warm afternoon.&lt;br /&gt;
&lt;br /&gt;
=== Procedure ===&lt;br /&gt;
&lt;br /&gt;
Log in on &#039;&#039;&#039;qnat&#039;&#039;&#039; and generate all the necessary certificates with this tool:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
the tools help output gives:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Usage: &lt;br /&gt;
    --mode    Mode: new,renew,conv,get (default: renew)&lt;br /&gt;
                    renew: make new server requests from existing certificates (in directory --dir) and upload the requests&lt;br /&gt;
                    get: - will make quattor templates in &amp;lt;--dir&amp;gt;/private&lt;br /&gt;
                         - public key need to be put in &amp;lt;--dir&amp;gt;/PemDir (to be created)&lt;br /&gt;
                         - the matching private key is looked for in &amp;lt;--dir&amp;gt;&lt;br /&gt;
                    new: make new server request (with DN attributes --att and create the requests/key in --dir)&lt;br /&gt;
    --dir     Read/write templates to/from dir (default: .)&lt;br /&gt;
  &lt;br /&gt;
    --debug   Set debug mode. (default: False) &lt;br /&gt;
    --att     DN Attributes, comma separated list eg (OU=IIHE,CN=gridce.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be) &lt;br /&gt;
              - assumes C=BE and O=BEGRID &lt;br /&gt;
              - emailAddress is mandatory (and should be last att)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Create/renew certificate&lt;br /&gt;
==== Create New Certificate ====&lt;br /&gt;
To create a new certificate, do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=new --dir=/root/new-cert/ --att=OU=IIHE,CN=behar050.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Renew Certificates ====&lt;br /&gt;
To renew all certificates, first remove all .pem files in /root/new-cert/. Move the .tpl files from /root/new-cert/private to /root/new-cert/. Then, remove everything from the 2 subdirectories (private and PemDir)&amp;lt;br&amp;gt;&lt;br /&gt;
Then Do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=renew --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039;All the keys need to be uploaded one by one to the belnet site. Go to https://gridra.belnet.be , click &amp;quot;Request a Certificate&amp;quot;, choose server from the drop down box. Upload one generate certificate (the ones with -req). On OU needs to be added. For this chose &#039;VUB&#039;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; All the generated certificates will be send via mail. Download them all (choose only the one ending in _iihe_ac_be.pem from every mail) and put them in /root/new-cert/PemDir and do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=get  --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
all the certificates templates will be saved in /root/new-cert/private. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; next step is to update all the quattor files and to make the clients connect for their new certificates. &amp;lt;br&amp;gt;&lt;br /&gt;
For this, put the private templates on ccq3, /opt/CB6/private or /opt/CB5/private, in the appropriate glite version dir.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /opt/CB6/svncheck/&lt;br /&gt;
./runcheck&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; This will broadcast a message to all the machines and they will respond within 5 minutes and start updating. All services except one will update fine &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; We now check that the update was complete and for this we first log in to &#039;&#039;&#039;maite&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep filecopy /var/log/ncm-cdispd.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or alternatively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
less /var/log/ncm/component-filecopy.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, check the certificate:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl x509 -in /etc/grid-security/hostcert.pem -noout -dates&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And make sure the new end date is indeed a year from now.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; We now perform a final check: log in to any UI and do&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srmls srm://maite.iihe.ac.be:8443/pnfs/iihe/cms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
also try to copy some files from storage to the use disk using dccp. &lt;br /&gt;
All directories should be listed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; Restart argus service on argus&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service argus stop&lt;br /&gt;
service argus start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this is not enough think of restarting the node.&lt;br /&gt;
&lt;br /&gt;
If the DN of the machine changes (new certificate provider, ...) then its need to be added explicitly into the template of argus. The affected variable is PAP_HOST_DN. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; (Optional) Adapt GOCDB server entry&lt;br /&gt;
&lt;br /&gt;
If the DN of the machine changes (especially needed for APEL) then go to the GOCDB page and edit the corresponding entry to reflect the new DN. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=675</id>
		<title>UpdateCertificates</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=675"/>
		<updated>2016-05-17T09:16:48Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Update and request server certificates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Update and request server certificates ==&lt;br /&gt;
&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
All certificates for our machines will have to be updated every year. We will receive mails starting 2 weeks before the certificates expire. &amp;lt;br&amp;gt;&lt;br /&gt;
the decision was taken to update all the certificates at once and Stein De Weirdt wrote a script to do just that. &amp;lt;br&amp;gt;&lt;br /&gt;
The last update of the certificates happened on 2 mai 2008 on a cloudy but warm afternoon.&lt;br /&gt;
&lt;br /&gt;
=== Procedure ===&lt;br /&gt;
&lt;br /&gt;
Log in on &#039;&#039;&#039;ccq3&#039;&#039;&#039; and generate all the necessary certificates with this tool:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
the tools help output gives:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Usage: &lt;br /&gt;
    --mode    Mode: new,renew,conv,get (default: renew)&lt;br /&gt;
                    renew: make new server requests from existing certificates (in directory --dir) and upload the requests&lt;br /&gt;
                    get: - will make quattor templates in &amp;lt;--dir&amp;gt;/private&lt;br /&gt;
                         - public key need to be put in &amp;lt;--dir&amp;gt;/PemDir (to be created)&lt;br /&gt;
                         - the matching private key is looked for in &amp;lt;--dir&amp;gt;&lt;br /&gt;
                    new: make new server request (with DN attributes --att and create the requests/key in --dir)&lt;br /&gt;
    --dir     Read/write templates to/from dir (default: .)&lt;br /&gt;
  &lt;br /&gt;
    --debug   Set debug mode. (default: False) &lt;br /&gt;
    --att     DN Attributes, comma separated list eg (OU=IIHE,CN=gridce.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be) &lt;br /&gt;
              - assumes C=BE and O=BEGRID &lt;br /&gt;
              - emailAddress is mandatory (and should be last att)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Create/renew certificate&lt;br /&gt;
==== Create New Certificate ====&lt;br /&gt;
To create a new certificate, do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=new --dir=/root/new-cert/ --att=OU=IIHE,CN=behar050.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Renew Certificates ====&lt;br /&gt;
To renew all certificates, first remove all .pem files in /root/new-cert/. Move the .tpl files from /root/new-cert/private to /root/new-cert/. Then, remove everything from the 2 subdirectories (private and PemDir)&amp;lt;br&amp;gt;&lt;br /&gt;
Then Do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=renew --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039;All the keys need to be uploaded one by one to the belnet site. Go to https://gridra.belnet.be , click &amp;quot;Request a Certificate&amp;quot;, choose server from the drop down box. Upload one generate certificate (the ones with -req). On OU needs to be added. For this chose &#039;VUB&#039;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; All the generated certificates will be send via mail. Download them all (choose only the one ending in _iihe_ac_be.pem from every mail) and put them in /root/new-cert/PemDir and do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=get  --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
all the certificates templates will be saved in /root/new-cert/private. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; next step is to update all the quattor files and to make the clients connect for their new certificates. &amp;lt;br&amp;gt;&lt;br /&gt;
For this, put the private templates on ccq3, /opt/CB6/private or /opt/CB5/private, in the appropriate glite version dir.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /opt/CB6/svncheck/&lt;br /&gt;
./runcheck&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; This will broadcast a message to all the machines and they will respond within 5 minutes and start updating. All services except one will update fine &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; We now check that the update was complete and for this we first log in to &#039;&#039;&#039;maite&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep filecopy /var/log/ncm-cdispd.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or alternatively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
less /var/log/ncm/component-filecopy.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, check the certificate:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl x509 -in /etc/grid-security/hostcert.pem -noout -dates&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And make sure the new end date is indeed a year from now.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; We now perform a final check: log in to any UI and do&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srmls srm://maite.iihe.ac.be:8443/pnfs/iihe/cms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
also try to copy some files from storage to the use disk using dccp. &lt;br /&gt;
All directories should be listed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; Restart argus service on argus&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service argus stop&lt;br /&gt;
service argus start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this is not enough think of restarting the node.&lt;br /&gt;
&lt;br /&gt;
If the DN of the machine changes (new certificate provider, ...) then its need to be added explicitly into the template of argus. The affected variable is PAP_HOST_DN. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; (Optional) Adapt GOCDB server entry&lt;br /&gt;
&lt;br /&gt;
If the DN of the machine changes (especially needed for APEL) then go to the GOCDB page and edit the corresponding entry to reflect the new DN. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=674</id>
		<title>UpdateCertificates</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=674"/>
		<updated>2016-05-17T09:16:28Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Update and request server certificates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Update and request server certificates ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
All certificates for our machines will have to be updated every year. We will receive mails starting 2 weeks before the certificates expire. &amp;lt;br&amp;gt;&lt;br /&gt;
the decision was taken to update all the certificates at once and Stein De Weirdt wrote a script to do just that. &amp;lt;br&amp;gt;&lt;br /&gt;
The last update of the certificates happened on 2 mai 2008 on a cloudy but warm afternoon.&lt;br /&gt;
&lt;br /&gt;
=== Procedure ===&lt;br /&gt;
&lt;br /&gt;
Log in on &#039;&#039;&#039;ccq3&#039;&#039;&#039; and generate all the necessary certificates with this tool:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
the tools help output gives:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Usage: &lt;br /&gt;
    --mode    Mode: new,renew,conv,get (default: renew)&lt;br /&gt;
                    renew: make new server requests from existing certificates (in directory --dir) and upload the requests&lt;br /&gt;
                    get: - will make quattor templates in &amp;lt;--dir&amp;gt;/private&lt;br /&gt;
                         - public key need to be put in &amp;lt;--dir&amp;gt;/PemDir (to be created)&lt;br /&gt;
                         - the matching private key is looked for in &amp;lt;--dir&amp;gt;&lt;br /&gt;
                    new: make new server request (with DN attributes --att and create the requests/key in --dir)&lt;br /&gt;
    --dir     Read/write templates to/from dir (default: .)&lt;br /&gt;
  &lt;br /&gt;
    --debug   Set debug mode. (default: False) &lt;br /&gt;
    --att     DN Attributes, comma separated list eg (OU=IIHE,CN=gridce.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be) &lt;br /&gt;
              - assumes C=BE and O=BEGRID &lt;br /&gt;
              - emailAddress is mandatory (and should be last att)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Create/renew certificate&lt;br /&gt;
==== Create New Certificate ====&lt;br /&gt;
To create a new certificate, do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=new --dir=/root/new-cert/ --att=OU=IIHE,CN=behar050.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Renew Certificates ====&lt;br /&gt;
To renew all certificates, first remove all .pem files in /root/new-cert/. Move the .tpl files from /root/new-cert/private to /root/new-cert/. Then, remove everything from the 2 subdirectories (private and PemDir)&amp;lt;br&amp;gt;&lt;br /&gt;
Then Do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=renew --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039;All the keys need to be uploaded one by one to the belnet site. Go to https://gridra.belnet.be , click &amp;quot;Request a Certificate&amp;quot;, choose server from the drop down box. Upload one generate certificate (the ones with -req). On OU needs to be added. For this chose &#039;VUB&#039;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; All the generated certificates will be send via mail. Download them all (choose only the one ending in _iihe_ac_be.pem from every mail) and put them in /root/new-cert/PemDir and do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=get  --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
all the certificates templates will be saved in /root/new-cert/private. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; next step is to update all the quattor files and to make the clients connect for their new certificates. &amp;lt;br&amp;gt;&lt;br /&gt;
For this, put the private templates on ccq3, /opt/CB6/private or /opt/CB5/private, in the appropriate glite version dir.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /opt/CB6/svncheck/&lt;br /&gt;
./runcheck&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; This will broadcast a message to all the machines and they will respond within 5 minutes and start updating. All services except one will update fine &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; We now check that the update was complete and for this we first log in to &#039;&#039;&#039;maite&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep filecopy /var/log/ncm-cdispd.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or alternatively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
less /var/log/ncm/component-filecopy.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, check the certificate:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl x509 -in /etc/grid-security/hostcert.pem -noout -dates&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And make sure the new end date is indeed a year from now.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; We now perform a final check: log in to any UI and do&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srmls srm://maite.iihe.ac.be:8443/pnfs/iihe/cms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
also try to copy some files from storage to the use disk using dccp. &lt;br /&gt;
All directories should be listed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; Restart argus service on argus&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service argus stop&lt;br /&gt;
service argus start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this is not enough think of restarting the node.&lt;br /&gt;
&lt;br /&gt;
If the DN of the machine changes (new certificate provider, ...) then its need to be added explicitly into the template of argus. The affected variable is PAP_HOST_DN. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; (Optional) Adapt GOCDB server entry&lt;br /&gt;
&lt;br /&gt;
If the DN of the machine changes (especially needed for APEL) then go to the GOCDB page and edit the corresponding entry to reflect the new DN. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=673</id>
		<title>UpdateCertificates</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=673"/>
		<updated>2016-05-17T09:15:47Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Deprecated content ! Please read before going any further on this page ! */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Update and request server certificates ==&lt;br /&gt;
[[PageOutline]]&lt;br /&gt;
----&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
All certificates for our machines will have to be updated every year. We will receive mails starting 2 weeks before the certificates expire. &amp;lt;br&amp;gt;&lt;br /&gt;
the decision was taken to update all the certificates at once and Stein De Weirdt wrote a script to do just that. &amp;lt;br&amp;gt;&lt;br /&gt;
The last update of the certificates happened on 2 mai 2008 on a cloudy but warm afternoon.&lt;br /&gt;
&lt;br /&gt;
=== Procedure ===&lt;br /&gt;
&lt;br /&gt;
Log in on &#039;&#039;&#039;ccq3&#039;&#039;&#039; and generate all the necessary certificates with this tool:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
the tools help output gives:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Usage: &lt;br /&gt;
    --mode    Mode: new,renew,conv,get (default: renew)&lt;br /&gt;
                    renew: make new server requests from existing certificates (in directory --dir) and upload the requests&lt;br /&gt;
                    get: - will make quattor templates in &amp;lt;--dir&amp;gt;/private&lt;br /&gt;
                         - public key need to be put in &amp;lt;--dir&amp;gt;/PemDir (to be created)&lt;br /&gt;
                         - the matching private key is looked for in &amp;lt;--dir&amp;gt;&lt;br /&gt;
                    new: make new server request (with DN attributes --att and create the requests/key in --dir)&lt;br /&gt;
    --dir     Read/write templates to/from dir (default: .)&lt;br /&gt;
  &lt;br /&gt;
    --debug   Set debug mode. (default: False) &lt;br /&gt;
    --att     DN Attributes, comma separated list eg (OU=IIHE,CN=gridce.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be) &lt;br /&gt;
              - assumes C=BE and O=BEGRID &lt;br /&gt;
              - emailAddress is mandatory (and should be last att)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Create/renew certificate&lt;br /&gt;
==== Create New Certificate ====&lt;br /&gt;
To create a new certificate, do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=new --dir=/root/new-cert/ --att=OU=IIHE,CN=behar050.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Renew Certificates ====&lt;br /&gt;
To renew all certificates, first remove all .pem files in /root/new-cert/. Move the .tpl files from /root/new-cert/private to /root/new-cert/. Then, remove everything from the 2 subdirectories (private and PemDir)&amp;lt;br&amp;gt;&lt;br /&gt;
Then Do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=renew --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039;All the keys need to be uploaded one by one to the belnet site. Go to https://gridra.belnet.be , click &amp;quot;Request a Certificate&amp;quot;, choose server from the drop down box. Upload one generate certificate (the ones with -req). On OU needs to be added. For this chose &#039;VUB&#039;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; All the generated certificates will be send via mail. Download them all (choose only the one ending in _iihe_ac_be.pem from every mail) and put them in /root/new-cert/PemDir and do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=get  --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
all the certificates templates will be saved in /root/new-cert/private. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; next step is to update all the quattor files and to make the clients connect for their new certificates. &amp;lt;br&amp;gt;&lt;br /&gt;
For this, put the private templates on ccq3, /opt/CB6/private or /opt/CB5/private, in the appropriate glite version dir.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /opt/CB6/svncheck/&lt;br /&gt;
./runcheck&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; This will broadcast a message to all the machines and they will respond within 5 minutes and start updating. All services except one will update fine &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; We now check that the update was complete and for this we first log in to &#039;&#039;&#039;maite&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep filecopy /var/log/ncm-cdispd.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or alternatively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
less /var/log/ncm/component-filecopy.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, check the certificate:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl x509 -in /etc/grid-security/hostcert.pem -noout -dates&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And make sure the new end date is indeed a year from now.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; We now perform a final check: log in to any UI and do&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srmls srm://maite.iihe.ac.be:8443/pnfs/iihe/cms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
also try to copy some files from storage to the use disk using dccp. &lt;br /&gt;
All directories should be listed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; Restart argus service on argus&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service argus stop&lt;br /&gt;
service argus start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this is not enough think of restarting the node.&lt;br /&gt;
&lt;br /&gt;
If the DN of the machine changes (new certificate provider, ...) then its need to be added explicitly into the template of argus. The affected variable is PAP_HOST_DN. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;9.&#039;&#039;&#039; (Optional) Adapt GOCDB server entry&lt;br /&gt;
&lt;br /&gt;
If the DN of the machine changes (especially needed for APEL) then go to the GOCDB page and edit the corresponding entry to reflect the new DN. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=Register_to_the_CMS_VO&amp;diff=664</id>
		<title>Register to the CMS VO</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Register_to_the_CMS_VO&amp;diff=664"/>
		<updated>2016-04-12T14:37:32Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Go to the [https://voms2.cern.ch:8443/voms/cms/register/start.action  VOMS page]. On the possible certificate prompt, select the one you just created. &amp;lt;br&amp;gt;&lt;br /&gt;
** [ If you don&#039;t arrive in the page below, then you might already be registered to the CMS VO. Make the [[SiteDB|SiteDB check]] to be sure. ]&lt;br /&gt;
** Enter the email address registered at cern, then click submit.&amp;lt;br&amp;gt;&lt;br /&gt;
** You should appear just below. If it&#039;s you, well click on the correct button !&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:: [[ File:vocms1.png|center]]&amp;lt;br&amp;gt;&lt;br /&gt;
:* If it doesn&#039;t find you with the email you entered after clicking on submit, then look in the [https://phonebook.cern.ch/phonebook/ CERN phonebook] for your email. If you cannot find yourself, then make sure you are registered to CERN or CMS at least.&lt;br /&gt;
:: [[File:cern_phonebook.png|center]]&lt;br /&gt;
:* Fill in all fields, accept the policy, then submit.&lt;br /&gt;
:: [[File:vocms_form.png|center]]&lt;br /&gt;
:* The procedure is nearly finished, look at your inbox corresponding to the CERN email.&lt;br /&gt;
[[File:vocms_email.png|center]]&lt;br /&gt;
:* Just click on the confirmation link in the email received.&lt;br /&gt;
[[File:vocms_end.png|center]]&lt;br /&gt;
&lt;br /&gt;
* Now you only need to wait &#039;&#039;&#039;a few hours&#039;&#039;&#039; for your membership to be approved !&lt;br /&gt;
&lt;br /&gt;
* You can [[SiteDB | follow the wiki]] to check SiteDB if your certificate as well as membership are fine and got approved.&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=ManageAllAdminScriptsWithGit&amp;diff=651</id>
		<title>ManageAllAdminScriptsWithGit</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=ManageAllAdminScriptsWithGit&amp;diff=651"/>
		<updated>2016-03-17T10:31:28Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Adding/Modifying the scripts from your computer */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
* The admin scripts are managed by [http://git.iihe.ac.be Git]&lt;br /&gt;
* They should be mounted on all machines managed by quattor in &#039;&#039;&#039;/scripts&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Git Workflow ===&lt;br /&gt;
==== Adding/Modifying the scripts from your computer ====&lt;br /&gt;
# Request an account from git admins&lt;br /&gt;
# add your ssh key to your profile&lt;br /&gt;
# Do an &#039;&#039;&#039;git clone git@git.iihe.ac.be:iihe-scripts.git&#039;&#039;&#039; to download the content of iihe-scripts locally &amp;lt;br&amp;gt; If you already have the script directory locally, you can first make sure you are on the master branch with &#039;&#039;&#039;git checkout master&#039;&#039;&#039; , and then pull the possible updates with &#039;&#039;&#039;git pull&#039;&#039;&#039; &amp;lt;br&amp;gt; If you have made some changes to the master branch (wich you shouldn&#039;t!!), use &#039;&#039;&#039;git stash&#039;&#039;&#039; to &#039;&#039;store&#039;&#039; the changes and get a vanilla master, and when on the new branch (next step) use &#039;&#039;&#039;git stash apply&#039;&#039;&#039; to apply the changes to the current branch.&lt;br /&gt;
# Make a new branch from master &#039;&#039;&#039;git checkout -b BranchImWorkingOn&#039;&#039;&#039;. The branch name should reflect what you plan on doing. Never use directly the &#039;&#039;master&#039;&#039; branch !! &amp;lt;br&amp;gt; You can check this worked with &#039;&#039;&#039;git branch -ra&#039;&#039;&#039; that lists local &amp;amp; remote branches.&lt;br /&gt;
# Make your new scripts or modifications&lt;br /&gt;
# If you made new files/directories, prepare them for atomic commit: &#039;&#039;&#039;git add -N myfile&#039;&#039;&#039;&lt;br /&gt;
# Select the chunks of code you want to commit: &#039;&#039;&#039;git add -p&#039;&#039;&#039; , (explanations of letters [[ManageAllAdminScriptsWithGit#Summary_Of_Git_Commands|here]]). Be as small and precise as possible for each commits.&lt;br /&gt;
# If you want to revert the adding chunks to the index you just did : &#039;&#039;&#039;git reset -p&#039;&#039;&#039;&lt;br /&gt;
# Do the commit for the chunks you selected &#039;&#039;&#039;git commit -m&amp;quot;short message&amp;quot; [-m&amp;quot;long message&amp;quot;]&#039;&#039;&#039;. The long message is optional.&lt;br /&gt;
# To list the last commits &#039;&#039;&#039;git log -&amp;lt;NumberOfCommits&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
# Last, you need to push the local changes to the remote server : &#039;&#039;&#039;git push origin BranchImWorkingOn&#039;&#039;&#039;&lt;br /&gt;
# Make a merge request on the [http://git.iihe.ac.be git site]: &amp;lt;br&amp;gt;[[File: git_merge_request.png|700px|center]]&lt;br /&gt;
&lt;br /&gt;
==== Summary Of Git Commands ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# First&lt;br /&gt;
git clone git.blahblah&lt;br /&gt;
git checkout master&lt;br /&gt;
git pull -p # this updates the local branch taking origin&lt;br /&gt;
git checkout -b newbranch&lt;br /&gt;
#or git branch -m oldbranch newbranch&lt;br /&gt;
&lt;br /&gt;
# if working on wrong branch&lt;br /&gt;
git stash&lt;br /&gt;
# then go to new branch&lt;br /&gt;
git stash apply&lt;br /&gt;
&lt;br /&gt;
git branch -ra ==&amp;gt; lists repo &amp;amp; local branches&lt;br /&gt;
&lt;br /&gt;
# Atomic commit (by hunks):&lt;br /&gt;
git add -N myfile #first prepare file before patchadding&lt;br /&gt;
git add -p&lt;br /&gt;
  y - indexer cette partie&lt;br /&gt;
  n - ne pas indexer cette partie&lt;br /&gt;
  a - indexer cette partie et toutes celles restantes dans ce fichier&lt;br /&gt;
  d - ne pas indexer cette partie ni aucune de celles restantes dans ce fichier&lt;br /&gt;
  g - sélectionner une partie à voir&lt;br /&gt;
  / - chercher une partie correspondant à la regexp donnée&lt;br /&gt;
  j - laisser cette partie non décidée, voir la prochaine partie non encore décidée&lt;br /&gt;
  J - laisser cette partie non décidée, voir la prochaine partie&lt;br /&gt;
  k - laisser cette partie non décidée, voir la partie non encore décidée précédente&lt;br /&gt;
  K - laisser cette partie non décidée, voir la partie précédente&lt;br /&gt;
  s - couper la partie courante en parties plus petites&lt;br /&gt;
  e - modifier manuellement la partie courante&lt;br /&gt;
  ? - afficher l&#039;aide&lt;br /&gt;
&lt;br /&gt;
  ==&amp;gt; this add hunks to index, needs git commit -m&amp;quot;&amp;quot;&lt;br /&gt;
git reset -p   ==&amp;gt; revert the adding to index&lt;br /&gt;
&lt;br /&gt;
git commit -m&amp;quot;&amp;quot; [-m&amp;quot;long message&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
git diff          ==&amp;gt; local / index&lt;br /&gt;
git diff HEAD     ==&amp;gt; local / repo&lt;br /&gt;
git diff --cached ==&amp;gt; index / repo&lt;br /&gt;
&lt;br /&gt;
git log -3  ==&amp;gt; lists commit&lt;br /&gt;
&lt;br /&gt;
# Pushing&lt;br /&gt;
git push origin newbranch   ==&amp;gt; pushes local branch to repo &amp;amp; creates new repo branch&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Adding /scripts to a machine and getting access to it ===&lt;br /&gt;
* You need to mount with nfs (or autofs) the /storage of tesla&lt;br /&gt;
* Then create a symlink from &#039;&#039;&#039;/storage_mnt/storage/group/admin/iihe-scripts&#039;&#039;&#039; to &#039;&#039;&#039;/scripts&#039;&#039;&#039;&lt;br /&gt;
* Or you can just include the template in &#039;&#039;&#039;config/nfs/storage&#039;&#039;&#039; in your machine, which does all this.&lt;br /&gt;
* It is in read-only for non-root users of the &#039;&#039;&#039;admins&#039;&#039;&#039; group, so you cannot make any modifications there. &lt;br /&gt;
* If you want access as non-root user, you need to add yourself in [http://freeipa.wn.iihe.ac.be freeipa] [accessible through tunnel only] to the &#039;&#039;&#039;admins&#039;&#039;&#039; group.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
=== Old Wiki page for using SVN ===&lt;br /&gt;
*[[ManageAllAdminScriptsWithSVN| here]]&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=650</id>
		<title>UpdateCertificates</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=650"/>
		<updated>2016-03-16T12:26:26Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Renew Certificates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Deprecated content ! Please read before going any further on this page ! ==&lt;br /&gt;
The procedure to request certificates has changed since a few months. The new procedure is described [http://wikit.iihe.ac.be/index.php/SSL_Certificates here].&lt;br /&gt;
&lt;br /&gt;
So, what is written below is not valid anymore and needs to be adapted...&lt;br /&gt;
&lt;br /&gt;
== Update and request server certificates ==&lt;br /&gt;
[[PageOutline]]&lt;br /&gt;
----&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
All certificates for our machines will have to be updated every year. We will receive mails starting 2 weeks before the certificates expire. &amp;lt;br&amp;gt;&lt;br /&gt;
the decision was taken to update all the certificates at once and Stein De Weirdt wrote a script to do just that. &amp;lt;br&amp;gt;&lt;br /&gt;
The last update of the certificates happened on 2 mai 2008 on a cloudy but warm afternoon.&lt;br /&gt;
&lt;br /&gt;
=== Procedure ===&lt;br /&gt;
&lt;br /&gt;
Log in on &#039;&#039;&#039;ccq3&#039;&#039;&#039; and generate all the necessary certificates with this tool:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
the tools help output gives:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Usage: &lt;br /&gt;
    --mode    Mode: new,renew,conv,get (default: renew)&lt;br /&gt;
                    renew: make new server requests from existing certificates (in directory --dir) and upload the requests&lt;br /&gt;
                    get: - will make quattor templates in &amp;lt;--dir&amp;gt;/private&lt;br /&gt;
                         - public key need to be put in &amp;lt;--dir&amp;gt;/PemDir (to be created)&lt;br /&gt;
                         - the matching private key is looked for in &amp;lt;--dir&amp;gt;&lt;br /&gt;
                    new: make new server request (with DN attributes --att and create the requests/key in --dir)&lt;br /&gt;
    --dir     Read/write templates to/from dir (default: .)&lt;br /&gt;
  &lt;br /&gt;
    --debug   Set debug mode. (default: False) &lt;br /&gt;
    --att     DN Attributes, comma separated list eg (OU=IIHE,CN=gridce.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be) &lt;br /&gt;
              - assumes C=BE and O=BEGRID &lt;br /&gt;
              - emailAddress is mandatory (and should be last att)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Create/renew certificate&lt;br /&gt;
==== Create New Certificate ====&lt;br /&gt;
To create a new certificate, do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=new --dir=/root/new-cert/ --att=OU=IIHE,CN=behar050.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Renew Certificates ====&lt;br /&gt;
To renew all certificates, first remove all .pem files in /root/new-cert/. Move the .tpl files from /root/new-cert/private to /root/new-cert/. Then, remove everything from the 2 subdirectories (private and PemDir)&amp;lt;br&amp;gt;&lt;br /&gt;
Then Do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=renew --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039;All the keys need to be uploaded one by one to the belnet site. Go to https://gridra.belnet.be , click &amp;quot;Request a Certificate&amp;quot;, choose server from the drop down box. Upload one generate certificate (the ones with -req). On OU needs to be added. For this chose &#039;VUB&#039;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; All the generated certificates will be send via mail. Download them all (choose only the one ending in _iihe_ac_be.pem from every mail) and put them in /root/new-cert/PemDir and do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=get  --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
all the certificates templates will be saved in /root/new-cert/private. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; next step is to update all the quattor files and to make the clients connect for their new certificates. &amp;lt;br&amp;gt;&lt;br /&gt;
For this, put the private templates on ccq3, /opt/CB6/private or /opt/CB5/private, in the appropriate glite version dir.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /opt/CB6/svncheck/&lt;br /&gt;
./runcheck&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; This will broadcast a message to all the machines and they will respond within 5 minutes and start updating. All services except one will update fine &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; We now check that the update was complete and for this we first log in to &#039;&#039;&#039;maite&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep filecopy /var/log/ncm-cdispd.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or alternatively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
less /var/log/ncm/component-filecopy.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, check the certificate:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl x509 -in /etc/grid-security/hostcert.pem -noout -dates&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And make sure the new end date is indeed a year from now.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; We now perform a final check: log in to any UI and do&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srmls srm://maite.iihe.ac.be:8443/pnfs/iihe/cms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
also try to copy some files from storage to the use disk using dccp. &lt;br /&gt;
All directories should be listed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; Restart argus service on argus&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service argus stop&lt;br /&gt;
service argus start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this is not enough think of restarting the node.&lt;br /&gt;
&lt;br /&gt;
If the DN of the machine changes (new certificate provider, ...) then its need to be added explicitly into the template of argus. The affected variable is PAP_HOST_DN. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=649</id>
		<title>UpdateCertificates</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=649"/>
		<updated>2016-03-16T12:25:12Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Renew Certificates */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Deprecated content ! Please read before going any further on this page ! ==&lt;br /&gt;
The procedure to request certificates has changed since a few months. The new procedure is described [http://wikit.iihe.ac.be/index.php/SSL_Certificates here].&lt;br /&gt;
&lt;br /&gt;
So, what is written below is not valid anymore and needs to be adapted...&lt;br /&gt;
&lt;br /&gt;
== Update and request server certificates ==&lt;br /&gt;
[[PageOutline]]&lt;br /&gt;
----&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
All certificates for our machines will have to be updated every year. We will receive mails starting 2 weeks before the certificates expire. &amp;lt;br&amp;gt;&lt;br /&gt;
the decision was taken to update all the certificates at once and Stein De Weirdt wrote a script to do just that. &amp;lt;br&amp;gt;&lt;br /&gt;
The last update of the certificates happened on 2 mai 2008 on a cloudy but warm afternoon.&lt;br /&gt;
&lt;br /&gt;
=== Procedure ===&lt;br /&gt;
&lt;br /&gt;
Log in on &#039;&#039;&#039;ccq3&#039;&#039;&#039; and generate all the necessary certificates with this tool:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
the tools help output gives:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Usage: &lt;br /&gt;
    --mode    Mode: new,renew,conv,get (default: renew)&lt;br /&gt;
                    renew: make new server requests from existing certificates (in directory --dir) and upload the requests&lt;br /&gt;
                    get: - will make quattor templates in &amp;lt;--dir&amp;gt;/private&lt;br /&gt;
                         - public key need to be put in &amp;lt;--dir&amp;gt;/PemDir (to be created)&lt;br /&gt;
                         - the matching private key is looked for in &amp;lt;--dir&amp;gt;&lt;br /&gt;
                    new: make new server request (with DN attributes --att and create the requests/key in --dir)&lt;br /&gt;
    --dir     Read/write templates to/from dir (default: .)&lt;br /&gt;
  &lt;br /&gt;
    --debug   Set debug mode. (default: False) &lt;br /&gt;
    --att     DN Attributes, comma separated list eg (OU=IIHE,CN=gridce.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be) &lt;br /&gt;
              - assumes C=BE and O=BEGRID &lt;br /&gt;
              - emailAddress is mandatory (and should be last att)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Create/renew certificate&lt;br /&gt;
==== Create New Certificate ====&lt;br /&gt;
To create a new certificate, do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=new --dir=/root/new-cert/ --att=OU=IIHE,CN=behar050.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Renew Certificates ====&lt;br /&gt;
To renew all certificates, first remove all .pem files in /root/new-cert/. Move the .tpl files from /root/new-cert/private to /root/new-cert/. Then, remove everything from the 2 subdirectories (private and PemDir)&amp;lt;br&amp;gt;&lt;br /&gt;
Then Do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=renew --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039;All the keys need to be uploaded one by one to the belnet site. Go to https://gridra.belnet.be , click &amp;quot;Request a Certificate&amp;quot;, choose server from the drop down box. Upload one generate certificate (the ones with -req). On OU needs to be added. For this chose &#039;VUB&#039;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; All the generated certificates will be send via mail. Download them all (choose only the one ending in _iihe_ac_be.pem from every mail) and put them in /root/new-cert/PemDir and do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=get  --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
all the certificates templates will be saved in /root/new-cert/private. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; next step is to update all the quattor files and to make the clients connect for their new certificates. &amp;lt;br&amp;gt;&lt;br /&gt;
For this, put the private templates on ccq3, /opt/CB6/private or /opt/CB5/private, in the appropriate glite version dir.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /opt/CB6/svncheck/&lt;br /&gt;
./runcheck&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; This will broadcast a message to all the machines and they will respond within 5 minutes and start updating. All services except one will update fine &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; We now check that the update was complete and for this we first log in to &#039;&#039;&#039;maite&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep filecopy /var/log/ncm-cdispd.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or alternatively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
less /var/log/ncm/component-filecopy.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, check the certificate:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl x509 -in /etc/grid-security/hostcert.pem -noout -dates&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And make sure the new end date is indeed a year from now.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; We now perform a final check: log in to any UI and do&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srmls srm://maite.iihe.ac.be:8443/pnfs/iihe/cms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
also try to copy some files from storage to the use disk using dccp. &lt;br /&gt;
All directories should be listed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; Restart argus service on argus&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service argus stop&lt;br /&gt;
service argus start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If this is not enough think of restarting the node.&lt;br /&gt;
&lt;br /&gt;
If the DN of the machine changes (new certificate provider, ...) then its need to be added explicitly into the template of argus.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=648</id>
		<title>UpdateCertificates</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=UpdateCertificates&amp;diff=648"/>
		<updated>2016-03-14T13:32:57Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Deprecated content ! Please read before going any further on this page ! ==&lt;br /&gt;
The procedure to request certificates has changed since a few months. The new procedure is described [http://wikit.iihe.ac.be/index.php/SSL_Certificates here].&lt;br /&gt;
&lt;br /&gt;
So, what is written below is not valid anymore and needs to be adapted...&lt;br /&gt;
&lt;br /&gt;
== Update and request server certificates ==&lt;br /&gt;
[[PageOutline]]&lt;br /&gt;
----&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
All certificates for our machines will have to be updated every year. We will receive mails starting 2 weeks before the certificates expire. &amp;lt;br&amp;gt;&lt;br /&gt;
the decision was taken to update all the certificates at once and Stein De Weirdt wrote a script to do just that. &amp;lt;br&amp;gt;&lt;br /&gt;
The last update of the certificates happened on 2 mai 2008 on a cloudy but warm afternoon.&lt;br /&gt;
&lt;br /&gt;
=== Procedure ===&lt;br /&gt;
&lt;br /&gt;
Log in on &#039;&#039;&#039;ccq3&#039;&#039;&#039; and generate all the necessary certificates with this tool:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
the tools help output gives:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Usage: &lt;br /&gt;
    --mode    Mode: new,renew,conv,get (default: renew)&lt;br /&gt;
                    renew: make new server requests from existing certificates (in directory --dir) and upload the requests&lt;br /&gt;
                    get: - will make quattor templates in &amp;lt;--dir&amp;gt;/private&lt;br /&gt;
                         - public key need to be put in &amp;lt;--dir&amp;gt;/PemDir (to be created)&lt;br /&gt;
                         - the matching private key is looked for in &amp;lt;--dir&amp;gt;&lt;br /&gt;
                    new: make new server request (with DN attributes --att and create the requests/key in --dir)&lt;br /&gt;
    --dir     Read/write templates to/from dir (default: .)&lt;br /&gt;
  &lt;br /&gt;
    --debug   Set debug mode. (default: False) &lt;br /&gt;
    --att     DN Attributes, comma separated list eg (OU=IIHE,CN=gridce.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be) &lt;br /&gt;
              - assumes C=BE and O=BEGRID &lt;br /&gt;
              - emailAddress is mandatory (and should be last att)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1.&#039;&#039;&#039; Create/renew certificate&lt;br /&gt;
==== Create New Certificate ====&lt;br /&gt;
To create a new certificate, do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=new --dir=/root/new-cert/ --att=OU=IIHE,CN=behar050.iihe.ac.be,emailAddress=grid_admin@listserv.vub.ac.be --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Renew Certificates ====&lt;br /&gt;
To renew all certificates, first remove all .pem files in /root/new-cert/. Move the .tpl files from /root/new-cert/private to /root/new-cert/. Then, remove everything from the 2 subdirectories (private and PemDir)&amp;lt;br&amp;gt;&lt;br /&gt;
Then Do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=renew --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;2.&#039;&#039;&#039;All the keys need to be uploaded one by one to the belnet site. Go to https://gridra.belnet.be , click &amp;quot;Request a Certificate&amp;quot;, choose server from the drop down box. Upload one generate certificate (the ones with -req). On OU needs to be added. For this chose &#039;VUB&#039;. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;3.&#039;&#039;&#039; All the generated certificates will be send via mail. Download them all (choose only the one ending in _iihe_ac_be.pem from every mail) and put them in /root/new-cert/PemDir and do:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/CB6/tmp/src/begrid/cb-client/certificate_tool.py --mode=get  --dir=/root/new-cert/ --debug&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
all the certificates templates will be saved in /root/new-cert/private. &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;4.&#039;&#039;&#039; next step is to update all the quattor files and to make the clients connect for their new certificates. &amp;lt;br&amp;gt;&lt;br /&gt;
For this, put the private templates on ccq3, /opt/CB6/private or /opt/CB5/private, in the appropriate glite version dir.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /opt/CB6/svncheck/&lt;br /&gt;
./runcheck&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;5.&#039;&#039;&#039; This will broadcast a message to all the machines and they will respond within 5 minutes and start updating. All services except one will update fine &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;6.&#039;&#039;&#039; We now check that the update was complete and for this we first log in to &#039;&#039;&#039;maite&#039;&#039;&#039;. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
grep filecopy /var/log/ncm-cdispd.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or alternatively&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
less /var/log/ncm/component-filecopy.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, check the certificate:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
openssl x509 -in /etc/grid-security/hostcert.pem -noout -dates&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And make sure the new end date is indeed a year from now.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;7.&#039;&#039;&#039; We now perform a final check: log in to any UI and do&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
srmls srm://maite.iihe.ac.be:8443/pnfs/iihe/cms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
also try to copy some files from storage to the use disk using dccp. &lt;br /&gt;
All directories should be listed.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;8.&#039;&#039;&#039; Restart argus services on argus-emi&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service argus stop&lt;br /&gt;
service argus start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If this is not enough think of restarting the node.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=DCacheAdminMode&amp;diff=646</id>
		<title>DCacheAdminMode</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=DCacheAdminMode&amp;diff=646"/>
		<updated>2016-02-21T18:55:52Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
This wiki page is intended to help admins debugging dCache issues.&lt;br /&gt;
&lt;br /&gt;
=== Tracking pnfs id and pool for a specific file ===&lt;br /&gt;
&lt;br /&gt;
*Login to the admin console&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@maite ~]# ssh -F /root/.ssh/dcache_admin_config admin@localhost&lt;br /&gt;
&lt;br /&gt;
    dCache Admin (VII) (user=admin)&lt;br /&gt;
&lt;br /&gt;
[maite.iihe.ac.be] (local) admin &amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Copy the file with &amp;lt;tt&amp;gt;dccp&amp;lt;/tt&amp;gt; and check in &amp;lt;tt&amp;gt;PoolManager&amp;lt;/tt&amp;gt; the status of the transfer. In our case, something is bad with &amp;lt;tt&amp;gt;pnfsid 000C00000000000000D4D6F8&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[maite.iihe.ac.be] (local) admin &amp;gt; cd PoolManager&lt;br /&gt;
[maite.iihe.ac.be] (PoolManager) admin &amp;gt; rc ls&lt;br /&gt;
000C00000000000000D4D6F8@0.0.0.0/0.0.0.0-*/* m=9 r=1 [&amp;lt;unknown&amp;gt;] [Suspended (pool unavailable) 08.19 10:01:01] {0,}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Another way to know the pnfsid of a file is to run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[maite.iihe.ac.be] (local) admin &amp;gt; pnfs map /pnfs/iihe/cms/ph/sc4/store/mc/2007/11/13/CSA07-tt0j_mT_70-alpgen-3545/0005/064A4D43-7DC3-DC11-B586-0030487C116E.root&lt;br /&gt;
000C00000000000000D4D6F8&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*Or yet another way, in &amp;lt;tt&amp;gt;PnfsManager&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[maite.iihe.ac.be] (PnfsManager) admin &amp;gt; pnfsidof /pnfs/iihe/cms/ph/sc4/store/mc/2007/11/13/CSA07-tt0j_mT_70-alpgen-3545/0005/064A4D43-7DC3-DC11-B586-0030487C116E.root&lt;br /&gt;
000C00000000000000D4D6F8&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*In &amp;lt;tt&amp;gt;PnfsManager&amp;lt;/tt&amp;gt;, using the pnfsid you can locate the pool that stores physically the file by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[maite.iihe.ac.be] (PnfsManager) admin &amp;gt; cacheinfoof 000C00000000000000D4D6F8&lt;br /&gt;
 behar5_1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The command cd will not work to leave go back to admin&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
..&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Looking into each machine explicitly &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[beharX.iihe.ac.be] &amp;gt; ls /storage/[1,2,3]/pool/data/0011000000000000032CC250&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Setting the verbosity level of dCache ===&lt;br /&gt;
&lt;br /&gt;
The procedure to increase the log level can be found in the [dcache workbook https://www.dcache.org/manuals/Book-2.12/config/cf-tss-monitor-fhs.shtml]&lt;br /&gt;
&lt;br /&gt;
The different cells can be found in the files in /usr/share/dcache/defaults/ &amp;lt;br&amp;gt;&lt;br /&gt;
the command is: grep &amp;quot;cell\.name&amp;quot; *  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
f.i.: &lt;br /&gt;
srm domain: SRM-maite&lt;br /&gt;
nfs domain: NFS-maite&lt;br /&gt;
xrootd:     Xrootd-maite&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=LocalSubmission&amp;diff=615</id>
		<title>LocalSubmission</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=LocalSubmission&amp;diff=615"/>
		<updated>2016-02-01T13:34:57Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Attachments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Direct submission to local queue on the T2_BE_IIHE cluster ==&lt;br /&gt;
&lt;br /&gt;
=== Aim ===&lt;br /&gt;
&lt;br /&gt;
*The aim of this page is to provide a brief introduction how to submit to the localqueue.&lt;br /&gt;
*The localqueue allows to send executable code to the Tier2 cluster.&lt;br /&gt;
*This procedure can be used to run non-CMSSW code that need access to files on the Storage Element (SE) maite.iihe.ac.be.&lt;br /&gt;
*It is useful to use this procedure to not overload the User Interfaces (UIs) known as the mX machines.&lt;br /&gt;
&lt;br /&gt;
=== Procedure ===&lt;br /&gt;
&lt;br /&gt;
*Log in to a UI mX.iihe.ac.be; replace X with a number of choice. See [[policies]] about the policies on the UIs.&lt;br /&gt;
*Make a directory and prepare an executable.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir directsubmissiontest&lt;br /&gt;
cd directsubmissiontest/&lt;br /&gt;
emacs script.sh&amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Paste following code into script.sh. (see below)&lt;br /&gt;
*Due to the setup of the Tier2 the output of the script will be placed on the &#039;&#039;/localgrid&#039;&#039; partition which is mounted on both the UI&#039;s on the workernodes. Therefore you need to prepare a directory to make sure the output is stored correctly. The localgrid partition can be used as a sandbox for temporary placing input and output files. Do not store any files there permanently.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /localgrid/$USER/directsubmissiontest&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Execute the following command to submit the script to the local queue&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub -q localgrid@cream02 -o script.stdout -e script.stderr script.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Follow the progress of your job on the UI&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qstat -u $USER localgrid@cream02&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Your job finished if you don&#039;t see it anymore with qstat. You should now be able to find your output files in the directory you&#039;ve create on localgrid&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/localgrid/$USER/directsubmissiontest/script.stdout&lt;br /&gt;
/localgrid/$USER/directsubmissiontest/script.stderr&lt;br /&gt;
/localgrid/$USER/directsubmissiontest/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Comments and FAQ ===&lt;br /&gt;
*In case you would like to access a root file you should copy it to the /scratch space on the workernode.&lt;br /&gt;
**/scratch is the native disk of the workernode and is several 100 GBs big.&lt;br /&gt;
**Each job is allotted a working directory that is cleaned automatically at the end of the job. This directory is store in the variable $TMPDIR&lt;br /&gt;
**Your procedure should look like this: &lt;br /&gt;
**copy the necessary root from /localgrid (if you have any) to $TMPDIR&lt;br /&gt;
**Make sure the output of the job is also written to $TMPDIR   &lt;br /&gt;
**Copy your output files back to /localgrid &lt;br /&gt;
**Do not read root files from /localgrid. This directory is not physically located on the workernode, it is mounted from the fileserver. Doing this will put a big load on the fileserver potentially causing the UIs to be slow.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;****** IMPORTANT *******&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
If you use the local submission, please notice that you potentially can slow down our site. So please, copy all the files you will use during the job to /scratch to avoid this. &amp;lt;br&amp;gt;&lt;br /&gt;
Many thanks, &amp;lt;br&amp;gt;&lt;br /&gt;
The Admin Team&lt;br /&gt;
&lt;br /&gt;
*How to set CMSSW environment in a batch job?&lt;br /&gt;
&lt;br /&gt;
Add the following lines to your script :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pwd=$PWD&lt;br /&gt;
source $VO_CMS_SW_DIR/cmsset_default.sh                          # make scram available                                                                                                                                                             &lt;br /&gt;
cd /localgrid/&amp;lt;USER NAME&amp;gt;/path/to/CMSSW_4_1_4/src/               # your local CMSSW release                                                                                                                                                         &lt;br /&gt;
eval `scram runtime -sh`                                         # don&#039;t use cmsenv, won&#039;t work on batch                                                                                                                                            &lt;br /&gt;
cd $pwd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*How to make your proxy available during batch jobs?&lt;br /&gt;
&lt;br /&gt;
Make sure you have a valid proxy and copy it to some place on /localgrid :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp $X509_USER_PROXY /localgrid/&amp;lt;USER NAME&amp;gt;/some/place&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following line to your script :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export X509_USER_PROXY=/localgrid/&amp;lt;USER NAME&amp;gt;/some/place&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*How to avoid my short jobs from being blocked in the waiting queue when the site is full ?&lt;br /&gt;
&lt;br /&gt;
If you intend to submit short jobs, then it is wise to specify explicitly to the batch system their estimated maximum walltime. You can do this by adding an option to the qsub command :&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
 qsub -q localgrid@cream02 -o script.stdout -e script.stderr -l walltime=&amp;lt;HH:MM:SS&amp;gt; script.sh&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
or by adding the following line at the beginning of your job script :&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
 #PBS -l walltime=&amp;lt;HH:MM:SS&amp;gt;&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
Proceeding this way, your jobs priority will grow faster as time goes by, increasing the chances of being executed first. (The shorter they are, the faster their priority will increase over the time.)&lt;br /&gt;
&lt;br /&gt;
But be aware that if your jobs are running longer then the specified maximum walltime, they will be killed by the batch system. So, don&#039;t hesitate to overestimate a bit this maximum walltime.&lt;br /&gt;
&lt;br /&gt;
=== Stop your jobs ===&lt;br /&gt;
&lt;br /&gt;
If for some reason, you want to stop your jobs on the server, you can use this procedure:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qstat @cream02 | grep &amp;lt;your user name&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will give you a list of jobs running with thier ID&#039;s. f.i.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
394402.cream02            submit.sh        odevroed               0 R localgrid&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, use the ID to kill the job with the qdel command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdel 394402.cream02&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your job will now be removed.&lt;br /&gt;
&lt;br /&gt;
=== Attachments ===&lt;br /&gt;
&lt;br /&gt;
*script.sh&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash          &lt;br /&gt;
&lt;br /&gt;
##Some general shell commands&lt;br /&gt;
STR=&amp;quot;Hello World!&amp;quot;&lt;br /&gt;
echo $STR    &lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; script.sh is checking where it is&amp;quot;&lt;br /&gt;
pwd&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; script.sh is checking how much disk space is still available&amp;quot;&lt;br /&gt;
df -h&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; script.sh is listing files and directories in the current location&amp;quot;&lt;br /&gt;
ls -l&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; script.sh is listing files and directories in userdir on storage element&amp;quot;&lt;br /&gt;
ls -l /pnfs/iihe/cms/store/user/$USER&lt;br /&gt;
&lt;br /&gt;
##When accessing files on the storage element it is important to execute your code on the /scratch partition of the workernode you are running on. Therefore you need to copy your executable which is accessing/writing root files onto the /scratch partition and execute it there. This is illustrated below.&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; go to TMPDIR&amp;quot;&lt;br /&gt;
cd $TMPDIR&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; ls of TMPDIR partition&amp;quot;&lt;br /&gt;
ls -l&lt;br /&gt;
&lt;br /&gt;
##Create a small root macro&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;{&lt;br /&gt;
  //TFile *MyFile = new TFile(\&amp;quot;testfile.root\&amp;quot;,\&amp;quot;RECREATE\&amp;quot;); &lt;br /&gt;
  //MyFile-&amp;gt;ls();&lt;br /&gt;
  //MyFile-&amp;gt;Close(),&lt;br /&gt;
  TFile* f=TFile::Open(\&amp;quot;dcap://maite.iihe.ac.be/pnfs/iihe/cms/store/user/$USER/testfile.root\&amp;quot;);&lt;br /&gt;
  f-&amp;gt;ls();&lt;br /&gt;
  f-&amp;gt;Close();&lt;br /&gt;
} &lt;br /&gt;
&amp;quot; &amp;gt; rootScript.C&lt;br /&gt;
&lt;br /&gt;
cat rootScript.C&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; set root&amp;quot;&lt;br /&gt;
##Copied a root version from /user/cmssoft into /localgrid&lt;br /&gt;
export ROOTSYS=/localgrid/$USER/cmssoft/root_5.26.00e_iihe_default_dcap/root &lt;br /&gt;
export PATH=$PATH:$ROOTSYS/bin &lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/lib&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; execute root macro&amp;quot;&lt;br /&gt;
root -q -l -b -n rootScript.C&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; ls of TMPDIR&amp;quot;&lt;br /&gt;
ls -l&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;copy the file back to the /localgrid sandbox&amp;quot;&lt;br /&gt;
#cp testfile.root /localgrid/jmmaes/directsubmissiontest&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=Policies&amp;diff=597</id>
		<title>Policies</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Policies&amp;diff=597"/>
		<updated>2016-01-21T09:55:18Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* User Interface policy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Policies concerning the usage of local computing resources ==&lt;br /&gt;
&lt;br /&gt;
*The following rules are put in place to allow a fair share of resources between the users. In case you violate these rules your account could be disabled. &lt;br /&gt;
*In case you have specific needs concerning storage or CPU please contact the site administrators on [[T2bSupport]].&lt;br /&gt;
&lt;br /&gt;
=== User Interface policy ===&lt;br /&gt;
&lt;br /&gt;
*All user interfaces are running Scientific Linux 6, except m3.iihe.ac.be which is still running SL5.&lt;br /&gt;
*The following machines are for light tasks, such as:&lt;br /&gt;
**Crab submission&lt;br /&gt;
**small interactive root processes&lt;br /&gt;
**building code&lt;br /&gt;
**debugging code&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
m0.iihe.ac.be, m1.iihe.ac.be, m2.iihe.ac.be, m3.iihe.ac.be&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*The following machines are available for CPU-intensive and long tasks&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
m5.iihe.ac.be, m6.iihe.ac.be, m7.iihe.ac.be, m8.iihe.ac.be and m9.iihe.ac.be&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;This policy is enforced. Processes taking more than 10 minutes CPU on M1-&amp;gt;M3 will be killed by the operating system. This limit is set to 5 hours on M5-&amp;gt;M8. On M9 the limit is set to 500 hours &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Disk space usage policy ===&lt;br /&gt;
&lt;br /&gt;
*Users can have several locations to store their files/analysis code/final results/...&lt;br /&gt;
**The /user partition on the UIs (m-machines) is limited to 500 GB per user.&lt;br /&gt;
**:This space should be used as working environment, eg. to checkout code, store results,... It should not be used to store large datasets.&lt;br /&gt;
**The /localgrid partition on the UIs (partition is mounted on the workernodes), with its quota shared with /user, so max(/localgrid + /user = 500 GB).&lt;br /&gt;
**:This space serves as sandbox for input/output of jobs sent to the local batch queue.&lt;br /&gt;
**The /pnfs area has a limit of 2TB per user.&lt;br /&gt;
**:This area should contain the sometimes large dataset needed for physics analysis.&lt;br /&gt;
**In case one needs more space, please contact the site admins [[T2bSupport| here]].&lt;br /&gt;
&lt;br /&gt;
*Semi-Automatic removal of old files on /pnfs is done every 3 months.&lt;br /&gt;
**All files not accessed in 1 year need to be explicitely un-flagged by the user in order to keep them&lt;br /&gt;
**All other files CAN be marked by the user for deletion&lt;br /&gt;
**Several mails will be send to remind all users to do this.&lt;br /&gt;
**These mails will be send in a span of ~1month, after which the admins will proceed to the deletion of all flagged files.&lt;br /&gt;
*More information is found on the deletion page: http://mon.iihe.ac.be/OldPnfsFiles&lt;br /&gt;
**If you need an account on this page, please ask the admins (grid_adminNOSPAM@listserv.vub.ac.be)&lt;br /&gt;
&lt;br /&gt;
=== Back-up procedures of files ===&lt;br /&gt;
&lt;br /&gt;
*The is a local backup (snapshot mechanism) of the user home directories (for more detailed info, see [[Backup]]&lt;br /&gt;
**This back-up is made every day and we can go back day by day till last week. This is to address e.g. user small mistaken deletions.&lt;br /&gt;
**Users are strongly advised to not solely rely on this backup. Using a versioning system (SVN or CVS) should prevent accidental removal of files and allowas a user to go back to a previous file when the file was messed up. We don&#039;t maintain a CVS repository ourselves but the CMS one should be used, more info [https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookComputingConcepts#CvsCheckoutModules here]&lt;br /&gt;
*The entire user home directories are backed up every week in a physically separated hardware. This is to address catastrophe scenario.&lt;br /&gt;
&lt;br /&gt;
=== Memory usage on the grid ===&lt;br /&gt;
&lt;br /&gt;
*To protect the grid, there is an upper memory limit per job of 2.0GB (this is larger than what is asked by CMS) for the physical and the virtual memory.&lt;br /&gt;
*If your job exceeds this limit, it will be killed by the queueing system.&lt;br /&gt;
**in you crab error log, you will find an error code 271 &lt;br /&gt;
**if you use direct submission, the reason will be clearly stated in your error log&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=Motd&amp;diff=596</id>
		<title>Motd</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Motd&amp;diff=596"/>
		<updated>2016-01-20T14:03:27Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* The several relevant files:&lt;br /&gt;
** in quattor, &#039;&#039;&#039;sites/.../config/motd.sh&#039;&#039;&#039; : script that is called each time you connect as non-root to an ui.&lt;br /&gt;
** on UIs, &#039;&#039;&#039;/user/motd_news&#039;&#039;&#039;: the portion to add Announcements.&lt;br /&gt;
** in quattor, &#039;&#039;&#039;sites/.../config/motd.tpl&#039;&#039;&#039; : just does the copy of motd.sh in /etc/profile.d/ for relevant hosts.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* The announcements is present only if NEWS is not set to &amp;quot;&amp;quot; in &#039;&#039;&#039;motd_news&#039;&#039;&#039;. The message is in purple by default ($PURP), and is automatically set back to $DEF at the end. Try to keep the message&#039;s lines about the same size as the rest. &lt;br /&gt;
::To erase it, just put back :&lt;br /&gt;
 NEWS=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
::Example: &lt;br /&gt;
&amp;lt;pre&amp;gt;NEWS=&amp;quot;&lt;br /&gt;
$INFO   There will be a shutdown of the whole T2B infrastructure due to power&lt;br /&gt;
18/01   being down at the CC from :&lt;br /&gt;
            Monday   25/01  queues : 8am  | whole cluster : 3pm&lt;br /&gt;
        to  Tuesday  26/01  6pm   (this is deadline, could be up before)&lt;br /&gt;
&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=Getting_a_certificate_for_the_T2&amp;diff=595</id>
		<title>Getting a certificate for the T2</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Getting_a_certificate_for_the_T2&amp;diff=595"/>
		<updated>2016-01-20T13:39:35Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* First time certificate */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you need grid access on the T2, please follow all the steps below: &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== First time certificate ===&lt;br /&gt;
# [[Obtaining_a_certificate | Get a certificate (new)]]. &#039;&#039;If you already have a CERN grid certificate, you can temporarily use it. But for accounting reasons, we need you to get a Belgian certificate &#039;&#039;&lt;br /&gt;
# Extract your certificate from your browser: &#039;&#039;&#039;[[Chrome]]&#039;&#039;&#039; | &#039;&#039;&#039;[[Firefox]]&#039;&#039;&#039;&lt;br /&gt;
# [[certificate_to_UI | Put your certificate on the UIs]]&lt;br /&gt;
# [[Register_to_the_CMS_VO|Register to the CMS VO]]&lt;br /&gt;
# [[SiteDB | Check if your certificate is ok on SiteDB]]. Note the DN.&lt;br /&gt;
# Send a mail to grid_admin@listserv.iihe.ac.be with your DN in order to have write access on the T2.&lt;br /&gt;
# [[CERN_certificate_management | Check that your certificate is the only one registered on the CERN website.]]&lt;br /&gt;
# [[Check_Certificate_UIs | Check if everything works fine on the mX machines]]&lt;br /&gt;
&lt;br /&gt;
=== Certificate renewal ===&lt;br /&gt;
As we switched the company who provides us with certificates, you need to follow the &#039;First time certificate&#039; to have a new one, this until December 2016 at least.&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=Getting_a_certificate_for_the_T2&amp;diff=594</id>
		<title>Getting a certificate for the T2</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Getting_a_certificate_for_the_T2&amp;diff=594"/>
		<updated>2016-01-20T13:39:22Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* First time certificate */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you need grid access on the T2, please follow all the steps below: &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== First time certificate ===&lt;br /&gt;
# [[Obtaining_a_certificate | Get a certificate (new)]]. &#039;&#039;If you already have a CERN grid certificate, you can temporarily use it. But for accounting reasons, we need you to get a Belgian cezrtificate &#039;&#039;&lt;br /&gt;
# Extract your certificate from your browser: &#039;&#039;&#039;[[Chrome]]&#039;&#039;&#039; | &#039;&#039;&#039;[[Firefox]]&#039;&#039;&#039;&lt;br /&gt;
# [[certificate_to_UI | Put your certificate on the UIs]]&lt;br /&gt;
# [[Register_to_the_CMS_VO|Register to the CMS VO]]&lt;br /&gt;
# [[SiteDB | Check if your certificate is ok on SiteDB]]. Note the DN.&lt;br /&gt;
# Send a mail to grid_admin@listserv.iihe.ac.be with your DN in order to have write access on the T2.&lt;br /&gt;
# [[CERN_certificate_management | Check that your certificate is the only one registered on the CERN website.]]&lt;br /&gt;
# [[Check_Certificate_UIs | Check if everything works fine on the mX machines]]&lt;br /&gt;
&lt;br /&gt;
=== Certificate renewal ===&lt;br /&gt;
As we switched the company who provides us with certificates, you need to follow the &#039;First time certificate&#039; to have a new one, this until December 2016 at least.&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=LocalSubmission&amp;diff=589</id>
		<title>LocalSubmission</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=LocalSubmission&amp;diff=589"/>
		<updated>2016-01-04T10:20:50Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Comments and FAQ */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Direct submission to local queue on the T2_BE_IIHE cluster ==&lt;br /&gt;
&lt;br /&gt;
=== Aim ===&lt;br /&gt;
&lt;br /&gt;
*The aim of this page is to provide a brief introduction how to submit to the localqueue.&lt;br /&gt;
*The localqueue allows to send executable code to the Tier2 cluster.&lt;br /&gt;
*This procedure can be used to run non-CMSSW code that need access to files on the Storage Element (SE) maite.iihe.ac.be.&lt;br /&gt;
*It is useful to use this procedure to not overload the User Interfaces (UIs) known as the mX machines.&lt;br /&gt;
&lt;br /&gt;
=== Procedure ===&lt;br /&gt;
&lt;br /&gt;
*Log in to a UI mX.iihe.ac.be; replace X with a number of choice. See [[policies]] about the policies on the UIs.&lt;br /&gt;
*Make a directory and prepare an executable.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir directsubmissiontest&lt;br /&gt;
cd directsubmissiontest/&lt;br /&gt;
emacs script.sh&amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Paste following code into script.sh. (see below)&lt;br /&gt;
*Due to the setup of the Tier2 the output of the script will be placed on the &#039;&#039;/localgrid&#039;&#039; partition which is mounted on both the UI&#039;s on the workernodes. Therefore you need to prepare a directory to make sure the output is stored correctly. The localgrid partition can be used as a sandbox for temporary placing input and output files. Do not store any files there permanently.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /localgrid/$USER/directsubmissiontest&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Execute the following command to submit the script to the local queue&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub -q localgrid@cream02 -o script.stdout -e script.stderr script.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Follow the progress of your job on the UI&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qstat -u $USER localgrid@cream02&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Your job finished if you don&#039;t see it anymore with qstat. You should now be able to find your output files in the directory you&#039;ve create on localgrid&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/localgrid/$USER/directsubmissiontest/script.stdout&lt;br /&gt;
/localgrid/$USER/directsubmissiontest/script.stderr&lt;br /&gt;
/localgrid/$USER/directsubmissiontest/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Comments and FAQ ===&lt;br /&gt;
*In case you would like to access a root file you should copy it to the /scratch space on the workernode.&lt;br /&gt;
**/scratch is the native disk of the workernode and is several 100 GBs big.&lt;br /&gt;
**Each job is allotted a working directory that is cleaned automatically at the end of the job. This directory is store in the variable $TMPDIR&lt;br /&gt;
**Your procedure should look like this: &lt;br /&gt;
**copy the necessary root from /localgrid (if you have any) to $TMPDIR&lt;br /&gt;
**Make sure the output of the job is also written to $TMPDIR   &lt;br /&gt;
**Copy your output files back to /localgrid &lt;br /&gt;
**Do not read root files from /localgrid. This directory is not physically located on the workernode, it is mounted from the fileserver. Doing this will put a big load on the fileserver potentially causing the UIs to be slow.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;****** IMPORTANT *******&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
If you use the local submission, please notice that you potentially can slow down our site. So please, copy all the files you will use during the job to /scratch to avoid this. &amp;lt;br&amp;gt;&lt;br /&gt;
Many thanks, &amp;lt;br&amp;gt;&lt;br /&gt;
The Admin Team&lt;br /&gt;
&lt;br /&gt;
*How to set CMSSW environment in a batch job?&lt;br /&gt;
&lt;br /&gt;
Add the following lines to your script :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pwd=$PWD&lt;br /&gt;
source $VO_CMS_SW_DIR/cmsset_default.sh                          # make scram available                                                                                                                                                             &lt;br /&gt;
cd /localgrid/&amp;lt;USER NAME&amp;gt;/path/to/CMSSW_4_1_4/src/               # your local CMSSW release                                                                                                                                                         &lt;br /&gt;
eval `scram runtime -sh`                                         # don&#039;t use cmsenv, won&#039;t work on batch                                                                                                                                            &lt;br /&gt;
cd $pwd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*How to make your proxy available during batch jobs?&lt;br /&gt;
&lt;br /&gt;
Make sure you have a valid proxy and copy it to some place on /localgrid :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp $X509_USER_PROXY /localgrid/&amp;lt;USER NAME&amp;gt;/some/place&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following line to your script :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export X509_USER_PROXY=/localgrid/&amp;lt;USER NAME&amp;gt;/some/place&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*How to avoid my short jobs from being blocked in the waiting queue when the site is full ?&lt;br /&gt;
&lt;br /&gt;
If you intend to submit short jobs, then it is wise to specify explicitly to the batch system their estimated maximum walltime. You can do this by adding an option to the qsub command :&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
 qsub -q localgrid@cream02 -o script.stdout -e script.stderr -l walltime=&amp;lt;HH:MM:SS&amp;gt; script.sh&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
or by adding the following line at the beginning of your job script :&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
 #PBS -l walltime=&amp;lt;HH:MM:SS&amp;gt;&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
Proceeding this way, your jobs priority will grow faster as time goes by, increasing the chances of being executed first. (The shorter they are, the faster their priority will increase over the time.)&lt;br /&gt;
&lt;br /&gt;
But be aware that if your jobs are running longer then the specified maximum walltime, they will be killed by the batch system. So, don&#039;t hesitate to overestimate a bit this maximum walltime.&lt;br /&gt;
&lt;br /&gt;
=== Stop your jobs ===&lt;br /&gt;
&lt;br /&gt;
If for some reason, you want to stop your jobs on the server, you can use this procedure:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qstat @cream02 | grep &amp;lt;your user name&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will give you a list of jobs running with thier ID&#039;s. f.i.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
394402.cream02            submit.sh        odevroed               0 R localgrid&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now, use the ID to kill the job with the qdel command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdel 394402.cream02&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your job will now be removed.&lt;br /&gt;
&lt;br /&gt;
=== Attachments ===&lt;br /&gt;
&lt;br /&gt;
*script.sh&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash          &lt;br /&gt;
&lt;br /&gt;
##Some general shell commands&lt;br /&gt;
STR=&amp;quot;Hello World!&amp;quot;&lt;br /&gt;
echo $STR    &lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; script.sh is checking where it is&amp;quot;&lt;br /&gt;
pwd&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; script.sh is checking how much disk space is still available&amp;quot;&lt;br /&gt;
df -h&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; script.sh is listing files and directories in the current location&amp;quot;&lt;br /&gt;
ls -l&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; script.sh is listing files and directories in userdir on storage element&amp;quot;&lt;br /&gt;
ls -l /pnfs/iihe/cms/store/user/$USER&lt;br /&gt;
&lt;br /&gt;
##When accessing files on the storage element it is important to execute your code on the /scratch partition of the workernode you are running on. Therefore you need to copy your executable which is accessing/writing root files onto the /scratch partition and execute it there. This is illustrated below.&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; go to TMPDIR&amp;quot;&lt;br /&gt;
cd $TMPDIR&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; ls of TMPDIR partition&amp;quot;&lt;br /&gt;
ls -l&lt;br /&gt;
&lt;br /&gt;
##Create a small root macro&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;{&lt;br /&gt;
  //TFile *MyFile = new TFile(\&amp;quot;testfile.root\&amp;quot;,\&amp;quot;RECREATE\&amp;quot;); &lt;br /&gt;
  //MyFile-&amp;gt;ls();&lt;br /&gt;
  //MyFile-&amp;gt;Close(),&lt;br /&gt;
  TFile* f=TFile::Open(\&amp;quot;dcap://maite.iihe.ac.be:/pnfs/iihe/cms/store/user/$USER/testfile.root\&amp;quot;);&lt;br /&gt;
  f-&amp;gt;ls();&lt;br /&gt;
  f-&amp;gt;Close();&lt;br /&gt;
} &lt;br /&gt;
&amp;quot; &amp;gt; rootScript.C&lt;br /&gt;
&lt;br /&gt;
cat rootScript.C&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; set root&amp;quot;&lt;br /&gt;
##Copied a root version from /user/cmssoft into /localgrid&lt;br /&gt;
export ROOTSYS=/localgrid/$USER/cmssoft/root_5.26.00e_iihe_default_dcap/root &lt;br /&gt;
export PATH=$PATH:$ROOTSYS/bin &lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/lib&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; execute root macro&amp;quot;&lt;br /&gt;
root -q -l -b -n rootScript.C&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt; ls of TMPDIR&amp;quot;&lt;br /&gt;
ls -l&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;copy the file back to the /localgrid sandbox&amp;quot;&lt;br /&gt;
#cp testfile.root /localgrid/jmmaes/directsubmissiontest&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=404</id>
		<title>WorkingInT2BCloud</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=404"/>
		<updated>2015-09-01T16:35:55Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Creation of the disk */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Golden rules ==&lt;br /&gt;
*Before starting, please read the [http://docs.opennebula.org/4.12/index.html doc]&lt;br /&gt;
*Never, ever, change the status of a VM using virt-manager ! Do everything using Sunstone only, and nothing else !&lt;br /&gt;
*Admin tasks on OpenNebula : most of them requires that you become oneadmin (&amp;quot;su - oneadmin&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
== Admin tasks ==&lt;br /&gt;
=== How to stop OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
sunstone-server stop&lt;br /&gt;
oneflow-server stop&lt;br /&gt;
econe-server stop&lt;br /&gt;
one stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How to start OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
one start&lt;br /&gt;
sunstone-server start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using Sunstone front-end ==&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Sunstone front-end ===&lt;br /&gt;
The Sunstone front-end is installed on dom02. Open a &amp;quot;socks&amp;quot; port to qnat or ccq (or configure your FoxyProxy) to connect to the the following URL :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://192.168.10.35:9869/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You will be asked a login and a password.&lt;br /&gt;
&lt;br /&gt;
=== Creation of VMs ===&lt;br /&gt;
To create a VM, you have to follow the following steps :&lt;br /&gt;
#creation of a disk&lt;br /&gt;
#creation of a template using the disk created previously&lt;br /&gt;
#instantiation of the template to create the VM&lt;br /&gt;
In the following explanations, we will suppose that you want to create a new VM that you want to deploy with Quattor.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the disk ====&lt;br /&gt;
[[File:Create_disk_opennebula.jpg]]&lt;br /&gt;
#Choose type “DATABLOCK” because you just want a drive (not a CDROM iso, neither a disk with preinstalled OS).&lt;br /&gt;
#“Persistent” means the content of the disk image is preserved when the machine is shut down.&lt;br /&gt;
#You want an empty drive&lt;br /&gt;
#Disk size in MB&lt;br /&gt;
#Enable the advanced option to go to the next screen.&lt;br /&gt;
[[File:Advanced_disk_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
Set the device prefix to “vd”. This will enable the virtio driver (otherwise VM performance are very poor).&lt;br /&gt;
Don&#039;t forget to change the disk name accordingly in the hardware template in the SCDB. For example :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;harddisks&#039; = dict(&#039;vda&#039;, create(&#039;hardware/harddisk/sas_generic&#039;, &#039;capacity&#039;, 60*GB));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, click Create.&lt;br /&gt;
Now your disk is ready and we can apply an opennebula template on it.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the Template ====&lt;br /&gt;
===== Template: General =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
#We are using KVM hypervisors.&lt;br /&gt;
#VCPU should only be used if you want to “pin” some cores of the hypervisor to your VM, the result being better performances.&lt;br /&gt;
&lt;br /&gt;
===== Template: Storage =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_disk_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# “Disk 0” is created automatically as a default, but...&lt;br /&gt;
# Now, associate it with the disk image you just created (select it in the table).&lt;br /&gt;
# Display the advanced options &lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_disk_2_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# Again, set the device prefix to “vd” to enable virtio driver for better performances.&lt;br /&gt;
# Disable disk cache for better performances&lt;br /&gt;
&lt;br /&gt;
===== Template: Network =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_network_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# By default, “interface 0” is automatically created. Click on the blue button “Add another nic” if you need more network interfaces.&lt;br /&gt;
# For each nic created in the previous step, select the virtual network in the above table. &lt;br /&gt;
## The usage in the T2B is to place the first nic in the public network (Public_T2B_Fullrange)&lt;br /&gt;
## And the second nic in the private network (Private_T2B_Fullrange).&lt;br /&gt;
# Display the advanced options (see next slide for explanations).&lt;br /&gt;
# Set the IP addresses of the nics (don&#039;t forget to do it for all the nics defined in the previous step !). The model should be “virtio” for better performances.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Template: OS Booting =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_booting_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
If you want to install the machine with Quattor, it is very important to choose the network as the first boot device, and the hard drive as the second one.&lt;br /&gt;
&lt;br /&gt;
===== Template: IO =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_IO_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
Choose “VNC” to be able to interact with your VM.&lt;br /&gt;
&lt;br /&gt;
===== Template: Context =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_Context_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
Unselect the contextualization check-boxes (we don&#039;t need it because Quattor will do the job).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Template: Context =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_Shedulling_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# The scheduling is the step where OpenNebula is selecting an hypervisor to host the VM. In our T2B cloud, some hypervisors are connected to the old public network, and the others are connected to the new public network. If your VM will be in the new public network, you must tell explicitely the scheduler to choose the hypervisor accordingly.&lt;br /&gt;
* Remark : PUBLIC_NETWORK_AVAILABLE is custom attribute that we have set for each host. Possible values are : “old” and “new”.&lt;br /&gt;
** PUBLIC_NETWORK_AVAILABLE = \&amp;quot;new\&amp;quot;&lt;br /&gt;
# This was the last step ! You can click on button “Create”.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== instantiate your VM ====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_Instantiate_opennebula.jpg| 1000px]]&lt;br /&gt;
&lt;br /&gt;
# Back to the table showing all the templates, select the newly created one and...&lt;br /&gt;
# ...click on button “Instantiate”&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=403</id>
		<title>WorkingInT2BCloud</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=403"/>
		<updated>2015-09-01T16:35:05Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* instantiate your VM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Golden rules ==&lt;br /&gt;
*Before starting, please read the [http://docs.opennebula.org/4.12/index.html doc]&lt;br /&gt;
*Never, ever, change the status of a VM using virt-manager ! Do everything using Sunstone only, and nothing else !&lt;br /&gt;
*Admin tasks on OpenNebula : most of them requires that you become oneadmin (&amp;quot;su - oneadmin&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
== Admin tasks ==&lt;br /&gt;
=== How to stop OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
sunstone-server stop&lt;br /&gt;
oneflow-server stop&lt;br /&gt;
econe-server stop&lt;br /&gt;
one stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How to start OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
one start&lt;br /&gt;
sunstone-server start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using Sunstone front-end ==&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Sunstone front-end ===&lt;br /&gt;
The Sunstone front-end is installed on dom02. Open a &amp;quot;socks&amp;quot; port to qnat or ccq (or configure your FoxyProxy) to connect to the the following URL :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://192.168.10.35:9869/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You will be asked a login and a password.&lt;br /&gt;
&lt;br /&gt;
=== Creation of VMs ===&lt;br /&gt;
To create a VM, you have to follow the following steps :&lt;br /&gt;
#creation of a disk&lt;br /&gt;
#creation of a template using the disk created previously&lt;br /&gt;
#instantiation of the template to create the VM&lt;br /&gt;
In the following explanations, we will suppose that you want to create a new VM that you want to deploy with Quattor.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the disk ====&lt;br /&gt;
[[File:Create_disk_opennebula.jpg]]&lt;br /&gt;
#Choose type “DATABLOCK” because you just want a drive (not a CDROM iso, neither a disk with preinstalled OS).&lt;br /&gt;
#“Persistent” means the content of the disk image is preserved when the machine is shut down.&lt;br /&gt;
#You want an empty drive&lt;br /&gt;
#Disk size in MB&lt;br /&gt;
#Enable the advanced option to go to the next screen.&lt;br /&gt;
[[File:Advanced_disk_opennebula.jpg]]&lt;br /&gt;
&lt;br /&gt;
Set the device prefix to “vd”. This will enable the virtio driver (otherwise VM performance are very poor).&lt;br /&gt;
Don&#039;t forget to change the disk name accordingly in the hardware template in the SCDB. For example :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;harddisks&#039; = dict(&#039;vda&#039;, create(&#039;hardware/harddisk/sas_generic&#039;, &#039;capacity&#039;, 60*GB));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, click Create.&lt;br /&gt;
Now your disk is ready and we can apply an opennebula template on it.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the Template ====&lt;br /&gt;
===== Template: General =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
#We are using KVM hypervisors.&lt;br /&gt;
#VCPU should only be used if you want to “pin” some cores of the hypervisor to your VM, the result being better performances.&lt;br /&gt;
&lt;br /&gt;
===== Template: Storage =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_disk_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# “Disk 0” is created automatically as a default, but...&lt;br /&gt;
# Now, associate it with the disk image you just created (select it in the table).&lt;br /&gt;
# Display the advanced options &lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_disk_2_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# Again, set the device prefix to “vd” to enable virtio driver for better performances.&lt;br /&gt;
# Disable disk cache for better performances&lt;br /&gt;
&lt;br /&gt;
===== Template: Network =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_network_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# By default, “interface 0” is automatically created. Click on the blue button “Add another nic” if you need more network interfaces.&lt;br /&gt;
# For each nic created in the previous step, select the virtual network in the above table. &lt;br /&gt;
## The usage in the T2B is to place the first nic in the public network (Public_T2B_Fullrange)&lt;br /&gt;
## And the second nic in the private network (Private_T2B_Fullrange).&lt;br /&gt;
# Display the advanced options (see next slide for explanations).&lt;br /&gt;
# Set the IP addresses of the nics (don&#039;t forget to do it for all the nics defined in the previous step !). The model should be “virtio” for better performances.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Template: OS Booting =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_booting_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
If you want to install the machine with Quattor, it is very important to choose the network as the first boot device, and the hard drive as the second one.&lt;br /&gt;
&lt;br /&gt;
===== Template: IO =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_IO_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
Choose “VNC” to be able to interact with your VM.&lt;br /&gt;
&lt;br /&gt;
===== Template: Context =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_Context_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
Unselect the contextualization check-boxes (we don&#039;t need it because Quattor will do the job).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Template: Context =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_Shedulling_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# The scheduling is the step where OpenNebula is selecting an hypervisor to host the VM. In our T2B cloud, some hypervisors are connected to the old public network, and the others are connected to the new public network. If your VM will be in the new public network, you must tell explicitely the scheduler to choose the hypervisor accordingly.&lt;br /&gt;
* Remark : PUBLIC_NETWORK_AVAILABLE is custom attribute that we have set for each host. Possible values are : “old” and “new”.&lt;br /&gt;
** PUBLIC_NETWORK_AVAILABLE = \&amp;quot;new\&amp;quot;&lt;br /&gt;
# This was the last step ! You can click on button “Create”.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== instantiate your VM ====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_Instantiate_opennebula.jpg| 1000px]]&lt;br /&gt;
&lt;br /&gt;
# Back to the table showing all the templates, select the newly created one and...&lt;br /&gt;
# ...click on button “Instantiate”&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=File:Create_Instantiate_opennebula.jpg&amp;diff=402</id>
		<title>File:Create Instantiate opennebula.jpg</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=File:Create_Instantiate_opennebula.jpg&amp;diff=402"/>
		<updated>2015-09-01T16:34:10Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=401</id>
		<title>WorkingInT2BCloud</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=401"/>
		<updated>2015-09-01T15:38:36Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Creation of VMs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Golden rules ==&lt;br /&gt;
*Before starting, please read the [http://docs.opennebula.org/4.12/index.html doc]&lt;br /&gt;
*Never, ever, change the status of a VM using virt-manager ! Do everything using Sunstone only, and nothing else !&lt;br /&gt;
*Admin tasks on OpenNebula : most of them requires that you become oneadmin (&amp;quot;su - oneadmin&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
== Admin tasks ==&lt;br /&gt;
=== How to stop OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
sunstone-server stop&lt;br /&gt;
oneflow-server stop&lt;br /&gt;
econe-server stop&lt;br /&gt;
one stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How to start OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
one start&lt;br /&gt;
sunstone-server start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using Sunstone front-end ==&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Sunstone front-end ===&lt;br /&gt;
The Sunstone front-end is installed on dom02. Open a &amp;quot;socks&amp;quot; port to qnat or ccq (or configure your FoxyProxy) to connect to the the following URL :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://192.168.10.35:9869/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You will be asked a login and a password.&lt;br /&gt;
&lt;br /&gt;
=== Creation of VMs ===&lt;br /&gt;
To create a VM, you have to follow the following steps :&lt;br /&gt;
#creation of a disk&lt;br /&gt;
#creation of a template using the disk created previously&lt;br /&gt;
#instantiation of the template to create the VM&lt;br /&gt;
In the following explanations, we will suppose that you want to create a new VM that you want to deploy with Quattor.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the disk ====&lt;br /&gt;
[[File:Create_disk_opennebula.jpg]]&lt;br /&gt;
#Choose type “DATABLOCK” because you just want a drive (not a CDROM iso, neither a disk with preinstalled OS).&lt;br /&gt;
#“Persistent” means the content of the disk image is preserved when the machine is shut down.&lt;br /&gt;
#You want an empty drive&lt;br /&gt;
#Disk size in MB&lt;br /&gt;
#Enable the advanced option to go to the next screen.&lt;br /&gt;
[[File:Advanced_disk_opennebula.jpg]]&lt;br /&gt;
&lt;br /&gt;
Set the device prefix to “vd”. This will enable the virtio driver (otherwise VM performance are very poor).&lt;br /&gt;
Don&#039;t forget to change the disk name accordingly in the hardware template in the SCDB. For example :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;harddisks&#039; = dict(&#039;vda&#039;, create(&#039;hardware/harddisk/sas_generic&#039;, &#039;capacity&#039;, 60*GB));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, click Create.&lt;br /&gt;
Now your disk is ready and we can apply an opennebula template on it.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the Template ====&lt;br /&gt;
===== Template: General =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
#We are using KVM hypervisors.&lt;br /&gt;
#VCPU should only be used if you want to “pin” some cores of the hypervisor to your VM, the result being better performances.&lt;br /&gt;
&lt;br /&gt;
===== Template: Storage =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_disk_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# “Disk 0” is created automatically as a default, but...&lt;br /&gt;
# Now, associate it with the disk image you just created (select it in the table).&lt;br /&gt;
# Display the advanced options &lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_disk_2_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# Again, set the device prefix to “vd” to enable virtio driver for better performances.&lt;br /&gt;
# Disable disk cache for better performances&lt;br /&gt;
&lt;br /&gt;
===== Template: Network =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_network_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# By default, “interface 0” is automatically created. Click on the blue button “Add another nic” if you need more network interfaces.&lt;br /&gt;
# For each nic created in the previous step, select the virtual network in the above table. &lt;br /&gt;
## The usage in the T2B is to place the first nic in the public network (Public_T2B_Fullrange)&lt;br /&gt;
## And the second nic in the private network (Private_T2B_Fullrange).&lt;br /&gt;
# Display the advanced options (see next slide for explanations).&lt;br /&gt;
# Set the IP addresses of the nics (don&#039;t forget to do it for all the nics defined in the previous step !). The model should be “virtio” for better performances.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Template: OS Booting =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_booting_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
If you want to install the machine with Quattor, it is very important to choose the network as the first boot device, and the hard drive as the second one.&lt;br /&gt;
&lt;br /&gt;
===== Template: IO =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_IO_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
Choose “VNC” to be able to interact with your VM.&lt;br /&gt;
&lt;br /&gt;
===== Template: Context =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_Context_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
Unselect the contextualization check-boxes (we don&#039;t need it because Quattor will do the job).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Template: Context =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_Shedulling_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# The scheduling is the step where OpenNebula is selecting an hypervisor to host the VM. In our T2B cloud, some hypervisors are connected to the old public network, and the others are connected to the new public network. If your VM will be in the new public network, you must tell explicitely the scheduler to choose the hypervisor accordingly.&lt;br /&gt;
* Remark : PUBLIC_NETWORK_AVAILABLE is custom attribute that we have set for each host. Possible values are : “old” and “new”.&lt;br /&gt;
** PUBLIC_NETWORK_AVAILABLE = \&amp;quot;new\&amp;quot;&lt;br /&gt;
# This was the last step ! You can click on button “Create”.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== instantiate your VM ====&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=400</id>
		<title>WorkingInT2BCloud</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=400"/>
		<updated>2015-09-01T15:37:26Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Creation of VMs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Golden rules ==&lt;br /&gt;
*Before starting, please read the [http://docs.opennebula.org/4.12/index.html doc]&lt;br /&gt;
*Never, ever, change the status of a VM using virt-manager ! Do everything using Sunstone only, and nothing else !&lt;br /&gt;
*Admin tasks on OpenNebula : most of them requires that you become oneadmin (&amp;quot;su - oneadmin&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
== Admin tasks ==&lt;br /&gt;
=== How to stop OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
sunstone-server stop&lt;br /&gt;
oneflow-server stop&lt;br /&gt;
econe-server stop&lt;br /&gt;
one stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How to start OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
one start&lt;br /&gt;
sunstone-server start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using Sunstone front-end ==&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Sunstone front-end ===&lt;br /&gt;
The Sunstone front-end is installed on dom02. Open a &amp;quot;socks&amp;quot; port to qnat or ccq (or configure your FoxyProxy) to connect to the the following URL :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://192.168.10.35:9869/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You will be asked a login and a password.&lt;br /&gt;
&lt;br /&gt;
=== Creation of VMs ===&lt;br /&gt;
To create a VM, you have to follow the following steps :&lt;br /&gt;
#creation of a disk&lt;br /&gt;
#creation of a template using the disk created previously&lt;br /&gt;
#instantiation of the template to create the VM&lt;br /&gt;
In the following explanations, we will suppose that you want to create a new VM that you want to deploy with Quattor.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the disk ====&lt;br /&gt;
[[File:Create_disk_opennebula.jpg]]&lt;br /&gt;
#Choose type “DATABLOCK” because you just want a drive (not a CDROM iso, neither a disk with preinstalled OS).&lt;br /&gt;
#“Persistent” means the content of the disk image is preserved when the machine is shut down.&lt;br /&gt;
#You want an empty drive&lt;br /&gt;
#Disk size in MB&lt;br /&gt;
#Enable the advanced option to go to the next screen.&lt;br /&gt;
[[File:Advanced_disk_opennebula.jpg]]&lt;br /&gt;
&lt;br /&gt;
Set the device prefix to “vd”. This will enable the virtio driver (otherwise VM performance are very poor).&lt;br /&gt;
Don&#039;t forget to change the disk name accordingly in the hardware template in the SCDB. For example :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;harddisks&#039; = dict(&#039;vda&#039;, create(&#039;hardware/harddisk/sas_generic&#039;, &#039;capacity&#039;, 60*GB));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, click Create.&lt;br /&gt;
Now your disk is ready and we can apply an opennebula template on it.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the Template ====&lt;br /&gt;
===== Template: General =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
#We are using KVM hypervisors.&lt;br /&gt;
#VCPU should only be used if you want to “pin” some cores of the hypervisor to your VM, the result being better performances.&lt;br /&gt;
&lt;br /&gt;
===== Template: Storage =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_disk_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# “Disk 0” is created automatically as a default, but...&lt;br /&gt;
# Now, associate it with the disk image you just created (select it in the table).&lt;br /&gt;
# Display the advanced options &lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_disk_2_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# Again, set the device prefix to “vd” to enable virtio driver for better performances.&lt;br /&gt;
# Disable disk cache for better performances&lt;br /&gt;
&lt;br /&gt;
===== Template: Network =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_network_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# By default, “interface 0” is automatically created. Click on the blue button “Add another nic” if you need more network interfaces.&lt;br /&gt;
# For each nic created in the previous step, select the virtual network in the above table. &lt;br /&gt;
## The usage in the T2B is to place the first nic in the public network (Public_T2B_Fullrange)&lt;br /&gt;
## And the second nic in the private network (Private_T2B_Fullrange).&lt;br /&gt;
# Display the advanced options (see next slide for explanations).&lt;br /&gt;
# Set the IP addresses of the nics (don&#039;t forget to do it for all the nics defined in the previous step !). The model should be “virtio” for better performances.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Template: OS Booting =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_booting_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
If you want to install the machine with Quattor, it is very important to choose the network as the first boot device, and the hard drive as the second one.&lt;br /&gt;
&lt;br /&gt;
===== Template: IO =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_IO_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
Choose “VNC” to be able to interact with your VM.&lt;br /&gt;
&lt;br /&gt;
===== Template: Context =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_Context_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
Unselect the contextualization check-boxes (we don&#039;t need it because Quattor will do the job).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Template: Context =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_Shedulling_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# The scheduling is the step where OpenNebula is selecting an hypervisor to host the VM. In our T2B cloud, some hypervisors are connected to the old public network, and the others are connected to the new public network. If your VM will be in the new public network, you must tell explicitely the scheduler to choose the hypervisor accordingly.&lt;br /&gt;
* Remark : PUBLIC_NETWORK_AVAILABLE is custom attribute that we have set for each host. Possible values are : “old” and “new”.&lt;br /&gt;
** PUBLIC_NETWORK_AVAILABLE = \&amp;quot;new\&amp;quot;&lt;br /&gt;
# This was the last step ! You can click on button “Create”.&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=399</id>
		<title>WorkingInT2BCloud</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=399"/>
		<updated>2015-09-01T15:36:20Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Creation of the Template */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Golden rules ==&lt;br /&gt;
*Before starting, please read the [http://docs.opennebula.org/4.12/index.html doc]&lt;br /&gt;
*Never, ever, change the status of a VM using virt-manager ! Do everything using Sunstone only, and nothing else !&lt;br /&gt;
*Admin tasks on OpenNebula : most of them requires that you become oneadmin (&amp;quot;su - oneadmin&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
== Admin tasks ==&lt;br /&gt;
=== How to stop OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
sunstone-server stop&lt;br /&gt;
oneflow-server stop&lt;br /&gt;
econe-server stop&lt;br /&gt;
one stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How to start OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
one start&lt;br /&gt;
sunstone-server start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using Sunstone front-end ==&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Sunstone front-end ===&lt;br /&gt;
The Sunstone front-end is installed on dom02. Open a &amp;quot;socks&amp;quot; port to qnat or ccq (or configure your FoxyProxy) to connect to the the following URL :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://192.168.10.35:9869/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You will be asked a login and a password.&lt;br /&gt;
&lt;br /&gt;
=== Creation of VMs ===&lt;br /&gt;
To create a VM, you have to follow the following steps :&lt;br /&gt;
#creation of a disk&lt;br /&gt;
#creation of a template using the disk created previously&lt;br /&gt;
#instantiation of the template to create the VM&lt;br /&gt;
In the following explanations, we will suppose that you want to create a new VM that you want to deploy with Quattor.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the disk ====&lt;br /&gt;
[[File:Create_disk_opennebula.jpg]]&lt;br /&gt;
#Choose type “DATABLOCK” because you just want a drive (not a CDROM iso, neither a disk with preinstalled OS).&lt;br /&gt;
#“Persistent” means the content of the disk image is preserved when the machine is shut down.&lt;br /&gt;
#You want an empty drive&lt;br /&gt;
#Disk size in MB&lt;br /&gt;
#Enable the advanced option to go to the next screen.&lt;br /&gt;
[[File:Advanced_disk_opennebula.jpg]]&lt;br /&gt;
&lt;br /&gt;
Set the device prefix to “vd”. This will enable the virtio driver (otherwise VM performance are very poor).&lt;br /&gt;
Don&#039;t forget to change the disk name accordingly in the hardware template in the SCDB. For example :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;harddisks&#039; = dict(&#039;vda&#039;, create(&#039;hardware/harddisk/sas_generic&#039;, &#039;capacity&#039;, 60*GB));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, click Create.&lt;br /&gt;
Now your disk is ready and we can apply an opennebula template on it.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the Template ====&lt;br /&gt;
===== Template: General =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
#We are using KVM hypervisors.&lt;br /&gt;
#VCPU should only be used if you want to “pin” some cores of the hypervisor to your VM, the result being better performances.&lt;br /&gt;
&lt;br /&gt;
===== Template: Storage =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_disk_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# “Disk 0” is created automatically as a default, but...&lt;br /&gt;
# Now, associate it with the disk image you just created (select it in the table).&lt;br /&gt;
# Display the advanced options &lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_disk_2_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# Again, set the device prefix to “vd” to enable virtio driver for better performances.&lt;br /&gt;
# Disable disk cache for better performances&lt;br /&gt;
&lt;br /&gt;
===== Template: Network =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_network_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
# By default, “interface 0” is automatically created. Click on the blue button “Add another nic” if you need more network interfaces.&lt;br /&gt;
# For each nic created in the previous step, select the virtual network in the above table. &lt;br /&gt;
## The usage in the T2B is to place the first nic in the public network (Public_T2B_Fullrange)&lt;br /&gt;
## And the second nic in the private network (Private_T2B_Fullrange).&lt;br /&gt;
# Display the advanced options (see next slide for explanations).&lt;br /&gt;
# Set the IP addresses of the nics (don&#039;t forget to do it for all the nics defined in the previous step !). The model should be “virtio” for better performances.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Template: OS Booting =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_booting_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
If you want to install the machine with Quattor, it is very important to choose the network as the first boot device, and the hard drive as the second one.&lt;br /&gt;
&lt;br /&gt;
===== Template: IO =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_IO_opennebula.jpg]]&lt;br /&gt;
&lt;br /&gt;
Choose “VNC” to be able to interact with your VM.&lt;br /&gt;
&lt;br /&gt;
===== Template: Context =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_Context_opennebula.jpg]]&lt;br /&gt;
&lt;br /&gt;
Unselect the contextualization check-boxes (we don&#039;t need it because Quattor will do the job).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Template: Context =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_Shedulling_opennebula.jpg]]&lt;br /&gt;
&lt;br /&gt;
# The scheduling is the step where OpenNebula is selecting an hypervisor to host the VM. In our T2B cloud, some hypervisors are connected to the old public network, and the others are connected to the new public network. If your VM will be in the new public network, you must tell explicitely the scheduler to choose the hypervisor accordingly.&lt;br /&gt;
* Remark : PUBLIC_NETWORK_AVAILABLE is custom attribute that we have set for each host. Possible values are : “old” and “new”.&lt;br /&gt;
** PUBLIC_NETWORK_AVAILABLE = \&amp;quot;new\&amp;quot;&lt;br /&gt;
# This was the last step ! You can click on button “Create”.&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_Shedulling_opennebula.jpg&amp;diff=398</id>
		<title>File:Create template Shedulling opennebula.jpg</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_Shedulling_opennebula.jpg&amp;diff=398"/>
		<updated>2015-09-01T15:34:20Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_Context_opennebula.jpg&amp;diff=397</id>
		<title>File:Create template Context opennebula.jpg</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_Context_opennebula.jpg&amp;diff=397"/>
		<updated>2015-09-01T15:32:39Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_IO_opennebula.jpg&amp;diff=396</id>
		<title>File:Create template IO opennebula.jpg</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_IO_opennebula.jpg&amp;diff=396"/>
		<updated>2015-09-01T15:30:43Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_booting_opennebula.jpg&amp;diff=395</id>
		<title>File:Create template booting opennebula.jpg</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_booting_opennebula.jpg&amp;diff=395"/>
		<updated>2015-09-01T15:28:44Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=394</id>
		<title>WorkingInT2BCloud</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=394"/>
		<updated>2015-09-01T15:26:04Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: /* Creation of the Template */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Golden rules ==&lt;br /&gt;
*Before starting, please read the [http://docs.opennebula.org/4.12/index.html doc]&lt;br /&gt;
*Never, ever, change the status of a VM using virt-manager ! Do everything using Sunstone only, and nothing else !&lt;br /&gt;
*Admin tasks on OpenNebula : most of them requires that you become oneadmin (&amp;quot;su - oneadmin&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
== Admin tasks ==&lt;br /&gt;
=== How to stop OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
sunstone-server stop&lt;br /&gt;
oneflow-server stop&lt;br /&gt;
econe-server stop&lt;br /&gt;
one stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How to start OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
one start&lt;br /&gt;
sunstone-server start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using Sunstone front-end ==&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Sunstone front-end ===&lt;br /&gt;
The Sunstone front-end is installed on dom02. Open a &amp;quot;socks&amp;quot; port to qnat or ccq (or configure your FoxyProxy) to connect to the the following URL :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://192.168.10.35:9869/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You will be asked a login and a password.&lt;br /&gt;
&lt;br /&gt;
=== Creation of VMs ===&lt;br /&gt;
To create a VM, you have to follow the following steps :&lt;br /&gt;
#creation of a disk&lt;br /&gt;
#creation of a template using the disk created previously&lt;br /&gt;
#instantiation of the template to create the VM&lt;br /&gt;
In the following explanations, we will suppose that you want to create a new VM that you want to deploy with Quattor.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the disk ====&lt;br /&gt;
[[File:Create_disk_opennebula.jpg]]&lt;br /&gt;
#Choose type “DATABLOCK” because you just want a drive (not a CDROM iso, neither a disk with preinstalled OS).&lt;br /&gt;
#“Persistent” means the content of the disk image is preserved when the machine is shut down.&lt;br /&gt;
#You want an empty drive&lt;br /&gt;
#Disk size in MB&lt;br /&gt;
#Enable the advanced option to go to the next screen.&lt;br /&gt;
[[File:Advanced_disk_opennebula.jpg]]&lt;br /&gt;
&lt;br /&gt;
Set the device prefix to “vd”. This will enable the virtio driver (otherwise VM performance are very poor).&lt;br /&gt;
Don&#039;t forget to change the disk name accordingly in the hardware template in the SCDB. For example :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;harddisks&#039; = dict(&#039;vda&#039;, create(&#039;hardware/harddisk/sas_generic&#039;, &#039;capacity&#039;, 60*GB));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, click Create.&lt;br /&gt;
Now your disk is ready and we can apply an opennebula template on it.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the Template ====&lt;br /&gt;
===== Template: General =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_opennebula.jpg|1000px]]&lt;br /&gt;
&lt;br /&gt;
#We are using KVM hypervisors.&lt;br /&gt;
#VCPU should only be used if you want to “pin” some cores of the hypervisor to your VM, the result being better performances.&lt;br /&gt;
&lt;br /&gt;
===== Template: Storage =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_disk_opennebula.jpg]]&lt;br /&gt;
&lt;br /&gt;
# “Disk 0” is created automatically as a default, but...&lt;br /&gt;
# Now, associate it with the disk image you just created (select it in the table).&lt;br /&gt;
# Display the advanced options &lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_disk_2_opennebula.jpg]]&lt;br /&gt;
&lt;br /&gt;
# Again, set the device prefix to “vd” to enable virtio driver for better performances.&lt;br /&gt;
# Disable disk cache for better performances&lt;br /&gt;
&lt;br /&gt;
===== Template: Network =====&lt;br /&gt;
&lt;br /&gt;
[[File:Create_template_network_opennebula.jpg]]&lt;br /&gt;
&lt;br /&gt;
# By default, “interface 0” is automatically created. Click on the blue button “Add another nic” if you need more network interfaces.&lt;br /&gt;
# For each nic created in the previous step, select the virtual network in the above table. &lt;br /&gt;
** The usage in the T2B is to place the first nic in the public network (Public_T2B_Fullrange)&lt;br /&gt;
** And the second nic in the private network (Private_T2B_Fullrange).&lt;br /&gt;
# Display the advanced options (see next slide for explanations).&lt;br /&gt;
# Set the IP addresses of the nics (don&#039;t forget to do it for all the nics defined in the previous step !). The model should be “virtio” for better performances.&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_network_opennebula.jpg&amp;diff=393</id>
		<title>File:Create template network opennebula.jpg</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_network_opennebula.jpg&amp;diff=393"/>
		<updated>2015-09-01T15:23:41Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_disk_2_opennebula.jpg&amp;diff=392</id>
		<title>File:Create template disk 2 opennebula.jpg</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_disk_2_opennebula.jpg&amp;diff=392"/>
		<updated>2015-09-01T15:21:44Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_disk_opennebula.jpg&amp;diff=391</id>
		<title>File:Create template disk opennebula.jpg</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_disk_opennebula.jpg&amp;diff=391"/>
		<updated>2015-09-01T15:19:20Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_opennebula.jpg&amp;diff=390</id>
		<title>File:Create template opennebula.jpg</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=File:Create_template_opennebula.jpg&amp;diff=390"/>
		<updated>2015-09-01T15:15:43Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=389</id>
		<title>WorkingInT2BCloud</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=389"/>
		<updated>2015-09-01T15:13:44Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Golden rules ==&lt;br /&gt;
*Before starting, please read the [http://docs.opennebula.org/4.12/index.html doc]&lt;br /&gt;
*Never, ever, change the status of a VM using virt-manager ! Do everything using Sunstone only, and nothing else !&lt;br /&gt;
*Admin tasks on OpenNebula : most of them requires that you become oneadmin (&amp;quot;su - oneadmin&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
== Admin tasks ==&lt;br /&gt;
=== How to stop OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
sunstone-server stop&lt;br /&gt;
oneflow-server stop&lt;br /&gt;
econe-server stop&lt;br /&gt;
one stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How to start OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
one start&lt;br /&gt;
sunstone-server start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using Sunstone front-end ==&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Sunstone front-end ===&lt;br /&gt;
The Sunstone front-end is installed on dom02. Open a &amp;quot;socks&amp;quot; port to qnat or ccq (or configure your FoxyProxy) to connect to the the following URL :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://192.168.10.35:9869/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You will be asked a login and a password.&lt;br /&gt;
&lt;br /&gt;
=== Creation of VMs ===&lt;br /&gt;
To create a VM, you have to follow the following steps :&lt;br /&gt;
#creation of a disk&lt;br /&gt;
#creation of a template using the disk created previously&lt;br /&gt;
#instantiation of the template to create the VM&lt;br /&gt;
In the following explanations, we will suppose that you want to create a new VM that you want to deploy with Quattor.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the disk ====&lt;br /&gt;
[[File:Create_disk_opennebula.jpg]]&lt;br /&gt;
#Choose type “DATABLOCK” because you just want a drive (not a CDROM iso, neither a disk with preinstalled OS).&lt;br /&gt;
#“Persistent” means the content of the disk image is preserved when the machine is shut down.&lt;br /&gt;
#You want an empty drive&lt;br /&gt;
#Disk size in MB&lt;br /&gt;
#Enable the advanced option to go to the next screen.&lt;br /&gt;
[[File:Advanced_disk_opennebula.jpg]]&lt;br /&gt;
&lt;br /&gt;
Set the device prefix to “vd”. This will enable the virtio driver (otherwise VM performance are very poor).&lt;br /&gt;
Don&#039;t forget to change the disk name accordingly in the hardware template in the SCDB. For example :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;harddisks&#039; = dict(&#039;vda&#039;, create(&#039;hardware/harddisk/sas_generic&#039;, &#039;capacity&#039;, 60*GB));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, click Create.&lt;br /&gt;
Now your disk is ready and we can apply an opennebula template on it.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the Template ====&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=388</id>
		<title>WorkingInT2BCloud</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=388"/>
		<updated>2015-09-01T15:11:52Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Golden rules ==&lt;br /&gt;
*Before starting, please read the [http://docs.opennebula.org/4.12/index.html doc]&lt;br /&gt;
*Never, ever, change the status of a VM using virt-manager ! Do everything using Sunstone only, and nothing else !&lt;br /&gt;
*Admin tasks on OpenNebula : most of them requires that you become oneadmin (&amp;quot;su - oneadmin&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
== Admin tasks ==&lt;br /&gt;
=== How to stop OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
sunstone-server stop&lt;br /&gt;
oneflow-server stop&lt;br /&gt;
econe-server stop&lt;br /&gt;
one stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How to start OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
one start&lt;br /&gt;
sunstone-server start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using Sunstone front-end ==&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Sunstone front-end ===&lt;br /&gt;
The Sunstone front-end is installed on dom02. Open a &amp;quot;socks&amp;quot; port to qnat or ccq (or configure your FoxyProxy) to connect to the the following URL :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://192.168.10.35:9869/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You will be asked a login and a password.&lt;br /&gt;
&lt;br /&gt;
=== Creation of VMs ===&lt;br /&gt;
To create a VM, you have to follow the following steps :&lt;br /&gt;
#creation of a disk&lt;br /&gt;
#creation of a template using the disk created previously&lt;br /&gt;
#instantiation of the template to create the VM&lt;br /&gt;
In the following explanations, we will suppose that you want to create a new VM that you want to deploy with Quattor.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the disk ====&lt;br /&gt;
[[File:Create_disk_opennebula.jpg]]&lt;br /&gt;
#Choose type “DATABLOCK” because you just want a drive (not a CDROM iso, neither a disk with preinstalled OS).&lt;br /&gt;
#“Persistent” means the content of the disk image is preserved when the machine is shut down.&lt;br /&gt;
#You want an empty drive&lt;br /&gt;
#Disk size in MB&lt;br /&gt;
#Enable the advanced option to go to the next screen.&lt;br /&gt;
[[File:Advanced_disk_opennebula.jpg]]&lt;br /&gt;
Set tthe device prefix to “vd”. This will enable the virtio driver (otherwise VM performance are very poor).&lt;br /&gt;
Don&#039;t forget to change the disk name accordingly in the hardware template in the SCDB. For example :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&#039;harddisks&#039; = dict(&#039;vda&#039;, create(&#039;hardware/harddisk/sas_generic&#039;, &#039;capacity&#039;, 60*GB));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=File:Advanced_disk_opennebula.jpg&amp;diff=387</id>
		<title>File:Advanced disk opennebula.jpg</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=File:Advanced_disk_opennebula.jpg&amp;diff=387"/>
		<updated>2015-09-01T15:07:11Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=386</id>
		<title>WorkingInT2BCloud</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=WorkingInT2BCloud&amp;diff=386"/>
		<updated>2015-09-01T15:02:43Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Golden rules ==&lt;br /&gt;
*Before starting, please read the [http://docs.opennebula.org/4.12/index.html doc]&lt;br /&gt;
*Never, ever, change the status of a VM using virt-manager ! Do everything using Sunstone only, and nothing else !&lt;br /&gt;
*Admin tasks on OpenNebula : most of them requires that you become oneadmin (&amp;quot;su - oneadmin&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
== Admin tasks ==&lt;br /&gt;
=== How to stop OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
sunstone-server stop&lt;br /&gt;
oneflow-server stop&lt;br /&gt;
econe-server stop&lt;br /&gt;
one stop&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How to start OpenNebula ? ===&lt;br /&gt;
Connect as root to the front-end machine, and type the following commands :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
su - oneadmin&lt;br /&gt;
one start&lt;br /&gt;
sunstone-server start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using Sunstone front-end ==&lt;br /&gt;
&lt;br /&gt;
=== Connecting to the Sunstone front-end ===&lt;br /&gt;
The Sunstone front-end is installed on dom02. Open a &amp;quot;socks&amp;quot; port to qnat or ccq (or configure your FoxyProxy) to connect to the the following URL :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://192.168.10.35:9869/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You will be asked a login and a password.&lt;br /&gt;
&lt;br /&gt;
=== Creation of VMs ===&lt;br /&gt;
To create a VM, you have to follow the following steps :&lt;br /&gt;
#creation of a disk&lt;br /&gt;
#creation of a template using the disk created previously&lt;br /&gt;
#instantiation of the template to create the VM&lt;br /&gt;
In the following explanations, we will suppose that you want to create a new VM that you want to deploy with Quattor.&lt;br /&gt;
&lt;br /&gt;
==== Creation of the disk ====&lt;br /&gt;
[[File:Create_disk_opennebula.jpg]]&lt;br /&gt;
#Choose type “DATABLOCK” because you just want a drive (not a CDROM iso, neither a disk with preinstalled OS).&lt;br /&gt;
#“Persistent” means the content of the disk image is preserved when the machine is shut down.&lt;br /&gt;
#You want an empty drive&lt;br /&gt;
#Disk size in MB&lt;br /&gt;
#Don&#039;t forget to enable the advanced options&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=File:Create_disk_opennebula.jpg&amp;diff=385</id>
		<title>File:Create disk opennebula.jpg</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=File:Create_disk_opennebula.jpg&amp;diff=385"/>
		<updated>2015-09-01T15:01:16Z</updated>

		<summary type="html">&lt;p&gt;Olivier Devroede: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Olivier Devroede</name></author>
	</entry>
</feed>