Software Management with Quattor German Cancio CERN/IT.

Slides:



Advertisements
Similar presentations
German Cancio – WP4 developments Partner Logo WP4-install plans WP6 meeting, Paris project conference
Advertisements

ASIS et le projet EU DataGrid (EDG) Germán Cancio IT/FIO.
Red Hat Linux Network. Red Hat Network Red Hat Network is the environment for system- level support and management of Red Hat Linux networks. Red Hat.
11.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 9: Implementing and Using Group Policy.
Patch Management Module 13. Module You Are Here VMware vSphere 4.1: Install, Configure, Manage – Revision A Operations vSphere Environment Introduction.
Automating Linux Installations at CERN G. Cancio, L. Cons, P. Defert, M. Olive, I. Reguero, C. Rossi IT/PDP, CERN presented by G. Cancio.
Linux Operations and Administration
Partner Logo German Cancio – WP4-install LCFG HOW-TO - n° 1 WP4 hands-on workshop: EDG LCFGng exercises
70-294: MCSE Guide to Microsoft Windows Server 2003 Active Directory Chapter 12: Deploying and Managing Software with Group Policy.
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.
Managing Mature White Box Clusters at CERN LCW: Practical Experience Tim Smith CERN/IT.
ELFms meeting, 2/3/04 German Cancio, 2/3/04 Proxy servers in CERN-CC.
DataGrid is a project funded by the European Commission under contract IST IT Post-C5, Managing Computer Centre machines with Quattor.
EDG LCFGng: concepts Fabric Management Tutorial - n° 2 LCFG (Local ConFiGuration system)  LCFG is originally developed by the.
October, Scientific Linux INFN/Trieste B.Gobbo – Compass R.Gomezel - T.Macorini - L.Strizzolo INFN - Trieste.
11 MANAGING AND DISTRIBUTING SOFTWARE BY USING GROUP POLICY Chapter 5.
SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
quattor NCM components introduction tutorial German Cancio CERN IT/FIO.
EDG WP4: installation task LSCCW/HEPiX hands-on, NIKHEF 5/03 German Cancio CERN IT/FIO
CERN Manual Installation of a UI – Oxford July - 1 LCG2 Administrator’s Course Oxford University, 19 th – 21 st July Developed.
Partner Logo German Cancio – WP4-install LCFG HOW-TO - n° 1 LCFGng configuration examples Updated 10/2002
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.
05/29/2002Flavia Donno, INFN-Pisa1 Packaging and distribution issues Flavia Donno, INFN-Pisa EDG/WP8 EDT/WP4 joint meeting, 29 May 2002.
Quattor-for-Castor Jan van Eldik Sept 7, Outline Overview of CERN –Central bits CDB template structure SWREP –Local bits Updating profiles.
German Cancio – WP4 developments Partner Logo System Management: Node Configuration & Software Package Management
Large Farm 'Real Life Problems' and their Solutions Thorsten Kleinwort CERN IT/FIO HEPiX II/2004 BNL.
Deployment work at CERN: installation and configuration tasks WP4 workshop Barcelona project conference 5/03 German Cancio CERN IT/FIO.
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.
G. Cancio, L. Cons, Ph. Defert - n°1 October 2002 Software Packages Management System for the EU DataGrid G. Cancio Melia, L. Cons, Ph. Defert. CERN/IT.
Module 6: Deploying and Managing Software by Using Group Policy.
Installing, running, and maintaining large Linux Clusters at CERN Thorsten Kleinwort CERN-IT/FIO CHEP
SPMA & SWRep: Basic exercises HEPiX hands-on, NIKHEF 5/03 German Cancio
Installing a Quattor Server and Client German Cancio CERN/IT.
C. Aiftimiei, E. Ferro / January LCFGng server installation Cristina Aiftimiei, Enrico Ferro INFN-LNL.
J.P. Wellisch, CERN/EP/SFT SCRAM Information on SCRAM J.P. Wellisch, C. Williams, S. Ashby.
Getting Started with SIDL using the ANL SIDL Environment (ASE) ANL SIDL Team MCS Division, ANL April 2003 The ANL SIDL compilers are based on the Scientific.
E. Ferro, CNAF, april Enrico Ferro INFN-LNL Installation of a LCFG server.
German Cancio – WP4 developments Partner Logo WP4-install progress CERN, 19/6/2002 for WP4-install.
Maite Barroso - 10/05/01 - n° 1 WP4 PM9 Deliverable Presentation: Interim Installation System Configuration Management Prototype
ASIS + RPM: ASISwsmp German Cancio, Lionel Cons, Philippe Defert, Andras Nagy CERN/IT Presented by Alan Lovell.
Linux Configuration using April 12 th 2010 L. Brarda / CERN (some slides & pictures taken from the Quattor website) ‏
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring Windows Server 2008 Printing.
Automated management…, 26/7/2004 Automated management of large fabrics with ELFms Germán Cancio for CERN IT/FIO LCG-Asia Workshop Taipei, 26/7/2004
Tutorial on setting up Zebra: A Z39.50 Server ARD Prasad DRTC Indian Statistical Institute Bangalore.
Quattor tutorial Introduction German Cancio, Rafael Garcia, Cal Loomis.
Introduction to NCM Configuration components German Cancio CERN/IT.
Oracle 10g Administration Oracle Server Introduction Copyright ©2006, Custom Training Institute.
Fabric Management: Progress and Plans PEB Tim Smith IT/FIO.
Managing Large Linux Farms at CERN OpenLab: Fabric Management Workshop Tim Smith CERN/IT.
Quattor: An administration toolkit for optimizing resources Marco Emilio Poleggi - CERN/INFN-CNAF German Cancio - CERN
AII v2 Ronald Starink Luis Fernando Muñoz Mejías
Virtualisation for NA49/NA61
Dag Toppe Larsen UiB/CERN CERN,
Dag Toppe Larsen UiB/CERN CERN,
Status of Fabric Management at CERN
LOCO Extract – Transform - Load
Germán Cancio CERN IT/FIO LCG workshop, 24/3/04
WP4-install status update
Virtualisation for NA49/NA61
German Cancio CERN IT .quattro architecture German Cancio CERN IT.
Package functions and tools in CDB
Quattor Usage at Nikhef
Software deployment and service administration with Quattor
CompTIA Server+ Certification (Exam SK0-004)
SUSE Linux Enterprise Desktop Administration
Quattor Advanced Tutorial, LAL
Presentation transcript:

