cannot replace the default buildpacks. Is it expected?


iamflying
 

Hi all,

We tried to update the default buildpacks with a new version. However,
after restarting cf, the old version comes back. (See below) It seems all
the default buildpacks will be ensured to be installed with the default
version in the releases. Is this an expected behavior?

Default buildpacks (cf 212)
buildpack position enabled locked filename
java_buildpack 1 true false java-buildpack-v3.0.zip
ruby_buildpack 2 true false
ruby_buildpack-cached-v1.4.2.zip
nodejs_buildpack 3 true false
nodejs_buildpack-cached-v1.3.4.zip
go_buildpack 4 true false
go_buildpack-cached-v1.3.1.zip
python_buildpack 5 true false
python_buildpack-cached-v1.3.5.zip
php_buildpack 6 true false
php_buildpack-cached-v3.2.2.zip

Updated php_buildpack:
buildpack position enabled locked filename
java_buildpack 1 true false java-buildpack-v3.0.zip
ruby_buildpack 2 true false
ruby_buildpack-cached-v1.4.2.zip
nodejs_buildpack 3 true false
nodejs_buildpack-cached-v1.3.4.zip
go_buildpack 4 true false
go_buildpack-cached-v1.3.1.zip
python_buildpack 5 true false
python_buildpack-cached-v1.3.5.zip
php_buildpack 6 true false
php_buildpack-cached-v4.0.0.zip

However, after restarting all cf VMs, I got default php_buildpack
(php_buildpack-cached-v3.2.2.zip), not the updated version
(php_buildpack-cached-v4.0.0.zip)
buildpack position enabled locked filename
java_buildpack 1 true false java-buildpack-v3.0.zip
ruby_buildpack 2 true false
ruby_buildpack-cached-v1.4.2.zip
nodejs_buildpack 3 true false
nodejs_buildpack-cached-v1.3.4.zip
go_buildpack 4 true false
go_buildpack-cached-v1.3.1.zip
python_buildpack 5 true false
python_buildpack-cached-v1.3.5.zip
php_buildpack 6 true false
php_buildpack-cached-v3.2.2.zip


I checked the cloud_controller_ng.log. From the log, all the default
buildpacks (defined in manifest) were installed every time when cf is
restarted,

{"timestamp":1440476666.1351752,"message":"Installing buildpack
java_buildpack","log_level":"info","source":"cc.background","data":{},"thread_id":70279906579220,"fiber_id":70279930973800,"process_id":1990,"file":"/var/vcap/data/packages/cloud_controller_ng/5d255d62301e734cfabb032a882d67f172318971.1-80d3ab4a46e7622a789a3ebc915713a0714ea06a/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":15,"method":"perform"}
{"timestamp":1440476667.8460865,"message":"Installing buildpack
ruby_buildpack","log_level":"info","source":"cc.background","data":{},"thread_id":70279906579220,"fiber_id":70279930973800,"process_id":1990,"file":"/var/vcap/data/packages/cloud_controller_ng/5d255d62301e734cfabb032a882d67f172318971.1-80d3ab4a46e7622a789a3ebc915713a0714ea06a/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":15,"method":"perform"}
{"timestamp":1440476670.4481,"message":"Installing buildpack
nodejs_buildpack","log_level":"info","source":"cc.background","data":{},"thread_id":70155356951340,"fiber_id":70155381353720,"process_id":1949,"file":"/var/vcap/data/packages/cloud_controller_ng/5d255d62301e734cfabb032a882d67f172318971.1-80d3ab4a46e7622a789a3ebc915713a0714ea06a/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":15,"method":"perform"}
{"timestamp":1440476675.2146842,"message":"Installing buildpack
go_buildpack","log_level":"info","source":"cc.background","data":{},"thread_id":70155356951340,"fiber_id":70155381353720,"process_id":1949,"file":"/var/vcap/data/packages/cloud_controller_ng/5d255d62301e734cfabb032a882d67f172318971.1-80d3ab4a46e7622a789a3ebc915713a0714ea06a/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":15,"method":"perform"}
{"timestamp":1440476688.722021,"message":"Installing buildpack
python_buildpack","log_level":"info","source":"cc.background","data":{},"thread_id":70279906579220,"fiber_id":70279930973800,"process_id":1990,"file":"/var/vcap/data/packages/cloud_controller_ng/5d255d62301e734cfabb032a882d67f172318971.1-80d3ab4a46e7622a789a3ebc915713a0714ea06a/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":15,"method":"perform"}
{"timestamp":1440476696.635555,"message":"Installing buildpack
php_buildpack","log_level":"info","source":"cc.background","data":{},"thread_id":70155356951340,"fiber_id":70155381353720,"process_id":1949,"file":"/var/vcap/data/packages/cloud_controller_ng/5d255d62301e734cfabb032a882d67f172318971.1-80d3ab4a46e7622a789a3ebc915713a0714ea06a/cloud_controller_ng/app/jobs/runtime/buildpack_installer.rb","lineno":15,"method":"perform"}

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