[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Adding a node to the cluster without ansible



All right, looks like it works. These are the commands for the master with 3.1:

oadm create-api-client-config \
      --certificate-authority=/etc/origin/master/ca.crt \
      --client-dir=/root/xyz4 \
      --master=https://xyz1.eu:8443 \
      --signer-cert=/etc/origin/master/ca.crt \
      --signer-key=/etc/origin/master/ca.key \
      --signer-serial=/etc/origin/master/ca.serial.txt \
--groups=system:nodes \
--user=system:node:xyz4.eu

oadm create-node-config \
--node-dir=/root/xyz4 \
--node=xyz.eu \
--hostnames=xyz4.eu,123.456.0.5 \
--certificate-authority /etc/origin/master/ca.crt \
--signer-cert /etc/origin/master/ca.crt \
--signer-key /etc/origin/master/ca.key \
--signer-serial /etc/origin/master/ca.serial.txt \
--master=https://xyz1.eu:8443 \
--node-client-certificate-authority /etc/origin/master/ca.crt

Then I copied all the created files to /etc/origin/node on the new node.
Took node-config.yaml from an old, working node, edited the hostnames and used it as node-config.yaml on the new node.

It seems to work. The only thing that bugs me is that I'm being spammed with the following error on the new node:
manager.go:313] NetworkPlugin redhat/openshift-ovs-subnet failed on the status hook for pod 'xy-router-2-imubn' - exit status 1
manager.go:313] NetworkPlugin redhat/openshift-ovs-subnet failed on the status hook for pod 'ipf-default-1-dp4vc' - exit status 1

Can anyone tell me if this is something important or whether there are additional steps needed that I have missed?

Regards,
v





Am 2016-02-04 um 12:38 schrieb Nakayama Kenjiro:
> I don't know why the command ist trying to access "openshift.local.config"...

I guess you didn't set "--node-client-certificate-authority" and the command used its default value 'openshift.local.config/master/ca.crt'

> Is there a guide anywhere about how to add a node to the cluster manually without ansible?

There is no official docs at this moment. But if you have Red Hat subscription, you can refer this knowledge base.

https://access.redhat.com/solutions/1983683

I filed this BZ before (regarding manual installation):

https://bugzilla.redhat.com/show_bug.cgi?id=1264266

and tried to write the steps as below, but there are many many changes since 3.0 to 3.1, so I gave up...

https://github.com/nak3/openshift-manual-install/blob/master/manual-steps.md (Sorry, this is obsolete!)

Thanks,
Kenjiro



On Thu, Feb 4, 2016 at 8:13 PM, v <vekt0r7 gmx net> wrote:
Hello,

I would like to add an additional node to the cluster without using ansible.
(We have modified our cluster in many ways and don't dare running ansible because it might break our cluster.)

This is what I have tried:
oadm create-node-config
--node-dir=/root/xyz04
--node=xyz.com
--hostnames=xyz.com,123.456.0.4
--certificate-authority /etc/origin/master/ca.crt
--signer-cert /etc/origin/master/ca.crt
--signer-key /etc/origin/master/ca.key
--signer-serial /etc/origin/master/ca.serial.txt
--master xyz.com:8443

This command thorws the following error message:
"Generating node credentials ...
error: open openshift.local.config/master/ca.crt: no such file or directory"
I don't know why the command ist trying to access "openshift.local.config"...

Also, the files created in the directory are not helpful:
-rw-r--r--. 1 root root 1123 Feb  4 11:58 master-client.crt
-rw-------. 1 root root 1675 Feb  4 11:58 master-client.key
-rw-r--r--. 1 root root 2209 Feb  4 11:58 server.crt
-rw-------. 1 root root 1675 Feb  4 11:58 server.key

What about the files for the service accounts? Like system:node:xyz04.crt
Those are not being created either.

Is there a guide anywhere about how to add a node to the cluster manually without ansible?

Regards,
v

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users



--
Kenjiro NAKAYAMA <nakayamakenjiro gmail com>
GPG Key fingerprint = ED8F 049D E67A 727D 9A44  8E25 F44B E208 C946 5EB9


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]