New Question

Revision history [back]

Hello I have similar issue with Windows Server 2016. Openstack Liberty. When ssh public key is added, the scripts hangs:

2017-04-10 14:12:42.904 2688 DEBUG cloudbaseinit.utils.network [-] Testing url: http://169.254.169.254/ checkurl c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\network.py:35 2017-04-10 14:13:03.920 2688 DEBUG cloudbaseinit.utils.network [-] Testing url: http://169.254.169.254/ checkurl c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\network.py:35 2017-04-10 14:13:24.951 2688 DEBUG cloudbaseinit.utils.network [-] Testing url: http://169.254.169.254/ checkurl c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\network.py:35 2017-04-10 14:13:42.623 2688 DEBUG cloudbaseinit.utils.network [-] Setting gateway for host: 169.254.169.254 checkmetadataiproute c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\network.py:60 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network [-] Unable to add route: b'The route addition failed: The object already exists.\r\n\r\n' 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network Traceback (most recent call last): 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\network.py", line 65, in checkmetadataiproute 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network 10) 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py", line 1146, in addstaticroute 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network 'Unable to add route: %s' % err) 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network cloudbaseinit.exception.CloudbaseInitException: Unable to add route: b'The route addition failed: The object already exists.\r\n\r\n' 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network 2017-04-10 14:13:42.764 2688 DEBUG cloudbaseinit.metadata.services.base [-] Getting metadata from: http://169.254.169.254/openstack/latest/metadata.json httprequest c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\metadata\services\base.py:264

Additionally I have error : "Unable to add route". Without ssh key it gives me the same error, but cloudbase scripts are not hanging after "getting metadata" and it continues running.

Second strange thing is setting MTU. I have no information such like Setting MTU for interface "FA:16:3E:B1:9D:32" with value "xx". But I have also Windows 2012 R2 image, there is no such information about setting MTU. but it's working ok.

I have also another Openstack deployment (Kilo) and there everything is running correctly (the same Windows 2016 image).

I don't know, where is the problem - MTU or maybe something else?

Hello I have similar issue with Windows Server 2016. Openstack Liberty. When ssh public key is added, added when creating instance, the scripts hangs:Cloudbase-Init hangs on:

2017-04-10 14:12:42.904 2688 DEBUG cloudbaseinit.utils.network [-] Testing url: http://169.254.169.254/ checkurl c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\network.py:35 2017-04-10 14:13:03.920 2688 DEBUG cloudbaseinit.utils.network [-] Testing url: http://169.254.169.254/ checkurl c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\network.py:35 2017-04-10 14:13:24.951 2688 DEBUG cloudbaseinit.utils.network [-] Testing url: http://169.254.169.254/ checkurl c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\network.py:35 2017-04-10 14:13:42.623 2688 DEBUG cloudbaseinit.utils.network [-] Setting gateway for host: 169.254.169.254 checkmetadataiproute c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\network.py:60 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network [-] Unable to add route: b'The route addition failed: The object already exists.\r\n\r\n' 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network Traceback (most recent call last): 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\network.py", line 65, in checkmetadataiproute 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network 10) 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py", line 1146, in addstaticroute 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network 'Unable to add route: %s' % err) 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network cloudbaseinit.exception.CloudbaseInitException: Unable to add route: b'The route addition failed: The object already exists.\r\n\r\n' 2017-04-10 14:13:42.732 2688 ERROR cloudbaseinit.utils.network 2017-04-10 14:13:42.764 2688 DEBUG cloudbaseinit.metadata.services.base [-] Getting metadata from: http://169.254.169.254/openstack/latest/metadata.json httprequest c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\metadata\services\base.py:264

Additionally I have error : "Unable to add route". Without ssh key it gives me the same error, but cloudbase scripts are not hanging after "getting metadata" and it continues running.

Second strange thing is setting MTU. I have no information such like Setting MTU for interface "FA:16:3E:B1:9D:32" with value "xx". But I have also Windows 2012 R2 image, there is no such information about setting MTU. but it's working ok.

I have also another Openstack deployment (Kilo) and there everything is running correctly (the same Windows 2016 image).

I don't know, where is the problem - MTU or maybe something else?