Hi Wido, Maybe networkserviceprovider ConfigDrive is still disabled for that physicalnetworkid in your Advanced zone. Please check if ConfigDrive is set to Enabled via UI or via cloudmonkey list networkserviceproviders name=ConfigDrive
Thanks & Best Regards, Raf -----Original Message----- From: Wido den Hollander <w...@widodh.nl> Sent: Wednesday, October 10, 2018 4:16 PM To: dev@cloudstack.apache.org 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 <w...@widodh.nl> > Sent: Tuesday, October 9, 2018 2:36:01 PM > To: dev@cloudstack.apache.org > 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.ya...@shapeblue.com > www.shapeblue.com > Amadeus House, Floral Street, London WC2E 9DPUK @shapeblue > > >