Skip to content
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

feat(RHOAIENG-8298): Replace spawn-fcgi with supervisord in code-server and r-studio server #587

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

atheo89
Copy link
Member

@atheo89 atheo89 commented Jun 25, 2024

Related to: https://issues.redhat.com/browse/RHOAIENG-8298

Description

How Has This Been Tested?

  1. Import the code-server and Rstudio server to ODH/RHOAI as custom notebooks Or do the same as Jiri did on this comment
  2. Spin up each of them
  3. Ensure that they work properly

Images:

code-server:

  • ocp-ci: quay.io/opendatahub/workbench-images@sha256:178ac76be7bf836955804d512bc7bfb2a0f18493e5256050a77d3306fcb80f86
  • gha: ghcr.io/atheo89/notebooks/workbench-images:codeserver-ubi9-python-3.9-RHOAIENG-3348_61c2fd959be157d298e7b6bbff5d3ff53512a186

RStudio-server:

  • ocp-ci: quay.io/opendatahub/workbench-images@sha256:8dc52d287420f973e1cb4491cbb3a191bbb3fbc7096242ddc7141df18f58c78d
  • gha: ghcr.io/atheo89/notebooks/workbench-images:rstudio-c9s-python-3.9-replace-spawn-fcgi_2ca3a1f7eaa3782efa9cb1412973e62bb74e3061

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@jiridanek
Copy link
Member

$ podman run -p 8787:8787 --rm -it ghcr.io/atheo89/notebooks/workbench-images:codeserver-ubi9-python-3.9-replace-spawn-fcgi_2ca3a1f7eaa3782efa9cb1412973e62bb74e3061

http://localhost:8787 shows the code-server, seems to work fine, and logs say

2024-06-25 11:45:29,077 INFO supervisord started with pid 4
Debug: Extension 'ms-python.python-2024.2.1' copied to runtime directory.
Debug: Extension 'ms-toolsai.jupyter-2023.9.100' copied to runtime directory.
Debug: Extension 'ms-toolsai.jupyter-keymap-1.1.2-universal' copied to runtime directory.
Debug: Extension 'ms-toolsai.jupyter-renderers-1.0.18-universal' copied to runtime directory.
Debug: Extension 'ms-toolsai.vscode-jupyter-cell-tags-0.1.8-universal' copied to runtime directory.
Debug: Extension 'ms-toolsai.vscode-jupyter-slideshow-0.1.5-universal' copied to runtime directory.
Running command: /usr/bin/code-server --bind-addr 0.0.0.0:8787 --disable-telemetry --auth none --disable-update-check /opt/app-root/src
2024-06-25 11:45:30,080 INFO spawned: 'fcgiwrap' with pid 44
[2024-06-25T11:45:30.620Z] info  code-server 4.22.0 e5d145fdf32e82be2a0f8de9a3b05f65b13052b6
[2024-06-25T11:45:30.621Z] info  Using user-data-dir /opt/app-root/src/.local/share/code-server
[2024-06-25T11:45:30.633Z] info  Using config file /opt/app-root/src/.config/code-server/config.yaml
[2024-06-25T11:45:30.633Z] info  HTTP server listening on http://0.0.0.0:8787/
[2024-06-25T11:45:30.633Z] info    - Authentication is disabled
[2024-06-25T11:45:30.633Z] info    - Not serving HTTPS
[2024-06-25T11:45:30.633Z] info  Session server listening on /opt/app-root/src/.local/share/code-server/code-server-ipc.sock
[11:45:31] 




