RE: Adding nodes to existing origin 1.2 cluster

2016-07-12 Thread Den Cowboy
Thanks! That was the solution!

From: alexwa...@exosite.com
Date: Tue, 12 Jul 2016 13:34:18 -0500
Subject: Re: Adding nodes to existing origin 1.2 cluster
To: dencow...@hotmail.com
CC: users@lists.openshift.redhat.com

I see that your [OSEv3:children] section does not contain new_nodes.  Maybe try 
adding that?  Mine contains masters, nodes, and new_nodes (we're using built-in 
etcd right now).
On Tue, Jul 12, 2016 at 1:27 PM, Den Cowboy <dencow...@hotmail.com> wrote:



I try to add nodes to our v1.2 cluster:
I added the new_nodes section to my /etc/ansible/host

[OSEv3:children]
masters
nodes
etcd

# Set variables common for all OSEv3 hosts
[OSEv3:vars]
ansible_ssh_user=root
deployment_type=origin
openshift_pkg_version=-1.2.0-4.el7


# uncomment the following to enable htpasswd authentication; defaults to 
DenyAllPasswordIdentityProvider
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 
'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': 
'/etc/origin/master/htpasswd'}]


# host group for masters
[masters]
master


# host group for etcd
[etcd]
master

# host group for nodes, includes region info
[nodes]
node1 openshift_node_labels="{'xx'}"
master openshift_node_labels="{'xx}"

[new_nodes]
node2 openshift_node_labels="{'xx}"
node3 openshift_node_labels="{'xx}"
node4 openshift_node_labels="{'xx}"
~


I execute:
ansible-playbook ~/openshift-ansible/playbooks/byo/openshift-node/scaleup.yml

It seems to start fine but pretty fast I get the following error:
TASK [openshift_facts : Gather Cluster facts and set is_containerized if 
needed] ***
fatal: [node2]: FAILED! => {"failed": true, "msg": "{{ deployment_type }}: 
'deployment_type' is undefined"}
fatal: [node3]: FAILED! => {"failed": true, "msg": "{{ deployment_type }}: 
'deployment_type' is undefined"}
fatal: [node4]: FAILED! => {"failed": true, "msg": "{{ deployment_type }}: 
'deployment_type' is undefined"}

But the deployment_type is described in my /etc/ansible/hosts file? Also the 
first deployment( some weeks ago) went well.
  

___

users mailing list

users@lists.openshift.redhat.com

http://lists.openshift.redhat.com/openshiftmm/listinfo/users




-- 
Alex Wauck // DevOps Engineer
E X O S I T E www.exosite.com 

Making Machines More Human.
  ___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Adding nodes to existing origin 1.2 cluster

2016-07-12 Thread Alex Wauck
I see that your [OSEv3:children] section does not contain new_nodes.  Maybe
try adding that?  Mine contains masters, nodes, and new_nodes (we're using
built-in etcd right now).

On Tue, Jul 12, 2016 at 1:27 PM, Den Cowboy  wrote:

> I try to add nodes to our v1.2 cluster:
> I added the new_nodes section to my /etc/ansible/host
>
> [OSEv3:children]
> masters
> nodes
> etcd
>
> # Set variables common for all OSEv3 hosts
> [OSEv3:vars]
> ansible_ssh_user=root
> deployment_type=origin
> openshift_pkg_version=-1.2.0-4.el7
>
>
> # uncomment the following to enable htpasswd authentication; defaults to
> DenyAllPasswordIdentityProvider
> openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login':
> 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider',
> 'filename': '/etc/origin/master/htpasswd'}]
>
>
> # host group for masters
> [masters]
> master
>
>
> # host group for etcd
> [etcd]
> master
>
> # host group for nodes, includes region info
> [nodes]
> node1 openshift_node_labels="{'xx'}"
> master openshift_node_labels="{'xx}"
>
> [new_nodes]
> node2 openshift_node_labels="{'xx}"
> node3 openshift_node_labels="{'xx}"
> node4 openshift_node_labels="{'xx}"
> ~
>
>
> I execute:
> ansible-playbook
> ~/openshift-ansible/playbooks/byo/openshift-node/scaleup.yml
>
> It seems to start fine but pretty fast I get the following error:
> TASK [openshift_facts : Gather Cluster facts and set is_containerized if
> needed] ***
> fatal: [node2]: FAILED! => {"failed": true, "msg": "{{ deployment_type }}:
> 'deployment_type' is undefined"}
> fatal: [node3]: FAILED! => {"failed": true, "msg": "{{ deployment_type }}:
> 'deployment_type' is undefined"}
> fatal: [node4]: FAILED! => {"failed": true, "msg": "{{ deployment_type }}:
> 'deployment_type' is undefined"}
>
> But the deployment_type is described in my /etc/ansible/hosts file? Also
> the first deployment( some weeks ago) went well.
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>


-- 

Alex Wauck // DevOps Engineer

*E X O S I T E*
*www.exosite.com *

Making Machines More Human.
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Adding nodes to existing origin 1.2 cluster

2016-07-12 Thread Den Cowboy
I try to add nodes to our v1.2 cluster:
I added the new_nodes section to my /etc/ansible/host

[OSEv3:children]
masters
nodes
etcd

# Set variables common for all OSEv3 hosts
[OSEv3:vars]
ansible_ssh_user=root
deployment_type=origin
openshift_pkg_version=-1.2.0-4.el7


# uncomment the following to enable htpasswd authentication; defaults to 
DenyAllPasswordIdentityProvider
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 
'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': 
'/etc/origin/master/htpasswd'}]


# host group for masters
[masters]
master


# host group for etcd
[etcd]
master

# host group for nodes, includes region info
[nodes]
node1 openshift_node_labels="{'xx'}"
master openshift_node_labels="{'xx}"

[new_nodes]
node2 openshift_node_labels="{'xx}"
node3 openshift_node_labels="{'xx}"
node4 openshift_node_labels="{'xx}"
~


I execute:
ansible-playbook ~/openshift-ansible/playbooks/byo/openshift-node/scaleup.yml

It seems to start fine but pretty fast I get the following error:
TASK [openshift_facts : Gather Cluster facts and set is_containerized if 
needed] ***
fatal: [node2]: FAILED! => {"failed": true, "msg": "{{ deployment_type }}: 
'deployment_type' is undefined"}
fatal: [node3]: FAILED! => {"failed": true, "msg": "{{ deployment_type }}: 
'deployment_type' is undefined"}
fatal: [node4]: FAILED! => {"failed": true, "msg": "{{ deployment_type }}: 
'deployment_type' is undefined"}

But the deployment_type is described in my /etc/ansible/hosts file? Also the 
first deployment( some weeks ago) went well.
  ___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users