20
OpenStack and Xen Stefano Stabellini August 2015

OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

Embed Size (px)

Citation preview

Page 1: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

OpenStack and Xen

Stefano Stabellini

August 2015

Page 2: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.2

Make Xen the best hypervisor for OpenStack

Page 3: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.3

OpenStack

Page 4: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.4

OpenStack

Page 5: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.5

OpenStack

Page 6: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.6

OpenStack

Page 7: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.7

OpenStack

Page 8: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.8

OpenStack

Page 9: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.9

OpenStack

Page 10: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.10

OpenStack

Page 11: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.11

Goals

Xen should be a great platform for OpenStack development and hacking

• devstack should deploy Xen and OpenStack

• Xen should be a great platform for OpenStack production deployments

• Get Xen via Libvirt in Group A within 1 year

Page 12: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.12

Status and Progress

Jan 2015: Xen via Libvirt still in Group C

• No automated testing at all

• Bugs in Nova and Libvirt prevented OpenStack

from working out of the box with Xen via Libvirt

• Tempest could not be run on OpenStack with Xen via Libvirt

Page 13: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.13

Status and progress

Jun 2015: Xen via Libvirt is in Group B

• everything works out of the box!

Using the latest OpenStack and libvirt trees

• Tempest runs and *all* tests pass!

• The Xen Project CI-loop is up and running

• The Xen Project CI-loop has voting rights

Page 14: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.14

Xen Project OpenStack CI-loop

http://jenkins.openstack.xenproject.org

http://wiki.xenproject.org/wiki/

OpenStack_CI_Loop_for_Xen-Libvirt

Page 15: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.15

Xen Project OpenStack CI-loopWhat it means to be “voting”

http://review.openstack.org

Page 16: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.16

From 0 to Xen and OpenStack

1. Install Ubuntu 14.04 LTS

2. Install Xen

apt-get install xen-hypervisor-4.4-amd64

3. git clone devstack && configure it to use Xen

LIBVIRT_TYPE=xen

4. ./stack.sh

Page 17: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.17

Tuning OpenStack and Xen

• Dom0 Memory: 1-4G

dom0_mem=1024M

• Dom0 vcpus: 4

dom0_max_vcpus=4 dom0_vcpus_pin

• use LVM for local storage

VOLUME_GROUP=volume_group_name

• PV vs HVM guests

nova image-meta set vm_mode=HVM

nova image-meta delete vm_mode

Page 18: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.18

More information

www.xenproject.org

wiki.xenproject.org

wiki.xenproject.org/wiki/Tuning_Xen_for_Performance

wiki.xenproject.org/wiki/OpenStack

http://lists.xenproject.org/mailman/listinfo/xen-devel

http://lists.xenproject.org/mailman/listinfo/wg-openstack

Page 19: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.19

Questions?

Page 20: OpenStack and Xen - events.static.linuxfound.org Project OpenStack CI-loop  ... 4. ./stack.sh. 17 © 2014 Citrix. Confidential. Tuning OpenStack and Xen •Dom0 Memory: 1-4G

© 2014 Citrix. Confidential.20

WORK BETTER. LIVE BETTER.