Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1439835 - cli - hammer repository create --content-type missing ostree option
Summary: cli - hammer repository create --content-type missing ostree option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Partha Aji
QA Contact: Roman Plevka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-06 15:59 UTC by Roman Plevka
Modified: 2019-04-01 20:27 UTC (History)
3 users (show)

Fixed In Version: katello-3.4.5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:54:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
satellite-installer log for enabling ostree (45.31 KB, text/plain)
2017-04-06 15:59 UTC, Roman Plevka
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 20353 0 None None None 2017-07-19 22:23:52 UTC

Description Roman Plevka 2017-04-06 15:59:25 UTC
Created attachment 1269423 [details]
satellite-installer log for enabling ostree

Description of problem:
after enabling ostree on el7 sat6 nightly, hammer repository create|update subcommads do not recognize 'ostree' as a valid content-type parameter.

I verified the ostree is indeed enabled by issuing an API request which worked.

ostree-related packages and their version can be seen in the attached log

Version-Release number of selected component (if applicable):
satellite noarch 6.3.0-11.1.beta.el7sat


Steps to Reproduce:
1. enable ostree on satellite nightly
2. hammer repository create --name foo --content-type ostree
3.

Actual results:
[ERROR 2017-04-05 12:23:42 Exception] Error: option '--content-type': value must be one of 'yum', 'file', 'puppet', 'docker'

Comment 2 Brad Buckingham 2017-06-19 15:28:43 UTC
Tested this on upstream and it appears to working; therefore, moving to MODIFIED.

e.g. 

hammer> repository create --product-id 185 --name partha_ostree --content-type ostree --url https://partha.fedorapeople.org/test-repos/ostree-zoo/ --publish-via-http false
Repository created

Comment 3 Djebran Lezzoum 2017-07-06 12:04:31 UTC
This fix has never worked for 6.3

>>>hammer repository create --name foo --content-type ostree
<<<Could not create the repository:
  Error: option '--content-type': value must be one of 'docker', 'file', 'puppet', 'yum'
  
  See: 'hammer repository create --help'

Version-Release number of selected component (if applicable):
* candlepin-2.0.37-1.el7.noarch
* candlepin-selinux-2.0.37-1.el7.noarch
* foreman-1.15.1-1.el7sat.noarch
* foreman-cli-1.15.1-1.el7sat.noarch
* foreman-compute-1.15.1-1.el7sat.noarch
* foreman-debug-1.15.1-1.el7sat.noarch
* foreman-discovery-image-3.1.1-22.el7sat.noarch
* foreman-ec2-1.15.1-1.el7sat.noarch
* foreman-gce-1.15.1-1.el7sat.noarch
* foreman-installer-1.15.1-1.el7sat.noarch
* foreman-installer-katello-3.4.1.3-1.el7sat.noarch
* foreman-libvirt-1.15.1-1.el7sat.noarch
* foreman-openstack-1.15.1-1.el7sat.noarch
* foreman-ovirt-1.15.1-1.el7sat.noarch
* foreman-postgresql-1.15.1-1.el7sat.noarch
* foreman-proxy-1.15.0-2.el7sat.noarch
* foreman-rackspace-1.15.1-1.el7sat.noarch
* foreman-selinux-1.15.0-1.el7sat.noarch
* foreman-vmware-1.15.1-1.el7sat.noarch
* katello-3.4.2-1.el7sat.noarch
* katello-ca-consumer-sat-r220-02.lab.eng.rdu2.redhat.com-1.0-2.noarch
* katello-certs-tools-2.4.0-1.el7sat.noarch
* katello-client-bootstrap-1.4.0-1.el7sat.noarch
* katello-common-3.4.2-1.el7sat.noarch
* katello-debug-3.4.2-1.el7sat.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-base-3.4.1.3-1.el7sat.noarch
* katello-selinux-3.0.2-1.el7sat.noarch
* katello-server-ca-1.0-1.noarch
* katello-service-3.4.2-1.el7sat.noarch
* openldap-2.4.40-13.el7.x86_64
* pulp-client-1.0-1.noarch
* pulp-docker-plugins-2.3.0-1.el7sat.noarch
* pulp-katello-1.0.2-1.el7sat.noarch
* pulp-ostree-plugins-1.2.1-1.el7sat.noarch
* pulp-puppet-plugins-2.12.2-1.el7sat.noarch
* pulp-puppet-tools-2.12.2-1.el7sat.noarch
* pulp-rpm-plugins-2.12.2-2.el7sat.noarch
* pulp-selinux-2.12.2-2.el7sat.noarch
* pulp-server-2.12.2-2.el7sat.noarch
* python-ldap-2.4.15-2.el7.x86_64
* tfm-rubygem-ldap_fluff-0.4.6-1.el7sat.noarch
* tfm-rubygem-net-ldap-0.15.0-1.el7sat.noarch

Comment 4 Partha Aji 2017-07-19 22:23:50 UTC
Created redmine issue http://projects.theforeman.org/issues/20353 from this bug

Comment 5 Brad Buckingham 2017-08-24 20:38:54 UTC
The PR associated with the upstream redmine has been merged and the redmine closed.  Based on this, I am going to move the bugzilla to POST and update the 'fixed in version' based upon the upstream target.

Comment 6 Roman Plevka 2017-10-26 14:50:03 UTC
VERIFIED
on 6.3.0-snap 21.

verified by automation : cli.OstreeRepositoryTestCase


[ INFO 2017-10-26 10:47:48 API] POST /katello/api/repositories
[DEBUG 2017-10-26 10:47:48 API] Params: {
            "name" => "foo",
      "product_id" => 1,
             "url" => "https://kojipkgs.fedoraproject.org/atomic/22",
     "unprotected" => false,
    "content_type" => "ostree"
}
...
response: Repository created

Comment 7 Satellite Program 2018-02-21 16:54:17 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336


Note You need to log in before you can comment on or make changes to this bug.