Giter Site home page Giter Site logo

Comments (19)

gberche-orange avatar gberche-orange commented on September 24, 2024

Configuration of the vrouter is discussed into http://mail-archives.apache.org/mod_mbox/cloudstack-dev/201508.mbox/%3CD1E8F7FA.63241%[email protected]%3E but it seems that this would not work with vrouter in advanced zone, or require the vrouter to be configured as the default gateway (which is not yet the case within orange network setting)

from bosh-cloudstack-cpi-release.

chiradeep avatar chiradeep commented on September 24, 2024

Static route to send 169.254.169.254 to VR in case VR is not default router can be specified in DHCP config (dhcp option 121). See https://github.com/apache/cloudstack/blob/94f1ebb60af320166206c213e18b97a177bc145a/systemvm/patches/debian/config/opt/cloud/bin/edithosts.sh#L202

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

@Chirad does the solution you propose imply custom cloudstack system vm, or can be activated with cloudstack properties ?

from bosh-cloudstack-cpi-release.

chiradeep avatar chiradeep commented on September 24, 2024

Not a custom system vm, but a change to the scripts that are downloaded to the systemvm.
Alternatively, customize your templates (or cloud-init) to add a route to the systemvm.
E.g. dhclient script:
/etc/dhclient-exit-hooks:
srvr=$(grep server-identifier /var/lib/dhcp/dhclient.leases | tail -1 | awk -F" " '{print $3}')
srvr=${srvr:0:-1}
ip route add 169.254.169.254 via $srvr

see here how to canonically determine VR address
https://github.com/number5/cloud-init/blob/master/cloudinit/sources/DataSourceCloudStack.py#L224

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

probably we should add this step to the cloudstack stemcell, to avoid iaas specific configuration.

from bosh-cloudstack-cpi-release.

chiradeep avatar chiradeep commented on September 24, 2024

Agreed.

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

Current progress. preparing a PR so cloudstack xen stemcell is generated with other stemcells

Inspired from softlayer PR to generate stemcell
=> commit on bosh-orange to generate cloudstack-xen orange-cloudfoundry/bosh@fd3d5a6

generation OK see
http://84.39.33.56:8080/pipelines/cloudstack-stemcell/jobs/build-ubuntu-trusty/builds/21

stemcell upload to bosh ok, template registration in cloudstack is KO :
Failed post download script: vhd check of /mnt/SecStorage/d9b0e175-26da-36ce-afe7-911c38b1e27f/template/tmpl/6/260/dnld6935681358325791994tmp_.tmp failed

=> should fix qemu vhd generation for cloudstack xen (difference with hyperV vhd)

from bosh-cloudstack-cpi-release.

dpassante avatar dpassante commented on September 24, 2024

Hello,

Vhd-util semble être le seul moyen de générer un vhd valide pour XenServer et la version officielle ne semble pas compiler sur un environnement non-xenserver.
Il existe une version patchée ici : https://github.com/rubiojr/vhd-util-convert qui permet la conversion au format VHD.

Si l’image est au format qcow :
qemu-img convert -O raw root.qcow root.img

Pour la convertir en vhd:
vhd-util convert -i root.img -s0 -t1 -o 0.vhd
vhd-util convert -i root.img -s1 -t2 -i 0.vhd -o bosh-stemcell-3147-cloudstack-xen-ubuntu-trusty-go_agent.vhd

Verification:
$ vhd-util check -n bosh-stemcell-3147-cloudstack-xen-ubuntu-trusty-go_agent.vhd
bosh-stemcell-3147-cloudstack-xen-ubuntu-trusty-go_agent.vhd is valid

Il existe aussi un problème avec la date inscrite dans le vhd qui peut être vue comme future par CloudStack (pb timezone). Contournable avec faketime.
sudo apt-get install faketime (ou à compiler depuis les sources dispo sur github)
faketime -f "-12h" vhd-util…

Bon Week end

A+
David

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

