| Summary: | katello-configure fails when using the latest puppet | ||
|---|---|---|---|
| Product: | [Retired] Katello | Reporter: | Mike McCune <mmccune> |
| Component: | Infrastructure | Assignee: | Lukas Zapletal <lzap> |
| Status: | CLOSED UPSTREAM | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 1.0 | CC: | bkearney, msuchy |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | 1.x | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-08-22 14:16:47 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Mike McCune
2011-12-08 02:41:53 UTC
*** IRC Log from #katello that might help **
<Azrial> looking at the code differences between 2.6 and 2.7 I believe that instead of returning an ":undefined" for an empty string they now return "nil"
<jrist> Azrial: if you have time, a patch would rock
<jrist> Azrial: otherwise, we'll add it to the todo list :)
<Azrial> yer having a look at it now. not quite sure though how to do a puppet version check inside a template
<Azrial> It looks as if the only place that is using scope.lookupvar().empty? is in the candlepin template
<Azrial> by changing it to scope.lookupvar().nil? allows it to work with puppet 2.7.6
<Azrial> although I need to test that having the values empty does behave correctly.
<Azrial> ok. I have spent a good amount of time trying to work out what this regex is testing for but I can't quite work it out.
<Azrial> can someone help
<Azrial> $oauth_secret = regsubst(generate('/usr/bin/openssl', 'rand', '-base64', '24'), '^(.{24}).*', '\1')
<Azrial> I can't work out the meaning of {24}
<Azrial> actually. is it confirming that the string returned by openssl is 24 characters long?
<jrist> I think so
<jrist> Azrial: {} means n repititions of the previous group
<Azrial> I wasn't able to confirm that changing scope.lookupvar().empty? to scope.lookupvar().nil? actually handles whatever exception the "unless" statement is trying to handle so I'll have to leave it to smarter people
<Azrial> but it does allow the manifest to run in puppet 2.7.6 and epel puppet
Setting prio to low, does not look like a blocker issue. I believe this bug does not appear during installation on F17 any more. Can we close it? I can confirm we fixed that. |