Ask Your Question
0

Instance creation failure

asked 2014-12-29 23:31:27 -0600

fresher gravatar image

updated 2014-12-30 06:22:00 -0600

I have installed openstack juno on centos7 using packstack. When I try to create an instance it fails. No error logs are present in controller node but in compute node there is a warning of

 Build of instance 2a711675-7f28-4568-b789-f20e2c54466c aborted: Failed to allocate the network(s), not rescheduling.

and

 WARNING nova.virt.libvirt.driver [-] Timeout waiting for vif plugging callback for instance 2a711675-7f28-4568-b789-f20e2c54466c

Please help me in this regard

Problem Solved by changing the follwoing in /etc/nova/nova.conf in compute nodes:

vif_plugging_is_fatal: false

vif_plugging_timeout: 0

vi /etc/neutron/plugins/ml2/ml2_conf.ini

[ml2]
# (ListOpt) List of network type driver entrypoints to be loaded from
# the neutron.ml2.type_drivers namespace.
#
# type_drivers = local,flat,vlan,gre,vxlan
type_drivers = vxlan
# Example: type_drivers = flat,vlan,gre,vxlan

# (ListOpt) Ordered list of network_types to allocate as tenant
# networks. The default value 'local' is useful for single-box testing
# but provides no connectivity between hosts.
#
# tenant_network_types = local
tenant_network_types = vxlan
# Example: tenant_network_types = vlan,gre,vxlan

# (ListOpt) Ordered list of networking mechanism driver entrypoints
# to be loaded from the neutron.ml2.mechanism_drivers namespace.
# mechanism_drivers =
mechanism_drivers =openvswitch
# Example: mechanism_drivers = openvswitch,mlnx
# Example: mechanism_drivers = arista
# Example: mechanism_drivers = cisco,logger
# Example: mechanism_drivers = openvswitch,brocade
# Example: mechanism_drivers = linuxbridge,brocade

# (ListOpt) Ordered list of extension driver entrypoints
# to be loaded from the neutron.ml2.extension_drivers namespace.
# extension_drivers =
# Example: extension_drivers = anewextensiondriver

[ml2_type_flat]
# (ListOpt) List of physical_network names with which flat networks
# can be created. Use * to allow flat networks with arbitrary
# physical_network names.
#
# flat_networks =
# Example:flat_networks = physnet1,physnet2

# Example:flat_networks = *

[ml2_type_vlan]
# (ListOpt) List of <physical_network>[:<vlan_min>:<vlan_max>] tuples
# specifying physical_network names usable for VLAN provider and
# tenant networks, as well as ranges of VLAN tags on each
# physical_network available for allocation as tenant networks.
#
# network_vlan_ranges =
# Example: network_vlan_ranges = physnet1:1000:2999,physnet2

[ml2_type_gre]
# (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation
# tunnel_id_ranges =

[ml2_type_vxlan]
# (ListOpt) Comma-separated list of <vni_min>:<vni_max> tuples enumerating
# ranges of VXLAN VNI IDs that are available for tenant network allocation.
#
# vni_ranges =
vni_ranges =1001:2000

# (StrOpt) Multicast group for the VXLAN interface. When configured, will
# enable sending all broadcast traffic to this multicast group. When left
# unconfigured, will disable multicast VXLAN mode.
#
# vxlan_group =
vxlan_group =239.1.1.2
# Example: vxlan_group = 239.1.1.1

[securitygroup]
# Controls if neutron security group is enabled or not.
# It should be false when you use nova security group.
# enable_security_group = True
enable_security_group = True

# Use ipset to speed-up the iptables security groups. Enabling ipset support

# Example:flat_networks = *

[ml2_type_vlan]
# (ListOpt) List of <physical_network>[:<vlan_min>:<vlan_max>] tuples
# specifying physical_network names usable for VLAN provider and
# tenant networks, as well as ranges of VLAN tags on each
# physical_network available for allocation as tenant networks.
#
# network_vlan_ranges =
# Example: network_vlan_ranges = physnet1:1000:2999,physnet2

[ml2_type_gre]
# (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples enumerating ranges of GRE tunnel IDs that are available for tenant network allocation
# tunnel_id_ranges =

[ml2_type_vxlan]
# (ListOpt) Comma-separated list of <vni_min>:<vni_max> tuples enumerating
# ranges of VXLAN VNI IDs that are available for tenant network allocation.
#
# vni_ranges =
vni_ranges =1001:2000

# (StrOpt ...
(more)
edit retag flag offensive close merge delete

Comments

Please, post /etc/neutron/plugins/ml2/ml2_conf.ini && keystonerc_tenant files

dbaxps gravatar imagedbaxps ( 2014-12-30 02:21:45 -0600 )edit

updated the question

fresher gravatar imagefresher ( 2014-12-30 04:55:06 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-12-30 01:59:36 -0600

You really didnt solve the problem because now the instance has no networking.

edit flag offensive delete link more

Comments

ooh. that is why I cannot ping my instance!

fresher gravatar imagefresher ( 2014-12-30 04:44:55 -0600 )edit

You should revert those settings and then troubleshoot why your ports , I assume you are using ovs plugin , are not being created during instance spawn.

sfcloudman gravatar imagesfcloudman ( 2014-12-31 00:43:09 -0600 )edit

I reverted back. I can now create VMs but facing another issue:

https://ask.openstack.org/en/question...

Please guide me.

fresher gravatar imagefresher ( 2014-12-31 07:17:49 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-29 23:31:27 -0600

Seen: 660 times

Last updated: Dec 30 '14