Is it possible to specify the UUID of a Glance image in micro_bosh.yml to use for the Bosh Director?

19 views
Skip to first unread message

Trevor Roberts Jr

unread,
Nov 9, 2014, 10:58:46 PM11/9/14
to bosh-...@cloudfoundry.org
Question: Is it possible to upload the stemcell image file separately to Glance and then have bosh skip the "Uploading stemcell" portion of the micro bosh deployment?  Perhaps by specifying the UUID of the stemcell image in the YAML file after the successful Glance upload?

Background:
My environment uses Ceph Storage, and can only boot Raw images.  I followed Long's blog post to convert the qcow2 stemcell successfully.

Unfortunately, the expanded image is 10 GB and times out during the "Uploading stemcell" step with micro bosh from my desktop.  I do have access to perform the Glance upload from one of the Nova or Glance servers, and that would succeed.  I have uploaded larger images like that before from the OpenStack servers themselves.  It's just the upload from the desktop times out for me.  I cannot install bosh on these boxes.  Otherwise, I would try the deployment from there.

Any help would be appreciated.

Thanks,
Trevor


Dr Nic Williams

unread,
Nov 10, 2014, 9:31:18 AM11/10/14
to bosh-...@cloudfoundry.org, bosh-...@cloudfoundry.org
I think conceptually you could. Upload it and then create a "light" stemcell that references the UUID image.



To unsubscribe from this group and stop receiving emails from it, send an email to bosh-users+...@cloudfoundry.org.

Trevor Roberts Jr

unread,
Nov 10, 2014, 10:40:18 AM11/10/14
to bosh-...@cloudfoundry.org
Thank you, Dr Nic,

I will look into light stemcells and how to use them with OpenStack.

-Trevor

Dr Nic Williams

unread,
Nov 10, 2014, 10:43:29 AM11/10/14
to bosh-...@cloudfoundry.org, bosh-...@cloudfoundry.org
For microbosh I think Ferdy told me once that you can reference the glance UUID directly: "bosh micro deploy UUID"

Trevor Roberts Jr

unread,
Nov 10, 2014, 10:45:36 AM11/10/14
to bosh-...@cloudfoundry.org
By the way, for anyone else interested in doing this, I found the following discussion that shows some tips for AWS and OpenStack stemcell reuse:  https://groups.google.com/a/cloudfoundry.org/forum/#!topic/bosh-dev/JiuFqwTG_Vg

It should be applicable to my use case as well.

Trevor Roberts Jr

unread,
Nov 10, 2014, 10:59:27 AM11/10/14
to bosh-...@cloudfoundry.org
Thanks!  I think the link I posted earlier is the same discussion.  :-)  I'll report back with how/if I get it working.

-Trevor

Trevor Roberts Jr

unread,
Nov 13, 2014, 4:56:07 PM11/13/14
to bosh-...@cloudfoundry.org
Thanks Dr Nic for the helpful tips.  I managed to get past the upload timeout by trying to deploy micro bosh from my employer's network.  However, the Create VM step ends with a timeout.  I will search the forums to see if anyone has encountered similar behavior with OpenStack.

Dr Nic Williams

unread,
Nov 13, 2014, 7:07:58 PM11/13/14
to bosh-...@cloudfoundry.org, bosh-...@cloudfoundry.org
I'd assume a networking/connectivity issue for first round of debugging. Can your work machine connect to the VM and vice versa.

Dr Nic Williams

unread,
Nov 13, 2014, 7:08:38 PM11/13/14
to bosh-...@cloudfoundry.org, bosh-...@cloudfoundry.org
If you can get into the VM, then tail /var/vcap/bosh/log/current for agent logs.

Trevor Roberts Jr

unread,
Nov 13, 2014, 9:10:23 PM11/13/14
to bosh-...@cloudfoundry.org
Thanks, I'll try those steps next

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages