Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Policy update Status and StatusString in conflict. #931

Closed
foot opened this issue Feb 5, 2018 · 3 comments
Closed

Policy update Status and StatusString in conflict. #931

foot opened this issue Feb 5, 2018 · 3 comments
Assignees
Labels

Comments

@foot
Copy link

foot commented Feb 5, 2018

When updating policy on a resource not in the config repo:

{
  "Result": {
    "spec": {
      "type": "policy",
      "cause": {
        "Message": "",
        "User": "simon <simon@weave.works>"
      },
      "spec": {
        "default:deployment/nginx": {
          "add": {
            "automated": "true"
          },
          "remove": null
        }
      }
    },
    "result": {
      "default:deployment/nginx": {
        "Status": "failed",
        "Error": "no resource file found for service",
        "PerContainer": null
      }
    }
  },
  "Err": "",
  "StatusString": "succeeded"
}
@squaremo
Copy link
Member

squaremo commented Feb 7, 2018

Mm. Yes we could do a better job at that. The trickiness in general is that updates are often making changes to a number of resources, and some kinds of individual failure are tolerable; e.g., if it turns out one of the resources already has the policy being applied. (OK we don't currently do bulk policy updates, but you get what I mean.)

Having said that, this particular failure should not be tolerated, since it means the policy didn't stick and won't apply. It's difficult to see that as a success.

@squaremo squaremo added the bug label Feb 7, 2018
@kingdonb kingdonb self-assigned this Apr 6, 2021
@kingdonb
Copy link
Member

Sort of related: #3156

General category of error: status information being kept incorrectly

@kingdonb
Copy link
Member

At this time, we hope you have already begun migration away from Flux v1 / legacy over to the current version of Flux.

We hope you've been able to upgrade to Flux v2, and note that Flux v1 remains in maintenance mode. Bugs with Flux v1 can be addressed as long as it remains in maintenance, according to the plan laid out in the Flux Migration Timetable. 👍

Thanks for using Flux.

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

No branches or pull requests

3 participants