Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply-changes fails for new products with errand config option #547

Open
kreutziger opened this issue Jun 4, 2021 · 5 comments
Open

Apply-changes fails for new products with errand config option #547

kreutziger opened this issue Jun 4, 2021 · 5 comments

Comments

@kreutziger
Copy link

Hello,

when trying to deploy a new product to an OpsManager with an errand file, I get the following error:

$ om --env opsman.env.yml apply-changes --product-name p-rabbitmq --config errands.yml   

attempting to apply changes to the targeted Ops Manager
skipping errand configuration for 'cf' since it was not provided as a productName flag
skipping errand configuration for 'p-isolation-segment-alpha' since it was not provided as a productName flag
skipping errand configuration for 'p-isolation-segment-beta' since it was not provided as a productName flag
2021/06/04 11:22:40 installation failed to trigger: request failed: unexpected response from /api/v0/installations:
HTTP/1.1 422 Unprocessable Entity
[...]

8d
{"errors":["The product with guid \"p-rabbitmq-0c1565f5abd07993dba0\" cannot be found in deployed products. Has the product been deployed?"]}

If I do the same apply-changes without the errand file, the apply changes goes through:

$ om --env opsman.env.yml apply-changes --product-name p-rabbitmq   
attempting to apply changes to the targeted Ops Manager
{"type":"step_started","id":"bosh_product.deploying","description":"Installing BOSH"}
===== 2021-06-04 09:22:59 UTC Running "/usr/local/bin/bosh --no-color --non-interactive --tty create-env /var/tempest/workspaces/default/deployments/bosh.yml"
Deployment manifest: '/var/tempest/workspaces/default/deployments/bosh.yml'
Deployment state: '/var/tempest/workspaces/default/deployments/bosh-state.json'
[...]

Is that behaviour expected?

@cf-gitbot
Copy link
Member

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.

@jaristiz
Copy link
Contributor

jaristiz commented Sep 8, 2021

Hi @kreutziger,

Do we have more information about this issue that may help us debug it? Or can you provide more context?

@jaristiz
Copy link
Contributor

As there was no more information on the issue I will close it, feel free to reopen it if any new information is gathered.

@markstokan
Copy link
Contributor

A second customer has reported this same issue.

Specifically, the errands.yml that is being passed to om apply-changes --config contains a pre-delete errand for a new Tile that has not been deployed yet.

The error message originates in the Ops Manager code, which refuses to allow pre-delete errands to be configured during apply-changes on tiles that have not been deployed.

@markstokan markstokan reopened this Mar 25, 2022
@cf-gitbot
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants