Closed filidav closed 6 years ago
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.
The labels on this github issue will be updated when the story is started.
Hey @filidav I had a quick look at this. You are correct that the pivnet resource generates the metadata file. What is happening is since you aren't using the pivnet resource in your pipelines, this task.sh fails.
The upshot for PCF pipelines is that the method being used now ONLY works if the customer is getting their artifacts directly from pivnet. If they are using S3/artifactory/nexus/other they can't use use this task.
cc: @christianang
Thanks Ian
I guess the artifactory job is used as an input to this task and that is why it is failing?
I guess my only option is to go direct to pivnet and hardcode the version I want in the Param file. What version did this change? I was thinking of trying v15 of the pipelines with Artifactory .
David Filippelli
On Sep 22, 2017, at 5:16 PM, Ian Zink notifications@github.com<mailto:notifications@github.com> wrote:
Hey @filidavhttps://github.com/filidav I had a quick look at this. You are correct that the pivnet resource generates the metadata file. What is happening is since you aren't using the pivnet resource in your pipelines, this task.sh fails.
The upshot for PCF pipelines is that the method being used now ONLY works if the customer is getting their artifacts directly from pivnet. If they are using S3/artifactory/nexus/other they can't use use this task. cc: @christiananghttps://github.com/christianang
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/pivotal-cf/pcf-pipelines/issues/192#issuecomment-331562585, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWJsOgjIbstYHRXkt0NfSVNs1EyFe5cEks5slCObgaJpZM4PhLvp.
STATEMENT OF CONFIDENTIALITY The information contained in this email message and any attachments may be confidential and legally privileged and is intended for the use of the addressee(s) only. If you are not an intended recipient, please: (1) notify me immediately by replying to this message; (2) do not use, disseminate, distribute or reproduce any part of the message or any attachment; and (3) destroy all copies of this message and any attachments.
I see. Not sure which version this changed in, but it does sound like we need to reevaluate how we get the version to support non-pivnet repositories.
@christianang @filidav My recommendation would be that when you populate Artifactory from pivnet, you also push the metadata.json file. Then also get that file on the downstream task. It contains the tile dependency information like stemcell versions. It might require an extra small bash task to move the file to appropriate directory.
Hi @filidav, just circling back to see if you were able to follow @svrc-pivotal's suggestion to make this work?
Yes we got it to work.
David Filippelli
On Oct 10, 2017, at 8:38 PM, abbyachau notifications@github.com<mailto:notifications@github.com> wrote:
Hi @filidavhttps://github.com/filidav, just circling back to see if you were able to follow @svrc-pivotalhttps://github.com/svrc-pivotal's suggestion to make this work?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/pivotal-cf/pcf-pipelines/issues/192#issuecomment-335647516, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWJsOhBuP1m_FnOFvlS0juTQGSJ4U8QTks5srA4EgaJpZM4PhLvp.
STATEMENT OF CONFIDENTIALITY The information contained in this email message and any attachments may be confidential and legally privileged and is intended for the use of the addressee(s) only. If you are not an intended recipient, please: (1) notify me immediately by replying to this message; (2) do not use, disseminate, distribute or reproduce any part of the message or any attachment; and (3) destroy all copies of this message and any attachments.
Hi @filidav thanks for letting us know, much appreciated. @svrc-pivotal if you don't mind, we've added your recommendation to the Troubleshooting section on each of our install-pcf README pages.
@z4ce thanks for your help on this one. We don't plan on prioritising this issue because there appears to be a reasonable workaround. If you think otherwise, or if we hear there is a need from the field, we can review.
Closing this issue out as it is resolved but please do not hesitate to ping us/create a new issue if you have any feedback. Thanks!
@filidav wasn't the workaround you used to actually use the older code that inspected the download? Or are you actually pushing the metadata.json
into artifactory?
Pushing the metadata,json and then getting it.
In upgrade ERT pipeline
task: version-metadata file: pcf-pipelines/tasks/version-metadata/task.yml
put: elastic-runtime-metadata-artifactory params: { file: "./pivnet-product-meta/metadata-*.json" }
name: upload-ert serial: true plan:
aggregate:
get: pcf-pipelines
get: pivnet-product params: globs:
platform: linux
image_resource: type: docker-image source: {repository: czero/cflinuxfs2}
inputs:
params:
run:
macC02T61C9H03Q:upgrade-ert filidav$ cat ../tasks/version-metadata/task.sh
set -eux
#
#
#
function main() {
local cwd cwd="${1}"
cp ${cwd}/pivnet-product/metadata.json ${cwd}/pivnet-product-meta/metadata-$(date '+%s').json } main "${PWD}"
David Filippelli | Platform Engineer, Provisioning + Pipelines, Global Solutions Delivery 250 Bloor Street East | Toronto, Ontario, M4W 1E5 | M. 416-527-3343 David_Filippelli@manulife.commailto:David_Filippelli@manulife.com | manulife.comhttp://www.manulife.com/
Have a question? Want to know how we deliver? Check out our Playbookhttps://mfc.sharepoint.com/sites/GEO/playbook and be a part of the community!
[cid:image001.png@01D34294.DEFD94B0]
From: Ian Zink notifications@github.com Reply-To: pivotal-cf/pcf-pipelines reply@reply.github.com Date: Wednesday, October 11, 2017 at 1:13 PM To: pivotal-cf/pcf-pipelines pcf-pipelines@noreply.github.com Cc: David Filippelli David_Filippelli@manulife.com, Mention mention@noreply.github.com Subject: Re: [pivotal-cf/pcf-pipelines] Using pcf pipelines v0.16 to deploy pcf (#192)
@filidavhttps://github.com/filidav wasn't the workaround you used to actually use the older code that inspected the download? Or are you actually pushing the metadata.json into artifactory?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/pivotal-cf/pcf-pipelines/issues/192#issuecomment-335881407, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWJsOiT-dr3lxL3dcQ8ykVvVs5z7k5GWks5srPdAgaJpZM4PhLvp.
STATEMENT OF CONFIDENTIALITY The information contained in this email message and any attachments may be confidential and legally privileged and is intended for the use of the addressee(s) only. If you are not an intended recipient, please: (1) notify me immediately by replying to this message; (2) do not use, disseminate, distribute or reproduce any part of the message or any attachment; and (3) destroy all copies of this message and any attachments.
@z4ce we're actually pushing metadata.json into artifactory in this case, to stay current
Thanks, follow up story to this issue is here: https://www.pivotaltracker.com/story/show/151900831.
https://network.pivotal.io/products/pcf-automation does not exist
Job upload and stage ert fails.
Error pcf-pipelines/tasks/stage-product/task.sh: line 19: ./pivnet-product/metadata.json: No such file or directory
Is this file part of the pivnet resource? I noticed the resource this job is using is: source: repository: czero/cflinuxfs2
I deployed a simple pipeline with
And this file exists.
Is there an error in this version?