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

Deployment manager UPDATE error #695

Open
abhi-tomar opened this issue Sep 19, 2023 · 0 comments
Open

Deployment manager UPDATE error #695

abhi-tomar opened this issue Sep 19, 2023 · 0 comments

Comments

@abhi-tomar
Copy link

Hi

I have created a template to create a security policy in Cloud Armor using the deployment manager. But when i tried to update my existing template and run these command getting these error -

gcloud deployment-manager deployments update sre-cloud-armor-deployment --config=cloud_armor_policy.yaml

The fingerprint of the deployment is b'RJFQy4rbDhAbI_hdXS7fig=='
Waiting for update [operation-1695133398408-605b7000f1b5f-79eaa395-587b134f]...failed.
ERROR: (gcloud.deployment-manager.deployments.update) Error in Operation [operation-1695133398408-605b7000f1b5f-79eaa395-587b134f]: errors:

  • code: RESOURCE_ERROR
    location: /deployments/sre-cloud-armor-deployment/resources/community-dev-cloud-armor-policy
    message: "{"ResourceType":"gcp-types/compute-v1:securityPolicies","ResourceErrorCode"
    :"400","ResourceErrorMessage":{"code":400,"errors":[{"domain":"global"
    ,"message":"Invalid value for field 'resource.priority': '10'. Cannot have
    \ rules with the same priorities.","reason":"invalid"}],"message":"Invalid
    \ value for field 'resource.priority': '10'. Cannot have rules with the same priorities."
    ,"statusMessage":"Bad Request","requestPath":"https://compute.googleapis.com/compute/v1/projects/community-dev-519/global/securityPolicies/lia-alb-waf-p-pod-01/addRule\"\
    ,"httpMethod":"POST"}}"

    Does the deployment manager not provide a feature to update existing template resources? If not please provide any alternate solution we can automate here

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

No branches or pull requests

1 participant