supercharge your devops automation using oracle enterprise

36
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Supercharge Your DevOps Automation Using Oracle Enterprise Manager’s CLI and REST APIs Vic Parker Principal Enterprise Manager & Cloud Specialist Sales Consulting, Enterprise Manager October 27, 2015

Upload: ledieu

Post on 14-Feb-2017

239 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Supercharge Your DevOps Automation Using Oracle Enterprise Manager’s CLI and REST APIs

Vic Parker Principal Enterprise Manager & Cloud Specialist Sales Consulting, Enterprise Manager October 27, 2015

Page 2: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

The answer to What is DevOps is based

on the response to Why DevOps?

The answer to Why DevOps is based on

desired IT business results.

2

What is DevOps? - Why DevOps?

Page 3: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

The tools or toolchain is selected to

support the desired IT business goals.

However, tools alone do not equate to

DevOps adoption.

3

Supporting DevOps Adoption

Page 4: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Customer Trends for Automation & Cloud Adoption

Adopting DevOps Principals (Continuous Models)

Increased Interest in Open Source Automation (Chef, Puppet)

Becoming Internal Service Providers

Increased Focus on Time to Value (PaaS)

Forward Looking with Hybrid in Mind (Internal Brokers)

Push Button Application Deployment (Orchestration, Best of Breed)

Page 5: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Best Practices for Automation & Cloud Adoption

Automation and Cloud Adoption, an Extension of ITSM

Analyze Suitable Applications and Start with a Narrow Focus

Demonstrate Business Value

Increased Focus Standardization and Configuration Management

Design Automation with Administrators Integral to the Process

Avoid Shifting the Burden of Management to Workflow Designers

Page 6: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Open Source Solutions Require Providers

Page 7: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Interface Interaction for DB Lifecycle Automation

7

Provisioning Profile

Deployment Procedure

Host

Data Center

EMCLI

What are these environments (dev, test, prod)? What is the capacity of these environments? How do I optimize my resources? How do I protect service levels?

Page 8: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Centralized Software Library

• Single repository for storing and retrieving images, scripts and assemblies

• Can be co-located with Self-Service Application or with cloud targets

• Choice of Storage types and Protocols (NFS, HTTP(S)), ideally suited for remote data centers

• Integrated with Packaging tools like Assembly Builder

• Supports Access rights for each image/assembly

Page 9: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

• Comprehensive support for consolidation

• Dedicated databases, schema, pluggable

• Automated, intelligent placement

• workload and configuration

• Complete self-service catalog

• Governance, quotas, policies, showback

• Flexible cloning architecture

• Full data cloning by leveraging backups

• Instant database provisioning using “SnapClone”

• Integrated database lifecycle management

• Monitoring, backup, patching

• API-driven (RESTful and command line)

Out-of-box Portal with API support EM 12c Cloud Pack Self-Service Provisioning

Page 10: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Intelligent Service Placement The Best Fit Rule

Placement Constraints

Current Population

Current Load

CPU, Memory, and

Storage usage

No. of Service Instances Limits set on zones

and pools

Automatically find suitable target for placement:

• nodes for single instance and RAC databases • databases for schema • container database for PDBs*

* PDBaaS allows for custom placement - selection of the container database

Page 11: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Enterprise Private Cloud Management Strategy • Define & manage datacenter resources as Services

• Full set of capabilities covering breadth & depth of an enterprise data center

• Infrastructure, Database, Platform, Applications…

• Unified & Integrated solution to manage full Cloud Lifecycle, especially on Engineered Systems

• Focus on business applications/transactions & data • Not just infrastructure

• Analytics for continuously improving and optimizing cloud services

• Seamless portability across private and public clouds

• Co-existence and integration with other cloud & Automation Solutions

Page 12: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

EM Role Driven Usage – Base & DB Lifecycle Mgmt. Pack

• Enterprise Manager Administration

– Target

– Agent

– Security

– Incidents

– Jobs (i.e. Backup)

– etc.

12

Administrative Automation

• Provision Software

• Create Databases

• Patch DBs

• Upgrade DBs

• Delete DBs

Page 13: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

EM Role Driven Usage – Cloud Management Pack

• Zone Mgmt.

• Pool Mgmt.

– Fleet Maintenance

• Service Catalog Mgmt.

• Snap Clone

• Metering / Show back

13

Provider (i.e. Administrator) Requestor (i.e. DevOps) • Request Database

Services

• Monitor and Manage Deployed DBs

• Fleet Maintenance

• Backup / Snapshot

• Delete Service DBs

Page 14: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 14

Complementary Cloud APIs

• Zone Mgmt

• Pool Mgmt

• Quota Mgmt

• Request Setting ( Service max Duration, etc )

• Database Size Mgmt

• Profile Mgmt

• Service Template Mgmt

Cloud Setup

Cloud Delivery REST

EM CLI

• Create DB Service

• List Deployed DBs, Service Templates

• Patch DBs

• Delete Instance DBs

Provider

Requestor

Page 15: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Interface Interaction for Cloud Management

15

Service Template

Pool

Zone

Request Settings

Quotas

Snap Clone

Pluggable DB

1 Call Deletion

Provisioning Profile

Deployment Procedure

Host

Administration (i.e. Setup) Request & Manage Services

EMCLI REST API

Page 16: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Why not use EM CLI & RESTful Web Service for DevOps ? • EMCLI for Provisioning Procedures and Lifecycle

Management

16

• REST API Abstracts Infrastructure REST API requires very few inputs

• URI

/em/cloud/dbaas/zone/82CF1C28FA20A183C99D138FF8065F19

• JSON Body

{ "based_on": "/em/cloud/dbaas/dbplatformtemplate/CC3BBB665A6BC6FFE040F00AEF252456", "name": "<Request name>", "description": "<Request Description>", "start_date": "2013-08-02T14:20:00ZAsia/Calcutta", "end_date": "2013-08-02T17:20:00ZAsia/Calcutta", "standby_required" : "true", "params": { "username": "Master Account username for the DB", "password": "Password for the Master Account on the DB" , "database_sid" : "Database SID" , "service_name" : "Name of the additional service to be created", "db_size_name": "Medium", "standbydbs": [ { "standbydb_name":"STBY2", "standbydb_sid":"stio62" } ] "database_profile_version": "RMAN_06_27_2014_14_18_PM" } }

RED are Required Parameters

Page 17: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

• URI

/em/cloud/dbaas/zone/82CF1C28FA20A183C99D138FF8065F19

• JSON Body

{ "based_on": "/em/cloud/dbaas/dbplatformtemplate/CC3BBB665A6BC6FFE040F00AEF252456", "name": "<Request name>", "description": "<Request Description>", "start_date": "2013-08-02T14:20:00ZAsia/Calcutta", "end_date": "2013-08-02T17:20:00ZAsia/Calcutta", "standby_required" : "true", "params": { "username": "Master Account username for the DB", "password": "Password for the Master Account on the DB" , "database_sid" : "Database SID" , "service_name" : "Name of the additional service to be created", "db_size_name": "Medium", "standbydbs": [ { "standbydb_name":"STBY2", "standbydb_sid":"stio62" } ] "database_profile_version": "RMAN_06_27_2014_14_18_PM" } }

• URI

/em/cloud/dbaas/dbplatforminstance/byrequest/7

• JSON Body

{ "operation" : "BACKUP", "backup_schedule" : "2013-08-27T12:34:45ZAsia/Calcutta" }

17

Recurrent – Database Installation, Backup, etc. by DevOps

REST Example: Request DB from RMAN backup with Standby

REST Example: Schedule a backup

Page 18: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 18

Major Use Cases (Made easier with Cloud Mgmt.) Summary

Data Guard Active Data Guard, Traditional Data Guard, Protection Mode choices, etc.

Pluggable Databases Auto placement, User Defined Placement, etc.

Snap Clone Snapshots, Restore, Refresh, etc.

Fleet Maintenance Admin standards, 1 call update, etc.

Resource Governance Quotas, Request Settings, Service Levels, etc.

Metering and Show-back Capacity management, roll-up reporting, Option governance, etc.

Page 19: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Major Use Cases (Made easier with Cloud Mgmt.) Summary

19

1. Data Guard

2. Pluggable Databases (Auto or User request)

3. Snap Clone

4. Fleet Maintenance for Patching

5. Resource Governance

6. Metering & Show back

Page 20: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Customer Use Case Reviews

20

Page 21: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Use Case One Customer Requirements

• User Self Service via Service-Now Portal

• Automated Provisioning of Infrastructure via Chef

• Automated Provisioning of Oracle Platform via Enterprise Manager 12c

• Hand-off Resource Management

21

Chef, Service-Now, Enterprise Manager

Page 22: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

FROM BARE METAL TO DBAAS RESOURCES

Automated - ManagedVirtual or Physical

Server and Storage Resource Pool (IaaS)

DBaaS Service Management Tier

Chef AutomationApplication Blueprints

Service PortfolioProvisioning Models

EM 12cCloud Lifecycle Management

Memory Pool

Processor Processor CORE CORE CORE

24 GB Memory12 GB Memory

DB-0 Small Development

CORE CORECORECORE CORE CORE CORECORE

DB-1Small Production

CORE

Oracle 11gR2 Database Software

Industry Standard Storage Resources

DB0_Data

700 GB Normal

Redundancy

Storage

Allocated

DB1_Data

1.5 TBAllocated

DB1_FRA

1.5 TBAllocated

OEM Agent

OEM Cloud Control Deployment

Procedures

Pre-Defined Database Profiles

OEM Custom Deployment Procedures

OEM Cloud ControlWorkflow

Post Deployment Binding

CMDB Update

Service Management &

Monitoring Updates

Dat

abas

e

Serv

ice

Prov

ided

to

Appl

icat

ion

or

Con

sum

er

Dep

loy

DB

Inst

ance

via

OEM

Age

nt a

gain

st

pre-

depl

oyed

DB

Softw

are

Depl

oy an

d Co

nfigu

re D

B In

stan

ce as

Def

ined

by

Serv

ice

Defin

ition

and

Depl

oym

ent

Proc

ecud

ure

Serv

ice-

Now

Porta

l Req

uest

Ente

rpris

e

Man

ager

12c

DBa

aS

Elas

ticity

Cap

acity

Man

agem

ent

vmware AutomationTemplate Management

Virtual Service Configuration

Service-NowRequest Portal

Service ManagementSLA & PLA Management

DBaaSResource

Pool

Database InfrastructureZone/Pool

Oracle DBaaS Management

DBaaS Resource Management

(IaaS Independent)

Chef Managed IaaSEM Agent Installation

Automated Zone Creation/Association

Oracle 12c Database Software

Owner Business User

Service-Now IntegrationCMDB Update & Incident Management

DBA & Cloud Admin Teams

High-level Solution Design

Page 23: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Oracle Cloud Pack & Chef Integration

Page 24: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Chef Bootstraps Enterprise Manager Agent

24

Page 25: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Leveraging Enterprise Manager’s Robust Procedure Engine

25

Page 26: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Use Case Two Customer Requirements

• User Self-Service via vCAC (now vRAC)

• Automated Virtual Infrastructure Provisioning with vCAC

• Provisioning of Oracle Database Service via Enterprise Manager 12c

– Dedicated and Shared Services

• Integration via vCenter Orchestration

VMware Automation & Orchestration

26

Page 27: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Recommended Customer DBaaS Architecture Turnkey Integration and Implementation

VMware vRealize Self Service Portal

DBaaS Service Catalog

RBAC Governance

Resource Management Zone Control

Oracle EM Cloud Pack

Service Request Validated Resources Req. Confirmed

Executing Provision Actions

Verify Database Service Configuration &

Compliance

Database Service Instance is

ready to Use

Deployment Procedure

Resource Management Zone Control

User Governance

Dynamic Placement Algorithm

Usage Metering Chargeback

Oracle DBLM Pack

Database Service Repository

Configuration Compliance

Management

Patching Monitoring

Orchestration

Monitoring Management

Additional Service Config Service Registration

Page 28: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Oracle Cloud Pack & VMware Integration

Page 29: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Enterprise Manager & vROps Integration

Page 30: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 30

Page 31: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

• vCenter Plugin

• EM Management Pack

Page 32: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Customer Requirements

• Application Engineer Portal via Application Director

• Mix Infrastructure with ExaData Backend

• 3rd Party Orchestration

• YAML Processing

32

Page 33: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Blueprint Based Deployment

33

Page 34: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Enterprise Manager & Service-Now Connector

Page 35: Supercharge Your DevOps Automation Using Oracle Enterprise
Page 36: Supercharge Your DevOps Automation Using Oracle Enterprise

Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 36