Skip to content

Concurrent modification error when creating a Service #6837

Closed

Description

@rhuss

What version of Knative?

0.12.0

Expected Behavior

We would expect that the creation of a Service works without error

Actual Behavior

Sometimes (not always), when creating a very simple service like with kn service create hello --image gcr.io/knative-samples/helloworld-go we end up with the following events for the created Knative Service:

Events:
  Type     Reason         Age                From                Message
  ----     ------         ----               ----                -------
  Normal   Created        10m                service-controller  Created Configuration "hello"
  Normal   Created        10m                service-controller  Created Route "hello"
  Normal   Updated        10m (x3 over 10m)  service-controller  Updated Service "hello"
  Warning  InternalError  10m                service-controller  failed to reconcile Configuration: Operation cannot be fulfilled on configurations.serving.knative.dev "hello": the object has been modified; please apply your changes to the latest version and try again 

This ends up in the following service conditions:

 status:
  conditions:
  - lastTransitionTime: "2020-02-12T11:17:47Z"
    status: Unknown
    type: ConfigurationsReady
  - lastTransitionTime: "2020-02-12T11:17:48Z"
    message: Revision "hello-hnzcf-1" referenced in traffic not found.
    reason: RevisionMissing
    status: "False"
    type: Ready
  - lastTransitionTime: "2020-02-12T11:17:48Z"
    message: Revision "hello-hnzcf-1" referenced in traffic not found.
    reason: RevisionMissing
    status: "False"
    type: RoutesReady 

It looks like that an (internal) update of the Configuration clashes with the Configuration's reconciliation. I don't know though, why the Configuration (or service) needs to be updated.

We are using BYO revision name, so that might be the cause of this extra Service / Configuration update causing the collision.

See this client E2E log for a more complete dump of the situation.

Steps to Reproduce the Problem

It's flaky, but just try kn service create hello --image gcr.io/knative-samples/helloworld-go and in some case you get that behaviour (kn uses BYO revision names by default)

Activity

  1. added
    kind/bug
    on Feb 13, 2020
  2. added
    area/API
    on Feb 13, 2020
  3. navidshaikh commented on Feb 14, 2020

    @navidshaikh

    Seeing following event as well with same error Message: Revision "hello-nxvfy-1" referenced in traffic not found.

    Events:
      Type     Reason         Age              From                Message
      ----     ------         ----             ----                -------
      Warning  InternalError  5s (x8 over 5s)  service-controller  service: "hello" does not own configuration: "hello
    

    client E2E logs

  4. added this to the Serving 0.14.x milestone on Mar 4, 2020
  5. modified the milestones: Serving 0.16.x, 0.17.x on Jul 8, 2020
  6. modified the milestones: 0.17.x, 0.18.x on Aug 31, 2020
  7. markusthoemmes commented on Sep 2, 2020

    @markusthoemmes
    Contributor

    This has been forwarded since 0.14. @rhuss @navidshaikh are you still seeing this?

  8. navidshaikh commented on Sep 2, 2020

    @navidshaikh

    @markusthoemmes : nope, didnt see this lately.

  9. rhuss commented on Sep 2, 2020

    @rhuss
    ContributorAuthor

    Me neither. I think we are good to close this and create a new issue in case this should come back.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/APIkind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions