I'm pretty sure you're correct on this. I don't think the hypervisor field gets 
populated until the volume is attached.

yes, I have tested this and at least when using KVM this is correct - the hypervisor field does not get populated till the volume is at least attached once.

So thank you for pointing this out.

Could you put the agent on the host into debug mode and collect some logs? You 
can do this by running sed -i 's/INFO/DEBUG/g' 
/etc/cloudstack/agent/log4j-cloud.xml on the host and restarting the agent.

I already had done this, but didn't see anything in particular.

As described when creating the volume as ROOT, it is not possible to attach it; then creating the volume from a specific account in a domain, everything works as expected.

So it runs out that ROOT/admin has no VMs running and this is why I am unable to attach the volume :-) After upgrading and testing this I was thinking it has to do with the upgrade, my fault.

Thanks to everybody for the pointers.

Sincerely,
Thomas Moroder



- Si

________________________________
From: Rafael Weingärtner <rafaelweingart...@gmail.com>
Sent: Wednesday, January 18, 2017 1:05 PM
To: dev@cloudstack.apache.org
Subject: Re: Volumes created without HyperVisor specified

You are only creating volumes and not attaching them anywhere. I think this
“create volume” is only logical. It probably only creates entries in DB,
but probably until you do something with the volume, it does not exist in
reality.

Have you tried to attach the volume in a VM?

On Wed, Jan 18, 2017 at 2:00 PM, Thomas Moroder <cloudst...@server24.eu>
wrote:

Dear CloudStack dev-team,

after upgrading a CloudStack installation to version 4.9.2 new volumes are
created without HyperVisor specified. This happens when creating from the
UI, as well as by using CloudMonkey/the API:

###
(local) 🐵 > create volume name="testdisk2" 
diskofferingid=30fa0e20-47c7-40ad-92c9-c2b775e8d536
zoneid=f563b3fc-2428-4414-9e58-0505ef11f8bf

accountid = 90e8a863-ec61-11e5-bb13-bb66cccd9eae
cmd = org.apache.cloudstack.api.command.admin.volume.CreateVolumeC
mdByAdmin
created = 2017-01-18T19:52:00+0100
jobid = 5d544187-abcb-4a16-9b42-879aaae3fb25
jobinstanceid = 37e1c2b6-7138-4572-879f-c9243433882b
jobinstancetype = Volume
jobprocstatus = 0
jobresult:
volume:
id = 37e1c2b6-7138-4572-879f-c9243433882b
name = testdisk2
account = admin
created = 2017-01-18T19:52:00+0100
destroyed = False
diskofferingdisplaytext = Small Disk, 5 GB
diskofferingid = 30fa0e20-47c7-40ad-92c9-c2b775e8d536
diskofferingname = Small
displayvolume = True
domain = ROOT
domainid = 3c7c4ae5-ec61-11e5-bb13-bb66cccd9eae
hypervisor = None
isextractable = True
jobid = 5d544187-abcb-4a16-9b42-879aaae3fb25
jobstatus = 0
provisioningtype = thin
quiescevm = False
size = 5368709120
state = Allocated
storagetype = shared
tags:
type = DATADISK
zoneid = f563b3fc-2428-4414-9e58-0505ef11f8bf
zonename = PrivateCloud_AdvancedZone1
jobresultcode = 0
jobresulttype = object
jobstatus = 1
userid = 76f8889a-1b88-44a9-bab8-0951190c1dd9
###

In the specific case it should use KVM as the HyperVisor.

No error message is found in the logs or the hosts/agents/SSVM, I am
available for further debugging.

Of course it is not possible to attach this volume to a VM thereafter
(AFAIK volumes are hypervisor-specific).

Any input or help would be greatly appreciated.

Sincerely,
Thomas Moroder

--
Incubatec GmbH - Srl
Via Scurcia'str. 36, 39046 Ortisei(BZ), ITALIA
Registered with the chamber of commerce of Bolzano the 8th of November
2001 with
REA-No. 168204 (s.c. of EUR 10.000 f.p.u.)
President: Thomas Moroder, VAT-No. IT 02283140214
Tel: +39.0471796829 - Fax: +39.0471797949

IMPRINT:
http://www.incubatec.com/imprint.html
incubatec - impressum<http://www.incubatec.com/imprint.html>
www.incubatec.com
incubatec.com - vi offriamo registrazione di domini e webspace a prezzi bassi e 
vi offriamo ottima qualitá. incubatec.com - wir bieten Ihnen 
Domain-Registrierungen ...



PRIVACY:
http://www.server24.it/informativa_completa.html
incubatec srl - domini, webhosting, serverhousing ed eCommerce ad un prezzo 
eccezionale!<http://www.server24.it/informativa_completa.html>
www.server24.it
incubatec.com - vi offriamo registrazione di domini e webspace a prezzi bassi e 
vi offriamo ottima qualitá. incubatec.com - wir bieten Ihnen 
Domain-Registrierungen und Webspace zu günstigen Preisen an und bieten ein 
Höchstmaß an Qualität.







--
Rafael Weingärtner



--
Find out more about server24 and our range of CloudStack related services

CloudStack Reference Cloud <https://www.server24.net/>
CloudStack Consulting
<http://www.server24.it/cloud/integrazione-e-consulenza-cloud/>

This email and any attachments to it may be confidential and are intended solely
for the use of the individual to whom it is addressed. Any views or opinions
expressed are solely those of the author and do not necessarily represent those
of server24 or related companies. If you are not the intended recipient of this
email, you must neither take any action based upon its contents, nor copy or
show it to anyone. Please contact the sender if you believe you have received
this email in error. server24 is a division of incubatec Ltd, a company
incorporated in South Tyrol, Italy with offices in Italy, Germany and the USA.
server24 is a registered trademark.

Incubatec GmbH - Srl
Via Scurcia'str. 36, 39046 Ortisei(BZ), ITALIA
Registered with the chamber of commerce of Bolzano the 8th of November 2001 with
REA-No. 168204 (s.c. of EUR 10.000 f.p.u.)
President: Thomas Moroder, VAT-No. IT 02283140214
Tel: +39.0471796829 - Fax: +39.0471797949

IMPRINT:
http://www.incubatec.com/imprint.html
PRIVACY:
http://www.server24.it/informativa_completa.html

Reply via email to