Re: DNS issue install OpenShift on OpenStack

2017-10-09 Thread Joel Pearson
Looks like the post-provision-openstack.yml did run by itself, but I needed
to restart all the nodes to pick up the new DNS entries via DHCP.  Maybe I
should submit a PR to include that tip, unless of course, a restart wasn't
supposed to be necessary.

On Tue, Oct 10, 2017 at 7:15 AM Joel Pearson 
wrote:

> Ok, my bad it looks like the
> https://github.com/openshift/openshift-ansible-contrib/blob/master/playbooks/provisioning/openstack/post-provision-openstack.yml
> playbook does what I’m after. I’ll run that and see what happens
> On Tue, 10 Oct 2017 at 6:58 am, Joel Pearson <
> japear...@agiledigital.com.au> wrote:
>
>> Hi,
>>
>> Sorry, I think I didn’t explain it very well.
>>
>> I’m trying to use the in-stack DNS servers, but it seems to just be using
>> the google ones.
>>
>> Yes the base domain is hosted by AWS but I haven’t created any records
>> for “master-0.openshift.staging.agiledigital.co” as I don’t need that
>> resolvable outside the cluster. I thought the in-stack DNS server would
>> automatically create DNS records that work inside the cluster and that it
>> would configure all the instances it created to use the in-stack DNS.
>>
>> The “10.2.100.5” ip is created by the stack, so I can’t use that in the
>> public_dns_nameservers variable, as it doesn’t exist at that point.
>>
>> How is the in-stack DNS supposed to work? Maybe I’m misunderstanding its
>> purpose?
>>
>> Thanks,
>>
>> Joel
>> On Tue, 10 Oct 2017 at 12:54 am, François VILLAIN <
>> f.vill...@linkbynet.com> wrote:
>>
>>> Hello,
>>>
>>>
>>>
>>> I see that your domain name is hosted by AWS. Maybe try to see if the
>>> domain is “public” or “private”, it seems private from what I can see (your
>>> entries do not resolve).
>>> If it is private you should directly reference your DNS server in the
>>> “public_dns_nameservers” variable.
>>>
>>>
>>>
>>> Good luck ☺
>>>
>>>
>>>
>>> *De : * au nom de Joel
>>> Pearson 
>>> *Date : *lundi 9 octobre 2017 à 14:54
>>> *À : *"users@lists.openshift.redhat.com" <
>>> users@lists.openshift.redhat.com>
>>> *Objet : *DNS issue install OpenShift on OpenStack
>>>
>>>
>>>
>>> Hi,
>>>
>>>
>>>
>>> I'm trying to install openshift on openstack and I've been following
>>> https://github.com/openshift/openshift-ansible-contrib/tree/master/playbooks/provisioning/openstack
>>> I got past the openstack bit and now I'm installing openshift with
>>> “ansible-playbook openshift-ansible/playbooks/byo/config.yml” it got pretty
>>> far.
>>>
>>>
>>>
>>> Except it I got this error:
>>>
>>>
>>>
>>> 
>>>
>>> TASK [openshift_examples : Import Centos Image streams]
>>> ***
>>>
>>> Monday 09 October 2017  12:30:17 + (0:00:00.058)   0:05:10.675
>>> 
>>>
>>> fatal: [master-0.openshift.staging.agiledigital.co]: FAILED! =>
>>> {"changed": false, "cmd": ["oc", "create",
>>> "--config=/etc/origin/master/admin.kubeconfig", "-n", "openshift", "-f",
>>> "/usr/share/openshift/examples/image-streams/image-streams-centos7.json"],
>>> "delta": "0:00:00.309497", "end": "2017-10-09 12:30:18.114400", "failed":
>>> true, "failed_when_result": true, "rc": 1, "start": "2017-10-09
>>> 12:30:17.804903", "stderr": "Unable to connect to the server: dial tcp:
>>> lookup master-0.openshift.staging.agiledigital.co on 8.8.8.8:53: no
>>> such host", "stderr_lines": ["Unable to connect to the server: dial tcp:
>>> lookup master-0.openshift.staging.agiledigital.co on 8.8.8.8:53: no
>>> such host"], "stdout": "", "stdout_lines": []}
>>>
>>> ———-
>>>
>>>
>>>
>>> I used the option of letting it install a DNS server in the openstack
>>> section, and I used this setting “public_dns_nameservers:
>>> [8.8.8.8,8.8.4.4]”, however it seems that it isn't using the dns server it
>>> installed, and hence internal DNS doesn't resolve.
>>>
>>>
>>>
>>> Is there a way to get the openstack-ansible playbooks to use the
>>> internal dns (which was created by “ansible-playbook
>>> openshift-ansible-contrib/playbooks/provisioning/openstack/provision.yaml”),
>>> which in my case is “10.2.100.5”?
>>>
>>>
>>>
>>> I figure I must have messed something up in the OpenStack provision
>>> section. But I don’t know what.
>>>
>>>
>>>
>>> Thanks,
>>>
>>>
>>>
>>> Joel
>>>
>>> --
>>>
>>> Kind Regards,
>>>
>>>
>>>
>>> Joel Pearson
>>> Agile Digital | Senior Software Consultant
>>>
>>> Love Your Software™ | ABN 98 106 361 273
>>> p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
>>>
>> --
>> Kind Regards,
>>
>> Joel Pearson
>> Agile Digital | Senior Software Consultant
>>
>> Love Your Software™ | ABN 98 106 361 273
>> p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
>>
> --
> Kind Regards,
>
> Joel Pearson
> Agile Digital | Senior Software Consultant
>
> Love Your Software™ | ABN 98 106 361 273
> p: 

Re: DNS issue install OpenShift on OpenStack

2017-10-09 Thread Joel Pearson
Ok, my bad it looks like the
https://github.com/openshift/openshift-ansible-contrib/blob/master/playbooks/provisioning/openstack/post-provision-openstack.yml
playbook does what I’m after. I’ll run that and see what happens
On Tue, 10 Oct 2017 at 6:58 am, Joel Pearson 
wrote:

> Hi,
>
> Sorry, I think I didn’t explain it very well.
>
> I’m trying to use the in-stack DNS servers, but it seems to just be using
> the google ones.
>
> Yes the base domain is hosted by AWS but I haven’t created any records for
> “master-0.openshift.staging.agiledigital.co” as I don’t need that
> resolvable outside the cluster. I thought the in-stack DNS server would
> automatically create DNS records that work inside the cluster and that it
> would configure all the instances it created to use the in-stack DNS.
>
> The “10.2.100.5” ip is created by the stack, so I can’t use that in the
> public_dns_nameservers variable, as it doesn’t exist at that point.
>
> How is the in-stack DNS supposed to work? Maybe I’m misunderstanding its
> purpose?
>
> Thanks,
>
> Joel
> On Tue, 10 Oct 2017 at 12:54 am, François VILLAIN 
> wrote:
>
>> Hello,
>>
>>
>>
>> I see that your domain name is hosted by AWS. Maybe try to see if the
>> domain is “public” or “private”, it seems private from what I can see (your
>> entries do not resolve).
>> If it is private you should directly reference your DNS server in the
>> “public_dns_nameservers” variable.
>>
>>
>>
>> Good luck ☺
>>
>>
>>
>> *De : * au nom de Joel Pearson
>> 
>> *Date : *lundi 9 octobre 2017 à 14:54
>> *À : *"users@lists.openshift.redhat.com" <
>> users@lists.openshift.redhat.com>
>> *Objet : *DNS issue install OpenShift on OpenStack
>>
>>
>>
>> Hi,
>>
>>
>>
>> I'm trying to install openshift on openstack and I've been following
>> https://github.com/openshift/openshift-ansible-contrib/tree/master/playbooks/provisioning/openstack
>> I got past the openstack bit and now I'm installing openshift with
>> “ansible-playbook openshift-ansible/playbooks/byo/config.yml” it got pretty
>> far.
>>
>>
>>
>> Except it I got this error:
>>
>>
>>
>> 
>>
>> TASK [openshift_examples : Import Centos Image streams]
>> ***
>>
>> Monday 09 October 2017  12:30:17 + (0:00:00.058)   0:05:10.675
>> 
>>
>> fatal: [master-0.openshift.staging.agiledigital.co]: FAILED! =>
>> {"changed": false, "cmd": ["oc", "create",
>> "--config=/etc/origin/master/admin.kubeconfig", "-n", "openshift", "-f",
>> "/usr/share/openshift/examples/image-streams/image-streams-centos7.json"],
>> "delta": "0:00:00.309497", "end": "2017-10-09 12:30:18.114400", "failed":
>> true, "failed_when_result": true, "rc": 1, "start": "2017-10-09
>> 12:30:17.804903", "stderr": "Unable to connect to the server: dial tcp:
>> lookup master-0.openshift.staging.agiledigital.co on 8.8.8.8:53: no such
>> host", "stderr_lines": ["Unable to connect to the server: dial tcp: lookup
>> master-0.openshift.staging.agiledigital.co on 8.8.8.8:53: no such
>> host"], "stdout": "", "stdout_lines": []}
>>
>> ———-
>>
>>
>>
>> I used the option of letting it install a DNS server in the openstack
>> section, and I used this setting “public_dns_nameservers:
>> [8.8.8.8,8.8.4.4]”, however it seems that it isn't using the dns server it
>> installed, and hence internal DNS doesn't resolve.
>>
>>
>>
>> Is there a way to get the openstack-ansible playbooks to use the internal
>> dns (which was created by “ansible-playbook
>> openshift-ansible-contrib/playbooks/provisioning/openstack/provision.yaml”),
>> which in my case is “10.2.100.5”?
>>
>>
>>
>> I figure I must have messed something up in the OpenStack provision
>> section. But I don’t know what.
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Joel
>>
>> --
>>
>> Kind Regards,
>>
>>
>>
>> Joel Pearson
>> Agile Digital | Senior Software Consultant
>>
>> Love Your Software™ | ABN 98 106 361 273
>> p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
>>
> --
> Kind Regards,
>
> Joel Pearson
> Agile Digital | Senior Software Consultant
>
> Love Your Software™ | ABN 98 106 361 273
> p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
>
-- 
Kind Regards,

Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: DNS issue install OpenShift on OpenStack

2017-10-09 Thread Joel Pearson
Hi,

Sorry, I think I didn’t explain it very well.

I’m trying to use the in-stack DNS servers, but it seems to just be using
the google ones.

Yes the base domain is hosted by AWS but I haven’t created any records for “
master-0.openshift.staging.agiledigital.co” as I don’t need that resolvable
outside the cluster. I thought the in-stack DNS server would automatically
create DNS records that work inside the cluster and that it would configure
all the instances it created to use the in-stack DNS.

The “10.2.100.5” ip is created by the stack, so I can’t use that in the
public_dns_nameservers variable, as it doesn’t exist at that point.

How is the in-stack DNS supposed to work? Maybe I’m misunderstanding its
purpose?

Thanks,

Joel
On Tue, 10 Oct 2017 at 12:54 am, François VILLAIN 
wrote:

> Hello,
>
>
>
> I see that your domain name is hosted by AWS. Maybe try to see if the
> domain is “public” or “private”, it seems private from what I can see (your
> entries do not resolve).
> If it is private you should directly reference your DNS server in the
> “public_dns_nameservers” variable.
>
>
>
> Good luck ☺
>
>
>
> *De : * au nom de Joel Pearson <
> japear...@agiledigital.com.au>
> *Date : *lundi 9 octobre 2017 à 14:54
> *À : *"users@lists.openshift.redhat.com"  >
> *Objet : *DNS issue install OpenShift on OpenStack
>
>
>
> Hi,
>
>
>
> I'm trying to install openshift on openstack and I've been following
> https://github.com/openshift/openshift-ansible-contrib/tree/master/playbooks/provisioning/openstack
> I got past the openstack bit and now I'm installing openshift with
> “ansible-playbook openshift-ansible/playbooks/byo/config.yml” it got pretty
> far.
>
>
>
> Except it I got this error:
>
>
>
> 
>
> TASK [openshift_examples : Import Centos Image streams]
> ***
>
> Monday 09 October 2017  12:30:17 + (0:00:00.058)   0:05:10.675
> 
>
> fatal: [master-0.openshift.staging.agiledigital.co]: FAILED! =>
> {"changed": false, "cmd": ["oc", "create",
> "--config=/etc/origin/master/admin.kubeconfig", "-n", "openshift", "-f",
> "/usr/share/openshift/examples/image-streams/image-streams-centos7.json"],
> "delta": "0:00:00.309497", "end": "2017-10-09 12:30:18.114400", "failed":
> true, "failed_when_result": true, "rc": 1, "start": "2017-10-09
> 12:30:17.804903", "stderr": "Unable to connect to the server: dial tcp:
> lookup master-0.openshift.staging.agiledigital.co on 8.8.8.8:53: no such
> host", "stderr_lines": ["Unable to connect to the server: dial tcp: lookup
> master-0.openshift.staging.agiledigital.co on 8.8.8.8:53: no such host"],
> "stdout": "", "stdout_lines": []}
>
> ———-
>
>
>
> I used the option of letting it install a DNS server in the openstack
> section, and I used this setting “public_dns_nameservers:
> [8.8.8.8,8.8.4.4]”, however it seems that it isn't using the dns server it
> installed, and hence internal DNS doesn't resolve.
>
>
>
> Is there a way to get the openstack-ansible playbooks to use the internal
> dns (which was created by “ansible-playbook
> openshift-ansible-contrib/playbooks/provisioning/openstack/provision.yaml”),
> which in my case is “10.2.100.5”?
>
>
>
> I figure I must have messed something up in the OpenStack provision
> section. But I don’t know what.
>
>
>
> Thanks,
>
>
>
> Joel
>
> --
>
> Kind Regards,
>
>
>
> Joel Pearson
> Agile Digital | Senior Software Consultant
>
> Love Your Software™ | ABN 98 106 361 273
> p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
>
-- 
Kind Regards,

Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: DNS issue install OpenShift on OpenStack

2017-10-09 Thread François VILLAIN
Hello,

I see that your domain name is hosted by AWS. Maybe try to see if the domain is 
“public” or “private”, it seems private from what I can see (your entries do 
not resolve).
If it is private you should directly reference your DNS server in the 
“public_dns_nameservers” variable.

Good luck ☺

De :  au nom de Joel Pearson 

Date : lundi 9 octobre 2017 à 14:54
À : "users@lists.openshift.redhat.com" 
Objet : DNS issue install OpenShift on OpenStack


Hi,



I'm trying to install openshift on openstack and I've been following 
https://github.com/openshift/openshift-ansible-contrib/tree/master/playbooks/provisioning/openstack
 I got past the openstack bit and now I'm installing openshift with 
“ansible-playbook openshift-ansible/playbooks/byo/config.yml” it got pretty far.



Except it I got this error:





TASK [openshift_examples : Import Centos Image streams] 
***

Monday 09 October 2017  12:30:17 + (0:00:00.058)   0:05:10.675 

fatal: 
[master-0.openshift.staging.agiledigital.co]:
 FAILED! => {"changed": false, "cmd": ["oc", "create", 
"--config=/etc/origin/master/admin.kubeconfig", "-n", "openshift", "-f", 
"/usr/share/openshift/examples/image-streams/image-streams-centos7.json"], 
"delta": "0:00:00.309497", "end": "2017-10-09 12:30:18.114400", "failed": true, 
"failed_when_result": true, "rc": 1, "start": "2017-10-09 12:30:17.804903", 
"stderr": "Unable to connect to the server: dial tcp: lookup 
master-0.openshift.staging.agiledigital.co
 on 8.8.8.8:53: no such host", "stderr_lines": ["Unable to 
connect to the server: dial tcp: lookup 
master-0.openshift.staging.agiledigital.co
 on 8.8.8.8:53: no such host"], "stdout": "", 
"stdout_lines": []}
———-



I used the option of letting it install a DNS server in the openstack section, 
and I used this setting “public_dns_nameservers: [8.8.8.8,8.8.4.4]”, however it 
seems that it isn't using the dns server it installed, and hence internal DNS 
doesn't resolve.



Is there a way to get the openstack-ansible playbooks to use the internal dns 
(which was created by “ansible-playbook 
openshift-ansible-contrib/playbooks/provisioning/openstack/provision.yaml”), 
which in my case is “10.2.100.5”?



I figure I must have messed something up in the OpenStack provision section. 
But I don’t know what.



Thanks,



Joel
--
Kind Regards,

Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277 | m: 0405 417 843 | w: 
agiledigital.com.au
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


DNS issue install OpenShift on OpenStack

2017-10-09 Thread Joel Pearson
Hi,


I'm trying to install openshift on openstack and I've been following
https://github.com/openshift/openshift-ansible-contrib/tree/master/playbooks/provisioning/openstack
I got past the openstack bit and now I'm installing openshift with
“ansible-playbook openshift-ansible/playbooks/byo/config.yml” it got pretty
far.


Except it I got this error:




TASK [openshift_examples : Import Centos Image streams]
***

Monday 09 October 2017  12:30:17 + (0:00:00.058)   0:05:10.675


fatal: [master-0.openshift.staging.agiledigital.co]: FAILED! => {"changed":
false, "cmd": ["oc", "create",
"--config=/etc/origin/master/admin.kubeconfig", "-n", "openshift", "-f",
"/usr/share/openshift/examples/image-streams/image-streams-centos7.json"],
"delta": "0:00:00.309497", "end": "2017-10-09 12:30:18.114400", "failed":
true, "failed_when_result": true, "rc": 1, "start": "2017-10-09
12:30:17.804903", "stderr": "Unable to connect to the server: dial tcp:
lookup master-0.openshift.staging.agiledigital.co on 8.8.8.8:53: no such
host", "stderr_lines": ["Unable to connect to the server: dial tcp: lookup
master-0.openshift.staging.agiledigital.co on 8.8.8.8:53: no such host"],
"stdout": "", "stdout_lines": []}

———-


I used the option of letting it install a DNS server in the openstack
section, and I used this setting “public_dns_nameservers:
[8.8.8.8,8.8.4.4]”, however it seems that it isn't using the dns server it
installed, and hence internal DNS doesn't resolve.


Is there a way to get the openstack-ansible playbooks to use the internal
dns (which was created by “ansible-playbook
openshift-ansible-contrib/playbooks/provisioning/openstack/provision.yaml”),
which in my case is “10.2.100.5”?


I figure I must have messed something up in the OpenStack provision
section. But I don’t know what.


Thanks,


Joel
-- 
Kind Regards,

Joel Pearson
Agile Digital | Senior Software Consultant

Love Your Software™ | ABN 98 106 361 273
p: 1300 858 277 | m: 0405 417 843 <0405417843> | w: agiledigital.com.au
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users