Project

General

Profile

Bug #16309

Cannot add Puppet module to content view if there are too many to choose from

Added by Jason Nance almost 6 years ago. Updated almost 4 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Open your content view and click on the "Puppet Modules" tab
Click "Add New Module"
Filter/find your module and click "Select a Version"

It appears that the maximum rows that will be displayed is 39, there is no pagination, and filtering only takes into account the current records in view. So if there are several options to choose from and the one you want is by an author at the end of the alphabet you're out of luck.

Search for the "postfix" module for an example. The last one I see is authored by "thias". The postfix module I want comes from my local repository and the author is set to "tresgeek" and doesn't appear in the list (it would be #40 and 41). If I change the "author" of my postfix module to "atresgeek" it appears near the top of the list (and the "thias" ones fall off the list - still only 39 appear).

ContentViewAddPuppetModule.png View ContentViewAddPuppetModule.png 114 KB Jason Nance, 08/31/2016 04:27 PM
Contentviewaddpuppetmodule

Related issues

Has duplicate Katello - Bug #17930: unable to add a puppet module from GUIClosed2017-01-04

History

#1 Updated by Dominic Cleal almost 6 years ago

  • Project changed from Foreman to Katello

#2 Updated by Justin Sherrill almost 6 years ago

  • Category set to Content Views
  • Status changed from New to Need more information

What version of katello are you on?

#3 Updated by Justin Sherrill almost 6 years ago

Can you paste a screenshot as well?

#4 Updated by Jason Nance almost 6 years ago

Katello version is 3.1rc2 (katello-3.1.0-4.rc2.el7.noarch).

Attaching screen shot. The content area is quite large so I had to cut it off. Please let me know if there is a different region you are interested in.

#5 Updated by Justin Sherrill almost 6 years ago

  • Status changed from Need more information to Assigned

#6 Updated by Justin Sherrill almost 6 years ago

  • Assignee set to John Mitsch
  • Target version set to 126

#7 Updated by John Mitsch almost 6 years ago

  • Status changed from Assigned to Closed

In master, I was able to search to the end of the list http://www.clipular.com/c/5773140185841664.png?k=WMWJysYrljP9q4AY9LIEh-Q-XbQ Either I am misunderstanding what you are saying (feel free to re-open) or something changed since 3.1. I'm going to close since if something fixed this, it will be in 3.2.

#8 Updated by Eric Helms almost 6 years ago

  • Status changed from Closed to Assigned
  • Legacy Backlogs Release (now unused) set to 162

#9 Updated by Jason Nance almost 6 years ago

Since this has been changed from closed to assigned does that mean that we're on the same page now and that this is going to be looked into?

#10 Updated by Brad Buckingham almost 6 years ago

  • Target version changed from 126 to 129

#11 Updated by Brad Buckingham over 5 years ago

  • Target version changed from 129 to 133

#12 Updated by Eric Helms over 5 years ago

  • Legacy Backlogs Release (now unused) changed from 162 to 197

#13 Updated by Brad Buckingham over 5 years ago

  • Target version changed from 133 to 140

#14 Updated by Brad Buckingham over 5 years ago

  • Target version changed from 140 to 147

#15 Updated by Eric Helms over 5 years ago

  • Legacy Backlogs Release (now unused) changed from 197 to 208

#16 Updated by Jason Nance over 5 years ago

Is this issue more complicated than it appears on the surface? I realize that there is a finite amount of time but I've watched this get pushed out several times already and it seems like it wouldn't be that complicated to fix. Is there some additional information I can provide or testing I can do to help get this resolved?

#17 Updated by John Mitsch over 5 years ago

Jason,

We know what needs to change, but its just been "on the back burner" due to some more important issues that have taken precedent. We will get to it soon, thanks for the reminder.

-John

#18 Updated by Brad Buckingham over 5 years ago

  • Target version changed from 147 to 151

#19 Updated by Jason Nance over 5 years ago

Turns out this is pretty easy to work around via API calls if anyone else is interested:

import getpass
import requests

apiUser = 'admin'
apiPass = getpass.getpass()
apiAuth = requests.auth.HTTPBasicAuth(apiUser, apiPass)
apiURL = 'https://katello.host.org/katello/api/content_views'

cvID = 15
modName = 'mymod'
modAuthor = 'myauthor'

postData = {
    'content_view_id': cvID,
    'name': modName,
    'author': modAuthor
}

response = requests.post(
    '{}/{}/content_view_puppet_modules'.format(apiURL, cvID),
    json=postData,
    auth=apiAuth,
    verify=False
)

Just replace the values for apiUser, apiURL (the host name portion), cvID (content view ID), modName, and modAuthor.

With verify=False you will get the following warning based on your Python version:

/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:769: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)

If everything worked response.status_code should be 200 (and your module will show up in your content view).

Once it is in your content view you can manage the module version from the web UI.

#20 Updated by John Mitsch over 5 years ago

  • Target version deleted (151)

#21 Updated by John Mitsch over 5 years ago

  • Legacy Backlogs Release (now unused) changed from 208 to 214

#22 Updated by Justin Sherrill over 5 years ago

  • Legacy Backlogs Release (now unused) changed from 214 to 222

#23 Updated by Jason Nance about 5 years ago

  • Has duplicate Bug #17930: unable to add a puppet module from GUI added

#24 Updated by John Mitsch about 5 years ago

  • Status changed from Assigned to Duplicate

Also available in: Atom PDF