You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node-bootstrapper service account does not exist #15869
Verify node-bootstrapper service account does not exist
Current Result
No exist!
Expected Result
Exists
Additional Information
This was working with 3.6.171. Something probably regressed a patch or something. Please put it back so I can test scale group configurations with node bootstrapping!
We'll need that service account and role (or a close equivalent back). Our current plan is for the automation to grab that kubeconfig and place it into launch config, and then periodically refresh the launch config every X hours by creating a new service account token.
Then once approved I don't see the Issued on the condition. Is this something that has changed or was regressed from 3.6.171? I had written up a module that takes a list of node names and matches them to the incoming csr names that included the node.
NAME AGE REQUESTOR CONDITION
node-csr-Wq35fUiyWTh8CRPMUVdqqFVr2ocKfto24vRRJcyrFYc 9m system:serviceaccount:openshift-infra:node-bootstrapper Approved
I never see the node request its next certificate. Probably because it wasn't issued.
They used to look like this:
node-bootstrapper-client-ip-172-31-51-246-ec2-internal
node-bootstrapper-server-ip-172-31-51-246-ec2-internal
Bootstrapping is core to the platform. It is not something Ansible should
be creating, because it is the root of everything for node permission.
Less should be in Ansible, not more (in many cases) especially for config
that is identical across all clusters.
It looks like default CSR values were broken, but I need to look.
On Aug 19, 2017, at 12:23 AM, Kenny Woodson <[email protected]> wrote:
With the latest 3.7.0-0.27 build that I'm using I am receiving node csr's
that look like this:
node-csr-Wq35fUiyWTh8CRPMUVdqqFVr2ocKfto24vRRJcyrFYc
Then once approved I don't see the Issued on the condition. Is this
something that has changed or was regressed from 3.6.171? I had written up
a module <openshift/openshift-ansible#5112> that
takes a list of node names and matches them to the incoming csr names that
included the node.
NAME AGE REQUESTOR CONDITION
node-csr-Wq35fUiyWTh8CRPMUVdqqFVr2ocKfto24vRRJcyrFYc 9m
system:serviceaccount:openshift-infra:node-bootstrapper Approved
I never see the node request its next certificate. Probably because it
wasn't issued.
They used to look like this:
node-bootstrapper-client-ip-172-31-51-246-ec2-internal
node-bootstrapper-server-ip-172-31-51-246-ec2-internal
I updated my provisioning
https://github.com/openshift/openshift-ansible/pull/5011/files to create
the bootstrap service account, grant the permissions, create the kubeconfig
for node-bootstrapper, and then write it to disk.
If the account changes or gets updated we'll need to update the code in
that PR.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#15869 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABG_pzVAZvKDYy_Hq8ViCyWmwwzlhwSTks5sZmMtgaJpZM4O8GW3>
.
@simo5 and I looked into the code. We cannot simple revert the commit because the old code gone for good and has been replaced with RBAC rules. It also shouldn't be necessary to create system:node-bootstrapper in OpenShift any more. Upstream k8s code does it for us in rbac/bootstrappolicy/policy.go:
ObjectMeta: metav1.ObjectMeta{Name: "system:node-bootstrapper"},
Rules: []rbac.PolicyRule{
// used to create a certificatesigningrequest for a node-specific client certificate, and watch for it to be signed
rbac.NewRule("create", "get", "list", "watch").Groups(certificatesGroup).Resources("certificatesigningrequests").RuleOrDie(),
},
The rule looks exactly the same as the old rule that was removed in 181f498. Do we only have to create the node-bootstrapper SA and we are good again?
Activity
smarterclayton commentedon Aug 18, 2017
Was removed in 181f498 which has @deads2k name on it.
smarterclayton commentedon Aug 18, 2017
We'll need that service account and role (or a close equivalent back). Our current plan is for the automation to grab that kubeconfig and place it into launch config, and then periodically refresh the launch config every X hours by creating a new service account token.
enj commentedon Aug 19, 2017
Why does it have to be a bootstrap role? Can't you just make whatever role and bindings you need with ansible?
kwoodson commentedon Aug 19, 2017
With the latest 3.7.0-0.27 build that I'm using I am receiving node csr's that look like this:
node-csr-Wq35fUiyWTh8CRPMUVdqqFVr2ocKfto24vRRJcyrFYc
Then once approved I don't see the Issued on the condition. Is this something that has changed or was regressed from 3.6.171? I had written up a module that takes a list of node names and matches them to the incoming csr names that included the node.
NAME AGE REQUESTOR CONDITION
node-csr-Wq35fUiyWTh8CRPMUVdqqFVr2ocKfto24vRRJcyrFYc 9m system:serviceaccount:openshift-infra:node-bootstrapper Approved
I never see the node request its next certificate. Probably because it wasn't issued.
They used to look like this:
node-bootstrapper-client-ip-172-31-51-246-ec2-internal
node-bootstrapper-server-ip-172-31-51-246-ec2-internal
I updated my provisioning https://github.com/openshift/openshift-ansible/pull/5011/files to create the bootstrap service account, grant the permissions, create the kubeconfig for node-bootstrapper, and then write it to disk.
If the account changes or gets updated we'll need to update the code in that PR.
smarterclayton commentedon Aug 19, 2017
enj commentedon Aug 19, 2017
Sounds reasonable.
@openshift/sig-security
@tiran I believe you were tasked with understanding this area.
smarterclayton commentedon Aug 21, 2017
tiran commentedon Aug 21, 2017
@smarterclayton
@simo5 and I looked into the code. We cannot simple revert the commit because the old code gone for good and has been replaced with RBAC rules. It also shouldn't be necessary to create
system:node-bootstrapperin OpenShift any more. Upstream k8s code does it for us inrbac/bootstrappolicy/policy.go:https://github.com/openshift/origin/blob/master/vendor/k8s.io/kubernetes/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go#L275-L280
The rule looks exactly the same as the old rule that was removed in 181f498. Do we only have to create the
node-bootstrapperSA and we are good again?smarterclayton commentedon Aug 22, 2017
Merge pull request #15896 from tiran/pr15890
smarterclayton commentedon Aug 30, 2017
@kwoodson you should be fixed on master now