Comments (19)
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.
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.
@Chirad does the solution you propose imply custom cloudstack system vm, or can be activated with cloudstack properties ?
from bosh-cloudstack-cpi-release.
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.
probably we should add this step to the cloudstack stemcell, to avoid iaas specific configuration.
from bosh-cloudstack-cpi-release.
Agreed.
from bosh-cloudstack-cpi-release.
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.
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.
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.
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.
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.
stemcell 3173 tested successfully
Following up with a bosh PR
from bosh-cloudstack-cpi-release.
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.
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.
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.
docker manual build for 3262.9 xentools 6.5 including fix for #38 (garden issue with xentools)
rebased on https://github.com/cloudfoundry/bosh/releases/tag/stable-3262.9
from bosh-cloudstack-cpi-release.
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
kernel 4.4, rebased on https://github.com/cloudfoundry/bosh/releases/tag/stable-3263.10
from bosh-cloudstack-cpi-release.
where can I put all the likes!!! Thanks guys for the awesome work!!!
from bosh-cloudstack-cpi-release.
@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)
- hvm: PV drivers were not detected. HOT 1
- Annoting disk methods with HystrixCommand for dashboarding HOT 1
- Support cloudstack security group affectation
- create vm env properties not propagated by CPI
- Create assert rule to validate cpi.registry.user and cpi.core.user values HOT 1
- Registry content limit is too low HOT 1
- Persist registry in bosh pg db to benefit from bosh backups
- Leverage jclouds 2.0
- bosh-init should be easier HOT 3
- Enhancement: Create VM with more than 1 NIC HOT 1
- Test and document bosh cli v2 create-env (replaces bosh-init deploy CLI command)
- Add info endpoint for bosh 262 HOT 3
- Need to update findZoneId() in CacheableCloudstackConnector to deal with multiplte zones HOT 4
- registry mismatch when using vip networking
- add support for disk resize. bosh >=263
- optional s3 backend for cloustack template registration
- Add metadata when calling RegisterTemplate to upload stemcell
- liquibase locks prevent cpi-core startup
- Unability to use bosh create-env with cpi
- CPI does not support bosh cpi v2 and will break when the registry is removed HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bosh-cloudstack-cpi-release.