New Question
0

instances cannot get fixed ip

asked 2015-07-09 17:40:05 +0200

Lily Xing gravatar image

I setup a controller+network node by DevStack with VLAN network type using Kilo version(networking_hyperv is installed), and a hyper-v compute node by cloudbase hyper-v compute driver(Kilo version too). Everything works well except that instances cannot get fixed ip.

>Get-VMNetworkAdapterVlan -VMNetworkAdapterName ec49017e-6d5b-489e-80ff-a311a67dee07 -ErrorAction Ignore

VMName            VMNetworkAdapterName                 Mode   VlanList
------            --------------------                 ----   --------
instance-00000007 ec49017e-6d5b-489e-80ff-a311a67dee07 Access 27

And there are below error messages in neutron-hyperv-agent.log:

ERROR hyperv.neutron.hyperv_neutron_agent [req-f284ee93-0de6-47ad-842d-cfafe7dda8cb ] Error in agent event loop
TRACE hyperv.neutron.hyperv_neutron_agent Traceback (most recent call last):
TRACE hyperv.neutron.hyperv_neutron_agent   File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\neutron\hyperv_neutron_agent.py", line 356, in daemon_loop
TRACE hyperv.neutron.hyperv_neutron_agent     sync = self._process_network_ports(port_info)
TRACE hyperv.neutron.hyperv_neutron_agent   File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\neutron\hyperv_neutron_agent.py", line 332, in _process_network_ports
TRACE hyperv.neutron.hyperv_neutron_agent     resync_a = self._treat_devices_added(port_info['added'])
TRACE hyperv.neutron.hyperv_neutron_agent   File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\neutron\hyperv_neutron_agent.py", line 296, in _treat_devices_added
TRACE hyperv.neutron.hyperv_neutron_agent     device_details['admin_state_up'])
TRACE hyperv.neutron.hyperv_neutron_agent   File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\neutron\hyperv_neutron_agent.py", line 264, in _treat_vif_port
TRACE hyperv.neutron.hyperv_neutron_agent     physical_network, segmentation_id)
TRACE hyperv.neutron.hyperv_neutron_agent   File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\neutron\hyperv_neutron_agent.py", line 195, in _port_bound
TRACE hyperv.neutron.hyperv_neutron_agent     self._utils.connect_vnic_to_vswitch(map['vswitch_name'], port_id)
TRACE hyperv.neutron.hyperv_neutron_agent   File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\neutron\utilsv2.py", line 86, in connect_vnic_to_vswitch
TRACE hyperv.neutron.hyperv_neutron_agent     self._add_virt_resource(vm, port)
TRACE hyperv.neutron.hyperv_neutron_agent   File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\neutron\utilsv2.py", line 100, in _add_virt_resource
TRACE hyperv.neutron.hyperv_neutron_agent     self._check_job_status(ret_val, job_path)
TRACE hyperv.neutron.hyperv_neutron_agent   File "C:\Program Files (x86)\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\neutron\utils.py", line 137, in _check_job_status
TRACE hyperv.neutron.hyperv_neutron_agent     raise HyperVException(msg=_('Job failed with error %d') % ret_val)
TRACE hyperv.neutron.hyperv_neutron_agent HyperVException: Hyper-V Exception: Job failed with error 32775

Could anyone help on this?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-07-15 10:34:46 +0200

Lily Xing gravatar image

I finally figure it out. My problem here is my physical switch connected to the interface used for VM sets up a VLAN range which mismatches the vlan range I used when installing openstack:

ML2_VLAN_RANGES=default:671:690

Another possibility is iptable rules that prohibit icmp request and you need delete them:

# iptables-save | grep icmp
......
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2015-07-09 17:40:05 +0200

Seen: 654 times

Last updated: Jul 15 '15