Re: Containerized OCP requires atomic-openshift?

2017-10-21 Thread Lionel Orellana
The set_version_rpm task in the openshift_version role has the check for
the atomic-openshift package. This is fine and is being skipped in my
containerised installation. But the same check was added to the main task
of the role as part of the 3.6 release (it's not there in the 1.5 branch).
Looks something like this

*openshift-ansible/playbooks/byo/roles/openshift_version/tasks/mail.yml*

block:
  - name: Set openshift_version for rpm installation
include: set_version_rpm.yml *<--- this does the check but it's skipped
for containerized, makes sense*
when: not is_containerized | bool

  - name: Set openshift_version for containerized installation
include: set_version_containerized.yml
when: is_containerized | bool

  - block:
- name: Get available {{ openshift.common.service_type}} version *<--
same check as set_version_rpm.yml, why here?*
  repoquery:
name: "{{ openshift.common.service_type}}"
ignore_excluders: true
  register: rpm_results
- fail:
msg: "Package {{ openshift.common.service_type}} not found"
  when: not rpm_results.results.package_found
...
when: *<-- why do we need the rpm package for a containerized install
on non atomic hosts (e.g. RHEL)?*
- is_containerized | bool
- not is_atomic | bool

On 21 October 2017 at 21:59, Lionel Orellana  wrote:

> Thanks Chris.
>
> I have those 3 properties (although it looks like deployment_type is now
> openshift_deployment_type? either way it's not working).
>
> Fair enough if it wants to install the excluders but why the
> atomic-openshift package?
>
>
>
> On 21 October 2017 at 21:48, Chris Ganderton  wrote:
>
>> >
>> > From: users-boun...@lists.openshift.redhat.com <
>> users-boun...@lists.openshift.redhat.com> on behalf of Lionel Orellana <
>> lione...@gmail.com>
>> > Sent: Saturday, October 21, 2017 11:14 AM
>> > To: users
>> > Subject: Containerized OCP requires atomic-openshift?
>> >
>> > Hi,
>> >
>> > I'm trying to install OCP 3.6. I've done a few installations of Origin
>> before but it's my first OCP.
>> >
>> > I'm installing on RHEL and have set containerized=true in the inventory.
>> >
>> > The byo playbook for some reason insists on requiring atomic-openshift
>> to be installed.
>> >
>> > Failure summary:
>> >
>> >   1. Hosts:
>> >  Play: Determine openshift_version to configure on first master
>> >  Task: openshift_version : fail
>> >  Message:  Package atomic-openshift not found
>> >
>>
>> Hi Lionel,
>>
>>
>> The playbook will still try to install the RPM packages for
>> docker-excluder and openshfit-excluder, even in a containerized
>> deployment.
>>
>>
>> Something that's tripped me up before as well, is having the correct
>> values for the below variables in the ansible inventory:
>>
>>
>> openshift_release=v3.6
>>
>> deployment_type=openshift-enterprise
>> containerized=True
>>
>> -Chris
>>
>> ___
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>
>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Containerized OCP requires atomic-openshift?

2017-10-21 Thread Chris Ganderton
Hi Lionel,

I think that package is still used as a comparison in containerized
deployments, so if the channel subscriptions aren't sufficient on the
systems you're deploying to, it won't be able to get the information
back about it.

-Chris

On 21 October 2017 at 11:59, Lionel Orellana  wrote:
> Thanks Chris.
>
> I have those 3 properties (although it looks like deployment_type is now
> openshift_deployment_type? either way it's not working).
>
> Fair enough if it wants to install the excluders but why the
> atomic-openshift package?
>
>
>
> On 21 October 2017 at 21:48, Chris Ganderton  wrote:
>>
>> >
>> > From: users-boun...@lists.openshift.redhat.com
>> >  on behalf of Lionel Orellana
>> > 
>> > Sent: Saturday, October 21, 2017 11:14 AM
>> > To: users
>> > Subject: Containerized OCP requires atomic-openshift?
>> >
>> > Hi,
>> >
>> > I'm trying to install OCP 3.6. I've done a few installations of Origin
>> > before but it's my first OCP.
>> >
>> > I'm installing on RHEL and have set containerized=true in the inventory.
>> >
>> > The byo playbook for some reason insists on requiring atomic-openshift
>> > to be installed.
>> >
>> > Failure summary:
>> >
>> >   1. Hosts:
>> >  Play: Determine openshift_version to configure on first master
>> >  Task: openshift_version : fail
>> >  Message:  Package atomic-openshift not found
>> >
>>
>> Hi Lionel,
>>
>>
>> The playbook will still try to install the RPM packages for
>> docker-excluder and openshfit-excluder, even in a containerized
>> deployment.
>>
>>
>> Something that's tripped me up before as well, is having the correct
>> values for the below variables in the ansible inventory:
>>
>>
>> openshift_release=v3.6
>>
>> deployment_type=openshift-enterprise
>> containerized=True
>>
>> -Chris
>>
>> ___
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>

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


Re: Containerized OCP requires atomic-openshift?

2017-10-21 Thread Lionel Orellana
Thanks Chris.

I have those 3 properties (although it looks like deployment_type is now
openshift_deployment_type? either way it's not working).

Fair enough if it wants to install the excluders but why the
atomic-openshift package?



On 21 October 2017 at 21:48, Chris Ganderton  wrote:

> >
> > From: users-boun...@lists.openshift.redhat.com  openshift.redhat.com> on behalf of Lionel Orellana 
> > Sent: Saturday, October 21, 2017 11:14 AM
> > To: users
> > Subject: Containerized OCP requires atomic-openshift?
> >
> > Hi,
> >
> > I'm trying to install OCP 3.6. I've done a few installations of Origin
> before but it's my first OCP.
> >
> > I'm installing on RHEL and have set containerized=true in the inventory.
> >
> > The byo playbook for some reason insists on requiring atomic-openshift
> to be installed.
> >
> > Failure summary:
> >
> >   1. Hosts:
> >  Play: Determine openshift_version to configure on first master
> >  Task: openshift_version : fail
> >  Message:  Package atomic-openshift not found
> >
>
> Hi Lionel,
>
>
> The playbook will still try to install the RPM packages for
> docker-excluder and openshfit-excluder, even in a containerized
> deployment.
>
>
> Something that's tripped me up before as well, is having the correct
> values for the below variables in the ansible inventory:
>
>
> openshift_release=v3.6
>
> deployment_type=openshift-enterprise
> containerized=True
>
> -Chris
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Containerized OCP requires atomic-openshift?

2017-10-21 Thread Chris Ganderton
>
> From: users-boun...@lists.openshift.redhat.com 
>  on behalf of Lionel Orellana 
> 
> Sent: Saturday, October 21, 2017 11:14 AM
> To: users
> Subject: Containerized OCP requires atomic-openshift?
>
> Hi,
>
> I'm trying to install OCP 3.6. I've done a few installations of Origin before 
> but it's my first OCP.
>
> I'm installing on RHEL and have set containerized=true in the inventory.
>
> The byo playbook for some reason insists on requiring atomic-openshift to be 
> installed.
>
> Failure summary:
>
>   1. Hosts:
>  Play: Determine openshift_version to configure on first master
>  Task: openshift_version : fail
>  Message:  Package atomic-openshift not found
>

Hi Lionel,


The playbook will still try to install the RPM packages for
docker-excluder and openshfit-excluder, even in a containerized
deployment.


Something that's tripped me up before as well, is having the correct
values for the below variables in the ansible inventory:


openshift_release=v3.6

deployment_type=openshift-enterprise
containerized=True

-Chris

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


Containerized OCP requires atomic-openshift?

2017-10-21 Thread Lionel Orellana
Hi,

I'm trying to install OCP 3.6. I've done a few installations of Origin
before but it's my first OCP.

I'm installing on RHEL and have set containerized=true in the inventory.

The byo playbook for some reason insists on requiring atomic-openshift to
be installed.

Failure summary:

  1. Hosts:
 Play: Determine openshift_version to configure on first master
 Task: openshift_version : fail
 Message:  Package atomic-openshift not found

I tried removing openshift_image_tag but same result. Why is it looking for
this rpm package for a containerized installation?

Thanks
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Q: Refer to runtime properties from within "templates"?

2017-10-21 Thread Tako Schotanus
Object Definition Files, I can live with that one :)

And I agree it's very useful to be able to put the whole "Application
Lifecycle Landscape", as you call it, inside one of them.
But... the issue we're encountering is with the "full parameterization"
part.
It's okay if every single property value within the Obj Def Files is within
your control, but the moment you let the system generate a value for you
that you need somewhere else things become more complex.

Let's say for example that your Obj Def File describes both a backend
service and a frontend web application that depends on it., The backend
service needs to be publically available because the web app's JavaScript
code needs to be able to access it, so no nice Kubernetes DNS tricks where
you can just use the name of the application as its host name to connect to.

Of course if you can just set the host name of the backend's Route element
everything is fine, but that isn't very useful for DEV and QA, DEV is most
likely running things on minishift or using "oc cluster up". If you use a
Route without a specified host name you get one generated for you nicely.
But of course now we have the problem of how to tell the frontend what URL
it should connect to! Which is what I'm trying to solve here:)


On Sat, Oct 21, 2017 at 2:01 AM, Louis Santillan 
wrote:

> Terminology: I tend to call the YAML/JSON files used in `oc apply -f ...`:
> YAML Files, Object Files, Object Definition Files, API Object Files.
> OpenShift also has multiple concepts of Template Files in the form of jinja
> files (which produce YAML Files) and multiple API Object Files in a single
> file YAML file, and parameterized API Object Files that contain a
> `parameters:` section one or more API Object Definitions [0].
>
> I find the latter especially useful.  You can create an entire Application
> Lifecycle Landscape (DEV, QA, PROD) and the requisite API Objects (bc, dc,
> svc, etc.) in one call to `oc process -f ... | oc appy -f -` with full
> parameterization [1].  Every single API Object can be created this way,
> and, you can add them to the OpenShift project namespace `openshift` and
> make your templates available to other users of the cluster (using `oc
> create template -f myTemplate.yaml`).
>
> [0] https://docs.openshift.com/container-platform/3.6/
> dev_guide/templates.html#writing-templates
> [1] https://docs.openshift.com/container-platform/3.6/
> dev_guide/templates.html#generating-a-list-of-objects
>
>
> ___
>
> LOUIS P. SANTILLAN
>
> SENIOR CONSULTANT, OPENSHIFT, MIDDLEWARE & DEVOPS
>
> Red Hat Consulting, NA US WEST 
>
> lpsan...@gmail.comM: 3236334854
> 
> TRIED. TESTED. TRUSTED. 
>
> On Thu, Oct 19, 2017 at 8:39 AM, Tako Schotanus 
> wrote:
>
>> Hi,
>>
>> is it possible in some way to refer to actual runtime values from within
>> an OpenShift template (I'm calling it templates because I don't know the
>> official terminology. I'm referring to the json/yaml files that can be
>> applied using "oc apply" for example).
>>
>> What I'm really trying to do is to figure out what hostname was used for
>> a Route that was created using an earlier apply and use it in the template
>> that is to be applied.
>>
>> I'm guessing there's no such thing, but I want to make sure before coming
>> up with some kind of system ourselves to do replacements in template files.
>>
>> Thanks
>>
>> --
>>
>> TAKO SCHOTANUS
>>
>> SENIOR SOFTWARE ENGINEER
>>
>> Red Hat
>>
>> 
>> 
>>
>>
>> ___
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>>
>


-- 

TAKO SCHOTANUS

SENIOR SOFTWARE ENGINEER

Red Hat



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


Re: OpenShift master keeps consuming lots and memory and swapping

2017-10-21 Thread Clayton Coleman
No one with 2 nodes and 11 namespaces needs 20GB.

Up to a few hundred pods and ten nodes the openshift processes themselves
shouldn't be using more than a few hundred megs.  If you plan on growing or
haven't upgraded to etcd3 you obviously want to leave some wiggle room, but
even very large clusters don't need that much.

Do keep an eye on etcd memory usage - if it's above 20% of physical you
need to grow your masters immediately.  But you should be nowhere near that
amount of memory at your size.


On Oct 21, 2017, at 7:26 AM, Louis Santillan  wrote:

Firstly, leaving swap enabled is an anti-pattern in general [0] as
OpenShift is then unable to recognize OOM conditions until performance is
thoroughly degraded.  Secondly, we generally recommend to our customers
that they have at least 20GB [1] for Masters.  I've seen many customers go
far past that to suit their comfort.


[0] https://docs.openshift.com/container-platform/3.6/admin_
guide/overcommit.html#disabling-swap-memory
[1] https://docs.openshift.com/container-platform/3.6/
install_config/install/prerequisites.html#production-
level-hardware-requirements


___

LOUIS P. SANTILLAN

SENIOR CONSULTANT, OPENSHIFT, MIDDLEWARE & DEVOPS

Red Hat Consulting, NA US WEST 

lpsan...@gmail.comM: 3236334854

TRIED. TESTED. TRUSTED. 

On Fri, Oct 20, 2017 at 4:54 PM, Joel Pearson  wrote:

> Hi,
>
> I've got a brand new OpenShift cluster running on OpenStack and I'm
> finding that the single master that I have is struggling big time, it seems
> to consume tons of virtual memory and then start swapping and slows right
> down.
>
> It is running with 16GB of memory, 40GB disk and 2 CPUs.
>
> The cluster is fairly idle, so I don't know why the master gets this way.
> Restarting the master solves the problem for a while, for example, I
> restarted it at 10pm last night, and when I checked again this morning it
> was in the same situation.
>
> Would having multiple masters alleviate this problem?
>
> Here is a snapshot of top:
>
> [image: Inline images 1]
>
> Any advice?  I've happy to build the cluster with multiple masters if it
> will help.
>
>
> --
> Kind Regards,
>
> Joel Pearson
> Agile Digital | Senior Software Consultant
>
> Love Your Softwareâ„¢ | ABN 98 106 361 273
>
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users