New Question
0

OpenStack Mitaka Hyper-V Driver Problem

asked 2023-04-05 18:39:34 +0300

sorecchione07 gravatar image

updated 2023-04-05 20:46:38 +0300

I am currently on OpenStack Mitaka with Nova Compute Hyper-V Driver Installed. and i also own my own hyperv hypervisor

I distributed OpenStack Mitaka with Packstack on CentOS 7

I have a problem creating an instance with the use of the Hypervisor, as soon as I try to create an instance this error appears in the log, and I can't figure out how to fix it

i tried to enter the correct password of Neutron, and every time i launch an instance it appears written to me:

Unauthorized: The request you have made requires authentication. (HTTP 401) (Request ID: req-2aaeeefc-8972-4c6f-aeba-3226bad9a27b)

I installed the Hyper-V driver from the MSI in the link

https://cloudbase.it/downloads/HyperV...Mitaka1300.msi

Here is the log:

2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] Traceback (most recent call last): 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova\compute\manager.py", line 2218, in buildresources 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] yield resources 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\nova\compute\manager.py", line 2064, in buildandruninstance 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] blockdeviceinfo=blockdeviceinfo) 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\nova\driver.py", line 54, in wrapper 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] return function(args, *kwargs) 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\nova\driver.py", line 153, in spawn 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] adminpassword, networkinfo, blockdeviceinfo) 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\nova\vmops.py", line 125, in wrapper 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] return function(self, args, *kwds) 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\hyperv\nova\vmops.py", line 325, in spawn 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] self.destroy(instance) 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib\site-packages\osloutils\excutils.py", line 220, in exit 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] self.forcereraise() 2023-04-05 17:07:48.910 3556 ERROR nova.compute.manager [instance: 9c188431-61fe-4780-833a-5b34ac411303] File "C:\Program Files\Cloudbase Solutions\OpenStack\Nova\Python27\lib ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2023-04-06 14:56:55 +0300

lpetrut gravatar image

updated 2023-04-06 14:59:10 +0300

Hi,

I suggest double checking the credentials from the [neutron] section. You can also compare it against your Openstack controller nova conf files.

If the credentials are actually fine, you may want to check the keystone logs.

As a side note, we've discontinued Hyper-V support:

Regards,

Lucian Petrut

edit flag offensive delete link more

Comments

Thanks for the info, I'll try later and let you know if I've solved it

sorecchione07 gravatar imagesorecchione07 ( 2023-04-06 15:57:19 +0300 )edit

Unfortunately I haven't been able to solve it yet but I discovered that by enabling debugging with the debug=true i found this link http://10.195.68.3:9696/v2.0/ports.json?device_id=b3fd377c-8575-42da-af64-107aaa088b45 which when entering it from the browser tells me "Authentication required"

sorecchione07 gravatar imagesorecchione07 ( 2023-04-06 18:22:06 +0300 )edit

That's expected. Openstack request headers must include the authentication token.

lpetrut gravatar imagelpetrut ( 2023-04-07 10:15:02 +0300 )edit

by the way how would I authenticate myself on that page and get the token?

sorecchione07 gravatar imagesorecchione07 ( 2023-04-07 14:50:19 +0300 )edit

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: 2023-04-05 18:39:34 +0300

Seen: 713 times

Last updated: Apr 06 '23