Re: Trying to import Tomcat container

2018-01-01 Thread Clayton Coleman
How are you providing configuration to the container?  Note that when
openshift creates an app from an image it adds emptyDir volumes to the
created app.  That means the directories end up empty instead of having the
default image content.

Check whether /opt/apache-tomcat-8.5.14/conf/ is a volume in the image, and
if so, you can remove the volume from the app definition (the deployment
config)

On Jan 1, 2018, at 10:15 AM, Hetz Ben Hamo  wrote:

Hi,

I'm trying to import a simple Tomcat container with the 'calendar' webapp
(already in the image) to Openshift Origin (3.7)

As a container, it runs well and I can see the webapp running on the
browser. I save the container, import it to OpenShift - import ok.

Then when I try to create a new app with the Image, I'm getting this error:

Jan 01, 2018 3:09:19 PM org.apache.catalina.startup.Catalina load
WARNING: Unable to load server configuration from
[/opt/apache-tomcat-8.5.14/conf/server.xml]
Jan 01, 2018 3:09:19 PM org.apache.catalina.startup.Catalina load
WARNING: Unable to load server configuration from
[/opt/apache-tomcat-8.5.14/conf/server.xml]
Jan 01, 2018 3:09:19 PM org.apache.catalina.startup.Catalina start
SEVERE: Cannot start server. Server instance is not configured.

I checked the container, and the /opt/apache-tomcat-8.5.14/conf/server.xml
is right there iin the correct path.

Am I missing something?

Thanks

___
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: Trying to import Tomcat container

2018-01-01 Thread Hetz Ben Hamo
Looks like there isn't one and it's OK, it's just a POC.

Speaking of POC, I want to create a VM with Openshift using the Ansible
installer. I did that already but I wonder: I need to transfer the VM
(after the installation) and change the IP/Subnet/Gateway/DNS - will this
affect the  Openshift ? DNS record names will be the same, just the IP will
be different.



On Mon, Jan 1, 2018 at 6:21 PM, Tim Dudgeon  wrote:

> Which Tomcat image is this based on?
> Probably the problem is that the image runs as the root user (e.g. the
> standard Docker image on Docker Hub does this).
> By default OpenShift does not allow to run containers as root user -
> instead it tries to run as an OpenShift assigned non-privileged user.
> Probably this is the case for you so your container is running as a user
> that does not have privs to read the server.xml file.
>
> A workaround for this is described here:
> https://docs.openshift.org/latest/admin_guide/manage_scc.
> html#enable-dockerhub-images-that-require-root
> But better to use an image that allows to run as an arbitrarily assigned
> user ID.
> On 01/01/18 15:15, Hetz Ben Hamo wrote:
>
> Hi,
>
> I'm trying to import a simple Tomcat container with the 'calendar' webapp
> (already in the image) to Openshift Origin (3.7)
>
> As a container, it runs well and I can see the webapp running on the
> browser. I save the container, import it to OpenShift - import ok.
>
> Then when I try to create a new app with the Image, I'm getting this error:
>
> Jan 01, 2018 3:09:19 PM org.apache.catalina.startup.Catalina load
> WARNING: Unable to load server configuration from
> [/opt/apache-tomcat-8.5.14/conf/server.xml]
> Jan 01, 2018 3:09:19 PM org.apache.catalina.startup.Catalina load
> WARNING: Unable to load server configuration from
> [/opt/apache-tomcat-8.5.14/conf/server.xml]
> Jan 01, 2018 3:09:19 PM org.apache.catalina.startup.Catalina start
> SEVERE: Cannot start server. Server instance is not configured.
>
> I checked the container, and the /opt/apache-tomcat-8.5.14/conf/server.xml
> is right there iin the correct path.
>
> Am I missing something?
>
> Thanks
>
>
> ___
> users mailing 
> listusers@lists.openshift.redhat.comhttp://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


Re[2]: External network for one project

2018-01-01 Thread Aleksandar Lazic


-- Originalnachricht --
Von: "Jacek Suchenia" 
An: "Aleksandar Lazic" 
Cc: "Openshift Users" 
Gesendet: 30.12.2017 08:57:14
Betreff: Re: External network for one project


Aleksandar

Thank you for your answer, I configured ingress IP range and its 
working fine for services where NAT is fine, however I have a case 
where I wish to deliver external IP directly to Pod.

Well I think youl will then need the nodeport solution.

https://docs.openshift.org/latest/dev_guide/expose_service/expose_internal_ip_nodeport.html#getting-traffic-into-cluster-nodeport

I have add some pictures to my blog post which also describes the 
ingress setup


https://www.me2digital.com/blog/2017/01/12-openshift-ingress-setup/

You can share the external ip with ipfailover cross nodes.

Hth
Aleks


Jacek

30.12.2017 1:38 AM "Aleksandar Lazic"  napisaƂ(a):

Hi

-- Originalnachricht --
Von: "Jacek S." >
An: "Openshift Users" >

Gesendet: 27.12.2017 11:58:13
Betreff: External network for one project


Hi

I'm using Openshift 3.6 on dedicated, bare-metal machines (with 
openshift-ovs-multitenant networking plugin).
I'd like to run in my cluster 3rd party images that require external 
IP address attached (i'm not able to configure external IP). Is there 
a way to define secondary cluster network, do not NAT it and attach 
it to some pods in one particular project?
Maybe you can use the `ExternalIPNetworkCIDRs`, but how does the 
routing works to your cluster with the external IP, which you can't 
change ?


https://docs.openshift.org/latest/admin_guide/tcp_ingress_external_ports.html 

https://docs.openshift.org/latest/install_config/master_node_configuration.html#master-node-config-network-config 




Regards
Jacek


Best regards
aleks

smime.p7s
Description: S/MIME cryptographic signature
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Trying to import Tomcat container

2018-01-01 Thread Tim Dudgeon

Which Tomcat image is this based on?
Probably the problem is that the image runs as the root user (e.g. the 
standard Docker image on Docker Hub does this).
By default OpenShift does not allow to run containers as root user - 
instead it tries to run as an OpenShift assigned non-privileged user. 
Probably this is the case for you so your container is running as a user 
that does not have privs to read the server.xml file.


A workaround for this is described here:
https://docs.openshift.org/latest/admin_guide/manage_scc.html#enable-dockerhub-images-that-require-root
But better to use an image that allows to run as an arbitrarily assigned 
user ID.


On 01/01/18 15:15, Hetz Ben Hamo wrote:

Hi,

I'm trying to import a simple Tomcat container with the 'calendar' 
webapp (already in the image) to Openshift Origin (3.7)


As a container, it runs well and I can see the webapp running on the 
browser. I save the container, import it to OpenShift - import ok.


Then when I try to create a new app with the Image, I'm getting this 
error:


Jan 01, 2018 3:09:19 PM org.apache.catalina.startup.Catalina load
WARNING: Unable to load server configuration from 
[/opt/apache-tomcat-8.5.14/conf/server.xml]

Jan 01, 2018 3:09:19 PM org.apache.catalina.startup.Catalina load
WARNING: Unable to load server configuration from 
[/opt/apache-tomcat-8.5.14/conf/server.xml]

Jan 01, 2018 3:09:19 PM org.apache.catalina.startup.Catalina start
SEVERE: Cannot start server. Server instance is not configured.

I checked the container, and the 
/opt/apache-tomcat-8.5.14/conf/server.xml is right there iin the 
correct path.


Am I missing something?

Thanks


___
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


Trying to import Tomcat container

2018-01-01 Thread Hetz Ben Hamo
Hi,

I'm trying to import a simple Tomcat container with the 'calendar' webapp
(already in the image) to Openshift Origin (3.7)

As a container, it runs well and I can see the webapp running on the
browser. I save the container, import it to OpenShift - import ok.

Then when I try to create a new app with the Image, I'm getting this error:

Jan 01, 2018 3:09:19 PM org.apache.catalina.startup.Catalina load
WARNING: Unable to load server configuration from
[/opt/apache-tomcat-8.5.14/conf/server.xml]
Jan 01, 2018 3:09:19 PM org.apache.catalina.startup.Catalina load
WARNING: Unable to load server configuration from
[/opt/apache-tomcat-8.5.14/conf/server.xml]
Jan 01, 2018 3:09:19 PM org.apache.catalina.startup.Catalina start
SEVERE: Cannot start server. Server instance is not configured.

I checked the container, and the /opt/apache-tomcat-8.5.14/conf/server.xml
is right there iin the correct path.

Am I missing something?

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