Commit 48f6feeb authored by Alain Takoudjou's avatar Alain Takoudjou

fix monitor in jupyter: allow erp5 sr to compile first

parent fdd3c8a7
...@@ -2,27 +2,6 @@ ...@@ -2,27 +2,6 @@
parts = parts =
instance instance
publish-connection-parameter publish-connection-parameter
## Monitoring part XXX whe should not have to specify all parts like this
## Parts to add for monitoring
certificate-authority
cron
cron-entry-monitor
cron-entry-rss
deploy-index
deploy-settings-cgi
deploy-status-cgi
deploy-status-history-cgi
setup-static-files
certificate-authority
zero-parameters
public-symlink
cgi-httpd-wrapper
cgi-httpd-graceful-wrapper
monitor-promise
monitor-instance-log-access
## Monitor for ipython
monitor-current-log-access
monitor-deploy-set-password-cgi
erp5-kernel erp5-kernel
kernel-json kernel-json
custom-js custom-js
...@@ -101,20 +80,21 @@ mode = 0744 ...@@ -101,20 +80,21 @@ mode = 0744
context = context =
raw config_cfg ${buildout:directory}/knowledge0.cfg raw config_cfg ${buildout:directory}/knowledge0.cfg
[monitor-current-log-access] [monitor-conf-parameters]
< = monitor-directory-access private-path-list +=
source = ${instance-parameter:logfile} ${instance-parameter:logfile}
# XXX first allow test to run
[monitor-deploy-set-password-cgi] [monitor-deploy-set-password-cgi]
<= dynamic-jinja2-template-base <= dynamic-jinja2-template-base
template = {{ ipython_notebook_set_password_location }}/{{ ipython_notebook_set_password_filename }} template = {{ ipython_notebook_set_password_location }}/{{ ipython_notebook_set_password_filename }}
rendered = ${monitor-directory:knowledge0-cgi}/${:filename} rendered = ${directory:etc}/${:filename}
filename = ipython-notebook-password.cgi filename = ipython-notebook-password.cgi
mode = 0744 mode = 0744
context = context =
raw config_cfg ${buildout:directory}/knowledge0.cfg raw config_cfg ${buildout:directory}/knowledge0.cfg
raw python_executable {{ bin_directory }}/ipython raw python_executable {{ bin_directory }}/ipython
key pwd monitor-directory:knowledge0-cgi # key pwd monitor-directory:knowledge0-cgi
key this_file :filename key this_file :filename
key httpd_graceful cgi-httpd-graceful-wrapper:rendered key httpd_graceful cgi-httpd-graceful-wrapper:rendered
...@@ -136,7 +116,10 @@ erp5_kernel_dir = ${:ipython_kernel_dir}/ERP5 ...@@ -136,7 +116,10 @@ erp5_kernel_dir = ${:ipython_kernel_dir}/ERP5
[publish-connection-parameter] [publish-connection-parameter]
recipe = slapos.cookbook:publish.serialised recipe = slapos.cookbook:publish.serialised
url = https://[${instance-parameter:host}]:${instance-parameter:port} url = https://[${instance-parameter:host}]:${instance-parameter:port}
monitor_url = ${monitor-parameters:url} monitor-base-url = ${publish:monitor-base-url}
monitor-url = ${publish:monitor-url}
monitor-user = ${publish:monitor-user}
monitor-password = ${publish:monitor-password}
  • @alain.takoudjou building Wendelin SR today the modifications in these lines caused me the following error:

    [2016-05-05 23:32:43,049] INFO       Getting section publish.
    [2016-05-05 23:32:43,049] INFO     Error: The referenced section, 'publish', was not defined.
  • hi, publish section is defined in monitor_template: https://lab.nexedi.com/nexedi/slapos/blob/48f6feeb8e0bdbfbfc1a219bde7b614df013b085/software/ipython_notebook/instance.cfg.in#L9 maybe you need to recompile everything from scratch. I'll try also to compile.

  • I had this error in a fresh instance, created on last Thursday, and I can confirm that even with this line the error still happens.

  • @alain.takoudjou on my instance the monitor_template is resolving to this string in the compiled template: /srv/slapgrid/slappart0/srv/runner/software/3d94ee99a02b46b3d2531f882b794f0f/parts/monitor-template-dummy/dummy.cfg, which is an empty file.

    Edited by Douglas
  • I understand, I will just remove monitoring from ipython_notebook software release. Rafael said it's not needed.

  • I clarify before it cause miss-information.

    We want to include monitor on all software releases available, but at the first moment, while we are rewriting it, we are only applying on webrunner, kvm, apache-frontend and powerdns, and slowly we will include on all others.

    In meanwhile we remove the old monitor from where it is not needed, and later we readd in a clean way.

    About the ipython notebook itself, it is not so good erp5 extends another software, it would be better to split ipython_notebook in a stack (and add stack to erp5) + software release which reuses the stack.

Please register or sign in to reply
[erp5-kernel] [erp5-kernel]
<= dynamic-jinja2-template-base <= dynamic-jinja2-template-base
......
...@@ -60,12 +60,12 @@ recipe = slapos.recipe.template:jinja2 ...@@ -60,12 +60,12 @@ recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg.in template = ${:_profile_base_location_}/instance.cfg.in
rendered = ${buildout:directory}/template.cfg rendered = ${buildout:directory}/template.cfg
mode = 0644 mode = 0644
md5sum = c6b82a386a72ed72301302c3132ffb71 md5sum = 18191556b80360c1e8632ca759e17385
context = context =
key bin_directory buildout:bin-directory key bin_directory buildout:bin-directory
key develop_eggs_directory buildout:develop-eggs-directory key develop_eggs_directory buildout:develop-eggs-directory
key eggs_directory buildout:eggs-directory key eggs_directory buildout:eggs-directory
key monitor_template monitor-template:output key monitor_template monitor-template:rendered
key openssl_output openssl-output:openssl key openssl_output openssl-output:openssl
key python_executable python2.7:executable key python_executable python2.7:executable
key ipython_notebook_config_location ipython-notebook-config:location key ipython_notebook_config_location ipython-notebook-config:location
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment