supercharge your devops automation using oracle enterprise
TRANSCRIPT
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
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?
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
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)
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
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Open Source Solutions Require Providers
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?
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
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
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
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
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
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
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
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
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
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
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.
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
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Customer Use Case Reviews
20
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
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
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle Cloud Pack & Chef Integration
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Chef Bootstraps Enterprise Manager Agent
24
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Leveraging Enterprise Manager’s Robust Procedure Engine
25
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
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
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle Cloud Pack & VMware Integration
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Enterprise Manager & vROps Integration
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 30
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
• vCenter Plugin
• EM Management Pack
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
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Blueprint Based Deployment
33
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Enterprise Manager & Service-Now Connector
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 36