NameError: undefined local variable or method `unit_type_id' on content upload. Looks like we're calling an instance method in a class method in the new applicability code. https://github.com/Katello/katello/pull/3131/files#diff-ad849f0f01f3789c134cc112da76dc37R235
Need repro steps for this.
Steps to reproduce 1. Upload module or package from CLI or UI
Make sure you have the new errata applicability code when you test: https://github.com/Katello/katello/pull/3131 You will see the following error either in the UI or CLI: "undefined local variable or method `unit_type_id' for #<Class:0x0000000a39f350>"
https://github.com/Katello/katello/pull/3176
Verified with snap6 compose2 (MDP2) katello-qpid-client-key-pair-1.0-1.noarch katello-glue-candlepin-1.4.6-40.el6sat.noarch katello-1.4.6-40.el6sat.noarch katello-foreman-all-1.4.6-40.el6sat.noarch katello-candlepin-cert-key-pair-1.0-1.noarch katello-configure-1.4.7-6.el6sat.noarch signo-katello-0.0.23-2.el6sat.noarch katello-glue-elasticsearch-1.4.6-40.el6sat.noarch ruby193-rubygem-katello-foreman-engine-0.0.12-3.el6sat.noarch katello-cli-1.4.3-24.el6sat.noarch katello-certs-tools-1.4.4-1.el6sat.noarch katello-qpid-broker-key-pair-1.0-1.noarch ruby193-rubygem-foreman-katello-engine-0.0.17-6.el6sat.noarch katello-common-1.4.6-40.el6sat.noarch pulp-katello-plugins-0.2-1.el6sat.noarch katello-configure-foreman-1.4.7-6.el6sat.noarch katello-selinux-1.4.4-4.el6sat.noarch katello-cli-common-1.4.3-24.el6sat.noarch katello-glue-pulp-1.4.6-40.el6sat.noarch katello-all-1.4.6-40.el6sat.noarch ruby193-rubygem-katello_api-0.0.3-4.el6sat.noarch I can upload the puppet module from UI. Please see the first attachment.
Created attachment 814403 [details] successfully uploaded the puppet module
UI shows upload option for uploading a puppet module to existing repo. But I can't find a way to upload a package to existing yum repo. Can you please point me the exact steps ?
I can upload a puppet module/package from cli sucessfully rpm package to yum repo: [root@dhcpxxxx home]# katello --username admin --password admin repo content_upload --content_type yum --org ACME_Corporation --product sync-test1-1018-191702-387 --repo testrepo-1018-191702-387 --file /home/bear-4.1-1.noarch.rpm Successfully uploaded 'bear-4.1-1.noarch.rpm' into repository Successfully imported content into repository. puppet module to puppet repo: [root@dhcpxxxx home]# katello --username admin --password admin repo content_upload --content_type puppet --org ACME_Corporation --product sync-test1-1018-190841-889 --repo testrepo-1018-190841-889 --file /home/brucem-ezpublish-0.2.0.tar.gz Successfully uploaded 'brucem-ezpublish-0.2.0.tar.gz' into repository Successfully imported content into repository.
Confirmed with Eric, uploading a rpm package from UI is a future feature. And rest all I've tested required for this bugzilla. - Uploading a Puppet module from cli and UI is working - Uploading a rpm package from cli is also working. So moving this bz to verified.
This was verified and delivered with MDP2. Closing it out.
This was delivered and verified with MDP2. Closing the bug.