VIFIB DESCENTRALIZED CLOUD COMPUTING

SlapOS is a decentralized Cloud Computing technology that can automate the deployment and configuration of applications in a heterogeneous environment.
1 - 7 of 7 records
Summary

Hi,

I am trying to request an apache frontend for jupyter, see my request below. After the request my frontend instance is in state "started" but the Connection Parameter field is empty. Therfore the following questions:

  • Is my request correct ?
  • If it is not, how can I check if my parametes are correct or not ?
  • If not, will future versions of slapos forward errors in some way so that I can debug ?
  • I tried to do my request based on the documentation in https://lab.nexedi.com/nexedi/slapos/tree/master/software/apache-frontend. In this documentation there are two software_type defined in the same request: "RootSoftwareInstance" and "custom-personal". If I do the request as in the documentation, it fails. Which of the two software_types is correct for my request, RootSoftwareInstance or custom-personal ?
  • This is my request

    instance = request(
      software_release=apache_frontend,
      partition_reference='my-frontend-jupyter',
      shared=True,
      software_type="custom-personal",
      partition_parameter_kw={
        "url":"https://[1:2:3:4]:8888",
        "apache_custom_http":'''
      SSLProxyEngine on
      SSLProxyVerify none
      SSLProxyCheckPeerCN off
      SSLProxyCheckPeerName off
      ProxyPreserveHost On
      ProxyRequests off
      
      ProxyPass /api/kernels/ wss://[1:2:3:4]:8888/api/kernels/
      ProxyPassReverse /api/kernels/ https://[1:2:3:4]:8888/api/kernels/
    
      ProxyPass / https://[1:2:3:4]:8888/
      ProxyPassReverse / https://[1:2:3:4]:8888/
    ''',
      }
    )
    

I forgot: In my request apache_frontend="http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg"

You cannot use the parameters apache_custom_http or apache_custom_https

Except my this, it is good. 

Those parameters requires approval and review from the instance owner (if you are using VIFIB, you must open a ticket for this), so if you request like this you get probably blocked. (this is like this for security reasons).

I think you can request several slaves for the same thing, and using "url" and "path" parameters.

Regards, Rafael 

Hi, thanks for your quick help! Following your advice, I did 2 requests like this:

instance = request(
  software_release=apache_frontend,
  partition_reference='frontend-api',
  shared=True,
  software_type="RootSoftwareInstance",
  partition_parameter_kw={
    "url":"wss://[1:2:3:4]:8888/api/kernels/",
    "path":"/api/kernels/"
  }
)

instance = request(
  software_release=apache_frontend,
  partition_reference='frontend-root',
  shared=True,
  software_type="RootSoftwareInstance",
  partition_parameter_kw={
    "url":"https://[1:2:3:4]:8888/",
    "path":"/"
  }
)
This created 2 frontends with no connection parameter. Is there a document which explains how to "request several slaves for the same thing" ?

Hello,

Did you get any request parameter in the meantime? The frontend can need up to a few hours in order to get return parameters.

I see you are using Web Sockets, we did not test WebSocket with the frontend, there is no guaranty it will work. Please update us on this status.

What do you mean by: " Is there a document which explains how to "request several slaves for the same thing" ?"

Thanks

Cédric LN 

Hi Cédric,

Yes, in the meantime I got some request parameters but sadly they do not work yet for jupyter. The problem is that to connect to jupyter, I need more than one redirect at the same time: I need the path "/" to use https and I need the path "/api/kernels/" to use wss, while the reverse proxy for "/api/kernels" needs to use https again. With plain apache, the only configuration which works for me is the one I wrote in the very first post of this thread in "apache_custom_http". Then Rafael wrote that apache_custom_http is not allowed in vifib for security reasons. This is why tried now to convert the working configuration into apache frontend request parameters only by using "url" and "path" parameters, but I don't know how to use several "url" and several "path" parameters in the same request. Rafael then wrote in the third post of this thread "I think you can request several slaves for the same thing, and using url and path parameters.". This is why I asked, if there is a document how to achieve this.

Hello,

Now I understand. You will not be able to do this with current frontend .The only way is to request a Vifib administrator to authorized your custom slave.

Regards

Cédric