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 1193669 - Cannot update the upstream name for a docker-based repository
Summary: Cannot update the upstream name for a docker-based repository
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Container Management
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: David Davis
QA Contact: Tazim Kolhar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1190289 1193685
TreeView+ depends on / blocked
 
Reported: 2015-02-17 20:58 UTC by Og Maciel
Modified: 2017-02-23 20:29 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 13:55:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
log from steps (24.98 KB, text/plain)
2015-02-17 20:58 UTC, Og Maciel
no flags Details
docker upstream name update (91.33 KB, image/png)
2015-05-04 10:29 UTC, Tazim Kolhar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 9423 0 None None None 2016-04-22 15:36:43 UTC

Description Og Maciel 2015-02-17 20:58:05 UTC
Created attachment 992881 [details]
log from steps

Description of problem:

Trying to edit the upstream name for a docker-based repository does not update the value.

Version-Release number of selected component (if applicable):

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.42-1.el6.noarch
* candlepin-common-1.0.21-1.el6.noarch
* candlepin-selinux-0.9.42-1.el6.noarch
* candlepin-tomcat6-0.9.42-1.el6.noarch
* elasticsearch-0.90.10-7.el6.noarch
* foreman-1.8.0-0.develop.201502121510git9edf91b.el6.noarch
* foreman-compute-1.8.0-0.develop.201502121510git9edf91b.el6.noarch
* foreman-debug-1.8.0-0.develop.201502121510git9edf91b.el6.noarch
* foreman-gce-1.8.0-0.develop.201502121510git9edf91b.el6.noarch
* foreman-libvirt-1.8.0-0.develop.201502121510git9edf91b.el6.noarch
* foreman-ovirt-1.8.0-0.develop.201502121510git9edf91b.el6.noarch
* foreman-postgresql-1.8.0-0.develop.201502121510git9edf91b.el6.noarch
* foreman-proxy-1.8.0-0.develop.201502121459git0207401.el6.noarch
* foreman-release-1.8.0-0.develop.201502121510git9edf91b.el6.noarch
* foreman-selinux-1.8.0-0.develop.201412151103gite2863e4.el6.noarch
* foreman-vmware-1.8.0-0.develop.201502121510git9edf91b.el6.noarch
* katello-2.2.0-1.201502171650git5cf9de7.el6.noarch
* katello-certs-tools-2.0.1-1.el6.noarch
* katello-common-2.2.0-1.201502171650git5cf9de7.el6.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-2.2.0-1.201502160627gite8ff373.el6.noarch
* katello-installer-base-2.2.0-1.201502160627gite8ff373.el6.noarch
* katello-repos-2.1.1-1.el6.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.39-8.el6.x86_64
* pulp-docker-plugins-0.2.2-1.el6.noarch
* pulp-katello-0.3-3.el6.noarch
* pulp-nodes-common-2.6.0-0.7.beta.el6.noarch
* pulp-nodes-parent-2.6.0-0.7.beta.el6.noarch
* pulp-puppet-plugins-2.6.0-0.7.beta.el6.noarch
* pulp-puppet-tools-2.6.0-0.7.beta.el6.noarch
* pulp-rpm-plugins-2.6.0-0.7.beta.el6.noarch
* pulp-selinux-2.6.0-0.7.beta.el6.noarch
* pulp-server-2.6.0-0.7.beta.el6.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-ldap_fluff-0.3.3-1.el6.noarch
* ruby193-rubygem-net-ldap-0.10.0-1.el6.noarch
* ruby193-rubygem-runcible-1.3.1-1.el6.noarch
* rubygem-hammer_cli-0.1.4-1.201502121207git0ab2866.el6.noarch
* rubygem-hammer_cli_foreman-0.1.4-1.201501221305git706b057.el6.noarch
* rubygem-hammer_cli_foreman_bootdisk-0.1.2-1.el6.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-2.201409091410gitc96619d.git.0.37f3704.el6.noarch
* rubygem-hammer_cli_gutterball-0.0.1-1.201501072024git01fe139.git.0.06e884f.el6.noarch
* rubygem-hammer_cli_import-0.10.4-1.el6.noarch
* rubygem-hammer_cli_katello-0.0.7-1.201502061831git68a34d6.git.0.9c4412d.el6.noarch
* sssd-ldap-1.11.6-30.el6.x86_64

How reproducible:


Steps to Reproduce:
1. Create a custom product
2. Create a custom docker-based repository (url: https://registry.hub.docker.com, upstream name: mongodb)
3. Edit the upstream name and change it to mongo and save it

Actual results:

The upstream name is not updated


Expected results:


Additional info:

Comment 1 Og Maciel 2015-02-17 21:19:25 UTC
I wonder if the validation rule is what's causing the issue here and not bubbling up to the web ui:

[root@cloud-qe-18 ~]# hammer -d -u admin -p changeme repository info --id 7
[ INFO 2015-02-17 16:18:03 Init] Initialization of Hammer CLI (0.1.4) has started...
[DEBUG 2015-02-17 16:18:03 Init] Running at ruby 1.8.7-p374
[ INFO 2015-02-17 16:18:03 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2015-02-17 16:18:03 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2015-02-17 16:18:03 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
[ INFO 2015-02-17 16:18:03 Init] Configuration from the file /etc/hammer/cli.modules.d/gutterball.yml has been loaded
[ INFO 2015-02-17 16:18:03 Init] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
[ INFO 2015-02-17 16:18:03 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
[DEBUG 2015-02-17 16:18:03 Connection] Registered: foreman
[DEBUG 2015-02-17 16:18:03 API] Global headers: {
        :content_type => "application/json",
    "Accept-Language" => "en",
              :accept => "application/json;version=2"
}
[ INFO 2015-02-17 16:18:03 Modules] Extension module hammer_cli_foreman (0.1.4) loaded
[ INFO 2015-02-17 16:18:03 Modules] Extension module hammer_cli_import (0.10.4) loaded
[ INFO 2015-02-17 16:18:03 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
[ INFO 2015-02-17 16:18:03 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
[ INFO 2015-02-17 16:18:03 Modules] Extension module hammer_cli_katello (0.0.7) loaded
[DEBUG 2015-02-17 16:18:03 Init] Using locale 'en'
[DEBUG 2015-02-17 16:18:03 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/locale'
[DEBUG 2015-02-17 16:18:03 Init] 'mo' files for locale domain 'hammer-cli@system' loaded from '/usr/share/locale'
[DEBUG 2015-02-17 16:18:03 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.4/locale'
[DEBUG 2015-02-17 16:18:03 Init] 'mo' files for locale domain 'hammer-cli-foreman@system' loaded from '/usr/share/locale'
[DEBUG 2015-02-17 16:18:03 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/usr/lib/ruby/gems/1.8/gems/hammer_cli_katello-0.0.7/locale'
[ INFO 2015-02-17 16:18:03 HammerCLI::MainCommand] Called with options: {"option_password"=>"***", "option_debug"=>true, "option_username"=>"admin"}
[ INFO 2015-02-17 16:18:03 HammerCLIKatello::Repository] Called with options: {}
[ INFO 2015-02-17 16:18:03 HammerCLIKatello::Repository::InfoCommand] Called with options: {"option_id"=>"7"}
[ INFO 2015-02-17 16:18:03 API] GET /katello/api/repositories/7
[DEBUG 2015-02-17 16:18:03 API] Params: {}
[DEBUG 2015-02-17 16:18:03 API] Headers: {
    :params => {}
}
[DEBUG 2015-02-17 16:18:04 API] Response: {
                  "last_sync" => nil,
                "environment" => {
        "id" => 1
    },
                 "updated_at" => "2015-02-17T20:52:14Z",
              "checksum_type" => nil,
                "permissions" => {
        "deletable" => true
    },
        "library_instance_id" => nil,
    "content_view_version_id" => 1,
                    "product" => {
        "sync_plan" => nil,
               "id" => 3,
             "name" => "Baz",
            "cp_id" => "1424206191687"
    },
                 "created_at" => "2015-02-17T20:51:18Z",
                         "id" => 7,
                   "promoted" => false,
            "last_sync_words" => nil,
             "content_counts" => {
        "puppet_module" => 0,
        "package_group" => 0,
              "erratum" => 0,
           "docker_tag" => 0,
              "package" => 0,
                  "rpm" => 0,
         "docker_image" => 0
    },
               "product_type" => "custom",
                "unprotected" => true,
                       "name" => "BazRepo1",
                      "major" => nil,
               "content_type" => "docker",
                 "gpg_key_id" => nil,
                      "minor" => nil,
              "relative_path" => "default_organization-baz-bazrepo",
                  "full_path" => "cloud-qe-18.idmqe.lab.eng.bos.redhat.com:5000/default_organization-baz-bazrepo",
                    "gpg_key" => nil,
                 "content_id" => "1424206280274",
               "organization" => {
           "id" => 1,
         "name" => "Default Organization",
        "label" => "Default_Organization"
    },
       "docker_upstream_name" => "mongodb",
                      "label" => "BazRepo",
                        "url" => "https://registry.hub.docker.com"
}
[DEBUG 2015-02-17 16:18:04 API] Response headers: {
                 :status => "200 OK",
           :x_powered_by => "Phusion Passenger 4.0.18",
           :content_type => "application/json; charset=utf-8",
      :transfer_encoding => "chunked",
          :cache_control => "must-revalidate, private, max-age=0",
                   :etag => "\"c0901436c72eea4238b3f6471fd04f2c\"",
           :x_rack_cache => "miss",
        :foreman_version => "1.8.0-develop",
             :connection => "close",
                   :date => "Tue, 17 Feb 2015 21:18:03 GMT",
    :foreman_api_version => "2",
        :apipie_checksum => "ca6191e0fb9a774869c238c4c5713ff4",
              :x_runtime => "0.236544",
                 :server => "Apache/2.2.15 (Red Hat)",
           :x_request_id => "5055504a6349c7435855414682f57d14",
             :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWFlYzhkMGQxZTJkYjk4NjEzNjIyYjA4NDc2NTJkMjBhBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--f9dbbdc275683d33944d3c7ff077561584a170de; path=/; HttpOnly",
        [1] "request_method=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT"
    ],
        :x_ua_compatible => "IE=Edge,chrome=1"
}
ID:                       7
Name:                     BazRepo1
Label:                    BazRepo
Organization:             Default Organization
Red Hat Repository:       no
Content Type:             docker
URL:                      https://registry.hub.docker.com
Publish Via HTTP:         yes
Published At:             cloud-qe-18.idmqe.lab.eng.bos.redhat.com:5000/default_organization-baz-bazrepo
Upstream Repository Name: mongodb
Product:
    ID:   3
    Name: Baz
GPG Key:

Sync:
    Status:
Created:                  2015/02/17 20:51:18
Updated:                  2015/02/17 20:52:14
Content Counts:
    Docker Images: 0
    Docker Tags:   0

[root@cloud-qe-18 ~]# hammer -d -u admin -p changeme repository update --id 7 --docker-upstream-name mongo --product-id 3 --organization-id 1
[ INFO 2015-02-17 16:18:36 Init] Initialization of Hammer CLI (0.1.4) has started...
[DEBUG 2015-02-17 16:18:36 Init] Running at ruby 1.8.7-p374
[ INFO 2015-02-17 16:18:36 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2015-02-17 16:18:36 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2015-02-17 16:18:36 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
[ INFO 2015-02-17 16:18:36 Init] Configuration from the file /etc/hammer/cli.modules.d/gutterball.yml has been loaded
[ INFO 2015-02-17 16:18:36 Init] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
[ INFO 2015-02-17 16:18:36 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
[DEBUG 2015-02-17 16:18:36 Connection] Registered: foreman
[DEBUG 2015-02-17 16:18:36 API] Global headers: {
    "Accept-Language" => "en",
        :content_type => "application/json",
              :accept => "application/json;version=2"
}
[ INFO 2015-02-17 16:18:36 Modules] Extension module hammer_cli_foreman (0.1.4) loaded
[ INFO 2015-02-17 16:18:36 Modules] Extension module hammer_cli_import (0.10.4) loaded
[ INFO 2015-02-17 16:18:36 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
[ INFO 2015-02-17 16:18:36 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
[ INFO 2015-02-17 16:18:36 Modules] Extension module hammer_cli_katello (0.0.7) loaded
[DEBUG 2015-02-17 16:18:36 Init] Using locale 'en'
[DEBUG 2015-02-17 16:18:36 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/locale'
[DEBUG 2015-02-17 16:18:36 Init] 'mo' files for locale domain 'hammer-cli@system' loaded from '/usr/share/locale'
[DEBUG 2015-02-17 16:18:36 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.4/locale'
[DEBUG 2015-02-17 16:18:36 Init] 'mo' files for locale domain 'hammer-cli-foreman@system' loaded from '/usr/share/locale'
[DEBUG 2015-02-17 16:18:36 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/usr/lib/ruby/gems/1.8/gems/hammer_cli_katello-0.0.7/locale'
[ INFO 2015-02-17 16:18:36 HammerCLI::MainCommand] Called with options: {"option_username"=>"admin", "option_password"=>"***", "option_debug"=>true}
[ INFO 2015-02-17 16:18:36 HammerCLIKatello::Repository] Called with options: {}
[ INFO 2015-02-17 16:18:36 HammerCLIKatello::Repository::UpdateCommand] Called with options: {"option_id"=>"7", "option_docker_upstream_name"=>"mongo", "option_product_id"=>"3", "option_organization_id"=>"1"}
[ INFO 2015-02-17 16:18:36 API] PUT /katello/api/repositories/7
[DEBUG 2015-02-17 16:18:36 API] Params: {
    "docker_upstream_name" => "mongo"
}
[DEBUG 2015-02-17 16:18:36 API] Headers: {}
[DEBUG 2015-02-17 16:18:36 API] 422 Unprocessable Entity
{
            "errors" => {
        "base" => [
            [0] "Repository URL or Upstream Name is empty. Both are required for syncing from the upstream."
        ],
         "url" => [
            [0] "cannot be blank. Either provide all or no sync information."
        ]
    },
    "displayMessage" => "Validation failed: Url cannot be blank. Either provide all or no sync information., Repository URL or Upstream Name is empty. Both are required for syncing from the upstream."
}
[ERROR 2015-02-17 16:18:36 Exception] Validation failed: Url cannot be blank. Either provide all or no sync information., Repository URL or Upstream Name is empty. Both are required for syncing from the upstream.
Could not update the repository:
  Validation failed: Url cannot be blank. Either provide all or no sync information., Repository URL or Upstream Name is empty. Both are required for syncing from the upstream.
[ERROR 2015-02-17 16:18:36 Exception]

RestClient::UnprocessableEntity (422 Unprocessable Entity):
    /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
    /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
    /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `transmit'
    /usr/lib/ruby/1.8/net/http.rb:543:in `start'
    /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
    /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
    /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
    /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/resource.rb:80:in `put'
    /usr/lib/ruby/gems/1.8/gems/apipie-bindings-0.0.11/lib/apipie_bindings/api.rb:279:in `send'
    /usr/lib/ruby/gems/1.8/gems/apipie-bindings-0.0.11/lib/apipie_bindings/api.rb:279:in `call_client'
    /usr/lib/ruby/gems/1.8/gems/apipie-bindings-0.0.11/lib/apipie_bindings/api.rb:210:in `http_call'
    /usr/lib/ruby/gems/1.8/gems/apipie-bindings-0.0.11/lib/apipie_bindings/api.rb:161:in `call'
    /usr/lib/ruby/gems/1.8/gems/apipie-bindings-0.0.11/lib/apipie_bindings/resource.rb:14:in `call'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/command.rb:43:in `send_request'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli_foreman-0.1.4/lib/hammer_cli_foreman/commands.rb:179:in `send_request'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/command.rb:34:in `execute'
    /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:68:in `run'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:23:in `run'
    /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:68:in `run'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:23:in `run'
    /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/subcommand/execution.rb:11:in `execute'
    /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:68:in `run'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:23:in `run'
    /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:126:in `run'
    /usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/bin/hammer:108
    /usr/bin/hammer:19:in `load'
    /usr/bin/hammer:19

Comment 2 Partha Aji 2015-02-17 21:40:59 UTC
Created redmine issue http://projects.theforeman.org/issues/9423 from this bug

Comment 4 Bryan Kearney 2015-03-25 00:04:56 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9423 has been closed
-------------
David Davis
Applied in changeset commit:katello|ab345f52cefef6d2e08828d63e572401a5124ef4.

Comment 6 Tazim Kolhar 2015-05-04 10:28:45 UTC
VERIFIED:

# rpm -qa | grep foreman
puppet-foreman_scap_client-0.3.3-8.el7sat.noarch
ruby193-rubygem-foreman_docker-1.2.0.10-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.12.4-1.el7sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.8-1.el7sat.noarch
foreman-libvirt-1.7.2.18-1.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.12-1.el7sat.noarch
foreman-compute-1.7.2.18-1.el7sat.noarch
foreman-ovirt-1.7.2.18-1.el7sat.noarch
ruby193-rubygem-foreman_discovery-2.0.0.12-1.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.4-1.el7sat.noarch
foreman-debug-1.7.2.18-1.el7sat.noarch
foreman-postgresql-1.7.2.18-1.el7sat.noarch
qe-sat6-rhel71.usersys.redhat.com-foreman-client-1.0-1.noarch
qe-sat6-rhel71.usersys.redhat.com-foreman-proxy-1.0-1.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch
foreman-1.7.2.18-1.el7sat.noarch
foreman-gce-1.7.2.18-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.10-1.el7sat.noarch
foreman-selinux-1.7.2.13-1.el7sat.noarch
foreman-vmware-1.7.2.18-1.el7sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.6-1.el7sat.noarch
foreman-proxy-1.7.2.4-1.el7sat.noarch
qe-sat6-rhel71.usersys.redhat.com-foreman-proxy-client-1.0-1.noarch
ruby193-rubygem-foreman-redhat_access-0.1.0-1.el7sat.noarch

steps:
1. Create a custom product
2. Create a custom docker-based repository (url: https://registry.hub.docker.com, upstream name: mongodb)
3. Edit the upstream name and change it to mongo and save it
# hammer -d -u admin -p changeme repository update --id 433 --docker-upstream-name mong --product-id 3829 --organization-id 1 --url https://registry.hub.docker.com/
[ INFO 2015-05-04 06:27:14 Init] Initialization of Hammer CLI (0.1.4.9) has started...
[DEBUG 2015-05-04 06:27:14 Init] Running at ruby 2.0.0-p598
[ INFO 2015-05-04 06:27:14 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2015-05-04 06:27:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2015-05-04 06:27:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
[ INFO 2015-05-04 06:27:14 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_discovery.yml has been loaded
[ INFO 2015-05-04 06:27:14 Init] Configuration from the file /etc/hammer/cli.modules.d/gutterball.yml has been loaded
[ INFO 2015-05-04 06:27:14 Init] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
[ INFO 2015-05-04 06:27:14 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
[DEBUG 2015-05-04 06:27:14 Connection] Registered: foreman
[DEBUG 2015-05-04 06:27:14 API] Global headers: {
        :content_type => "application/json",
              :accept => "application/json;version=2",
    "Accept-Language" => "en"
}
[ INFO 2015-05-04 06:27:14 Modules] Extension module hammer_cli_foreman (0.1.4.10) loaded
[ INFO 2015-05-04 06:27:14 Modules] Extension module hammer_cli_foreman_bootdisk (0.1.2.6) loaded
[ INFO 2015-05-04 06:27:14 Modules] Extension module hammer_cli_foreman_discovery (0.0.1.8) loaded
[ INFO 2015-05-04 06:27:15 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
[ INFO 2015-05-04 06:27:15 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
[ INFO 2015-05-04 06:27:15 Modules] Extension module hammer_cli_import (0.10.6.5) loaded
[ INFO 2015-05-04 06:27:15 Modules] Extension module hammer_cli_katello (0.0.7.9) loaded
[DEBUG 2015-05-04 06:27:15 Init] Using locale 'en'
[DEBUG 2015-05-04 06:27:15 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/share/gems/gems/hammer_cli-0.1.4.9/locale'
[DEBUG 2015-05-04 06:27:15 Init] 'mo' files for locale domain 'hammer-cli@system' loaded from '/usr/share/locale'
[DEBUG 2015-05-04 06:27:15 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/share/gems/gems/hammer_cli_foreman-0.1.4.10/locale'
[DEBUG 2015-05-04 06:27:15 Init] 'mo' files for locale domain 'hammer-cli-foreman@system' loaded from '/usr/share/locale'
[DEBUG 2015-05-04 06:27:15 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/usr/share/gems/gems/hammer_cli_katello-0.0.7.9/locale'
[ INFO 2015-05-04 06:27:15 HammerCLI::MainCommand] Called with options: {"option_debug"=>true, "option_username"=>"admin", "option_password"=>"***"}
[ INFO 2015-05-04 06:27:15 HammerCLIKatello::Repository] Called with options: {}
[ INFO 2015-05-04 06:27:15 HammerCLIKatello::Repository::UpdateCommand] Called with options: {"option_organization_id"=>"1", "option_id"=>"433", "option_url"=>"https://registry.hub.docker.com/", "option_docker_upstream_name"=>"mong", "option_product_id"=>"3829"}
[ INFO 2015-05-04 06:27:15 API] PUT /katello/api/repositories/433
[DEBUG 2015-05-04 06:27:15 API] Params: {
                     "url" => "https://registry.hub.docker.com/",
    "docker_upstream_name" => "mong"
}
[DEBUG 2015-05-04 06:27:15 API] Headers: {}
[DEBUG 2015-05-04 06:27:16 API] Response: {
                           "id" => 433,
                         "name" => "test_r",
                        "label" => "test_r",
                 "organization" => {
         "name" => "Default Organization",
        "label" => "Default_Organization",
           "id" => 1
    },
                   "created_at" => "2015-05-04T10:18:02Z",
                   "updated_at" => "2015-05-04T10:27:15Z",
                 "content_type" => "docker",
         "docker_upstream_name" => "mong",
                  "unprotected" => true,
                    "full_path" => "qe-sat6-rhel71.usersys.redhat.com:5000/default_organization-prod-test_r",
                "checksum_type" => nil,
    "container_repository_name" => "default_organization-prod-test_r",
                          "url" => "https://registry.hub.docker.com/",
                "relative_path" => "default_organization-prod-test_r",
                        "major" => nil,
                        "minor" => nil,
                   "gpg_key_id" => nil,
                   "content_id" => "1430734683394",
      "content_view_version_id" => 1,
          "library_instance_id" => nil,
                 "product_type" => "custom",
                     "promoted" => false,
               "content_counts" => {
         "docker_image" => 0,
           "docker_tag" => 0,
                  "rpm" => 0,
              "package" => 0,
        "package_group" => nil,
              "erratum" => 0,
        "puppet_module" => 0
    },
                  "permissions" => {
        "deletable" => true
    },
              "last_sync_words" => nil,
                             "" => nil,
                      "product" => {
               "id" => 3829,
            "cp_id" => "1430734640750",
             "name" => "prod",
        "sync_plan" => nil
    },
                  "environment" => {
        "id" => 1
    },
                    "last_sync" => nil
}
[DEBUG 2015-05-04 06:27:16 API] Response headers: {
                   :date => "Mon, 04 May 2015 10:27:15 GMT",
                 :server => "Apache/2.4.6 (Red Hat Enterprise Linux)",
        :foreman_version => "1.7.2",
    :foreman_api_version => "2",
        :apipie_checksum => "85179ec311129f67b4c37efdfb780a69",
        :x_ua_compatible => "IE=Edge,chrome=1",
          :cache_control => "max-age=0, private, must-revalidate",
           :x_request_id => "5dc50f6a9d289430d43a9bdf5fe3dfbc",
              :x_runtime => "1.263650",
           :x_rack_cache => "invalidate, pass",
           :x_powered_by => "Phusion Passenger 4.0.18",
             :set_cookie => [
        [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTk3YmE0NTM4Mzg5OGI2ZmMyNGNiYjZhMjQ4MGZhMmQ3BjsAVEkiC2xvY2FsZQY7AEYiB2Vu--c757296cf9b539b88b13466ec45ab5090c505cba; path=/; HttpOnly"
    ],
                   :etag => "\"2ad886d842457ba7492cf2f3ee760f00\"",
                 :status => "200 OK",
             :connection => "close",
      :transfer_encoding => "chunked",
           :content_type => "application/json; charset=utf-8"
}
Repository updated


screenshot attached:

Comment 7 Tazim Kolhar 2015-05-04 10:29:35 UTC
Created attachment 1021641 [details]
docker upstream name update

Comment 8 Bryan Kearney 2015-08-11 13:19:37 UTC
This bug is slated to be released with Satellite 6.1.

Comment 9 Bryan Kearney 2015-08-12 13:55:59 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


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