Automated Out-of-Band management with Ansible and Redfish

Similar documents
Using Ansible and Redfish to automate systems management. Jose Delarosa May 9, 2018

Oslo 30 October 2018

Redfish API Reference Guide v1.0

Introduction and Overview of Redfish

COMPLETE AGENT-FREE MANAGEMENT OF POWEREDGE SERVERS

Scalable Platform Management Forum. Forum Status 10/30/2014

Side-by-side comparison of the features of Dell EMC idrac9 and idrac8

idrac 8/7 v Redfish API Reference Guide

Redfish: The next generation of server management automation

John Leung Intel Corporation - Data Center Group - Principal Engineer OCP Incubation Committee Representative to the HW Management Project

YANG Device Profile for Redfish Network Management. Joe White, David Black, John Leung Distributed Management Task Force

Dell EMC PowerEdge Installation, Management and Diagnostics

SwordfIshJS - A SwordfIsh JS Library Vinod Eswaraprasad, Sowmya B Wipro Technologies

Introduction and Overview of Redfish. John Leung DMTF - VP of Alliances Intel Principal Engineer

Looking for a Swiss knife for storage ecosystem management? A comparative study of SMI-S, Redfish and Swordfish

Tutorial. A New Standard for IP Based Drive Management. Mark Carlson SNIA Technical Council Co-Chair

idrac 8/7 v User s Guide

HTTP GET

Managing Cisco UCS C3260 Dense Storage Rack Server

idrac9 with Lifecycle Controller Version Redfish API Guide

idrac8/7 with Lifecycle Controller Version Redfish API Reference Guide

Integrated Dell Remote Access Controller 9 (idrac9) Version User's Guide

idrac9 with Lifecycle Controller Version Redfish API Guide

idrac9 with Lifecycle Controller Version Redfish API Guide

UCS-E160DP Double-wide E-Series Server, 6 core CPU, with PCIe

Lifecycle Controller Version Remote Services Quick Start Guide

Dell Server Management Pack Suite Version 6.1 for Microsoft System Center Operations Manager User's Guide

Dell EMC Server Management Pack Suite Version 7.0 for Microsoft System Center Operations Manager. User's Guide

Dell Lifecycle Controller Integration Version 2.2 For Microsoft System Center Configuration Manager User's Guide

OpenManage Integration for VMware vcenter Version 4.1. Compatibility Matrix

Introduction to Swordfish: Scalable Storage Management

Dell Lifecycle Controller Integration Version 3.0 For Microsoft System Center Configuration Manager User's Guide

OpenManage Integration for VMware vcenter Version 4.2. Compatibility Matrix

OpenManage Integration for VMware vcenter Version Compatibility Matrix

Dell EMC OpenManage Mobile. Version 3.0 User s Guide (Android)

Integrated Dell Remote Access Controller 7 (idrac7) Version User's Guide

Gone Fishing with Swordfish: Extending Data Center Control to the World of Storage

Management Console User s Guide (AST 2500 Chipset)

Dell EMC OpenManage Enterprise Version 3.0 Release Notes

Looking for a Swiss knife for storage ecosystem management? A comparative study of SMI-S, Redfish and Swordfish

Dell EMC OpenManage Mobile. Version User s Guide (Android)

Dell Chassis Management Controller for Dell EMC PowerEdge FX2 Version 2.0. Release Notes

Build Cloud like Rackspace with OpenStack Ansible

Red Hat Cloud Platforms with Dell EMC. Quentin Geldenhuys Emerging Technology Lead

Simplifying Blade Server Update with Dell Repository Manager

A Modern Interface for Managing Compute, Storage and Network 12 th International Conference on Network and Service Management - October 2016

OpenManage Integration for VMware vcenter for Desktop Client User's Guide Version 3.1

Intel Server Management

Swordfish Deep-Dive: Scalable Storage Management

OpenManage Integration for VMware vcenter Version 4.2.0

Lifecycle Controller Version User's Guide

Introduction to Cisco UCS Central

Introducing Cisco UCS Central 1.4

Dell EMC OpenManage Mobile. Version User s Guide (ios)

Baremetal with Apache CloudStack

Overview of Swordfish: Scalable Storage Management

User Guide - English. FUJITSU Software ServerView Suite. Web Interface. Edition December

Emulation of Automated Control of Large Data Centers At Scale Using Containers

Dip your Toe in the Water: A Swordfish Introduction

OpenManage Management Pack for vrealize Operations Manager version 1.1. User s Guide

OpenManage Management Pack for vrealize Operations Manager version 1.0 User s Guide

Chassis Management Controller Version 2.2 for Dell PowerEdge VRTX User's Guide

OpenManage Integration for VMware vcenter Version 4.3. Web Client User's Guide

CREATING A CLOUD STRONGHOLD: Strategies and Methods to Manage and Secure Your Cloud

Dell EMC Server Management Pack Suite Version 7.0 for Microsoft System Center Operations Manager

OpenManage Integration for VMware vcenter Quick Install Guide for vsphere Client, Version 2.3.1

Dell Lifecycle Controller Integration Version for Microsoft System Center 2012 Virtual Machine Manager User s Guide

Dell Systems Management Overview Guide. Version 14.0

OpenManage Integration for VMware vcenter Version 4.0 Release Notes

M a n a g i n g C l o u d H a r d w a r e. Alfie Lew, Inspur John Leung, Intel Sai Dasari, Facebook

Dell EMC OpenManage Enterprise Tech Release Release Notes

Understanding UCS Server Configuration Utility User Interface

OpenManage Integration for VMware vcenter Version 4.2. Web Client User's Guide

Dell Server Management Pack Suite Version For Microsoft System Center Operations Manager And System Center Essentials User s Guide

High-Performance Computing Clusters with IPMI

Active System Manager Release 8.3 User s Guide

Intel Active Management Technology Overview

Dell EMC OpenManage Enterprise-Modular Edition Version for PowerEdge MX7000 Chassis. User's Guide

Dell Lifecycle Controller GUI. v User's Guide

The Road to Digital Transformation: Increase Agility Building and Managing Cloud Infrastructure. Albert Law Solution Architect Manager

Active System Manager Version 8.0 User s Guide

GIGABYTE Remote Management Console User s Guide. Version: 1.0

Online Help StruxureWare Data Center Expert

Out-of-Band Management

OpenManage Integration for VMware vcenter Quick Install Guide for vsphere Client, Version 2.3

User Guide - English. FUJITSU Software ServerView Suite. irmc S4. Web Interface

Dell EMC OpenManage Plug-in Version 3.0 For Nagios XI. User s Guide

Active System Manager Release User s Guide

OpenManage Integration for VMware vcenter Quick Installation Guide for vsphere Web Client Version 3.2

Dell Systems Management Overview Guide. Version 12.0

AST2500 ibmc Configuration Guide

Advanced Monitoring of Dell Devices in Nagios Core Using Dell OpenManage Plug-in

OpenManage Integration for VMware vcenter for Desktop Client User's Guide Version 2.1

Provisioning Intel Rack Scale Design Bare Metal Resources in the OpenStack Environment

Dell Lifecycle Controller Remote Services (LC RS) Version For 13th Generation Dell PowerEdge Servers Quick Start Guide

OpenManage Integration for VMware vcenter Version 4.3

Automating, Securing, and Managing Cox Automotive's (AutoTrader) Big Data Infrastructure

BRINGING HOST LIFE CYCLE AND CONTENT MANAGEMENT INTO RED HAT ENTERPRISE VIRTUALIZATION. Yaniv Kaul Director, SW engineering June 2016

Configuring Communication Services

Dell Chassis Management Controller Version 1.3 for PowerEdge FX2/FX2s User's Guide

Transcription:

Automated Out-of-Band management with Ansible and Redfish Jose Delarosa Senior Linux Engineer at Dell EMC Jake Jackson Product Field Engineer at Ansible by Red Hat May 2 nd, 2017

Who are we Jose De la Rosa (@jdelaros1) Linux Engineer at Dell EMC. Systems engineer, emerging technologies evangelist. Jake Jackson (@thedoubl3j) Product Field Engineer at Ansible by Red Hat. Works with the Getting Started team helping customers with standing up and getting started with Ansible.

Before we start 1. Thank you for coming. 2. Please ask questions at any time. 3. If time runs out, we will be happy to talk to you after the session.

