Very simple question: once you install OpenShift Origin with the "Advanced
method" (Ansible): isn't OpenShift supposed to be an active service ??
Do I have to connect to the master via ssh and explicitly launch "sudo
openshift start" ??

Regards
Bruno


On Sun, Sep 3, 2017 at 9:08 PM Bruno Vernay <brunover...@gmail.com> wrote:

> I tried to install "docker-distribution" (=docker-registry) and enable it.
> The origin install went fine, but creating the first app still fail.
>
> But the service is there (on the master):
> curl -v http://docker-registry.default.svc:5000/
> * About to connect() to docker-registry.default.svc port 5000 (#0)
> *   Trying 192.168.56.10...
> * Connected to docker-registry.default.svc (192.168.56.10) port 5000 (#0)
> > GET / HTTP/1.1
> > User-Agent: curl/7.29.0
> > Host: docker-registry.default.svc:5000
> > Accept: */*
> >
> < HTTP/1.1 200 OK
> < Cache-Control: no-cache
> < Date: Sun, 03 Sep 2017 18:53:17 GMT
> < Content-Length: 0
> < Content-Type: text/plain; charset=utf-8
> <
> * Connection #0 to host docker-registry.default.svc left intact
>
> But on the node, the connexion is refused to the master server:
> curl -v http://docker-registry.default.svc:5000/
> * About to connect() to docker-registry.default.svc port 5000 (#0)
> *   Trying 192.168.56.10...
> * Connected to docker-registry.default.svc (192.168.56.10) port 5000 (#0)
> > GET / HTTP/1.1
> > User-Agent: curl/7.29.0
> > Host: docker-registry.default.svc:5000
> > Accept: */*
> >
> < HTTP/1.1 200 OK
> < Cache-Control: no-cache
> < Date: Sun, 03 Sep 2017 18:53:17 GMT
> < Content-Length: 0
> < Content-Type: text/plain; charset=utf-8
> <
> * Connection #0 to host docker-registry.default.svc left intact
>
>
> I recorded all the history and log files here:
> https://github.com/BrunoVernay/VM-images-packer/issues/2
> Bruno
>
>
> On Sun, Sep 3, 2017 at 11:22 AM Bruno Vernay <brunover...@gmail.com>
> wrote:
>
>> Yes, the kickstart takes care of this normally:
>> | network --device=enp0s8 --bootproto=static --ip=192.168.56.10 --nodns
>> --netmask=255.255.255.0 --noipv6 --hostname=ocp-1.192.168.56.10.nip.io
>> --nodefroute    # 192.168... host-only
>> | network --device=enp0s3 --noipv6  # 10.0.2 ... NAT
>> | ## Network config
>> | sed -i 's/\[main\]/\[main\]\ndns=none/'
>> /etc/NetworkManager/NetworkManager.conf
>>
>> Currently, the file (Master or Node) looks like this:
>> > cat /etc/resolv.conf
>> # nameserver updated by /etc/NetworkManager/dispatcher.d/99-origin-dns.sh
>> # Generated by NetworkManager
>> nameserver 10.0.2.15
>>
>> By the way I have nothing listening on port 5000.
>>
>> > ss -lntp
>> State       Recv-Q Send-Q       Local Address:Port
>>  Peer Address:Port
>> LISTEN      0      128          192.168.56.10:2379
>>           *:*                   users:(("etcd",pid=1179,fd=6))
>> LISTEN      0      128              127.0.0.1:2380
>>           *:*                   users:(("etcd",pid=1179,fd=5))
>> LISTEN      0      128                      *:111
>>          *:*
>> users:(("rpcbind",pid=1196,fd=5),("systemd",pid=1,fd=43))
>> LISTEN      0      128                      *:20048
>>          *:*                   users:(("rpc.mountd",pid=1197,fd=8))
>> LISTEN      0      128                      *:58609
>>          *:*                   users:(("rpc.statd",pid=1178,fd=9))
>> LISTEN      0      128              127.0.0.1:53
>>           *:*                   users:(("openshift",pid=12440,fd=26))
>> LISTEN      0      128                      *:8053
>>           *:*                   users:(("openshift",pid=12425,fd=92))
>> LISTEN      0      5                10.0.2.15:53
>>           *:*                   users:(("dnsmasq",pid=1166,fd=5))
>> LISTEN      0      128                      *:22
>>           *:*                   users:(("sshd",pid=1168,fd=3))
>> LISTEN      0      100              127.0.0.1:25
>>           *:*                   users:(("master",pid=3674,fd=13))
>> LISTEN      0      128                      *:8443
>>           *:*                   users:(("openshift",pid=12425,fd=85))
>> LISTEN      0      64                       *:2049
>>           *:*
>> LISTEN      0      128                     :::10250
>>         :::*                   users:(("openshift",pid=12440,fd=11))
>> LISTEN      0      128                     :::111
>>         :::*
>> users:(("rpcbind",pid=1196,fd=4),("systemd",pid=1,fd=42))
>> LISTEN      0      128                     :::20048
>>         :::*                   users:(("rpc.mountd",pid=1197,fd=10))
>> LISTEN      0      128                     :::22
>>          :::*                   users:(("sshd",pid=1168,fd=4))
>> LISTEN      0      100                    ::1:25
>>          :::*                   users:(("master",pid=3674,fd=14))
>> LISTEN      0      128                     :::41632
>>         :::*                   users:(("rpc.statd",pid=1178,fd=11))
>> LISTEN      0      64                      :::2049
>>          :::*
>>
>>
>> Bruno
>>
>> On Sat, Sep 2, 2017 at 10:43 PM Jamie Duncan <jdun...@redhat.com> wrote:
>>
>>> Have you tried deleting the 'search' parameter from /etc/resolv.conf?
>>> I've run into DNS weirdness when using nip.io.
>>>
>>> On Sat, Sep 2, 2017 at 4:26 PM Bruno Vernay <brunover...@gmail.com>
>>> wrote:
>>>
>>>> Thanks.  That is the default name in many ansible scripts, then looking
>>>> at the ansible logs, it seems that it should be "
>>>> docker-registry-default.ocp-2.192.168.56.12.nip.io" ?
>>>> Even if the name is not the right one, I have no idea what to do to
>>>> investigate ???
>>>> I have uploaded the full ansible log here:
>>>> https://github.com/BrunoVernay/VM-images-packer/issues/2 I will try to
>>>> read it again to find some hints
>>>> Bruno
>>>>
>>>>
>>>>
>>>> On Fri, Sep 1, 2017 at 11:23 AM Yu Wei <yu20...@hotmail.com> wrote:
>>>>
>>>>> It seemed svc name was not correct.
>>>>>
>>>>> docker-registry.default.svc.cluster.local:5000
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Jared, (韦煜)
>>>>> Software developer
>>>>> Interested in open source software, big data, Linux
>>>>> ------------------------------
>>>>> *From:* users-boun...@lists.openshift.redhat.com <
>>>>> users-boun...@lists.openshift.redhat.com> on behalf of Bruno Vernay <
>>>>> brunover...@gmail.com>
>>>>> *Sent:* Friday, September 1, 2017 3:09:08 PM
>>>>> *To:* users@lists.openshift.redhat.com
>>>>> *Subject:* Pushing image docker-registry.default.svc:5000/... failed
>>>>>
>>>>> Hi
>>>>> I have a clean install, systemctl show no apparent errors, but when
>>>>> trying to build my first app it fails:
>>>>> ------
>>>>> Writing lock file
>>>>> Generating optimized autoload files
>>>>> Pushing image
>>>>> docker-registry.default.svc:5000/picture-uploader/cam-cli:latest ...
>>>>> Warning: Push failed, retrying in 5s ...
>>>>> ...
>>>>>
>>>>> Registry server Address:
>>>>> Registry server User Name: serviceaccount
>>>>> Registry server Email: serviceacco...@example.org
>>>>> Registry server Password: <<non-empty>>
>>>>> error: build error: Failed to push image: After retrying 6 times, Push
>>>>> image still failed
>>>>> -----
>>>>>
>>>>> And I may have done something really wrong because
>>>>>   oc logs dc/docker-registry
>>>>>   Error from server: deploymentconfigs.apps.openshift.io
>>>>> "docker-registry" not found
>>>>>
>>>>> I don't know where to look, any hint would be appreciated.  I just
>>>>> have a master and a node, I can recreate easily
>>>>> https://github.com/BrunoVernay/VM-images-packer
>>>>>
>>>>> Thanks
>>>>> Bruno
>>>>>
>>>> _______________________________________________
>>>> users mailing list
>>>> users@lists.openshift.redhat.com
>>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>>>
>>> --
>>>
>>> JAMIE DUNCAN
>>>
>>> CLOUD ARCHITECT, RHCE
>>>
>>> Red Hat Public Sector <https://www.redhat.com/>
>>>
>>> 8260 Greensboro Dr
>>>
>>> McLean, VA 22102
>>>
>>> jdun...@redhat.com    M: 8043077079     Twitter: @jamieeduncan
>>> <https://red.ht/sig>
>>> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
>>>
>>> @redhatnews <https://twitter.com/redhatnews>   Red Hat
>>> <https://www.linkedin.com/company/red-hat>   Red Hat
>>> <https://www.facebook.com/RedHatInc>
>>>
>>
_______________________________________________
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to