Project

General

Profile

Bug #6111

Listing computer resources via hammer generates and error re: rabl template

Added by Paul Calabro about 6 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

[root@puppetmaster01 bundler.d]# hammer compute-resource list

Cannot find rabl template 'api/v2/compute_resources/xenserver.json' within registered ([]) view paths!

Associated revisions

Revision 1691eb6c
Added by Dominic Cleal almost 6 years ago

Merge pull request #6 from paulcalabro/master

Fixes #6111

History

#1 Updated by Paul Calabro almost 6 years ago

This was fixed by doing the following:

touch /usr/share/foreman/app/views/api/v1/compute_resources/xenserver.json.rabl
touch /usr/share/foreman/app/views/api/v2/compute_resources/xenserver.json.rabl

Do we know what's supposed to go in these files?

#2 Updated by Dominic Cleal almost 6 years ago

I think just adding attributes :user is enough so the username used to connect to XenServer is shown in the API response. I can't see anything else required.

Easy PR if you're able to :)

#3 Updated by Paul Calabro almost 6 years ago

Yeah, that sounds easy enough! I'll submit that PR tomorrow! :)

#4 Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 1.7.4
  • Pull request https://github.com/theforeman/foreman/pull/1737 added
  • Pull request deleted ()

#5 Updated by Paul Calabro almost 6 years ago

Okay, I've submitted the following PR for this: https://github.com/theforeman/foreman-xen/pull/6

#6 Updated by Anonymous almost 6 years ago

  • Pull request https://github.com/theforeman/foreman-xen/pull/6 added
  • Pull request deleted (https://github.com/theforeman/foreman/pull/1737)

#7 Updated by Dmitri Dolguikh almost 6 years ago

  • Target version changed from 1.7.4 to 1.7.3

#8 Updated by Dominic Cleal almost 6 years ago

  • Target version changed from 1.7.3 to 1.7.2

#9 Updated by Paul Calabro almost 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF