Giter Site home page Giter Site logo

Comments (3)

poblin-orange avatar poblin-orange commented on May 25, 2024

as a workaround, for bosh-releases dependency, you could define a dedicated alias in deployment-dependency, which can define a specific version in xxx-depls-versions

deployment-dependencies.yml

---
deployment:
  ntp:
    stemcells:
      bosh-openstack-kvm-ubuntu-trusty-go_agent:
    releases:
      ntpv10_boshrelease:
        base_location: https://bosh.io/d/github.com/
        repository: cloudfoundry-community/ntp-release

xxx-depls-versions.yml

ntp_boshrelease-version: 4
ntpv10_boshrelease-version: 10

from cf-ops-automation.

gberche-orange avatar gberche-orange commented on May 25, 2024

Met the issue with the snyk deployment in master-depls which is requiring a pinned version of the xenial stemcell (version 60 w.r.t. latest which is 81)

We considered a workaround using ops file to modify the manifest. However, the concourse resource used by COA first interpolates manifest using the bosh director api call, and then modify the resulting manifest.

See https://github.com/cloudfoundry/bosh-deployment-resource#parameters-1

stemcells: Optional. An array of globs that should point to where the stemcells used in the deployment can be found. Stemcell entries in the manifest with version 'latest' will be updated to the actual provided stemcell versions.

See
https://github.com/cloudfoundry/bosh-deployment-resource/blob/master/out/out_command.go#L83-L86 and
https://github.com/cloudfoundry/bosh-deployment-resource/blob/9c70a78277a6681e728b12de265fe9400382eb0a/bosh/deployment_manifest.go#L42

We then tried to declare additional stemcells in the manifest file which do not specify the latest version and should be ignored by the concourse resource

stemcells:
- alias: default
  os: ubuntu-trusty
  version: latest
- alias: xenial
  os: ubuntu-xenial
  version: 60

The xenial stemcell would be uploaded using the deploy.sh script using bosh upload-stemcell specifying sha1

from cf-ops-automation.

gberche-orange avatar gberche-orange commented on May 25, 2024

Moving back to be reviewed following version conflicts experienced in COAB:

  • among dedicated service instances that may require different version of a given bosh release (e.g. cf-mysql-release)
  • among bosh releases shared by multiple bosh releases, with incompatible versions (e.g. cf-routing-release or haproxy-release

from cf-ops-automation.

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.