Modified apps in /etc/ood/config/apps not showing up as pinned

I have noticed that if I have an app with a modified form.yml in /etc/ood/config/apps/<application> directory the app does not get pinned to the desktop even if there is a metadata tag in the /var/www/ood/apps/sys/<application> directory. I am not sure if this was meant to do this or if I need to put a manifest.yml file in the /etc/ood/config/app/<application> dir.

I’ve only tried it with desktops (under config/apps/bc_desktop), but it should work. Can you share the pinned apps configuration?

This is an interactive desktop with native vnc support
–manifest.yml from /var/www/ood/apps/sys –

name: Desktop (Native VNC)
icon: fa://desktop
category: Interactive Apps
subcategory: Desktops
role: batch_connect
metadata:
pintype: Interactive Desktops
description: |
This app will launch an interactive desktop …

– form.yml.erb from /etc/ood/config/apps –

<%-
cmd="/opt/mam/bin/mam-list-accounts -A --quiet --show Name | egrep ‘[bshlg]c_|[pk][0-9]+’"
allocations =
user = User.new
cache = ActiveSupport::Cache::FileStore.new("/tmp/ood_cache/#{user.name}/bc_desktop", expires_in: 12.hours)
cache.cleanup()
allocations = cache.fetch(‘allocations’, race_condition_ttl: 10.seconds) do
callocations =
begin
output, status = Open3.capture2e(cmd)
if status.success?
callocations = output.split("\n").map(&:strip).reject(&:blank?).sort
else
raise output
end
rescue => e
callocations =
error = e.message.strip
end
callocations
end
acii_res= File.open("/tmp/gdesktop-res").to_a.first.chomp!
-%>

title: “RHEL7 ACI Desktop - Native VNC”
cluster: “aci”
form:

  • desktop
  • aci_account
  • bc_num_hours
  • bc_num_slots
  • node_type
  • bc_email_on_started
  • acii_reservation
    submit: “submit.yml.erb”
    attributes:
    desktop:
    label: “Desktop Envirionment”
    widget: select
    options:
    • [ “MATE (Gnome 2)”, “mate” ]
      aci_account:
      label: “Allocation”
      help: “Please select an allocation from the drop-down.”
      widget: select
      options:
    • [ “open”, “open” ]
      <%- if !allocations.blank? -%>
      <%- allocations.each do |a| -%>
    • [ “<%= a %>”, “<%= a %>” ]
      <%- end -%>
      <%- end -%>
      bc_num_slots: 1
      bc_num_hours:
      value: 8
      bc_queue: “open”
      node_type:
      widget: select
      label: “Node type”
      help: |
    • ACI-i - (4 cores) Use an ACI-i node that has GPU GL acceleration, 40 cores,
      and 256GB of RAM. Only available for open account submissions.
    • ACI-b Standard Core - (4 cores) Use an ACI-b node without GPU GL
      acceleration, 20 available cores, Infiniband interconnect, and 256GB total RAM.
      Available for open account and allocation account submissions.
    • ACI-b Basic Core - (4 cores) Use an ACI-b node without GPU GL
      acceleration, 20 available cores, and 128GB total RAM.
      Available for open account and allocation account submissions.
    • ACI-b Himem Core - (4 cores) Use an ACI-b node without GPU GL
      acceleration, 40 available cores, and 1TB total RAM.
      Available for open account and allocation account submissions.
      options:
    • [
      “ACI-i”, “ppn=4:acii:rhel7”,
      data-option-for-open: true,
      data-option-for-bc_default: false,
      data-option-for-sc_default: false,
      data-option-for-gc_default: false,
      data-option-for-hc_default: false,
      data-option-for-lc_default: false,
      data-option-for-p100_default: false,
      data-option-for-k80_default: false,
      data-option-for-gc_x1p100_default: false,
      data-option-for-gc_x4p100_default: false
      ]
    • [
      “ACI-b Standard Core”, “ppn=4:stmem:rhel7”,
      data-option-for-open: true,
      data-option-for-sc_default: true,
      data-option-for-bc_default: false,
      data-option-for-gc_default: false,
      data-option-for-hc_default: false,
      data-option-for-lc_default: false,
      data-option-for-p100_default: false,
      data-option-for-k80_default: false,
      data-option-for-gc_x1p100_default: false,
      data-option-for-gc_x4p100_default: false
      ]
    • [
      “ACI-b Basic Core”, “ppn=4:basic:rhel7”,
      data-option-for-open: true,
      data-option-for-bc_default: true,
      data-option-for-sc_default: false,
      data-option-for-gc_default: false,
      data-option-for-hc_default: false,
      data-option-for-lc_default: false,
      data-option-for-p100_default: false,
      data-option-for-k80_default: false,
      data-option-for-gc_x1p100_default: false,
      data-option-for-gc_x4p100_default: false
      ]
    • [
      “ACI-b GPU Core (NO GL Acceleration)”, “ppn=4:gpu:rhel7:gpus=1”,
      data-option-for-open: true,
      data-option-for-gc_default: true,
      data-option-for-p100_default: true,
      data-option-for-k80_default: true,
      data-option-for-gc_x1p100_default: true,
      data-option-for-gc_x4p100_default: true,
      data-option-for-bc_default: false,
      data-option-for-sc_default: false,
      data-option-for-lc_default: false,
      data-option-for-hc_default: false
      ]
    • [
      “ACI-b Himem Core”, “ppn=4:himem:rhel7”,
      data-option-for-open: true,
      data-option-for-hc_default: true,
      data-option-for-bc_default: false,
      data-option-for-sc_default: false,
      data-option-for-gc_default: false,
      data-option-for-lc_default: false,
      data-option-for-p100_default: false,
      data-option-for-k80_default: false,
      data-option-for-gc_x1p100_default: false,
      data-option-for-gc_x4p100_default: false
      ]
    • [
      “ACI-b Legacy Core”, “ppn=4:legacy:rhel7”,
      data-option-for-open: true,
      data-option-for-hc_default: false,
      data-option-for-bc_default: false,
      data-option-for-sc_default: false,
      data-option-for-gc_default: false,
      data-option-for-lc_default: true,
      data-option-for-p100_default: false,
      data-option-for-k80_default: false,
      data-option-for-gc_x1p100_default: false,
      data-option-for-gc_x4p100_default: false
      ]
      #acii_reservation: “<%= acii_res %>”

Hi sorry for the delay and not recognizing this earlier. For a sub app like this you need to supply sys/bc_desktop/the_name. So we have owens and pitzer desktops we’d need to supply.

pinned_apps:
  -  'sys/bc_deskop/owens'
  -  'sys/bc_desktop/pitzer'

Thanks for the heads up and sorry about the issue. There’s a lack of documentation for this on our side.

1 Like