Content 1. Out-of-band management with PowerEdge idrac 2. Scalable out-of-band management with Redfish 3. Automated out-of-band management with Ansible

idrac Overview

Integrated Dell Remote Access Controller (idrac) Embedded chip on a PowerEdge server used to run tasks that are independent of the host OS and the rest of the server. Detects hardware failure Manage power: turn off, on, hard reset System event and lifecycle logs Has its own ethernet port, usually connected to separate management network. Referred to as out-of-band management, as opposed to inband management which is provided by the OS.

Web UI Login

Main page

Storage controller status

Power & thermal readings

System event logs

Simple Out-of-band management Management Network 1-5 servers

Redfish Overview

What is Redfish? RESTful API specification defined by the DMTF for hardware management. Aims to replace IPMI and vendor-specific interfaces like WSMAN. Schema-based but human-readable. Clients send URI requests over https to idrac, so clients can be any OS or application on a server, workstation or mobile device.

What can Redfish do? Monitor server health status Alert on server health status changes View server hardware inventory and firmware versions Reset, reboot, and power control servers Access system logs

Example: Get system health $ curl s https://<idrac_ip>/redfish/v1/systems/system.embedded.1 -k -u root:password python -m json.tool jq.status { } "Health": "OK", "HealthRollUp": "OK", "State": "Enabled"

Example: Get storage controller health $ curl s https://<idrac_ip>/redfish/v1/systems/system.embedded.1/storage/controllers/raid. Slot.8-1 -k -u root:password python -m json.tool jq.name "PERC H730 Adapter" $ curl s https://<idrac_ip>/redfish/v1/systems/system.embedded.1/storage/controllers/raid. Slot.8-1 -k -u root:password python -m json.tool jq.status { } "Health": "OK", "HealthRollUp": "OK"

Example: Get power consumption during last hour $ curl s https://<idrac_ip>/redfish/v1/chassis/system.embedded.1/power/powercontrol -k -u root:password python -m json.tool jq.powermetrics { } "AverageConsumedWatts": 152, "IntervalInMin": 60, "MaxConsumedWatts": 168, "MinConsumedWatts": 148

Example: Get system event logs

What else can Redfish do? Retrieve Telemetry - Basic server identification and asset information - Health state - Temperature sensors and fans - Power consumption and thresholds Discovery - Service endpoint (network-based discovery) - System topology (rack, chassis, server, node) Basic I/O Infrastructure Data - Host NIC MAC addresses for LOM devices - Simple hard drive status / fault reporting Security - Session-based leveraging HTTPS Common Management Actions - Reboot / power cycle - Change boot order - Configure BMC network settings - Manage user accounts Access and Notification - Serial console access via SSH - Alert / event notification - Event log access More Coming Soon! https://www.dmtf.org/standards/redfish

Redfish API tree structure

Redfish Roadmap Version 1 focused on servers. Expand over time to cover rest of IT infrastructure. Will add devices over time to cover new technologies (i.e. NVDIMMs, Multifunction Adapters) SNIA is developing Swordfish, which builds upon Redfish s local storage management to address advanced storage devices. Open source efforts: Client libraries (Python, Java, PowerShell) Command line utility redfishtool (similar to ipmitool)

Scalable Out-of-band management https:/ / <idrac-ip>/ redfish/ v1/ Managers/ idrac.embedded.1/ Logs/ Sel Management Network More than 5 servers Server data

Ansible Overview

What is Ansible? It s a simple automation language that can perfectly describe an IT application infrastructure in Ansible Playbooks. It s an automation engine that runs Ansible Playbooks. Ansible Tower is an enterprise framework for controlling, securing and managing your Ansible automation with a UI and restful API.

How Ansible works PUBLIC / PRIVATE CLOUD CMDB ANSIBLE S AUTOMATION ENGINE USERS INVENTORY API HOSTS ANSIBLE PLAYBOOK MODULES PLUGINS NETWORKING

More about Ansible Agentless minimum footprint Make repetitive tasks easy Defines a desired state, so OK to run playbook more than once Easier to use than writing shell scripts

Ansible use cases Infrastructure Automation Networking Containers Code Deployment Server / Bare Metal Want more information? Visit www.ansible.com and docs.ansible.com

Ansible + Redfish + idrac together!

Scalable & Automated Out-of-band management https:/ / <idrac-ip>/ redfish/ v1/ Managers/ idrac.embedded.1/ Logs/ Sel Management Network More than 5 servers Database Server data

Key Lifecycle Management tasks Server Power On/Off; Reboot; Hard Reset Install BIOS, Configure BIOS, Reset to Default Configure idrac (CRUD operations): User & Password Management Certificate Management (import, export, delete) Network Configuration NTP and Time Zone settings Storage (RAID, Virtual Disk, Physical Disks, PERC) System Inventory H/W, Firmware, Sensor OS Deployment remote file share, vmedia Import / Export SCP remote file share, vmedia Backup and Restore Server Profiles Upgrade using DSU (Dell Server Update) or DUEC (Dell Update Engine for Consoles) Get list of available and applicable updates Firmware Upgrade BIOS Upgrade OS Drivers Upgrade Job Management Check JOB status Create JOB Delete JOB Create JOB Queue Delete JOB Queue Get Logs Export LC logs Export System Event Logs

Ansible module for idrac Manage your entire Dell EMC IT infrastructure (servers, routers, switches, storage) from your Ansible Controller. Automated monitoring, provisioning, firmware updates at scale. Open source, so you can write your own extensions as needed and contribute back to the community. Working with Red Hat to include as core Ansible module.

Implementation (playbook) idrac.yml getdata.yml

Server inventory Use case: collect inventory data, maintain in spreadsheet or database Server idrac IP Model IP address BIOS CPU Type RAM Service Tag Status webserver-1 192.168.2.10 PowerEdge R630 10.0.1.30 2.3.4 2 webserver-2 192.168.2.11 PowerEdge R630 10.0.1.31 2.3.4 2 webserver-3 192.168.2.12 PowerEdge R630 10.0.1.33 2.3.2 2 appserver-1 192.168.2.13 PowerEdge R830 10.0.1.34 2.3.2 4 dbserver-1 192.168.3.10 PowerEdge R730 10.0.2.30 2.1.2 2 dbserver-2 192.168.3.11 PowerEdge R730 10.0.2.31 2.3.4 2 dbserver-3 192.168.3.12 PowerEdge R730 10.0.2.32 2.3.4 2 dbserver-4 192.168.3.13 PowerEdge R730 10.0.2.33 2.3.4 2 Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.60GHz Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.33GHz Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.33GHz Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.33GHz Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.33GHz 128 5WT4Q47 OK 128 5XR7Q32 OK 128 5XR7QYY OK 512 5XR7QYY OK 256 5XR7Q67 OK 256 5WT4Q37 OK 256 5WR4Q12 OK 256 5TT1Q44 OK

Source code repository https://github.com/dell/idrac-ansible-module Will continue adding features in coming weeks and months. Pull requests and contributions are welcome and encouraged!

Resources idrac with Lifecycle Controller: http://dell.to/2qdbd0y Redfish API specification: https://www.dmtf.org/standards/redfish Dell EMC PowerEdge Redfish API Overview: http://dell.to/2odsh1p idrac Redfish API Reference Guide: http://dell.to/2oyjmty Getting started with Ansible: http://docs.ansible.com/ansible/intro_getting_started.html

Q & A

Backup

idrac operation APIs Dell Redfish API URLs /redfish/v1/managers /redfish/v1/managers/idrac.embedded.1 /redfish/v1/managers/idrac.embedded.1/actions/manager.reset /redfish/v1/managers/idrac.embedded.1/networkprotocol /redfish/v1/ Managers/iDRAC.Embedded.1/SerialInterfaces /redfish/v1/ Managers/iDRAC.Embedded.1/SerialInterfaces/<Serial-key> /redfish/v1/managers/idrac.embedded.1/logservices /redfish/v1/managers/idrac.embedded.1/logservices/sel /redfish/v1/managers/idrac.embedded.1/logservices/lclog /redfish/v1/managers/idrac.embedded.1/logservices/sel/actions/logservice. ClearLog /redfish/v1/managers/idrac.embedded.1/virtualmedia /redfish/v1/managers/idrac.embedded.1/virtualmedia/<media-type> /redfish/v1/managers/idrac.embedded.1/ethernetinterfaces /redfish/v1/managers/idrac.embedded.1/ethernetinterfaces/<fqdd> /redfish/v1/managers/idrac.embedded.1/accountservice /redfish/v1/managers/idrac.embedded.1/accounts /redfish/v1/managers/idrac.embedded.1/accounts/<account-id> Comments Used to perform idrac reset Reports information about idrac's network services. Includes Web server, SNMP, vmedia, Telnet, SSH, IPMI & KVM. idrac BMC serial interface Access to server System Event Log Access to Lifecycle Controller Log Used to clear LC Log Status of idrac virtual media idrac network interface idrac user accounts

Chassis inventory APIs Dell Redfish API URLs /redfish/v1/chassis /redfish/v1/chassis/system.embedded.1 /redfish/v1/chassis/system.embedded.1/thermal /redfish/v1/chassis/system.embedded.1/sensors/fans /redfish/v1/chassis/system.embedded.1/sensors/fans/<fan-fqdd> Comments Top-level URI for server chassis Reports fan status for server and FX2 chassis /redfish/v1/chassis/system.embedded.1/sensors/temperatures /redfish/v1/chassis/system.embedded.1/sensors/temperatures/<sensor- FQDD> /redfish/v1/chassis/system.embedded.1/power /redfish/v1/chassis/system.embedded.1/power/powercontrol /redfish/v1/chassis/system.embedded.1/sensors/voltages /redfish/v1/chassis/system.embedded.1/sensors/voltages/<voltage-fqdd> /redfish/v1/chassis/system.embedded.1/power/powersupplies Reports thermal data for server and FX2 chassis <Sensor-FQDD> addresses each temperature probe Power consumption and supply status <Voltage-FQDD> addresses each voltage output /redfish/v1/chassis/system.embedded.1/power/powersupplies/<psu-fqdd> <PSU-FQDD> addresses each power supply /redfish/v1/chassis/system.embedded.1/power/redundancy/<psredundancy -FQDD> <PSRedundancy-FQDD> addresses power supply redundancy

System status APIs Dell Redfish API URLs /redfish/v1 /redfish/v1/systems /redfish/v1/systems/<servicetag+nodeid> /redfish/v1/systems/system.embedded.1/actions/computersystem.reset /redfish/v1/systems/system.embedded.1/processors /redfish/v1/systems/system.embedded.1/processors/<processor-fqdd> Comments Top-level API access Server inventory and status information access Server reset operation Details on CPUs /redfish/v1/systems/system.embedded.1/ethernetinterfaces /redfish/v1/systems/system.embedded.1/ethernetinterfaces/<ethernetinterface-fqdd> /redfish/v1/systems/system.embedded.1/ethernetinterfaces/<ethernetinterface- FQDD>/Vlans /redfish/v1/systems/system.embedded.1/ethernetinterfaces/<ethernetinterface- FQDD>/Vlans/<Vlan-FQDD> Reports NIC IP address, DHCP and DNS information. Example <EthernetInterface-FQDD> = NIC.Embedded.1-1-1 /redfish/v1/systems/system.embedded.1/storage/controllers /redfish/v1/systems/system.embedded.1/storage/controllers/<controller-fqdd> Typical <Controller-FQDD>=RAID.Slot.N-1; describes details of controller, backplane, enclosure, attached drives

Registries, Sessions, Tasks and Event APIs Dell Redfish API URLs /redfish/v1/registries/messages/en Comments PowerEdge message registry /redfish/v1/odata Enables OData clients to navigate idrac Redfish resources /redfish/v1/$metadata /redfish/v1/$metadata#<collection or a single resource> /redfish/v1/jsonschemas /redfish/v1/jsonschemas/<file> /redfish/v1/sessionservice /redfish/v1/sessions /redfish/v1/sessions/<sessionid> /redfish/v1/taskservice /redfish/v1/eventservice /redfish/v1/eventservice/actions/eventservice.submittestevent /redfish/v1/eventsubscriptions /redfish/v1/eventsubscriptions/<subscription ID> Provides a metadata document describing the resources and collections that are available at the idrac Redfish service root URI Schema descriptions for all supplied data Redfish session management Redfish internal task management Redfish event management

THANK YOU plus.google.com/+redhat facebook.com/redhatinc linkedin.com/company/red-hat twitter.com/redhatnews youtube.com/user/redhatvideos