stemcell build now uses vhd-util. The resulting vhd template is zipped (bzip), no tar accepted by cloudstack.
http://84.39.33.56:8080/pipelines/cloudstack-stemcell/jobs/build-ubuntu-trusty/builds/34
The template registering in cloudstack is now ok.
Still vr_metadata iptable patch is ko

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

vr_metadata fixed, by moving it to /etc/network/if-up.d (/var/lib/dhcp lease file not yet available from dhcp hook ?). Stemcell ok with micro-bosh

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

stemcell 3165 tested successfully on cloudfoundry and diego deployments
https://s3.amazonaws.com/orange-cloudstack-xen-stemcell/bosh-stemcell-3165-cloudstack-xen-ubuntu-trusty-go_agent.tgz

generation pipeline
http://84.39.33.56:8080/pipelines/cloudstack-stemcell

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

stemcell 3173 tested successfully

Following up with a bosh PR

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

align with bosh 255 pipeline
https://concourse.cw-lz-api.elpaaso.net/pipelines/cloudstack-stemcell
downloadable 3195 stemcell
https://s3.amazonaws.com/orange-candidate-cloudstack-xen-stemcell/bosh-stemcell/cloudstack/bosh-stemcell-3215-cloudstack-xen-ubuntu-trusty-go_agent.tgz

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

vagrant manual build for 3262.3, including xen tools 6.5
https://orange-candidate-cloudstack-xen-stemcell.s3.amazonaws.com/bosh-stemcell/cloudstack/bosh-stemcell-3262.3-cloudstack-xen-ubuntu-trusty-go_agent.tgz
tested ok with bosh 257.x + cloudstack 4.7 + xen 6.5

NB: from 3262.3 stemcell, the password authentication is DISABLED => must use bosh ssh, direct ssh requires the private key configured in cloudstack /cpi see #14, http://bosh.io/jobs/cloudstack_cpi?source=github.com/cloudfoundry-community/bosh-cloudstack-cpi-release&version=12#p=cloudstack.private_key

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

docker manual build for 3262.5 xen tools 6.5, with vhd dynamic format (see #22)
http://orange-candidate-cloudstack-xen-stemcell.s3.amazonaws.com/bosh-stemcell/cloudstack/bosh-stemcell-3262.5-cloudstack-xen-ubuntu-trusty-go_agent.tgz

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

docker manual build for 3262.9 xentools 6.5 including fix for #38 (garden issue with xentools)

http://orange-candidate-cloudstack-xen-stemcell.s3.amazonaws.com/bosh-stemcell/cloudstack/bosh-stemcell-3262.9-cloudstack-xen-ubuntu-trusty-go_agent.tgz

rebased on https://github.com/cloudfoundry/bosh/releases/tag/stable-3262.9

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

docker manual build for latest stemcell

https://orange-candidate-cloudstack-xen-stemcell.s3.amazonaws.com/bosh-stemcell/cloudstack/bosh-stemcell-3262.22-cloudstack-xen-ubuntu-trusty-go_agent.tgz
rebased on https://github.com/cloudfoundry/bosh/releases/tag/stable-3262.21

https://orange-candidate-cloudstack-xen-stemcell.s3.amazonaws.com/bosh-stemcell/cloudstack/bosh-stemcell-3263.10-cloudstack-xen-ubuntu-trusty-go_agent.tgz

kernel 4.4, rebased on https://github.com/cloudfoundry/bosh/releases/tag/stable-3263.10

from bosh-cloudstack-cpi-release.

lcacciagioni avatar lcacciagioni commented on September 24, 2024

where can I put all the likes!!! Thanks guys for the awesome work!!!

from bosh-cloudstack-cpi-release.

poblin-orange avatar poblin-orange commented on September 24, 2024

@lcacciagioni thks. Would love to hear from you if you used the cpi (feedbacks / usage context / improvment suggestions).

from bosh-cloudstack-cpi-release.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.