[Openstack] [OpenStack][Nova][virt][hyperv] Failed to install nova-compute on windows 2012 R2
cbelu at cloudbasesolutions.com
Tue Nov 8 14:36:04 UTC 2016
It seems that you have not installed the requirements necessary to run nova-compute.
To do that, you'll have to install its requirements:
pip install -r requirements.txt
If you have a fresh install of python, you might not even have pip installed. You'll have to run:
Also, keep in mind that nova has quite a few requirements, out of which there are several that require a C compiler (for example: the cryptography, numpy, etc. requirements). There might even be some Linux specific requirements (e.g.: posix_ipc), which are extremely difficult to build on Windows. Which is why I recommended the installer , which already takes care of those requirements automatically.
From: zhaolihuisky [zhaolihuisky at aliyun.com]
Sent: Friday, November 04, 2016 11:27 AM
To: openstack; Matt Riedemann; Claudiu Belu
Subject: Re: [Openstack] [OpenStack][Nova][virt][hyperv] Failed to install nova-compute on windows 2012 R2
Thanks for your reply.
I fellowed the command, but it error:
PS C:\OpenStack> python.exe C:\Python27\Scripts\nova-compute-script.py --config-file 'C:\Program Files\OpenStack\Nova\et
Traceback (most recent call last):
File "C:\Python27\Scripts\nova-compute-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 3084, in <module>
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 3070, in _call_aside
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 3097, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 651, in _build_master
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 952, in require
needed = self.resolve(parse_requirements(requirements))
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 839, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'castellan>=0.3.1' distribution was not found and is required by nova
How to resolve this problem?
From:Claudiu Belu <cbelu at cloudbasesolutions.com>
Send Time:2016年10月28日(星期五) 19:29
To:zhaolihuisky <zhaolihuisky at aliyun.com>; openstack <openstack at lists.openstack.org>; Matt Riedemann <mriedem at linux.vnet.ibm.com>
Subject:RE: [Openstack] [OpenStack][Nova][virt][hyperv]
Thanks Matt for the mail, and I apologize for the delay.
So, the error you've experienced is because you've tried to run an .exe file with python. Instead, you should have run:
'C:\Python27\python.exe c:\Python27\Scripts\nova-compute-script.py --config-file c:\etc\nova\nova.conf'
My personal recomendation is to use the installer , which greatly simplifies setting up a Hyper-V compute node. It comes with already compiled requirements (some of which would require a C compiler), it helps with the config files, and it registers nova-compute, neutron-hyperv-agent, and ceilometer-polling as Windows services (and you will be able to control with commands like Start-Service / Stop-Service nova-compute (or any other service) in powershell, or net start/stop nova-compute in cmd). It can also be automatable .
I would also recommend using OVS Windows . You will also find a link to a step-by-step installation guide on . Please do keep in mind that you can't run both neutron-ovs-agent and neutron-hyperv-agent at the same time, on the same vSwitches. As far as security groups go, starting with OVS 2.6 (to be released soon!), you can you the OVSFirewallDriver, but the HyperVSecurityGroupsDriver works as well (starting with Liberty).
As for the Hyper-V version, you can get the latest version, the Windows Hyper-V Server 2016 , or at the very least, Windows Hyper-V Server 2012 R2. They are free :)
If you want to also try out live migration, the Hyper-V compute nods will have to be joined into an Active Directory.
For Windows images, you can find some evaluation images here . Windows guests work better on Hyper-V. Or if you want a simple cirros, you can get it from here . Make sure that when you register the images into glance, you'll register them with the vhd disk_format and hypervisor_type=hyperv. This will ensure that nova will properly schedule instances to Hyper-V compute nodes.
glance image-create --visibility public --property hypervisor_type=hyperv --name cirros-vhdx --disk-format vhd --container-format bare --file cirros-0.3.4-x86_64.vhdx
I would also like to note that we have a weekly Windows / Hyper-V IRC meeting , which you are welcome to join and participate / ask any questions you might have.
If I'm missing anything, please let me know!
From: zhaolihuisky [zhaolihuisky at aliyun.com]
Sent: Thursday, October 27, 2016 11:31 AM
To: openstack; Matt Riedemann
Subject: Re: [Openstack] [OpenStack][Nova][virt][hyperv]
Thanks for reply.
I have fellowed this doc to install nova-compute.
But there was an error on the step with command 'C:\Python27\python.exe c:\Python27\Scripts\nova-compute --config-file c:\etc\nova\nova.conf', and error is:
" File "C:\Python27\Scripts\nova-compute.exe", line 1
SyntaxError: Non-ASCII character '\x90' in file C:\Python27\Scripts\nova-compute.exe on line 1, but no encoding declared
; see http://python.org/dev/peps/pep-0263/ for details"
From:Matt Riedemann <mriedem at linux.vnet.ibm.com>
Send Time:2016年10月27日(星期四) 16:14
To:openstack <openstack at lists.openstack.org>
Subject:Re: [Openstack] [OpenStack][Nova][virt][hyperv]
On 10/27/2016 8:38 AM, zhaolihuisky wrote:
> Hi, all
> I want to use hyperv.
> How to install nova-compute with source code on windows 2012 operation system?
> Best Regards.
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Claudiu Belu is a good contact for this. He works on the hyper-v compute
driver code in Nova.
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openstack