[11:45:31] Extension host agent started.
2024-06-25 11:45:31,082 INFO success: fcgiwrap entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
[11:45:31] Started initializing default profile extensions in extensions installation folder. file:///opt/app-root/src/.local/share/code-server/extensions
[11:45:31] Completed initializing default profile extensions in extensions installation folder. file:///opt/app-root/src/.local/share/code-server/extensions
File not found: /usr/lib/code-server/lib/vscode/out/vsda_bg.wasm
File not found: /usr/lib/code-server/lib/vscode/out/vsda.js
[11:45:52] [10.0.2.100][78a5a2fb][ManagementConnection] New connection established.
[11:45:52] [10.0.2.100][8b86ac30][ExtensionHostConnection] New connection established.
[11:45:53] [10.0.2.100][8b86ac30][ExtensionHostConnection] <94> Launched Extension Host Process.
[11:45:56] [10.0.2.100][78a5a2fb][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[11:45:56] [10.0.2.100][8b86ac30][ExtensionHostConnection] <94> Extension Host Process exited with code: 0, signal: null.
File not found: /usr/lib/code-server/lib/vscode/out/vsda_bg.wasm
File not found: /usr/lib/code-server/lib/vscode/out/vsda.js
[11:45:57] [10.0.2.100][2da47f50][ManagementConnection] New connection established.
[11:45:57] [10.0.2.100][16704729][ExtensionHostConnection] New connection established.
[11:45:57] [10.0.2.100][16704729][ExtensionHostConnection] <135> Launched Extension Host Process.

So this seems to be fine.

@atheo89 do you plan to implement (in a subsequent PR) the other change suggested on RHOAIENG-8298? That is, running nginx under supervisord as well?

@jiridanek jiridanek added the lgtm label Jun 25, 2024
@atheo89
Copy link
Member Author

atheo89 commented Jun 25, 2024

@atheo89 do you plan to implement (in a subsequent PR) the other change suggested on RHOAIENG-8298? That is, running nginx under supervisord as well?

Yeah, since this change will be an extreme make over. For now we will just replace the fcgi

codeserver/ubi9-python-3.9/Dockerfile Outdated Show resolved Hide resolved
rstudio/c9s-python-3.9/Dockerfile Outdated Show resolved Hide resolved
@jiridanek
Copy link
Member

jiridanek commented Jun 26, 2024

The PRs on https://issues.redhat.com/browse/RHOAIENG-8298 are linked wrong, you are missing red-hat-data-services#278 link there.

Anyways, having the rhel rstudio in the downstream fork only is really silly. We can put it here, there's nothing to fear, only fear itself! And fear is the mind killer. And https://mike-bland.com/the-rainbow-of-death; this person always has such cheerful aphorisms.

@atheo89
Copy link
Member Author

atheo89 commented Jun 26, 2024

The PRs on https://issues.redhat.com/browse/RHOAIENG-8298 are linked wrong, you are missing red-hat-data-services#278 link there.

Hmmm I don't get it? What link is wrong?

@jiridanek
Copy link
Member

jiridanek commented Jun 26, 2024

The PRs on https://issues.redhat.com/browse/RHOAIENG-8298 are linked wrong, you are missing red-hat-data-services#278 link there.

Hmmm I don't get it? What link is wrong?

image

the second one ;P

@atheo89
Copy link
Member Author

atheo89 commented Jun 26, 2024

the second one ;P

Oops, thanks!

Copy link

@adelton adelton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@adelton
Copy link

adelton commented Jun 26, 2024

LGTM.

Hmm, immediatelly after this, there is

openshift-ci (bot) assigned adelton

I have no idea what being assigned on a PR mean. Is there any documentation around that? Can we stop the bot from doing this?

@jiridanek
Copy link
Member

Immediately after that, there is

The pull request process is described here

This seems to be how prow works. No idea why it puts reviewers as GitHub Assignees and not Reviewers, but that's how it rolls.

@adelton
Copy link

adelton commented Jun 26, 2024

This seems to be how prow works. No idea why it puts reviewers as GitHub Assignees and not Reviewers, but that's how it rolls.

Thanks for the pointer to prow. I've now filed kubernetes-sigs/prow#199 to get some insight.

@harshad16
Copy link
Member

/lgtm
/approve

thanks for the work

Copy link
Contributor

openshift-ci bot commented Jun 26, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adelton, harshad16, jiridanek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jiridanek
Copy link
Member

/test codeserver-notebook-e2e-tests

@jiridanek
Copy link
Member

jiridanek commented Jun 26, 2024

/retitle feat(RHOAIENG-8298): Replace spawn-fcgi with supervisord in code-server and r-studio server

@openshift-ci openshift-ci bot changed the title Replace spawn-fcgi with supervisord in code-server and r-studio server feat(RHOAIENG-8298): Replace spawn-fcgi with supervisord in code-server and r-studio server Jun 26, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit bbba58c into opendatahub-io:main Jun 26, 2024
37 checks passed
@atheo89 atheo89 deleted the replace-spawn-fcgi branch October 23, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants