bsd-cloudinit
bsd-cloudinit copied to clipboard
Support for CloudStack
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.
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.
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?
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?
❦ 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
FYI: https://github.com/pellaeon/bsd-cloudinit/blob/master/cloudbaseinit/metadata/factory.py#L29
@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:
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
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.
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.
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.
Thanks pellaeon, your efforts are appreciated. Looking forward to test a new version when available.
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