Skip to main content

Posts

Showing posts with the label openstack

How to analyse nova logs via logstash

In Elasticsearch family, there is a three that collects, analyses and plots logs, which I found quite beneficial. The three is  Logstash + Elasticsearch + Kibana. Logstash collects logs with various formats and parses them by using a given recipe. then parsed logs are stored into elasticsearch or another selected back-end. After all, using indexes in elasticsearch, Kibana will let you analyse logs in various ways with great visuality. In this post, I will quickly show how to work on openstack-nova logs on an already set up environment.

Experiment with Python Ceilometer API

I will give a brief and quick introduction to Ceilometer API with python. Just noticed that there is no such example on Internet. Although it is quite easy, I thought that it may be helpful for some. Just create a python file where you store constants. By this way, it will be easy to manage them: OS_USERNAME="admin" OS_PASSWORD="PASS" OS_TENANT_NAME="admin" OS_AUTH_URL="http://controller:5000/v2.0/" CEILOMETER_ENDPOINT="http://controller:8777"

Openstack-compute on virtual machine - Unable to create an instance

I have built an openstack(icehouse) platform with three virtual machines; controller, compute and network nodes. I aim to use qemu instead of kvm for virtualization. So I have inserted the following lines into /etc/nova/nova.conf in compute node: [default] compute_driver=libvirt.LibvirtDriver [libvirt] virt_type=qemu But if an instance is tried to be created, it immediately gets into error state: Error: internal error: no supported architecture for os type 'hvm' After some research, I have found the golden information: Qemu hypervisor only supports RAW, QCOW2, VMDK virtual disk formats. Mine is VDI. I have converted the disk image into VMDK format. qemu-img convert input.vdi -O vmdk output.vmdk After running compute-vm on vmdk image, I become able to create an instance without any error.

Migration from Proxmox to Openstack

I needed to migrate virtual machines in proxmox to openstack. VMs are in raw format. I needed to take some actions for a succesfull migration. I have perform all actions on Ubuntu 12.04 with virt-manager. qemu-kvm is installed. Here is the list of actions that I took: First, close the machine and copy the image file into your Ubuntu. Convert raw image to qcow2 format: qemu-img convert -O qcow2 image1.raw image1.qcow2 You need the image in qcow2 format for compatibility with openstack platform.  Open the converted image in virt-manager. Before opening, edit disk options. Under ' advanced options ' section, select ' qcow2 ' as ' storage forma t '. Start the virtual machine. You should see the login screen soon. (If you don't set storage format, vm will not find a bootable device. )   If everything is ok so far, close the vm. Take qcow2 image and upload it into glance. It may take time depending on size of it. After this process is completed, open a...