Software Management with Quattor German Cancio CERN/IT

n° 2 Outline u Context u SWRep and SPMA u SWRep/SPMA vs. APT/yum u Two easy SPMA exercises

n° 3 SPMA environment CCM SPMA NCM Components Cdispd NCM Registration Notification SPMA SPMA.cfg CDB nfs http ftp Mgmt API ACL’s Client Nodes SWRep Servers cache Packages (rpm, pkg) packages (RPM, PKG) PXE DHCP Mgmt API ACL’s AII server DHCP handling KS/JS PXE handling KS/JS generator Node Install CCM Node (re)install?

n° 4 SWRep (Software Repository) u Universal repository for storing Software: n Extendable to multiple platforms and packagers (RH Linux RPM.. Solaris PKG, others like Debian pkg) n Stores multiple package versions/releases per platform u Management (“product maintainers”) interface: n ACL based mechanism to grant/deny modification rights (packages associated to “areas”) u Client access: via standard protocols n HTTP, AFS/NFS, FTP u Replication for load balancing/redundancy: using standard tools n Apache mod_proxy (as used at CERN, slides here)slides here n rsync

n° 5 SPMA (Software Package Manager Agent) u Can manage either all or a subset of packages on the nodes n On production nodes: full control - wipe out unknown packages, (re)install missing ones. n On development nodes: non-intrusive, configurable management of system and security updates. u Package manager, not only upgrader n Can roll back package versions n Transactional verification of operations u Scalability: n Supports HTTP (also FTP, AFS/NFS) and forward/reverse proxies n Time smearing and package pre-caching u Portability via generic plug-in framework n System packager specific transactional interface (RPMT, PKGT) u Multiple repositories can be accessed (eg. division/experiment specific)

n° 6 SPMA (II) u SPMA functionality: 1.Compares the packages currently installed on the local node with the packages listed in the configuration profile 2.Computes the necessary install/deinstall/upgrade operations 3.Invokes the packager (rpmt/pkgt) with the right operation transaction set u The SPM is driven via a local configuration file n An NCM component (ncm-spma) generates/updates this configuration file out of CDB information n /var/lib/spma-target.cf

n° 7 SPMA (III) RPMT u RPMT (RPM transactions) is a small tool on top of the RPM libraries, which allows for multiple simultaneous package operations resolving dependencies (unlike plain RPM) n Example: ‘upgrade X, deinstall Y, downgrade Z, install T’ and verify/resolve appropriate dependencies u Does use basic RPM library calls, no added intelligence u Ports available for RH7 (RPM 4.0) and SL3 (RPM 4.2) n Note: due to a bug in RPM libraries, RPMT requires RPMlib (see Savannah #5005). A workaround will be provided soon.Savannah #5005 n CERN Scientific Linux ships RPM instead of for this reason.

n° 8 SPMA/SWRep vs. other package management tools u Quattor does not impose using any packaging tool. n SPMA n APT (and yum, not described here as very similar to APT) u SPMA advantages: n Declarative: Keep list of packages in CDB templates. Packages are updated/downgraded as required. s SPMA behaves stateless. n Every node may have a completely different setup in terms of installed packages and versions. s Not "go for the latest" n Explicit separation of Package depot (SWRep) and configuration (in CDB) s You can have multiple versions (old, production, new, beta) of packages in the repository without causing client updates n SPMA supports rollbacks. Just change the packages/versions in CDB and SPMA will take care to downgrade/upgrade/install/remove whatever is required. n SPMA supports multiple simultaneous package versions on one node.

n° 9 SPMA/SWRep vs. other package management tools u APT advantages: n Standard tool shipped with Scientific Linux s LCG and Quattor offer APT/yum repositories for downloading software n Dependency resolution s But may decide to resolve differently than what you want! Eg. More than one package 'providing' a dependency. s Requires to set 'priorities' on repositories. n Nice GUI (synaptic), easier to use. u APT and SPMA/SWRep should not be used in parallel on the same node. n However, it is possible to bootstrap the Quattor server with APT, and then use SPMA to manage your farms and servers u The choice between SPMA and APT/yum will depend on the complexity of your environment and/or the control level you need. n CERN example: SPMA for Computer Centre ("full" mode for batch nodes, "light" mode for development nodes) n APT for desktops

n° 10 SPMA Exercises

n° 11 SPMA exercises u Quick introduction to the PAN package templates u Adding/removing packages to the node u Local packages, and user priority switch u Handling simultaneous package versions with the SPMA References: n Yesterday's slides (for CDB and SWRep operations) n man spma n spma --help n vi /etc/spma.conf A read-only access to a SWRep server on 'lxb0613.cern.ch' is configured, as user 'tutorial' ( su -l tutorial ) n man swrep-client

n° 12 SPMA setup: package templates (I) u The Pan templates for the SPMA contain the list of packages to be installed by the SPMA. check pro_software_quattortutorial.tpl which includes: s pro_software_packages_scientificlinuxcern_3_03 s pro_software_packages_quattor_sl s pro_software_packages_quattortutorial u By overlaying the templates using ‘include’, we get the desired list of packages in the configuration profile.

n° 13 functions pro_software_packages_ * includes creates repository_quattortut_i386_sl3 pro_software_tutorial profile_xxx pro_system_quattortutorial Object templates (generate XML) Template structure for software packages “External” (normally autogenerated by SWRep) ‘read-only’ templates editable templates Object templates (XML)

n° 14 SPMA setup: package templates (II) Some PAN functions are provided for manipulating the package list in the profile, which are used in the templates: u pkg_add(“packagename”,”version-release”,”arch”); n Adds a package to the profile. u pkg_del(“packagename”,[“version-release”]); n Removes a package version (or all if none specified) from the profile. u pkg_repl(“packagename”,”new ver-rel”,”arch”[,”old ver-rel”]); n Replaces the package version ‘old’ by ‘new’ in the profile. If ‘old’ is not specified, it replaces all other versions. u It is important to understand that the ‘add’,’del’ and ‘repl’ functions do only modify the final list of desired packages. Eg. ‘ pkg_del ’ does not instruct to delete any package, but removes it from the list of desired packages n Useful when modifying inherited profiles  For the exercises, we will use only the ‘ pkg_add ’ function.  More information about these functions: see pro_declarations_functions_general.tpl

n° 15 Running SPMA u The SPMA configuration is generated/updated by running an NCM component ncm-ncd --configure spma : updates /var/lib/spma-target.cf and /etc/spma.conf if needed n The NCM component updates the SPMA config files, and can automatically run the SPMA if there were changes (this is deactivated for today's tutorial). u SPMA is run as follows: n # spma [options] u Most important SPMA options: n --noaction n --verbose --userpkgs (yes/no) run in ‘light’ or ‘full’ mode --userprio (yes/no) upgrade/downgrade packages installed by user u The typical sequence for this tutorial will be: 1. update templates in CDB via cdbop 2. run ncm-ncd --configure spma && spma --noaction (check what changes) 3. run spma

n° 16 SPMA exercise 1 Exercise 1: Adding/removing packages to the node i. Start cdbop, "get" the ‘ pro_software_packages_scientificlinuxcern_3_03 ’ template, and add to it the following RPM package: Name: uucp version-release: arch: i386 n Tip: follow the syntax of the other packages ii. "update" CDB via cdbop, and run "commit" iii. Now, update the SPMA configuration file: ncm-ncd --configure spma iv. And now run the SPMA: spma --noaction followed by spma

n° 17 SPMA exercise 1. (contd) v. What happens if you re-run the SPMA again? vi. What happens if you remove the package by hand (as root) ( rpm -e uucp ), and run the SPMA afterwards? vii. Now comment out the line added to the template in i.) and add another line for adding the following package: 'squid '. Use the ' swrep-client ' tool for finding out which are the version(s) of squid on the SWRep. You need to run this as user 'tutorial', not 'root'. Then, re-run cdbop, ncm-ncd, and spma. Notes:  The generated SPMA local configuration file (containing the ‘target’ package list) is kept in /var/lib/spma-target.cf  SPMA log file: /var/log/spma.log

n° 18 SPMA exercise 2. Exercise 2: Local packages i. change the configuration of SPMA (in /etc/spma.conf ) to allow packages directly installed by the user: set 'userpkgs = yes ' Or, better, automatically configure this entry using the ‘SPMA’ NCM component configuration in CDB: “/software/components/spma/userpkgs”=“yes”; (set this in profile_lxb.tpl) followed by an ncm-ncd --configure spma ii. Install (by hand) the following package: xpdf i386.rpm rpm -ivh or via apt-get: apt-get install xdpf iii. Run SPMA. iv. Change the configuration of SPMA back to 'userpkgs = no' (default). v. Run SPMA again.

n° 19 Other SPMA exercises To test out at your home institute:  Check pro_declarations_functions_general.tpl: Using the pkg_repl and pkg_del functions (check ) Check 'man spma': n Using the SPMA pre-caching facility n Using the 'userprio' switch n Using proxy servers.

n° 20