EGEE is a project funded by the European Union under contract IST-2003-508833 Quattor Cookbook C. Loomis (LAL-Orsay) Clermont-Ferrand Quattor Tutorial.

Slides:



Advertisements
Similar presentations
1 Dynamic DNS. 2 Module - Dynamic DNS ♦ Overview The domain names and IP addresses of hosts and the devices may change for many reasons. This module focuses.
Advertisements

14.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
1 Web Server Administration Chapter 3 Installing the Server.
Optinuity Confidential. All rights reserved. C2O Configuration Requirements.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Hands-On Microsoft Windows Server 2003 Chapter 2 Installing Windows Server 2003, Standard Edition.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 10: Server Administration.
Installing software on personal computer
© 2010 VMware Inc. All rights reserved VMware ESX and ESXi Module 3.
Automating Linux Installations at CERN G. Cancio, L. Cons, P. Defert, M. Olive, I. Reguero, C. Rossi IT/PDP, CERN presented by G. Cancio.
Installing Linux Redhat: A how to guide in installing and configuring Redhat 6.2.
PacNOG 6: Nadi, Fiji Installing Ubuntu Server 9.04 Hervey Allen Network Startup Resource Center.
Linux Operations and Administration
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.
1 Web Server Administration Chapter 3 Installing the Server.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
Configuring the MagicInfo Pro Display
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Two Deploying Windows Servers.
WP4-install task report WP4 workshop Barcelona project conference 5/03 German Cancio.
EGEE is a project funded by the European Union under contract IST Quattor Installation of Grid Software C. Loomis (LAL-Orsay) GDB (CERN) Sept.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration.
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) VOMS Installation and configuration Bouchra
EDG LCFGng: concepts Fabric Management Tutorial - n° 2 LCFG (Local ConFiGuration system)  LCFG is originally developed by the.
1 Web Server Administration Chapter 3 Installing the Server.
Please Note: Information contained in this document is considered LENOVO CONFIDENTIAL For Lenovo Internal Use Only Do Not Copy or Distribute!! For Lenovo.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
By Rashid Khan Lesson 10-From Here to There: Remote Installation of the Windows XP Professional Client.
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
CERN Manual Installation of a UI – Oxford July - 1 LCG2 Administrator’s Course Oxford University, 19 th – 21 st July Developed.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Scott Drucker, Systems Engineer Migrating to Microsoft Vista with WinINSTALL.
1 The new Fabric Management Tools in Production at CERN Thorsten Kleinwort for CERN IT/FIO HEPiX Autumn 2003 Triumf Vancouver Monday, October 20, 2003.
Quattor-for-Castor Jan van Eldik Sept 7, Outline Overview of CERN –Central bits CDB template structure SWREP –Local bits Updating profiles.
INFSO-RI Enabling Grids for E-sciencE Installation of an APT+kickstart server Giuseppe Platania INFN Catania EMBRACE Tutorial Clermont-Ferrand,
20-May-2003HEPiX Amsterdam EDG Fabric Management on Solaris G. Cancio Melia, L. Cons, Ph. Defert, I. Reguero, J. Pelegrin, P. Poznanski, C. Ungil Presented.
INFSO-RI Enabling Grids for E-sciencE SCDB C. Loomis / Michel Jouvin (LAL-Orsay) Quattor Tutorial LCG T2 Workshop June 16, 2006.
CHAPTER 2. Overview 1. Pre-Installation Tasks 2. Installing and Configuring Linux 3. X Server 4. Post Installation Configuration and Tasks.
SPMA & SWRep: Basic exercises HEPiX hands-on, NIKHEF 5/03 German Cancio
Software Management with Quattor German Cancio CERN/IT.
Installing a Quattor Server and Client German Cancio CERN/IT.
How to Deploy and Configure the Smart Net Total Care CSPC Collector
© 2008 Cisco Systems, Inc. All rights reserved.CIPT1 v6.0—1-1 Getting Started with Cisco Unified Communications Manager Installing and Upgrading Cisco.
C. Aiftimiei, E. Ferro / January LCFGng server installation Cristina Aiftimiei, Enrico Ferro INFN-LNL.
Maite Barroso - 10/05/01 - n° 1 WP4 PM9 Deliverable Presentation: Interim Installation System Configuration Management Prototype
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
Linux Operations and Administration
EGEE-II INFSO-RI Enabling Grids for E-sciencE YAIM Overview MiMOS Grid tutorial HungChe, ASGC OPS Team.
Linux Configuration using April 12 th 2010 L. Brarda / CERN (some slides & pictures taken from the Quattor website) ‏
EGEE is a project funded by the European Union under contract IST Installation and configuration of gLite services Robert Harakaly, CERN,
2: Operating Systems Networking for Home & Small Business.
Installing VERITAS Cluster Server. Topic 1: Using the VERITAS Product Installer After completing this topic, you will be able to install VCS using the.
Operating Environment. Installation and Upgrade Options Solaris suninstall program Solaris Web Start Installation Custom Jumpstart procedure Standard.
MREPO: Yum/Apt repository kickstart installation via PXE GIUSEPPE PLATANIA INFN Catania I Corso di formazione INFN.
CACI Proprietary Information | Date 1 PD² v4.2 Increment 2 SR13 and FPDS Engine v3.5 Database Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead.
Scientific Linux Inventory Project (SLIP) Troy Dawson Connie Sieh.
Quattor: An administration toolkit for optimizing resources Marco Emilio Poleggi - CERN/INFN-CNAF German Cancio - CERN
1 Remote Installation Service Windows 2003 Server Prof. Abdul Hameed.
April 1st, 2009 Cobbler Provisioning Made Easy Jasper Capel.
Andrea Chierici Virtualization tutorial Catania 1-3 dicember 2010
LCG/EGEE Installation J. A. Templon Undecided (NIKHEF)
AII v2 Ronald Starink Luis Fernando Muñoz Mejías
COP 4343 Unix System Administration
Chapter 9 Router Configuration (Ospf, Rip) Webmin, usermin Team viewer
DHCP server & Client Objectives Contents
German Cancio CERN IT .quattro architecture German Cancio CERN IT.
SUBMITTED BY: NAIMISHYA ATRI(7TH SEM) IT BRANCH
Quattor Usage at Nikhef
SUSE Linux Enterprise Desktop Administration
Quattor Advanced Tutorial, LAL
Presentation transcript:

