performance benchmarking of clouds:Evaluating openstack

Advertisements

SPEC Cloud™ IaaS 2016

The SPEC Cloud IaaS 2016 benchmark is SPEC’s first benchmark suite to measure cloud performance. The benchmark suite’s use is targeted at cloud providers, cloud consumers, hardware vendors, virtualization software vendors, application software vendors, and academic researchers.

The SPEC Cloud IaaS 2016 Benchmark addresses the performance of infrastructure-as-a-service (IaaS) cloud platforms. IaaS cloud platforms can either be public or private.

The SPEC Cloud IaaS 2016 benchmark is available for purchase via the SPEC order form.

Austin Openstack summit talk

https://www.openstack.org/videos/video/dell-performance-measuring-with-spec-cloud

Other links

https://www.brighttalk.com/webcast/10773/204933/innovating-cloud-benchmarking-with-the-new-spec-cloud-benchmark

http://www.reuters.com/article/idUSnMKWyNDfRa+1da+MKW20160503

Change password of VM image using guestfish

[root@psuriset ~]# guestfish –rw -a /var/lib/libvirt/images/trusty-server-cloudimg-amd64-disk1.img

Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.

Type: ‘help’ for help on commands
‘man’ to read the manual
‘quit’ to quit the shell

><fs>
><fs> ls
ls should have 1 parameter
type ‘help ls’ for help on ls
><fs> run
100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00
><fs> list-filesystems
/dev/sda1: ext4
><fs> mount /dev/sda1 /
><fs> vi /etc/sh
/etc/shadow   /etc/shadow-  /etc/shells
><fs> vi /etc/sh
/etc/shadow   /etc/shadow-  /etc/shells
><fs> vi /etc/shadow
><fs> vi /etc/sudoers

—- here edit passwd and quit using “exit”—

psuriset ALL=(ALL) NOPASSWD: ALL

><fs> quit
[root@psuriset ~]#

[root@psuriset ~]# virsh
Welcome to virsh, the virtualization interactive terminal.

Type:  ‘help’ for help with commands
‘quit’ to quit
virsh # start cbtool
Domain cbtool started

virsh # list
Id    Name                           State
—————————————————-
15    cbtool                         running

Installing RedHat Enterprise Linux OpenStack v6.0 on RHEL7

yum -y install net-tools nano

subscription-manager repos –disable=*
subscription-manager repos –enable=rhel-7-server-rpms
subscription-manager repos –enable=rhel-7-server-rh-common-rpms
subscription-manager repos –enable=rhel-7-server-openstack-6.0-installer-rpms
subscription-manager repos –enable=rhel-server-rhscl-7-rpms
subscription-manager repos –enable=rhel-7-server-openstack-6.0-rpms

yum update -y
systemctl disable NetworkManager
reboot

yum -y install openstack-packstack
packstack --allinone

Edit VM image and make passwordless

Either with guestfish or virt-edit this can be done

virt-edit -d centos /etc/passwd -e ‘s/^root:.*?:/root::/’

virsh # start centos
Domain centos started

virsh # console centos
Connected to domain centos
Escape character is ^]

CentOS Linux 7 (Core)
Kernel 3.10.0-229.el7.x86_64 on an x86_64

localhost login: root
Last failed login: Thu Sep 10 09:41:52 UTC 2015 on ttyS0
[root@localhost ~]#

Deploy glance image without passwd

SOme cases we have glance images which we dont know password. To deploys such VM’s:

[root@host neutron(keystone_admin)]# nova keypair-add –pub_key ~/.ssh/id_rsa.pub mykey

[root@host neutron(keystone_admin)]# nova boot –image afaec72c-b07f-426e-9aeb-8d457fad0089 –flavor 3 –nic net-id=623f3faa-66e2-4023-9dee-777eb81c1cc3 vm1-ycsb –key_name mykey
+————————————–+—————————————————–+
| Property                             | Value                                               |
+————————————–+—————————————————–+
| OS-DCF:diskConfig                    | MANUAL                                              |
| OS-EXT-AZ:availability_zone          |                                                     |
| OS-EXT-SRV-ATTR:host                 | –                                                   |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | –                                                   |
| OS-EXT-SRV-ATTR:instance_name        | instance-0000000b                                   |
| OS-EXT-STS:power_state               | 0                                                   |
| OS-EXT-STS:task_state                | scheduling                                          |
| OS-EXT-STS:vm_state                  | building                                            |
| OS-SRV-USG:launched_at               | –                                                   |
| OS-SRV-USG:terminated_at             | –                                                   |
| accessIPv4                           |                                                     |
| accessIPv6                           |                                                     |
| adminPass                            | LkeUcw8VAg6d                                        |
| config_drive                         |                                                     |
| created                              | 2015-09-08T07:39:18Z                                |
| flavor                               | m1.medium (3)                                       |
| hostId                               |                                                     |
| id                                   | 82a681fd-3970-4e9d-b62c-5eb56e6f2da1                |
| image                                | common_image (afaec72c-b07f-426e-9aeb-8d457fad0089) |
| key_name                             | mykey                                               |
| metadata                             | {}                                                  |
| name                                 | vm1-ycsb                                     |
| os-extended-volumes:volumes_attached | []                                                  |
| progress                             | 0                                                   |
| security_groups                      | default                                             |
| status                               | BUILD                                               |
| tenant_id                            | c2da90a5b1e64588a016afb5ce60b4b1                    |
| updated                              | 2015-09-08T07:39:18Z                                |
| user_id                              | 24d52e0326fc4701be85950a6813ef57                    |
+————————————–+—————————————————–+
[root@host neutron(keystone_admin)]# nova list

root@perf60 neutron(keystone_admin)]# nova list
+————————————–+—————–+——–+————+————-+——————-+
| ID                                   | Name            | Status | Task State | Power State | Networks          |
+————————————–+—————–+——–+————+————-+——————-+
| bff9e17e-4c58-4944-ac0f-55ff0747a78e | vm1_yscb        | ACTIVE | –          | Running     | private=10.10.0.3 |
+————

You can access VM without password

AMQP server on controller is unreachable?

If AMQP server on controller  is unreachable,   move amqp configuration in /etc/nova/nova.conf to default section

[DEFAULT]
notification_driver=ceilometer.compute.nova_notifier
notification_driver=nova.openstack.common.notifier.rpc_notifier
rabbit_host=10.16.28.190
rabbit_port=5672
rabbit_hosts=10.16.28.190:5672
rabbit_use_ssl=False
rabbit_userid=guest
rabbit_password=guest
rabbit_virtual_host=/
rabbit_ha_queues=False