How to install a machine with Razor

This is a description of how to use Razor to install a system, it's a WORK IN PROGRESS.

All this commands are to be executed in phoenix1.lcg.cscs.ch, but the server inst.lcg.cscs.ch is the one actually serving the images.

  • Get info on the node scratchy03
    $ ~miguelgi/bin/lcg_list_razor_nodes |grep scratchy03
    node14 | razor IP: "10.10.64.32" | razor hostname: "node14.lcg.cscs.ch" | public IP: 148.187.64.32 | real hostname: scratchy03.lcg.cscs.ch |
    
    $ razor nodes node114
    From http://localhost:8080/api/collections/nodes/node114:
    
    id: "http://localhost:8080/api/collections/nodes/node114"
    name: "node114"
    hw_info:
    uuid: "e37fb4d8-9698-b238-4c8d-02f9f91045d4"
    mac: ["00-10-3e-64-02-11"]
    hostname: "dummy114.lcg.cscs.ch"
    state:
    stage: "boot_local"
    installed: "vm_kvm"
    installed_at: "2014-07-09T15:42:48+02:00"
    spec: "/razor/v1/collections/nodes/member"
    root_password: "____EDITED____"
    facts:
    physicalprocessorcount: 2
    bios_release_date: "01/01/2007"
    ipaddress: "10.10.64.211"
    uniqueid: "0a0ad340"
    network_lo: "127.0.0.0"
    netmask: "255.255.252.0"
    [...]
    

  • Reinstalling the node
    $ razor reinstall-node --name=node115
    $ ~miguelgi/bin/lcg_ipxe scratchy03

  • IPMI console
    $ ~miguelgi/bin/lcg_ips wn45
    Hostname: wn45.lcg.cscs.ch
    IPMI IP: 192.168.65.45
    Install IP: 10.10.65.45
    Public IP: 148.187.65.45
    
    $ firefox https://192.168.65.45 &

Description of the installation system

  • inst.lcg.cscs.ch holds the following services: DHCP PXE TFTP HTTP HTTP_PROXY
    • DHCP is configured via Puppet
    • PXE and TFTP are run from /cm mounted in read-only mode.
    • HTTP is running two things:
      1. On port 81 on /cm/www/html/ mounted in read-only mode, serving all CM tree (i.e. a RPM repo).
      2. On port 80 running a transparent proxy to phoenix1.lcg.cscs.ch for Razor server.
  • phoenix1.lcg.cscs.ch runs the razor server and puppet+puppetdb server.
      1. The HTTP repo runs off /cm/www/html/ and is shared with inst.lcg.cscs.ch
  • cfengine.lcg.cscs.ch runs cfengine for all those machines still configured via CFengine2
-- MiguelGila - 2014-08-05
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2014-09-16 - MiguelGila
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback