Showing posts with label icehouse. Show all posts
Showing posts with label icehouse. Show all posts

Jan 13, 2015

Adding Aggregater in Openstack

People may have little bit of confusion about Host Aggregates and Availabaility Zones in Nova. Here I am trying to explain how these things are worked together. All configuration options aer based on Icehouse release of Openstack.

A host aggregate is a grouping of hosts with associated metadata. A host can be in more than one host aggregate.  The concept of host aggregates is only exposed to cloud administrators. A host aggregate may be visible to users in the form of an availability zone. When you create a host aggregate, you have the option of providing an availability zone name.

The following will create a Availability zone called Ezone-IND with a Name of enterprise.

[root@controller ~]# nova aggregate-create enterprise Ezone-IND
+----+------------+-------------------+-------+-------------------------------+
| Id | Name       | Availability Zone | Hosts | Metadata                      |
+----+------------+-------------------+-------+-------------------------------+
| 3  | enterprise | Ezone-IND         |       | 'availability_zone=Ezone-IND' |
+----+------------+-------------------+-------+-------------------------------+

 List the available hypervisor list to add under this zone.

[root@controller ~]# nova hypervisor-list
+----+----------------------+
| ID | Hypervisor hostname  |
+----+----------------------+
| 1  | compute              |
| 4  | domain-c15(Cluster1) |
| 5  | compute1             |
+----+----------------------+

Now, we are going to add hypervisor "compute1" under Ezone-IND

[root@controller ~]# nova aggregate-add-host 3 compute1
Host compute1 has been successfully added for aggregate 3
+----+------------+-------------------+------------+-------------------------------+
| Id | Name       | Availability Zone | Hosts      | Metadata                      |
+----+------------+-------------------+------------+-------------------------------+
| 3  | enterprise | Ezone-IND         | 'compute1' | 'availability_zone=Ezone-IND' |
+----+------------+-------------------+------------+-------------------------------+

Now you can see the Host Compute1 is under Ezone-IND.


Dec 24, 2014

NovaException: Unexpected vif_type=binding_failed - Openstack

Some time you may face and error
"NovaException: Unexpected vif_type=binding_failed" 
in the compute log of nova compute node while trying to deploy a virtual machine. The detailed log is looks like below.

INFRASTRUCTURE
Centos 6.5 in All the nodes with Kernel 2.6.32-504.1.3 (64B)
Centos 6.5 in Compute node with Kernel 3.18.1 (64B). RBD module is not loaded automatically in 2.6.2, thats why i am using 3.18.1 in Compute node.
Openstack Icehouse.

TRACE nova.compute.manager [instance: 84ff8ab0-7bc1-41ac-b7a7-d5a86fceaa0e] NovaException: Unexpected vif_type=binding_failed

This is normally happens because of a wrong configuration parameter in the Layer2 plugin configuration in the Neutron node and Compute node. You can change it like below.

Edit /etc/neutron/plugins/ml2/ml2_conf.ini  on both compute and network node

Change ‘tunnel_type = gre’ to ‘tunnel_types = gre’

And Restart the services.

COMPUTE NODE
service openvswitch  restart
service neutron-openvswitch-agent restart

NEUTRON NODE
service neutron-openvswitch-agent restart
service neutron-l3-agent restart
service neutron-dhcp-agent restart
service neutron-metadata-agent restart

Everything will be fine after this.