Skip to content

daemon: unable to rotate token error #358

Closed

Description

@yuqi-zhang

After the daemon has been running for ~5 minutes, it starts to spam:

E0131 21:27:01.343248 29281 token_source.go:132] Unable to rotate token: failed to read token file "/var/run/secrets/kubernetes.io/serviceaccount/token": open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory

repeatedly in the daemon logs. It does not seem to otherwise affect daemon behaviour.

Activity

  1. yuqi-zhang commented on Jan 31, 2019

    @yuqi-zhang
    ContributorAuthor

    I suspect it might have occurred due to the vendor bump? 43c0b09

  2. ashcrow commented on Jan 31, 2019

    @ashcrow
    Member
  3. ashcrow commented on Jan 31, 2019

    @ashcrow
    Member

    /kind bug

  4. added
    kind/bug
    on Jan 31, 2019
  5. abhinavdahiya commented on Jan 31, 2019

    @abhinavdahiya
    Contributor

    Is this happening only for daemon? And all other pods, operator, controller, server are working?

  6. yuqi-zhang commented on Jan 31, 2019

    @yuqi-zhang
    ContributorAuthor

    Operater/controller/server seem to be fine. Although I specifically rebuilt the daemon from the master branch myself.

  7. abhinavdahiya commented on Jan 31, 2019

    @abhinavdahiya
    Contributor

    It might have to do with chroot after client has been created here

  8. abhinavdahiya commented on Jan 31, 2019

    @abhinavdahiya
    Contributor

    daemon needs to be able to rotate its credentials.

  9. yuqi-zhang commented on Jan 31, 2019

    @yuqi-zhang
    ContributorAuthor

    If that's the case I'm surprised we haven't seen this earlier, unless token rotation is relatively new?

    I can check whether this happens with a fresh cluster from master of the installer to make sure whether changing image and rebooting does something wonky.

  10. ashcrow commented on Jan 31, 2019

    @ashcrow
    Member

    If that's the case I'm surprised we haven't seen this earlier, unless token rotation is relatively new?

    Agreed. No, it's not new. However, most people are running clusters for testing and e2e and may not be long lived enough to rotate. Not sure.

  11. kikisdeliveryservice commented on Feb 1, 2019

    @kikisdeliveryservice
    Contributor

    @ashcrow how long lived would we be looking for?

  12. ashcrow commented on Feb 1, 2019

    @ashcrow
    Member

    I don't know how often the rotation occurs by default unfortunately.

  13. cgwalters commented on Feb 1, 2019

    @cgwalters
    Member

    Yeah we should probably back off the chroot into the host rootfs...though that is going to require some nontrivial reworking in the code.

  14. kikisdeliveryservice commented on Feb 1, 2019

    @kikisdeliveryservice
    Contributor

    Someone else also saw this in a new cluster from today (logs are in the link above).

  15. derekwaynecarr commented on Feb 2, 2019

    @derekwaynecarr
    Member

    i hit this on a cluster < 1hr. i discovered it when i appeared to have a master show "degraded" state while trying to apply a new update payload, and not sure what to do to debug further. fwiw, i see the token is in pod.

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

    kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions