osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using ConfigDrive in a shared network


Create a new network offering or use the default one with config drive. While creating a new one you would select user data provided by config drive and also select config drive feature. Try the latest 4.11 or master via UI.

Regards.
________________________________
From: Wido den Hollander <wido@xxxxxxxxx>
Sent: Wednesday, October 10, 2018 7:46:21 PM
To: dev@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: Using ConfigDrive in a shared network

Hi,

On 10/10/2018 12:09 PM, Rohit Yadav wrote:
> Hi Wido,
>
>
> I've tested/used the feature in advanced zone/networking but without security groups, so there could be potentially some limitation around that (please check?). Here are few things you can try:
>

Ok, thanks for the hint!

>
> - genisoimage is available on your mgmt server or local development platform

Yes, it is.

>
> - after updating any existing network offering see if restarting mgmt server helps?

Tried it multiple times, no change.

>
> - use an IDE, attach debugger on the config drive element class and see if it participates at all during deployment?
>
> - in the global setting check if config drive on primary storage is enabled or not? Config drive by default requires secondary storage and will create isos on it. Also check agent logs? (the config drive current is created on/by the mgmt server and then the iso data is transferred via cmd-answer pattern to either secondary or primary storage).
>
> - Also dumpxml for the guest domain and see if any iso is attached?
>

I checked all the Agent logs, Management Server logs, no trace of
ConfigDrive being used anywhere. The VM has a empty CD-Rom, but that's
the usual CD-Rom which is attached to a VM.

It seems that the Mgmt server isn't using ConfigDrive at the moment, so
I'm not sure where this is going wrong.

Setting it for UserData in the Network Offering should be sufficient, right?

Wido

>
> - Rohit
>
> <https://cloudstack.apache.org>
>
>
>
> ________________________________
> From: Wido den Hollander <wido@xxxxxxxxx>
> Sent: Tuesday, October 9, 2018 2:36:01 PM
> To: dev@xxxxxxxxxxxxxxxxxxxxx
> Subject: Using ConfigDrive in a shared network
>
> Hi,
>
> I can't get ConfigDrive for UserData to work on my Advanced Zone and I
> can't figure out why.
>
> I updated 'DefaultSharedNetworkOfferingWithSGService' and it shows:
>
>       "service": [
>         {
>           "name": "UserData",
>           "provider": [
>             {
>               "name": "ConfigDrive"
>             }
>           ]
>         },
>         {
>           "name": "Dns",
>           "provider": [
>             {
>               "name": "VirtualRouter"
>             }
>           ]
>         },
>         {
>           "name": "SecurityGroup",
>           "provider": [
>             {
>               "name": "SecurityGroupProvider"
>             }
>           ]
>         },
>         {
>           "name": "Dhcp",
>           "provider": [
>             {
>               "name": "VirtualRouter"
>             }
>           ]
>         }
>       ],
>
> As you can see, my UserData should be provided by 'ConfigDrive'.
>
> It's state is also 'Enabled', so that's good.
>
> If I deploy a VM however it doesn't get a ISO attached nor do I see any
> trace of ConfigDrive in the logs.
>
> Does anybody have an idea?
>
> Thanks!
>
> Wido
>
> rohit.yadav@xxxxxxxxxxxxx
> www.shapeblue.com<http://www.shapeblue.com>
> Amadeus House, Floral Street, London  WC2E 9DPUK
> @shapeblue
>
>
>

rohit.yadav@xxxxxxxxxxxxx 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue