Re: Seek guide to extend BOSH to support other IaaSs


Guillaume Berche
 

Hi Jim,

Until the bosh contributors get you an official doc, here are some pointers
I collected while studying the development of an external CPI [1]


- Stdin/stdout API wiki
<https://github.com/cloudfoundry/bosh/wiki/BOSH-CPI-API-v1-%28WIP%29>
- Sequenting of calls
<https://groups.google.com/a/cloudfoundry.org/d/msg/bosh-dev/QbZjCBJwNPE/dazJAUcjIEIJ>
- *"One way to find out order of all those things is to run bosh-lite
and look at the logs. All cpi methods act on some resources that
have cloud
ids. e.g. attach_disk for example takes vm_cid and disk_cid which means
that create_vm and create_disk would be called at some point before this.
Important thing to note is that bosh may call any of those methods in a
different order depending on the situation as long as bosh is able to
provide needed arguments to the methods."*
- *Another way is to look at the debug traces from the bosh-init
logging <https://bosh.io/docs/using-bosh-init.html#logging>*
- diagrams:
- deploy flow
<https://github.com/cloudfoundry/bosh-init/blob/master/docs/architecture.md#deploy-command-flow>
- delete flow
<https://github.com/cloudfoundry/bosh-init/blob/master/docs/architecture.md#delete-command-flow>


BTW, which Iaas are you looking at developping a CPI for ?

Hope this helps,

Guillaume.

[1]
https://github.com/cloudfoundry-community/bosh-cloudstack-cpi/issues/23#issuecomment-109260841

On Thu, Jun 18, 2015 at 5:37 AM, jinsenglin <jinsenglin(a)iii.org.tw> wrote:

Hi all



I’m trying to extend BOSH to support other IaaSs. However there [1] is no
document about how to do so, but only few item bullets listed without
hyperlinks. For understanding it, so far what I only can do is to trace the
existing CPI implementation source code, like AWS CPI[2], OpenStack CPI[3],
or vSphere CPI[3]. My question is that is there any further guide to help
get quickly knowledge about it? Thanks you all for kindness.



[1] https://bosh.io/docs

[2] https://github.com/cloudfoundry/bosh/tree/master/bosh_aws_cpi

[3] https://github.com/cloudfoundry/bosh/tree/master/bosh_openstack_cpi

[4] https://github.com/cloudfoundry/bosh/tree/master/bosh_vsphere_cpi



Jim

Software Engineer

jinsenglin(a)iii.org.tw



Data Analytics Technology & Applications Research Institute (DATA)

http://www.iii.org.tw/



_______________________________________________
cf-bosh mailing list
cf-bosh(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-bosh

Join {cf-bosh@lists.cloudfoundry.org to automatically receive all group messages.