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

Master node not already to run master-api. #19

Open
sumatejit opened this issue Aug 23, 2020 · 0 comments
Open

Master node not already to run master-api. #19

sumatejit opened this issue Aug 23, 2020 · 0 comments

Comments

@sumatejit
Copy link

I'm checking all node already connection on master ndode by use command line $oc get nodes. The result show as below

server master.example.com:8443 was refused - did you specifiy the right host and port

Check logging on master-api at master node.

[vagrant@master ~]$ sudo /usr/local/bin/master-logs api api
E0823 23:26:50.786996       1 helpers.go:134] Encountered config error json: unknown field "masterCount" in object *config.MasterConfig, raw JSON:
{"admissionConfig":{"pluginConfig":{"BuildDefaults":{"configuration":{"apiVersion":"v1","env":[],"kind":"BuildDefaultsConfig","resources":{"limits":{},"requests":{}}}},"BuildOverrides":{"configuration":{"apiVersion":"v1","kind":"BuildOverridesConfig"}},"openshift.io/ImagePolicy":{"configuration":{"apiVersion":"v1","executionRules":[{"matchImageAnnotations":[{"key":"images.openshift.io/deny-execution","value":"true"}],"name":"execution-denied","onResources":[{"resource":"pods"},{"resource":"builds"}],"reject":true,"skipOnResolutionFailure":true}],"kind":"ImagePolicyConfig"}}}},"aggregatorConfig":{"proxyClientInfo":{"certFile":"aggregator-front-proxy.crt","keyFile":"aggregator-front-proxy.key"}},"apiLevels":["v1"],"apiVersion":"v1","authConfig":{"requestHeader":{"clientCA":"front-proxy-ca.crt","clientCommonNames":["aggregator-front-proxy"],"extraHeaderPrefixes":["X-Remote-Extra-"],"groupHeaders":["X-Remote-Group"],"usernameHeaders":["X-Remote-User"]}},"controllerConfig":{"election":{"lockName":"openshift-master-controllers"},"serviceServingCert":{"signer":{"certFile":"service-signer.crt","keyFile":"service-signer.key"}}},"controllers":"*","corsAllowedOrigins":["(?i)//127\\.0\\.0\\.1(:|\\z)","(?i)//localhost(:|\\z)","(?i)//10\\.0\\.2\\.15(:|\\z)","(?i)//kubernetes\\.default(:|\\z)","(?i)//kubernetes\\.default\\.svc\\.cluster\\.local(:|\\z)","(?i)//kubernetes(:|\\z)","(?i)//openshift\\.default(:|\\z)","(?i)//openshift\\.default\\.svc(:|\\z)","(?i)//172\\.30\\.0\\.1(:|\\z)","(?i)//master\\.example\\.com(:|\\z)","(?i)//openshift\\.default\\.svc\\.cluster\\.local(:|\\z)","(?i)//kubernetes\\.default\\.svc(:|\\z)","(?i)//openshift(:|\\z)"],"dnsConfig":{"bindAddress":"0.0.0.0:8053","bindNetwork":"tcp4"},"etcdClientInfo":{"ca":"master.etcd-ca.crt","certFile":"master.etcd-client.crt","keyFile":"master.etcd-client.key","urls":["https://master.example.com:2379"]},"etcdStorageConfig":{"kubernetesStoragePrefix":"kubernetes.io","kubernetesStorageVersion":"v1","openShiftStoragePrefix":"openshift.io","openShiftStorageVersion":"v1"},"imageConfig":{"format":"docker.io/openshift/origin-${component}:${version}","latest":false},"imagePolicyConfig":{"internalRegistryHostname":"docker-registry.default.svc:5000"},"kind":"MasterConfig","kubeletClientInfo":{"ca":"ca-bundle.crt","certFile":"master.kubelet-client.crt","keyFile":"master.kubelet-client.key","port":10250},"kubernetesMasterConfig":{"apiServerArguments":{"storage-backend":["etcd3"],"storage-media-type":["application/vnd.kubernetes.protobuf"]},"controllerArguments":{"cluster-signing-cert-file":["/etc/origin/master/ca.crt"],"cluster-signing-key-file":["/etc/origin/master/ca.key"],"pv-recycler-pod-template-filepath-hostpath":["/etc/origin/master/recycler_pod.yaml"],"pv-recycler-pod-template-filepath-nfs":["/etc/origin/master/recycler_pod.yaml"]},"masterCount":1,"masterIP":"10.0.2.15","podEvictionTimeout":null,"proxyClientInfo":{"certFile":"master.proxy-client.crt","keyFile":"master.proxy-client.key"},"schedulerArguments":null,"schedulerConfigFile":"/etc/origin/master/scheduler.json","servicesNodePortRange":"","servicesSubnet":"172.30.0.0/16","staticNodeNames":[]},"masterClients":{"externalKubernetesClientConnectionOverrides":{"acceptContentTypes":"application/vnd.kubernetes.protobuf,application/json","burst":400,"contentType":"application/vnd.kubernetes.protobuf","qps":200},"externalKubernetesKubeConfig":"","openshiftLoopbackClientConnectionOverrides":{"acceptContentTypes":"application/vnd.kubernetes.protobuf,application/json","burst":600,"contentType":"application/vnd.kubernetes.protobuf","qps":300},"openshiftLoopbackKubeConfig":"openshift-master.kubeconfig"},"masterPublicURL":"https://master.example.com:8443","networkConfig":{"clusterNetworks":[{"cidr":"10.128.0.0/14","hostSubnetLength":9}],"externalIPNetworkCIDRs":["0.0.0.0/0"],"networkPluginName":"redhat/openshift-ovs-subnet","serviceNetworkCIDR":"172.30.0.0/16"},"oauthConfig":{"assetPublicURL":"https://master.example.com:8443/console/","grantConfig":{"method":"auto"},"identityProviders":[{"challenge":true,"login":true,"mappingMethod":"claim","name":"htpasswd_auth","provider":{"apiVersion":"v1","file":"/etc/origin/master/htpasswd","kind":"HTPasswdPasswordIdentityProvider"}}],"masterCA":"ca-bundle.crt","masterPublicURL":"https://master.example.com:8443","masterURL":"https://master.example.com:8443","sessionConfig":{"sessionMaxAgeSeconds":3600,"sessionName":"ssn","sessionSecretsFile":"/etc/origin/master/session-secrets.yaml"},"tokenConfig":{"accessTokenMaxAgeSeconds":86400,"authorizeTokenMaxAgeSeconds":500}},"pauseControllers":false,"policyConfig":{"bootstrapPolicyFile":"/etc/origin/master/policy.json","openshiftInfrastructureNamespace":"openshift-infra","openshiftSharedResourcesNamespace":"openshift"},"projectConfig":{"defaultNodeSelector":"node-role.kubernetes.io/compute=true","projectRequestMessage":"","projectRequestTemplate":"","securityAllocator":{"mcsAllocatorRange":"s0:/2","mcsLabelsPerProject":5,"uidAllocatorRange":"1000000000-1999999999/10000"}},"routingConfig":{"subdomain":"openshift.example.com"},"serviceAccountConfig":{"limitSecretReferences":false,"managedNames":["default","builder","deployer"],"masterCA":"ca-bundle.crt","privateKeyFile":"serviceaccounts.private.key","publicKeyFiles":["serviceaccounts.public.key"]},"servingInfo":{"bindAddress":"0.0.0.0:8443","bindNetwork":"tcp4","certFile":"master.server.crt","clientCA":"ca.crt","keyFile":"master.server.key","maxRequestsInFlight":500,"requestTimeoutSeconds":3600},"volumeConfig":{"dynamicProvisioningEnabled":true}}
I0823 23:26:50.797468       1 plugins.go:84] Registered admission plugin "NamespaceLifecycle"
I0823 23:26:50.797650       1 plugins.go:84] Registered admission plugin "Initializers"
I0823 23:26:50.797812       1 plugins.go:84] Registered admission plugin "ValidatingAdmissionWebhook"
I0823 23:26:50.798173       1 plugins.go:84] Registered admission plugin "MutatingAdmissionWebhook"
I0823 23:26:50.798591       1 plugins.go:84] Registered admission plugin "AlwaysAdmit"
I0823 23:26:50.798812       1 plugins.go:84] Registered admission plugin "AlwaysPullImages"
I0823 23:26:50.799183       1 plugins.go:84] Registered admission plugin "LimitPodHardAntiAffinityTopology"
I0823 23:26:50.805464       1 plugins.go:84] Registered admission plugin "DefaultTolerationSeconds"
I0823 23:26:50.805492       1 plugins.go:84] Registered admission plugin "AlwaysDeny"
I0823 23:26:50.805507       1 plugins.go:84] Registered admission plugin "EventRateLimit"
I0823 23:26:50.805516       1 plugins.go:84] Registered admission plugin "DenyEscalatingExec"
I0823 23:26:50.805522       1 plugins.go:84] Registered admission plugin "DenyExecOnPrivileged"
I0823 23:26:50.805530       1 plugins.go:84] Registered admission plugin "ExtendedResourceToleration"
I0823 23:26:50.805537       1 plugins.go:84] Registered admission plugin "OwnerReferencesPermissionEnforcement"
I0823 23:26:50.805548       1 plugins.go:84] Registered admission plugin "ImagePolicyWebhook"
I0823 23:26:50.805558       1 plugins.go:84] Registered admission plugin "LimitRanger"
I0823 23:26:50.805566       1 plugins.go:84] Registered admission plugin "NamespaceAutoProvision"
I0823 23:26:50.805574       1 plugins.go:84] Registered admission plugin "NamespaceExists"
I0823 23:26:50.805583       1 plugins.go:84] Registered admission plugin "NodeRestriction"
I0823 23:26:50.805592       1 plugins.go:84] Registered admission plugin "PersistentVolumeLabel"
I0823 23:26:50.805604       1 plugins.go:84] Registered admission plugin "PodNodeSelector"
I0823 23:26:50.805622       1 plugins.go:84] Registered admission plugin "PodPreset"
I0823 23:26:50.805630       1 plugins.go:84] Registered admission plugin "PodTolerationRestriction"
I0823 23:26:50.805639       1 plugins.go:84] Registered admission plugin "ResourceQuota"
I0823 23:26:50.805647       1 plugins.go:84] Registered admission plugin "PodSecurityPolicy"
I0823 23:26:50.805655       1 plugins.go:84] Registered admission plugin "Priority"
I0823 23:26:50.805663       1 plugins.go:84] Registered admission plugin "SecurityContextDeny"
I0823 23:26:50.805679       1 plugins.go:84] Registered admission plugin "ServiceAccount"
I0823 23:26:50.805690       1 plugins.go:84] Registered admission plugin "DefaultStorageClass"
I0823 23:26:50.805698       1 plugins.go:84] Registered admission plugin "PersistentVolumeClaimResize"
I0823 23:26:50.805706       1 plugins.go:84] Registered admission plugin "StorageObjectInUseProtection"
F0823 23:27:20.816119       1 start_api.go:68] dial tcp 192.168.160.101:2379: connect: connection refused
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