-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploying on Rancher #357
Comments
Hello @David-Development, first of all, sorry for the late reply... I have managed to deploy REANA on Rancher following your steps. I've taken the Kubernetes configuration from Rancher UI and copied it over to And it looks more or less like this: apiVersion: v1
kind: Config
clusters:
- name: "reana"
cluster:
server: "https://localhost:8443/k8s/clusters/c-x77qs"
api-version: v1
certificate-authority-data: "~~~~~~~"
users:
- name: "user-~~~~"
user:
token: "~~~~~~~~~~~~"
contexts:
- name: "reana"
context:
user: "user-~~~~"
cluster: "reana"
current-context: "reana" Right after I just run Regarding accessing the services from outside the cluster, I have tried getting the address reserved for the $ curl http://192.168.65.3:32121/
curl: (7) Failed to connect to 192.168.65.3 port 32121: Operation timed out This seems to be a problem that could be solved with some Rancher experience, did you manage to have it working? |
Something important to notice which I have forgotten before, you should use Regarding fully running REANA inside Rancher, as a workaround for the issue of not being able to access services from outside the cluster and to make sure that things are working I have run the
$ kubectl exec -ti server-657b47685b-ltm8d bash
>
> pip install reana-client
> export REANA_SERVER_URL=http://localhost:5000
> export REANA_ACCESS_TOKEN=FIXME
> cd /tmp/
> git clone https://github.com/reanahub/reana-demo-helloworld
> cd reana-demo-helloworld/
> reana-client create
> export REANA_WORKON=workflow.2
> reana-client upload
> reana-client start
> reana-client status
> reana-client download
> cat results/greetings.txt |
@diegodelemos Thank you for your help! I ran the script again today (using the latest version) and the problem was gone. I think the "timeout" occurs because the service is not running on that port anymore? On my cluster the service was migrate from one node to another a couple of times. The port changed every time. I wrote a small script to automate the connect call (I'm using it in a Docker container). Maybe this will be helpful for someone. KUBE_REANA_POD_NAME=$(kubectl get pods -l app=server -o=custom-columns=:.metadata.name | tr -d '\n')
KUBE_REANA_NODE_NAME=$(kubectl get pods -l app=server -o=custom-columns=:.spec.nodeName | tr -d '\n')
KUBE_REANA_SERVICE_PORT=$(kubectl get service server -n default -o=custom-columns=:.spec.ports[].nodePort | tr -d '\n')
# extract cluster-url and port
$(reana-cluster env --include-admin-token) > ./exports.sh
source ./exports.sh
export REANA_SERVER_URL=http://${KUBE_REANA_NODE_NAME}:${KUBE_REANA_SERVICE_PORT}/
echo "REANA_SERVER_URL: $REANA_SERVER_URL"
echo "REANA_ACCESS_TOKEN: $REANA_ACCESS_TOKEN"
# run sample workflow
WORKFLOW_NAME="helloworld-`date +%s`"
git clone https://github.com/reanahub/reana-demo-helloworld
cd reana-demo-helloworld/
reana-client create --name ${WORKFLOW_NAME} --skip-validation
export REANA_WORKON=${WORKFLOW_NAME}
reana-client upload
reana-client start
reana-client status
reana-client status
reana-client download
cat results/greetings.txt As I can't use an Ingress Controller, setting a hostPort would be useful to me. However updating the service deployed by reana does not work. kubectl patch service server -n default --type='json' -p='[{"op": "add", "path": "/spec/ports/0/hostPort", "value": 54321}]'
kubectl patch service server -n default --type='json' -p='[{"op": "add", "path": "/spec/nodeSelector", "value": { "node-role.kubernetes.io/etcd": "true" }}]' |
Dear David, Diego, We were following your instructions in order to deploy the reana-cluster on a Rancher Kubernetes Cluster (Rancher version v2.2.4, kubernetes version v1.13.5, Reana cluster 0.5.0, python 2.7).
So this were our steps:
version: "v1.14.0"version: "v1.13.5"
Do you know what's happening? Any help would be very appreciated! |
Hi @jordidem, REANA-Cluster 0.5.0 has no upper version limit for The easiest and fastest possible fix would downgrade |
Dear Rokas,
Thanks for your quick answer. This solved my issue!
El dc., 17 jul. 2019, 19:43, Rokas Maciulaitis <notifications@github.com>
va escriure:
… Hi @jordidem <https://github.com/jordidem>,
REANA-Cluster 0.5.0 has no upper version limit for Kubernetes package -
https://github.com/reanahub/reana-cluster/blob/14702db6d579cc2d31c56fcfe4ce73aded1bd7d0/setup.py#L55
So I guess you got Kubernetes 10 installed in your virtualenv, which is
incompatible with REANA-Cluster 0.5.0.
The easiest and fastest possible fix would downgrade Kubernetes version
in your virtualenv.
$ pip install pip install kubernetes==9.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/reanahub/reana-cluster/issues/117?email_source=notifications&email_token=AI3F55HJ65XEUUDDIXEMY3LP75K5RA5CNFSM4FVE5UN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2F44RY#issuecomment-512478791>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI3F55HUCDZJOKXWCCGYWPDP75K5RANCNFSM4FVE5UNQ>
.
|
@roksys @diegodelemos We should perhaps revive the topic of pinning all dependencies and use something like |
Dear all, Its Jordi again. we are still trying to make the deploy of reana on rancher and we are facing additional problems. This is our Rancher deploy This are the versions of the These are our main problems to solve:
Do you know what is happening?
(myreana) :~/reana-client/run$ reana-client ping (myreana): The task is not running and we get this output: PROGRESS -/-, so when we try to download the output it is not in the workspace...We don't understand why the task it's not running, we couldn't find any hint in the logs
Thanks again for your help! |
(1) Regarding (2) For debugging running workflows, the best technique is to use (3) Regarding ingress, you may want to check Ben's write-up https://bengalewsky.github.io/openstack/reana/hep/scailfin/2019/01/24/ZeroToReanaOnOpenstack.html containing musings about installing REANA on non-CERN infrastructure. There are parts touching ingress which may be perhaps useful for your scenario. |
One of the main issues we had deploying the Reana Cluster using Rancher was related to the mounting paths for the job pods in the context of using REANA with the local disk on a virtualized server that is hosting the reana-server. The issue caused the failure of the job because the mount point and the root path for the user/workflow workspace was not properly set. After asking for some help in the gitter chat, we managed to solve this issue with the following workaround extracted from comment of gitlawr on rancher/rancher#14836 . Literally we did the following steps
services:
Notes: |
Issue:
When deploying Reana-Cluster onto a Rancher Kubernetes Cluster, I'm running into some certificate issues. Kubectl, on the other hand, still works without problems.
Rancher is using port
8443
,k8s
API is available at (https://192.168.1.10:8443/k8s/clusters/c-rqbzb
). I am able to access the urlhttps://192.168.1.10:8443/k8s/clusters/c-rqbzb/api/v1/namespaces/default/secrets
in my browser.The certificate for rancher is auto-generated (self-signed). Could this be the problem? Btw. my kube-config file contains the
certificate-authority-data
section. Kubectl is not complaining about any ssl issues.I'm trying to start my Reana-Cluster with the following command:
Steps to reproduce:
# run rancher docker run -d --name=rancher --restart=unless-stopped -p 8080:80 -p 8443:443 rancher/rancher:v2.0.8
~/.kube/config
The text was updated successfully, but these errors were encountered: