In order to make OOD server auto deployed. We have configured two servers for ondemand. (A)One is manually configured, (B)another one is configured with salt autoconfiguration tool.
Server B works on other applications but bc_matlab and bc_desktop. Since both servers are pointing to the same scheduler, and can see the submitted jobs from both servers. The same bc_desktop job works on server A but not on server B. The VNC session is running on the compute node, but on server B, it just hangs with a connecting message.
Hi Cherry. Thanks for your post and your question. This is definitely a tough one. With that being the case, I’m going to ask what may be perceived as some basic questions, so please bare with me.
Have you compared the 2 installs to ensure server B is setup properly?
Have you checked the logs for errors on server B.
If you can please send us the logs for server B for when you are trying to launch the failing apps, that would be great.
After upgrading server B to 2.0.23, dashboard failed to start with error:
Could not spawn process for application /var/www/ood/apps/sys/dashboard: The application encountered the following error: undefined method `kubernetes?’ for #OodCore::Cluster:0x000000000323ebc0 (NoMethodError)
Error ID: 41a390e2
Error details saved to: /tmp/passenger-error-iOuqMi.html
I think that I found the root cause, which is I have done some customization in /var/www/ood/apps/sys/dashboard/config/initializer by adding few files, looks like that dashborad doesn’t like it.
Putting it under /etc/ood/config/apps/dashboard/initializers seems working.
And the upgrades automatically resolves bc_desktop issue.
Could you let me know what is best practice on putting things under /var/www/ood/apps vs /etc/ood/config/apps?
Always put configurations in /etc/ood/config because they will keep through RPM updates. Anything in /var/www/ood/apps will be overwritten during updates.