Tags:
create new tag
view all tags

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 &

The provisioning system


installation_system_schema.png

  • test57 is an example system to be provisioned. In green are the steps taken by the provisioning system.
  • inst holds the following services: DHCP PXE HTTP proxy:80
    • DHCP is configured via Puppet
    • PXE: TFTP and HTTP repo:81 are run from /cm/www/html mounted in read-only mode.
    • HTTP proxy:80: running a transparent proxy to phoenix1 for Razor server. This allows systems to fetch the Razor configuration using the 10.10.64.0/22 network.
  • phoenix1 runs the razor server and puppet+puppetdb server.
    • The HTTP repo:81 runs off /cm/www/html/ and is shared with inst
  • cfengine.lcg.cscs.ch (not shown in the diagram) runs cfengine for all those machines still configured via CFengine2

-- MiguelGila - 2014-08-05

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng installation_system_schema.png r1 manage 169.5 K 2014-09-16 - 09:28 MiguelGila Systems and services involved in the installation of a system
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2014-09-16 - MiguelGila
 
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