EGEE is a project funded by the European Union under contract IST Quattor Cookbook C. Loomis (LAL-Orsay) Clermont-Ferrand Quattor Tutorial May 17-18,

Quattor Cookbook (C. Loomis), May 17-18, Contents Overview Quattor Server OS Installation (RH7.3) Quattor Services Pan Templates Quattor Clients Manual Installation Automatic (PXE) Installation Writing NCM Components Summary

Quattor Cookbook (C. Loomis), May 17-18, Overview Purpose Install basic quattor server. Understand & use pan templates. Install & manage clients with quattor. Write simple NCM component. Ground Rules Originally intended as informal one-on-one “tutorial”, i.e. expect glitches. Feel free to interrupt, correct, praise, complain, etc. I'm not a quattor developer! Only useful features (IMHO) are covered. Cookbook doesn't replace the complete quattor documentation.

Quattor Cookbook (C. Loomis), May 17-18, Quattor Resources Website ( Overview Design and architecture Current status Bug reports (via savannah) Documentation ( Installation guide Component writers' guide PAN language reference Tutorials Quattor Packages ( RedHat Linux 7.3 Others (FC1, RHES,...) not yet available

Quattor Cookbook (C. Loomis), May 17-18, Quattor Server Requirements RedHat Linux 7.3 Daemons (Apache, DHCP, TFTP) Disk: 2.5 GB for system, 2.5 GB per client OS, 5 GB for LCG-2 “Basic” Quattor Server All quattor services on one machine. Some advanced services are not deployed. Should be OK for most sites. “Small” on order of 100 machines. Have not tested this myself! LCG-2 installation: Templates & components not complete. Community effort trying to make this happen.

Quattor Cookbook (C. Loomis), May 17-18, RedHat 7.3 Installation Collect necessary information IP addresses (quattor server, DNS, gateway, NTP) MAC addresses, network mask, broadcast Standard “server” installation Edit partitions for >10 GB in /var. No firewall. Additional packages Web server group DHCP server (system environment/daemons/dhcp) TFTP server (system environment/daemons/tftp-server) NTP client (system environment/daemons/ntp) mtools (applications/system/mtools)

Quattor Cookbook (C. Loomis), May 17-18, RedHat 7.3 Updates Quattor server itself not managed by quattor! Use standard tools for server system updates. RedHat no longer supports RH7.3. Fedora Legacy Project provides security patches. Follow the instructions at the link below to enable yum: Recommend: Enabling kernel updates. Enabling automatic updates. Using appropriate mirrors. Update system and reboot! yum update reboot

Quattor Cookbook (C. Loomis), May 17-18, Downloads Complete OS for kickstart installs Available on web server for clients. Download RH7.3 images (valhalla*.iso). Copy image contents to /var/www/html/rh73/. Quattor packages Alpha-2 edg-cdb2sql package is not needed for this tutorial 2/i386-rh7.3/ 2/i386-rh7.3/ External Need to upgrade syslinux; others can be installed RH73/ RH73/ Download RPMs to temporary area.

Quattor Cookbook (C. Loomis), May 17-18, Downloads (cont.) LCG-2 Use LCG-2 machine types as examples. Get all LCG-2 rpms for all machines: deployment/download/RpmDir/index_LCG-2_0_0.html deployment/download/RpmDir/index_LCG-2_0_0.html Put into temporary area with sufficient space.

Quattor Cookbook (C. Loomis), May 17-18, Quattor Server Services Central Configuration Database (CDB) Contains configuration information for all quattor clients. Configuration done via Pan templates. Translated to low-level XML format for distribution to clients. Software Repository (SWRep) Contains all software packages for clients: OS, LCG-2, quattor,... Automated Installation Infrastructure (AII) Uses standard OS tool for initial installation. Quattor is used to update system after the first boot.

Quattor Cookbook (C. Loomis), May 17-18, Quattor Client Services Configuration Cache Manager (CCM) Downloads & caches low-level XML profile. Node Configuration Manager (NCM) Runs necessary configuration components when profile changes. Software Package Management Agent (SPMA) Installs & updates software packages.

Quattor Cookbook (C. Loomis), May 17-18, CDB Configuration Ensure that Apache is running: chkconfig httpd on service httpd start Check that the server responds to a browser. Verify configuration file: “top” is location of database (/var/lib/cdb) “pan” is location of executable (/opt/edg/bin/panc) “cake” is location of cake executable (/opt/edg/libexec/cake) Initialize CDB: /opt/edg/sbin/edg-cdb-setup Creates hld and lld directories in /var/lib/cdb. Links /var/www/html/profiles to /var/lib/cdb/lld/xml.

Quattor Cookbook (C. Loomis), May 17-18, CDB Configuration (cont.) CDB notifications (for later) Add “server_module host.example.org” for synchronization. Or “server_module none” for no notifications. Two management tools: cdb-simple-cli (local management) cdbop (remote management)

Quattor Cookbook (C. Loomis), May 17-18, CDB Client Configuration Simple command line (cdb-simple-cli) Set password for cdb account. Session-based tool (cdbop) Add “user::passwd” lines to /etc/httpd/conf/.passwd file. Crypt password: perl -e 'print crypt(“password”, “be”)' Replace /etc/httpd/conf/cdb.allow contents with line “cdb admin”. Copy /usr/share/doc/cdb-cli- /cdbop.cf to /etc/cdbop.cf. Add quattor server name to /etc/cdbop.cf. Test: cdb-simple-cli –list cdbop then user, password, “open”, “list”, “exit”. Commands should work but return nothing (as there are no templates yet).

Quattor Cookbook (C. Loomis), May 17-18, SW Repository Configuration (Server) Copy example configuration file: /usr/share/doc/edg-swrep-server- /edg-swrep-server.cfg to /etc/swrep/. Edit parameters: name: “Cookbook Software Repository” owner: url: aclfile: /etc/swrep/edg-swrep.acl rootdir: /var/www/html/swrep enable-sync: no

Quattor Cookbook (C. Loomis), May 17-18, SW Repository Configuration (Client) Copy example configuration file: /usr/share/doc/edg-swrep- /edg-swrep-client.cfg to /etc/swrep/. Edit parameters: repository: runsync: no ssh-params: modification needed only if using kerberos

Quattor Cookbook (C. Loomis), May 17-18, SW Repository Authorization Generate ssh keys if necessary: ssh-keygen -b t rsa Copy id_rsa.pub to /var/swrep/.ssh/authorized_keys2 Add: 'environment=”SSH_USER=swrep” ' before “ssh-rsa” ACL (/etc/swrep/edg-swrep.acl) should already have: “swrep:/” as the first line

Quattor Cookbook (C. Loomis), May 17-18, SW Repository Organization Organize as you want. Typically something like: edg-swrep-client addplatform i386_rh73 edg-swrep-client addarea i386_rh73 /base edg-swrep-client addarea i386_rh73 /updates But for this tutorial will use: edg-swrep-client addarea i386_rh73 /lcg2 edg-swrep-client addarea i386_rh73 /quattor Adding/removing packages: edg-swrep-client put i386_rh73 /tmp/eg.rpm /lcg2 edg-swrep-client list i386_rh73 edg-swrep-client remove i386_rh73 /lcg2 eg.rpm If all worked, then SW repository server and client are OK.

Quattor Cookbook (C. Loomis), May 17-18, Fill SW Repository Load all LCG-2 rpms into repository: edg-swrep-client put i386_rh73.rpm /lcg2 Load all quattor rpms into repository: edg-swrep-client put i386_rh73.rpm /quattor Generate a repository template: edg-swrep-client template i386_rh73 Rename appropriately (see “structure template” line of generated file).

Quattor Cookbook (C. Loomis), May 17-18, Pan Overview Pan Language Used to specify machine configuration. Flexible, hierarchical organization of information. Allows arbitrary validation of configuration. Organization (pro_declaration_structure_*.tpl) /hardware cpus... /software... /system network...

Quattor Cookbook (C. Loomis), May 17-18, Pan Types Built-in Types long double string “Standard” types: pro_declaration_type_validation_function_*.tpl pro_declaration_type_*.tpl ip, ipv4, ipv6, fqdn, hostname, shorthostname URI, absoluteURI, hostURI asndate, isodate, date (deprecated) , hwaddr (MAC)

Quattor Cookbook (C. Loomis), May 17-18, Standard Templates Load standard types into CDB: cdb-simple-cli --add pro_declaration_type*.tpl Load LCG-2 templates: cdb-simple-cli --add pro_software_lcg2_*.tpl Load repository template: cdb-simple-cli --add repository*.tpl

Quattor Cookbook (C. Loomis), May 17-18, Hardware Templates Create hardware templates (CPU, RAM, disk, NIC): e.g. pro_hardware_cpu_GenuineIntel_Xeon_2400.tpl e.g. pro_hardware_ram_2048.tpl e.g. pro_hardware_harddisk_scsi_32.tpl e.g. pro_hardware_card_nic_broadcom_NetXtreme.tpl Create machine type: Dual Xeon with 2GB RAM, 32GB SCSI disk, 3 network interfaces e.g. pro_hardware_dell_poweredge_1750_v00.tpl Load hardware templates: cdb-simple-cli --add *hardware*.tpl

Quattor Cookbook (C. Loomis), May 17-18, Software Templates SW repository templates: Typically generated with edg-swrep-client command. e.g. repository_lal_repository_i386_rh73.tpl Can create templates for standard web servers. e.g. standard LCG-2 package repository Package lists Templates exist for LCG Machine types: pro_software_lcg2_machine_*.tpl Base RH7.3 system: pro_software_lcg2_machine_base.tpl User interface: pro_software_lcg2_machine_ui.tpl Detailed service lists: pro_software_lcg2_service_*.tpl

Quattor Cookbook (C. Loomis), May 17-18, System Templates Specify host information in object template: Hostname NIC parameters Kernel version Create common system template (pro_system_common.tpl). Cluster name Root mail address Disk partitions Components...

Quattor Cookbook (C. Loomis), May 17-18, Object Templates Object template corresponds to client machines. e.g. profile_grid06.tpl Validation All object templates are validated for ALL template changes! Ensures confidence in generated machine profiles. Can be very painful to get right the first time. Must have working profile before trying client.

Quattor Cookbook (C. Loomis), May 17-18, Manual Client Installation Prepare machine: Install RedHat Linux 7.3 “server” installation No firewall Make sure enough space (~10 GB) on “/” partition! Optionally update with yum (see previous directions). Don't need to setup for automatic updates. Download quattor rpms: Alpha-2 and external from previous links. Install all RPMs except syslinux and edg-cdb2sql.

Quattor Cookbook (C. Loomis), May 17-18, Manual Client Configuration Configuration Cache Manager (CCM): Copy /usr/share/doc/edg-ccm- /eg/edg-ccm.conf to /etc. Edit “profile” parameter: change: to: Comment out “context”. Run: /usr/sbin/edg-ccm-initialise. Node Configuration Deployer (NCD) Defaults in /etc/ncm-ncd.conf should be OK. Software Package Management Agent (SPMA) Set “userpkgs” in /etc/spma.conf to “no”. Other defaults should be OK.

Quattor Cookbook (C. Loomis), May 17-18, Manual Client Configuration (cont.) Configuration Distribution Protocol Daemon (CDP) Copy /usr/share/doc/edg-cdp-listend- /examples/edg-cdp- listend.conf to /etc. Change “fetch” parameter to /usr/sbin/edg-ccm-fetch. Other defaults should be OK. Configuration Dispatch Daemon (cdispd) Defaults in /etc/ncm-cdispd.conf should be OK.

Quattor Cookbook (C. Loomis), May 17-18, Manual Client Update Fetch the XML profile from the server. edg-ccm-fetch Start configuration dispatch daemon. service ncm-cdispd start Check log files for changes: ncm-cdispd: /var/log/ncm-cdispd.log SPMA: /var/log/spma.log NCM components: /var/log/ncm/* On quattor server: Edit /opt/edg/etc/cdb.conf to add client “server_module”. Change package list and verify changes are propagated to client.

Quattor Cookbook (C. Loomis), May 17-18, Automatic Client Installation AII works from quattor server. Uses native machine installation tools. For linux: kickstart. Bootstrap using PXE. DHCP server needed (IP address, kernel location) TFTP server needed (boot kernel) HTTP server needed (OS images, packages)

Quattor Cookbook (C. Loomis), May 17-18, DHCP Setup Copy /usr/share/doc/aii- /eg/dhcpd.conf to /etc. Edit to ensure that common setting are appropriate for site. Individual hosts will be added & updated by AII scripts.

Quattor Cookbook (C. Loomis), May 17-18, TFTP Setup Create directories /osinstall/nbp and /os/install/nbp/rh73. Copy the pxelinux.0 file to /osinstall/nbp. cp -f /usr/lib/syslinux/pxelinux.0 /osinstall/nbp Edit /etc/xinetd.d/tftp: “disable = no” “server_args = -s /osinstall/nbp Edit /etc/hosts.allow to permit clients to connect! Copy boot files to /osinstall/nbp/rh73: cp /mnt/cdrom/images/pxeboot/* /osinstall/nbp/rh73 Adjust location to where RH7.3 installation disk is located. Restart the xinetd service to activate changes!

Quattor Cookbook (C. Loomis), May 17-18, Kickstart Setup Create directory /osinstall/nbp/ks. Make kickstart files available via web server. ln -s /osinstall/ks /var/www/html/ks Copy the pxelinux.0 file to /osinstall/nbp. Contents of installation disks must be available from web server. cp -r /mnt/cdrom/* /var/www/html/rh73 Copy acknowledgement script to cgi location. cp /usr/sbin/aii-installack.cgi /var/www/cgi-bin Allow apache to run AII commands without password. Add line “apache ALL=(ALL) NOPASSWD: ALL” to /etc/sudoers.

Quattor Cookbook (C. Loomis), May 17-18, Edit AII Templates Edit pro_software_component_aii.tpl: File contains lots of local machine information. time zone keyboard type language Partitioning used for the local disks. Location of profiles: /software/components/aii/osinstall/ks/cdbserver This must be the URL where the machine profiles are located. Make sure that updated component is loaded into CDB. Make sure /usr/lib/aii/osinstall/rh73.kstpl file is OK. Can make modifications to post install script here if necessary. Contains names of additional RPMs which must be installed.

Quattor Cookbook (C. Loomis), May 17-18, AII Client Installation Edit /etc/aii-shellfe.conf setting “cdburl” to the CDB URL on server! Signal AII to do configuration for new client. aii-shellfe --configure quattor_client.example.org Mark this machine for installation. aii-shellfe --install quattor_client.example.org Verify changes: /etc/dhcpd.conf contains correct host information Profile available from Kickstart file in /osinstall/ks is correct. Install Client Reboot client using PXE. Initial installation via kickstart; reboots on completion. Quattor finishes installation then reboots.

Quattor Cookbook (C. Loomis), May 17-18, Common Problems PXE can't get installation parameters from DHCP server. DHCP server not configured correctly. (Check IP numbers, etc.) Firewall is blocking access to DHCP server. Another DHCP server is responding. TFTP server can't be contacted. Check /etc/hosts.allow file. Verify all necessary files are available in /osinstall area. Firewall is blocking access to TFTP server. Kickstart fails Check information in pro_software_component_aii.tpl Change “hda” to “sda” for SCSI interface. Verify URL download location.

Quattor Cookbook (C. Loomis), May 17-18, Easiest to start from an example. Check out quattor (and NCM components) from CVS export cvs co elfms/quattor Copy ncm-edglcg to ncm-example: cd elfms/quattor/ncm-components/lcg-2/ mkdir ncm-example cp ncm-edglcg/* ncm-example/ Rename & edit files in ncm-example. Component writes params.--alpha, beta, gamma--to /etc/example.conf. See example files. Writing NCM Components

Quattor Cookbook (C. Loomis), May 17-18, Build the necessary RPMs: make rpm Load RPMs into SW repository. edg-swrep-client put i386_rh73 \ ncm-example i386.rpm /quattor Generate new repository template and load in CDB: edg-swrep-client template i386_rh73 > tmp.tpl mv tmp.tpl repository_lal_repository_i386_rh73.tpl cdb-simple-cli --update \ repository_lal_repository_i386_rh73.tpl Incorporating New Component

Quattor Cookbook (C. Loomis), May 17-18, Create template to include component & configuration. make rpm Add template to quattor client's object template. edg-swrep-client put i386_rh73 \ ncm-example i386.rpm /quattor Check that changes are propagated to client. ls -l /etc/example.conf cat /etc/example.conf Make changes to configuration; verify changes on client. Incorporating New Configuration

Quattor Cookbook (C. Loomis), May 17-18, Summary Installed quattor server appropriate for “small” site. Used pan language to define client configuration. Managed manually-installed machine via quattor. Installed from scratch machine using quattor. Wrote and added a simple NCM component to configuration. Comments on improving the tutorial are very welcome!