[Katello] Promoted puppet modules are named incorrectly

When I publish puppet modules to a lifecycle environment, they get written
to the following location:

/etc/puppet/environments/KT_ORG_QA_exampleview/modules/

While the location is correct, the modules are named incorrectly…the
module folders should be just the "name" of the module. Instead, it's
being written as author-name.

So, if I write a module called me-ldap-1.0.0.tar.gz and upload it or sync
it to the puppet repository, when I use a view to access the content, the
view writes this module as:

me-ldap/

instead of:

ldap/

The result is:

Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find class ldap for [clienthost] on node [katelloserver]

This is killing my ability to distribute content. Any ideas?

> When I publish puppet modules to a lifecycle environment, they get
> written to the following location:
>
> /etc/puppet/environments/KT_ORG_QA_exampleview/modules/
>
> While the location is correct, the modules are named incorrectly…the
> module folders should be just the "name" of the module. Instead, it's
> being written as author-name.
>
> So, if I write a module called me-ldap-1.0.0.tar.gz and upload it or
> sync it to the puppet repository, when I use a view to access the
> content, the view writes this module as:
>
> me-ldap/
>
> instead of:
>
> ldap/
>
> The result is:
>
> Error: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Could not find class ldap for [clienthost] on node [katelloserver]
>
> This is killing my ability to distribute content. Any ideas?
This was a bug in pulp filed here:
https://bugzilla.redhat.com/show_bug.cgi?id=1123446

This was resolved in 2.4.1, whereas katello 2.0 ships with 2.4.0.

We are planning on a Katello 2.0.1 release and we could include pulp
2.4.3 as part of that as well. I think this is a good enough reason to
do that.

In the meantime you could try upgrading to pulp 2.4.3 from the pulp
repos:
https://repos.fedorapeople.org/repos/pulp/pulp/stable/2.4/6Server/x86_64/

I would recommend doing a full backup before trying though. We haven't
tested pulp 2.4.3 on Katello 2.0, but i would not really expect any issues.

-Justin

··· On 10/30/2014 01:07 PM, Garrett DeMarco wrote:


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Thanks for the info. I hope 2.0.1 is released soon.

Please do include a newer pulp. Has someone found a workaround for this
issue in the mean time? I'd rather not introduce an untested version…

Thanks.

How are you getting your puppet modules into katello?

I believe the issue does not occur when:

  • syncing puppet forge (or your own hosted version of puppet forge)
  • using hammer to upload them
  • Using the UI to upload them

-Justin

··· On 10/30/2014 01:23 PM, Garrett DeMarco wrote: > Thanks for the info. I hope 2.0.1 is released soon. > > Please do include a newer pulp. Has someone found a workaround for > this issue in the mean time? I'd rather not introduce an untested > version... > > Thanks. > -- > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-users+unsubscribe@googlegroups.com > . > To post to this group, send email to foreman-users@googlegroups.com > . > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.

I use a custom foreman puppet environment to develop the modules…called
development, and then run pulp-puppet-module-builder on it to generate all
the puppet modules and it puts them in the /modules directory. Then I
create a puppet repository in Katello and sync to file://modules.
Everything imports just fine with no errors.

Thanks.

Ahh yes, that is the one workflow that hits this error.

You might call pulp-puppet-module-builder and then use 'hammer
repository upload-content' to upload the puppet module to your
repository in the meantime.

-Justin

··· On 10/30/2014 01:39 PM, Garrett DeMarco wrote: > I use a custom foreman puppet environment to develop the > modules...called development, and then run pulp-puppet-module-builder > on it to generate all the puppet modules and it puts them in the > /modules directory. Then I create a puppet repository in Katello and > sync to file://modules. Everything imports just fine with no errors. > > Thanks. > -- > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-users+unsubscribe@googlegroups.com > . > To post to this group, send email to foreman-users@googlegroups.com > . > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.

Thanks! That worked perfectly!