bsd-cloudinit icon indicating copy to clipboard operation
bsd-cloudinit copied to clipboard

Support for CloudStack

Open vincentbernat opened this issue 9 years ago • 12 comments

Hi!

I would be interested to add support for CloudStack. Would it be accepted? I see there is already support for EC2 so this does not seem an Openstack only project.

vincentbernat avatar Apr 25 '15 12:04 vincentbernat

Hi,

I would suggest then to add CloudStack API support to the cloudbase-init framework itself, which bsd-cloudinit is built on. If cloudbase-init get this feature, a merge from cloudbase-init will give bsd-cloudinit the same feature.

In detail, the API support should be added to cloudbaseinit.metadata.services class. Once something like cloudbaseinit.metadata.services.cloudstack is implemented, bsd-cloudinit would get CloudStack support simply by using that class as the service class.

All of bsd-cloudinit's metadata API support comes from cloudbase-init, so if you want to add API support, I think it is better to contribute to the upstream.

pellaeon avatar Apr 25 '15 14:04 pellaeon

It seems to be already included in cloudbase-init. If I understand correctly, we are all good? I can just copy the cloudbaseinit directory to this project?

vincentbernat avatar Apr 25 '15 15:04 vincentbernat

Ah, I see it now. Simply copying the directory would not work, some merging from upstream is needed. I would merge from upstream and cleanup the conflicts (this would take a week or two), then you can test whether if it already supports CloudStack, and file fixes if not, is that OK?

pellaeon avatar Apr 25 '15 15:04 pellaeon

❦ 25 avril 2015 08:56 -0700, Pellaeon Lin [email protected] :

Ah, I see it now. Simply copying the directory would not work, some merging from upstream is needed. I would merge from upstream and cleanup the conflicts (this would take a week or two), then you can test whether if it already supports CloudStack, and file fixes if not, is that OK?

Yes. Thanks!

Many a writer seems to think he is never profound except when he can't understand his own meaning. -- George D. Prentice

vincentbernat avatar Apr 25 '15 16:04 vincentbernat

FYI: https://github.com/pellaeon/bsd-cloudinit/blob/master/cloudbaseinit/metadata/factory.py#L29

iblislin avatar May 01 '15 10:05 iblislin

@vincentbernat We have merged from the upstream, simply modify the defaults in https://github.com/pellaeon/bsd-cloudinit/blob/master/cloudbaseinit/metadata/factory.py#L29 to enable CloudStack metadata service.

Please let us know if it works in CloudStack! :smile:

pellaeon avatar May 02 '15 09:05 pellaeon

Hello,

Thanks for your efforts, however I was not able to get it to run successfully.

I have installed bsdcloud-init using the official installer and rebooted after that, but it seems that the root password has been changed and it is not the one provided by Cloudstack.

Going into single user mode I can see the disk has been resized to match the underlying virtio device, so at least that bit worked.

Frogot to mention that I have indeed set the Cloudstack metadata default, as suggested here https://github.com/pellaeon/bsd-cloudinit/blob/master/cloudbaseinit/metadata/factory.py#L29

Please advise.

thanks

NuxRo avatar Sep 07 '16 17:09 NuxRo

https://github.com/pellaeon/bsd-cloudinit/blob/master/cloudbaseinit/plugins/common/factory.py#L24

Currently bsd-cloudinit does not set the root password from metadata. Instead, it generates a random password.

pellaeon avatar Sep 14 '16 07:09 pellaeon

Hi,

Is it possible to change this? The cloudstack driver in cloudbase-init sets the password from the metadata and then also checks for new issued passwords at every boot.

NuxRo avatar Sep 14 '16 07:09 NuxRo

Yes, its definitely possible and I'm planning to do just that.

I'm planning to resume development after we have set up our Jenkins CI server, unfortunately I kept running into issues with Jenkins in the past few months, so pull requests and development have been halted.

pellaeon avatar Sep 14 '16 07:09 pellaeon

Thanks pellaeon, your efforts are appreciated. Looking forward to test a new version when available.

NuxRo avatar Sep 14 '16 10:09 NuxRo

Hi Pallaeon, Did you find any time to work on root password reset from metadata ? We are also looking forward to test your solution. Thanks for all your efforts...

Özhan

ozhanka avatar Jan 12 '17 12:01 ozhanka