RHV 4 API and Ansible demo - Red Hatpeople.redhat.com/mskinner/rhug/q3.2017/rhug-rhv-demo.pdf ·...

Preview:

Citation preview

RHV 4 API and Ansible demo

Sam YangsaoTechnical Account ManagerRed Hat, Inc.

2

About ∙ Sam Yangsao

∙ Technical Account Manager <TAM>

∙ http://red.ht/2w5xmWk

∙ Twin Cities

∙ 3 Years with Red Hat

3

RHV 4 API improvements

∙ API now has a formal specification <upstream> http://ovirt.github.io/ovirt-engine-api-model/4.1 <downstream>

https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html/rest_api_guide

<product> https://myrhv.example.com/ovirt-engine/apidoc

∙ API has same versioning mechanism

4

RHV 4 API improvements <cont>

∙ Python and Java SDKs improved https://github.com/oVirt/ovirt-engine-sdk

https://github.com/oVirt/ovirt-engine-sdk-java

∙ Ruby SDK *new* https://github.com/oVirt/ovirt-engine-sdk-ruby

5

RHV (oVirt) and Ansible

∙ ansible core included with RHV 4.1

∙ 40 oVirt modules http://docs.ansible.com/ansible/latest/list_of_cloud_modules.html#ovirt

∙ Ansible oVirt system roles https://github.com/oVirt/ovirt-ansible

DEMO 1

7

DEMO 1 - Infrastructure build <live>

∙ Build your infrastructure in minutes via ansible automation

∙ Github link to playbook https://github.com/oVirt/ovirt-ansible/blob/master/roles/ovirt-infra/README.md

∙ Link to demo 1 screenshots http://people.redhat.com/syangsao/rhug-rhv-demo.pdf

DEMO 2

9

DEMO 2 - VM build <live>

∙ Build multiple VMs in minutes via ansible automation

∙ Github link to playbook https://github.com/oVirt/ovirt-ansible/blob/master/roles/ovirt-vm-infra/README.md

∙ Link to demo 2 screenshots http://people.redhat.com/syangsao/rhug-rhv-demo.pdf

10

Resources

∙ Red Hat Virtualization https://www.redhat.com/en/technologies/virtualization/enterprise-virtualization

∙ Captain KVM http://captainkvm.com

∙ oVirt ansible roles https://github.com/ovirt/ovirt-ansible

∙ Link to this presentation http://people.redhat.com/syangsao/rhug-rhv-demo.pdf

∙ TAM blog https://www.redhat.com/en/about/blog/tag/technical-account-managers

Questions: gscott@redhat.com, syangsao@redhat.com

Questions?

12

DEMO Caveats

● DEMO 1○ In the playbook, rename demoX to demoY before running the playbook

○ In the RHV UI, remove all references to demoX before creating a new demoY

○ In the RHV UI, remove all user references to demoX before proceeding

● DEMO 2○ Make sure the oVirt guest agent is installed on the template, the playbook may error out on “Wait for

VMs IP”

○ When sealing your VM, do not “rm -rf /var/log/*” since the ovirt-guest-agent directory is needed to start the Guest agent

○ ovirt-vm-infra role requires python-jmespath to be installed on the ansible management node

■ https://access.redhat.com/downloads/content/python-jmespath/0.9.0-5.el7ost/noarch/fd431d51/package

DEMO1 screenshots

14

DEMO 1 - logs into RHV, adding new data center

15

DEMO 1 - creating a new cluster in the data center

16

DEMO 1 - grabbing host information for data center

17

DEMO 1 - creating the host, asking for us to wait

18

DEMO 1 - waits for host to be created and added

19

DEMO 1 - add master storage <fc, nfs, iscsi, posix>

20

DEMO 1 - adding nfs master storage domain

21

DEMO 1 - adding export/iso storage domains

22

DEMO 1 - fetches storage information

23

DEMO 1 - adding users and groups

24

DEMO 1 - logs out of RHV

25

DEMO 1 - job completes

DEMO2 screenshots

27

DEMO 2 - logs into RHV, asks to create VMs

28

DEMO 2 - waiting for VMs to be created

29

DEMO 2 - checks to see if disks need to be created

30

DEMO 2 - creating affinity groups for VMs

31

DEMO 2 - verifies if VMs are up on the network

32

DEMO 2 - job completes

Recommended