Hey,

This is a bug in openshift-ansible. We're blowing up because the
docker-registry service doesn't exist and the docker-registry service
wasn't created because there aren't any infrastructure labeled nodes (
openshift_node_labels="{'region': 'infra'}" ) in your inventory. We
shouldn't be securing the registry or deploying the registry console when
we have no infra nodes (and didn't make a registry in the first place).

I've opened a PR to fix and tested with a similar inventory,
https://github.com/openshift/openshift-ansible/pull/2544.

On Tue, Oct 4, 2016 at 9:32 AM, Grant Shipley <[email protected]> wrote:

> Hi Jude,
>
> I don't know if this will help you or not but I just did a fresh install
> myself yesterday using centos minimal without any issues.  I typed up the
> commands I used so I would have them to use again in the future:
>
> ----------------------
> #using CentOS 7 Minimal .iso
>
> ssh-keygen -t rsa
> cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
> yum -y install epel-release
> yum -y install docker wget git
> git clone https://github.com/openshift/openshift-ansible
> git clone https://github.com/gshipley/installcentos.git
>
> # change inventory.erb for your host from the installcentos repo
>
> yum install -y  python-cryptography pyOpenSSL.x86_64
>
>
> ansible-playbook -i inventory.erb ./openshift-ansible/playbooks/
> byo/config.yml
>
> On Mon, Oct 3, 2016 at 3:17 PM, Jude Mwenda <[email protected]> wrote:
>
>> Hey,
>>
>> I am using the openshift ansible repository to install a single
>> master/node server. When I run the playbook using the byo template, I get
>> the following error. Any pointers on what I am doing wrong, or do are there
>> parameters in my host file required for this?
>>
>> TASK [openshift_hosted : Create passthrough route for docker-registry]
>> *********
>> fatal: [master.example.com]: FAILED! => {"changed": true, "cmd": ["oc",
>> "create", "route", "passthrough", "--service", "docker-registry",
>> "--config=/tmp/openshift-ansible-7q9png/admin.kubeconfig", "-n",
>> "default"], "delta": "0:00:00.178512", "end": "2016-10-03 15:22:54.527194",
>> "failed": true, "failed_when_result": true, "rc": 1, "start": "2016-10-03
>> 15:22:54.348682", "stderr": "error: you need to provide a route port via
>> --port when exposing a non-existent service", "stdout": "", "stdout_lines":
>> [], "warnings": []}
>>
>>
>> _______________________________________________
>> dev mailing list
>> [email protected]
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>>
>>
>
> _______________________________________________
> dev mailing list
> [email protected]
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>
>
_______________________________________________
dev mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev

Reply via email to