New Question

Revision history [back]

click to hide/show revision 1
initial version

Neutron agent fails with Attribute error 'NoneType' object has no attribute 'create_consumer'

Hi,

I'm having an issue installing the neutron-hyperv-agent on my windows 2016 server(enwindowsserver2016updatedfeb2018x64dvd11636692) clean build, using HyperVNovaComputePike16001.msi and current stable pike server on Ubuntu 16.04 server. On install nova agent starts fine but neutron fails with the following error:

2018-03-15 14:54:00.171 2564 CRITICAL neutron [req-b599b779-bc47-4476-b537-f44006a1c7e9 - - - - -] Unhandled error: AttributeError: 'NoneType' object has no attribute 'createconsumer' 2018-03-15 14:54:00.171 2564 ERROR neutron Traceback (most recent call last): 2018-03-15 14:54:00.171 2564 ERROR neutron File "C:\PROGRA~1\CLOUDB~1\OPENST~1\Nova\Python27\lib\runpy.py", line 162, in _runmoduleasmain 2018-03-15 14:54:00.171 2564 ERROR neutron "main", fname, loader, pkgname) 2018-03-15 14:54:00.171 2564 ERROR neutron File "C:\PROGRA~1\CLOUDB~1\OPENST~1\Nova\Python27\lib\runpy.py", line 72, in _runcode 2018-03-15 14:54:00.171 2564 ERROR neutron exec code in runglobals 2018-03-15 14:54:00.171 2564 ERROR neutron File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\Scripts\neutron-hyperv-agent.exe_main.py", line 9, in <module> 2018-03-15 14:54:00.171 2564 ERROR neutron sys.exit(main()) 2018-03-15 14:54:00.171 2564 ERROR neutron File "C:\PROGRA~1\CLOUDB~1\OPENST~1\Nova\Python27\lib\site-packages\networkinghyperv\neutron\agent\hypervneutronagent.py", line 299, in main 2018-03-15 14:54:00.171 2564 ERROR neutron hypervagent = HyperVNeutronAgent() 2018-03-15 14:54:00.171 2564 ERROR neutron File "C:\PROGRA~1\CLOUDB~1\OPENST~1\Nova\Python27\lib\site-packages\networkinghyperv\neutron\agent\hypervneutronagent.py", line 82, in _init 2018-03-15 14:54:00.171 2564 ERROR neutron super(HyperVNeutronAgent, self).init() 2018-03-15 14:54:00.171 2564 ERROR neutron File "C:\PROGRA~1\CLOUDB~1\OPENST~1\Nova\Python27\lib\site-packages\networkinghyperv\neutron\agent\layer2.py", line 70, in init 2018-03-15 14:54:00.171 2564 ERROR neutron self.setuprpc() 2018-03-15 14:54:00.171 2564 ERROR neutron File "C:\PROGRA~1\CLOUDB~1\OPENST~1\Nova\Python27\lib\site-packages\networkinghyperv\neutron\agent\layer2.py", line 109, in setuprpc 2018-03-15 14:54:00.171 2564 ERROR neutron self.setupqosextension() 2018-03-15 14:54:00.171 2564 ERROR neutron File "C:\PROGRA~1\CLOUDB~1\OPENST~1\Nova\Python27\lib\site-packages\networkinghyperv\neutron\agent\hypervneutronagent.py", line 131, in setupqosextension 2018-03-15 14:54:00.171 2564 ERROR neutron self.qosext.initialize(self.connection, 'hyperv') 2018-03-15 14:54:00.171 2564 ERROR neutron File "C:\PROGRA~1\CLOUDB~1\OPENST~1\Nova\Python27\lib\site-packages\neutron\agent\l2\extensions\qos.py", line 211, in initialize 2018-03-15 14:54:00.171 2564 ERROR neutron self.registerrpcconsumers(connection) 2018-03-15 14:54:00.171 2564 ERROR neutron File "C:\PROGRA~1\CLOUDB~1\OPENST~1\Nova\Python27\lib\site-packages\neutron\agent\l2\extensions\qos.py", line 229, in _registerrpcconsumers 2018-03-15 14:54:00.171 2564 ERROR neutron connection.createconsumer(topic, endpoints, fanout=True) 2018-03-15 14:54:00.171 2564 ERROR neutron AttributeError: 'NoneType' object has no attribute 'create_consumer'

neutronhypervagent.conf: [DEFAULT] controlexchange=neutron transporturl=rabbit://openstack:RABBITPASS@controller logdir=C:\OpenStack\Log\ logfile=neutron-hyperv-agent.log [AGENT] pollinginterval=2 physicalnetworkvswitchmappings=*:Intel(R) Ethernet Connection I217-LM - Virtual Switch enablemetricscollection=false enableqosextension=true [SECURITYGROUP] firewalldriver=hyperv enablesecuritygroup=true

nova.conf:

[DEFAULT] computedriver=computehyperv.driver.HyperVDriver instancespath=C:\OpenStack\Instances usecowimages=true forceconfigdrive=false flatinjected=true mkisofscmd=C:\Program Files\Cloudbase Solutions\OpenStack\Nova\bin\mkisofs.exe allowresizetosamehost=true runningdeletedinstancepollinterval=120 resizeconfirmwindow=5 resumeguestsstateonhostboot=true transporturl=rabbit://openstack:RABBITPASS@controller rpcresponsetimeout=1800 lockpath=C:\OpenStack\Log\ vifpluggingisfatal=false vifpluggingtimeout=60 blockdeviceallocateretries=600 logdir=C:\OpenStack\Log\ logfile=nova-compute.log [placement] authstrategy=keystone authtype=password authurl=http://controller:35357/v3 projectname=service username=placement password=PLACEMENTPASS projectdomainname=Default userdomainname=Default osregionname=RegionOne [notifications] [glance] apiservers=http://controller:9292 [hyperv] limitcpufeatures=false configdriveinjectpassword=false qemuimgcmd=C:\Program Files\Cloudbase Solutions\OpenStack\Nova\bin\qemu-img.exe configdrivecdrom=true dynamicmemoryratio=1 enableinstancemetricscollection=false [oswin] cachetemporarywmiobjects=false [rdp] enabled=true html5proxybaseurl=http://rdpconsolehost:8000/ [neutron] url=http://controller:9696 authstrategy=keystone projectname=service username=neutron password=NEUTRONPASS authurl=http://controller:35357 projectdomainname=Default userdomainname=Default osregionname=RegionOne auth_type=password

Thanks!