2

I have a pod in Redhat Openshift running Tomcat and inside Tomcat I have Ozone Widget Framework, my site hosted in Tomcat. I have executed the oc command to use my existing configuration so that my pod won't disappear and lose my session and data. I ran

oc cluster up --host-data-dir=/path_to_data/openshiftdata --use-existing-config

But after making changes within OWF, when I take down the cluster and bring it back up my pod lives on, but my OWF instance is reverted back to it's default state.

How do I get Openshift to let Tomcat retain OWF's state?

1 Answer 1

1

You need to use a Persitent Volume.

Your /path_to_data/openshiftdata is probably on a disk that belongs to the pod and is being destroyed each time.

2
  • My path_to_data is set to a folder in my home directory, I don't think it can be owned by the pod. My Openshift project and it's pod were being destroyed when I shut down Openshift until I started using the switches above.
    – DemiSheep
    Mar 20, 2018 at 1:12
  • 1
    I undeleted this post as it looks like a valuable answer to me. Please let me know if you disagree.
    – 030
    Dec 23, 2019 at 9:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.