# Testing ondemand

**URL:** https://discourse.openondemand.org/t/testing-ondemand/48
**Category:** Get Help
**Created:** [October 18, 2018, 6:01pm UTC](https://discourse.openondemand.org/t/testing-ondemand/48 "2018-10-18T18:01:50Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![wew](https://avatars.discourse-cdn.com/v4/letter/w/8edcca/32.png) [@wew](https://discourse.openondemand.org/u/wew)
#### Post date: [October 18, 2018, 6:01pm UTC](https://discourse.openondemand.org/t/testing-ondemand/48/1 "2018-10-18T18:01:50Z")

</div>

We have been able to successfully install ondemand and are now in the testing phase. The following is our cluster yml file monsoon.yml:

```auto
# /etc/ood/config/clusters.d/monsoon.yml
---
v2:
  metadata:
    title: "Monsoon Cluster"
  login:
    host: "wind.hpc.nau.edu"
job:
    adapter: "slurm"
    cluster: "monsoon"
    bin: "/usr/bin"
    conf: "/etc/slurm/slurm.conf"

```

When we run the following we get an error we are not sure how to correct. Ignoring the Rails error of course.

[wew@ondemand /var/www/ood/apps/sys/dashboard]$ sudo su $USER -c ‘scl enable rh-ruby22 nodejs010 – bin/rake test:jobs:monsoon RAILS\_ENV=production’  
Rails Error: Unable to access log file. Please ensure that /var/www/ood/apps/sys/dashboard/log/production.log exists and is writable (ie, make it writable for user and group: chmod 0664 /var/www/ood/apps/sys/dashboard/log/production.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.  
Skipping ‘monsoon’ as it doesn’t allow job submission.

We’re not sure about setup of the remote job submission portion under slurm on our Centos 6 cluster.

---

<div class="post-metadata">

### Author: ![wew](https://avatars.discourse-cdn.com/v4/letter/w/8edcca/32.png) [@wew](https://discourse.openondemand.org/u/wew)
#### Post date: [October 18, 2018, 11:14pm UTC](https://discourse.openondemand.org/t/testing-ondemand/48/2 "2018-10-18T23:14:38Z")

</div>

As some added information, our ondemand server has slurm and access to all the files, etc. I changed the yml file to point to the local ondemend machine and I still get the following error:

Skipping ‘monsoon’ as it doesn’t allow job submission.

---

<div class="post-metadata">

### Author: ![efranz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/efranz/32/27_2.png) [@efranz](https://discourse.openondemand.org/u/efranz)
#### Post date: [October 19, 2018, 1:29am UTC](https://discourse.openondemand.org/t/testing-ondemand/48/3 "2018-10-19T01:29:52Z")

</div>

I made a minor edit to your post - placing the ``` “fenced code block”. Once you see that you will notice that the `job:` key is not indented properly along with metadata and login. I think when you indent it so that it lines up with login and metadata the rake task will work again (though you will still see that annoying Rails Error about production log file - you can ignore that). After the fix:

```auto
---
v2:
  metadata:
    title: "Monsoon Cluster"
  login:
    host: "wind.hpc.nau.edu"
  job:
    adapter: "slurm"
    cluster: "monsoon"
    bin: "/usr/bin"
    conf: "/etc/slurm/slurm.conf"

```

This is actually a problem other people have faced. Which example did you start working from for the cluster config? Perhaps that example has bad formatting.

We actually started to experiment with a possible validator for these config files [https://github.com/OSC/ood-dashboard/pull/402](https://github.com/OSC/ood-dashboard/pull/402) but haven’t completed that exploration yet. It looks like it would be better to push out something that would help in this situation even if it were suboptimal.

---

<div class="post-metadata">

### Author: ![wew](https://avatars.discourse-cdn.com/v4/letter/w/8edcca/32.png) [@wew](https://discourse.openondemand.org/u/wew)
#### Post date: [October 19, 2018, 3:46pm UTC](https://discourse.openondemand.org/t/testing-ondemand/48/4 "2018-10-19T15:46:31Z")

</div>

My cut and past of the yml file removed the spacing. I used the example on the following url: [https://osc.github.io/ood-documentation/master/installation/resource-manager/pbspro.html](https://osc.github.io/ood-documentation/master/installation/resource-manager/pbspro.html)

I just doublechecked my monsoon.yml file and it has the same indentations as your example.

---

<div class="post-metadata">

### Author: ![wew](https://avatars.discourse-cdn.com/v4/letter/w/8edcca/32.png) [@wew](https://discourse.openondemand.org/u/wew)
#### Post date: [October 19, 2018, 4:46pm UTC](https://discourse.openondemand.org/t/testing-ondemand/48/5 "2018-10-19T16:46:05Z")

</div>

We can run jobs from the command line with slurm. The test fails though indicating that “Skipping ‘monsoon’ as it doesn’t allow job submission.”

Here is output from the command line:  
[wew@ondemand /scratch/wew]$ sbatch lazyjob.sh  
Submitted batch job 14503803

---

<div class="post-metadata">

### Author: ![wew](https://avatars.discourse-cdn.com/v4/letter/w/8edcca/32.png) [@wew](https://discourse.openondemand.org/u/wew)
#### Post date: [October 19, 2018, 5:10pm UTC](https://discourse.openondemand.org/t/testing-ondemand/48/6 "2018-10-19T17:10:54Z")

</div>

Been one of those few days. Looks like the test is working now.

---

<div class="post-metadata">

### Author: ![efranz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/efranz/32/27_2.png) [@efranz](https://discourse.openondemand.org/u/efranz)
#### Post date: [October 19, 2018, 5:47pm UTC](https://discourse.openondemand.org/t/testing-ondemand/48/7 "2018-10-19T17:47:56Z")

</div>

So sorry you ran into problems! I hope the rest of the installation process goes more smoothly.

---

<div class="post-metadata">

### Author: ![wew](https://avatars.discourse-cdn.com/v4/letter/w/8edcca/32.png) [@wew](https://discourse.openondemand.org/u/wew)
#### Post date: [October 23, 2018, 8:05pm UTC](https://discourse.openondemand.org/t/testing-ondemand/48/8 "2018-10-23T20:05:47Z")

</div>

So far so good with local password only. We were able to get a job to launch. Now we’re trying to get ldap authentication to work so we can open things up to our users.

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [July 5, 2019, 3:09pm UTC](https://discourse.openondemand.org/t/testing-ondemand/48/9 "2019-07-05T15:09:17Z")

</div>

I’m closing this topic as it seems to be feature complete and/or solved. If you’ve come here and you want it re-opened either open another similar topic or reach out to me directly so that I can re-open this topic.

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [July 5, 2019, 3:09pm UTC](https://discourse.openondemand.org/t/testing-ondemand/48/10 "2019-07-05T15:09:22Z")

</div>



---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [July 8, 2019, 8:28pm UTC](https://discourse.openondemand.org/t/testing-ondemand/48/11 "2019-07-08T20:28:26Z")

</div>



---

<div class="post-metadata">

### Author: ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)
#### Post date: [May 26, 2022, 3:19pm UTC](https://discourse.openondemand.org/t/testing-ondemand/48/12 "2022-05-26T15:19:10Z")

</div>


