Project

General

Profile

Actions

Bug #9226

closed

hammer repository info does not show docker-upstream-name value

Added by Partha Aji about 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1189289
Description of problem:
hammer repository create now requires docker-upstream-name but hammer repository info does not show docker-upstream-name value.

Version-Release number of selected component (if applicable):
  1. for i in `rpm -qa | grep -iE "^katello|^pulp|^candlepin|^foreman|^headpin|^thumbslug|^elasticsearch|ldap|signo|ruby193-rubygem-runcible|docker" | sort`; do echo "* $i"; done
    • candlepin-0.9.41-1.el7.noarch
    • candlepin-common-1.0.20-1.el7.noarch
    • candlepin-guice-3.0-2_redhat_1.el7.noarch
    • candlepin-scl-1-5.el7.noarch
    • candlepin-scl-quartz-2.1.5-6.el7.noarch
    • candlepin-scl-rhino-1.7R3-3.el7.noarch
    • candlepin-scl-runtime-1-5.el7.noarch
    • candlepin-selinux-0.9.41-1.el7.noarch
    • candlepin-tomcat-0.9.41-1.el7.noarch
    • docker-1.3.2-4.el7.x86_64
    • elasticsearch-0.90.10-7.el7.noarch
    • foreman-1.7.2.2-1.el7sat.noarch
    • foreman-compute-1.7.2.2-1.el7sat.noarch
    • foreman-gce-1.7.2.2-1.el7sat.noarch
    • foreman-libvirt-1.7.2.2-1.el7sat.noarch
    • foreman-ovirt-1.7.2.2-1.el7sat.noarch
    • foreman-postgresql-1.7.2.2-1.el7sat.noarch
    • foreman-proxy-1.7.2.1-1.el7sat.noarch
    • foreman-selinux-1.7.2.2-1.el7sat.noarch
    • foreman-vmware-1.7.2.2-1.el7sat.noarch
    • katello-2.2.0.2-1.el7sat.noarch
    • katello-certs-tools-2.2.1-1.el7sat.noarch
    • katello-common-2.2.0.2-1.el7sat.noarch
    • katello-default-ca-1.0-1.noarch
    • katello-installer-2.2.0.3-1.el7sat.noarch
    • katello-installer-base-2.2.0.3-1.el7sat.noarch
    • katello-server-ca-1.0-1.noarch
    • openldap-2.4.39-3.el7.x86_64
    • pulp-docker-plugins-0.2.1-0.2.beta.el7.noarch
    • pulp-katello-0.3-4.el7sat.noarch
    • pulp-nodes-common-2.5.0-0.7.beta.el7.noarch
    • pulp-nodes-parent-2.5.0-0.7.beta.el7.noarch
    • pulp-puppet-plugins-2.5.0-0.7.beta.el7sat.noarch
    • pulp-puppet-tools-2.5.0-0.7.beta.el7sat.noarch
    • pulp-rpm-plugins-2.5.0-0.7.beta.el7.noarch
    • pulp-selinux-2.5.0-0.7.beta.el7.noarch
    • pulp-server-2.5.0-0.7.beta.el7.noarch
    • python-ldap-2.4.6-6.el7.x86_64
    • python-pulp-docker-common-0.2.1-0.2.beta.el7.noarch
    • ruby193-rubygem-docker-api-1.13.6-1.el7.noarch
    • ruby193-rubygem-foreman_docker-1.0.0-1.el7.noarch
    • ruby193-rubygem-ldap_fluff-0.3.2-1.el7.noarch
    • ruby193-rubygem-net-ldap-0.3.1-3.el7sat.noarch
    • ruby193-rubygem-runcible-1.3.0-1.el7.noarch

How reproducible:
Aways

Steps to Reproduce:
1. hammer -u admin -p changeme -v -d repository create --product-id 1390 --url https://registry.hub.docker.com --docker-upstream-name fedora/rabbitmq --content-type docker --name foreman/rabbitmq
2. hammer -u admin -p changeme -d -v repository info --organization-id 1 --id 103

Actual results:
docker-upstream-name value is not shown in the info outpur

Expected results:
docker-upstream-name value is shown

Additional info:
  1. hammer -u admin -p changeme -v -d repository create --product-id 1390 --url https://registry.hub.docker.com --docker-upstream-name fedora/rabbitmq --content-type docker --name foreman/rabbitmq
    [ INFO 2015-02-04 16:35:04 Init] Initialization of Hammer CLI (0.1.4) has started...
    [DEBUG 2015-02-04 16:35:04 Init] Running at ruby 2.0.0-p353
    [ INFO 2015-02-04 16:35:04 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
    [ INFO 2015-02-04 16:35:04 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
    [ INFO 2015-02-04 16:35:04 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
    [ INFO 2015-02-04 16:35:04 Init] Configuration from the file /etc/hammer/cli.modules.d/gutterball.yml has been loaded
    [ INFO 2015-02-04 16:35:04 Init] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
    [ INFO 2015-02-04 16:35:04 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
    [DEBUG 2015-02-04 16:35:05 Connection] Registered: foreman
    [DEBUG 2015-02-04 16:35:05 API] Global headers: {
    :content_type => "application/json",
    :accept => "application/json;version=2",
    "Accept-Language" => "en"
    }
    [ INFO 2015-02-04 16:35:05 Modules] Extension module hammer_cli_foreman (0.1.4) loaded
    [ INFO 2015-02-04 16:35:05 Modules] Extension module hammer_cli_import (0.10.6) loaded
    [ INFO 2015-02-04 16:35:05 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
    [ INFO 2015-02-04 16:35:05 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
    [ INFO 2015-02-04 16:35:05 Modules] Extension module hammer_cli_katello (0.0.7) loaded
    [DEBUG 2015-02-04 16:35:05 Init] Using locale 'en'
    [DEBUG 2015-02-04 16:35:05 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/share/gems/gems/hammer_cli-0.1.4/locale'
    [DEBUG 2015-02-04 16:35:05 Init] 'mo' files for locale domain 'hammer-cli@system' loaded from '/usr/share/locale'
    [DEBUG 2015-02-04 16:35:05 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/share/gems/gems/hammer_cli_foreman-0.1.4/locale'
    [DEBUG 2015-02-04 16:35:05 Init] 'mo' files for locale domain 'hammer-cli-foreman@system' loaded from '/usr/share/locale'
    [DEBUG 2015-02-04 16:35:05 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/usr/share/gems/gems/hammer_cli_katello-0.0.7/locale'
    [ INFO 2015-02-04 16:35:05 HammerCLI::MainCommand] Called with options: {"option_verbose"=>true, "option_debug"=>true, "option_username"=>"admin", "option_password"=>"***"}
    [ INFO 2015-02-04 16:35:05 HammerCLIKatello::Repository] Called with options: {}
    [ INFO 2015-02-04 16:35:05 HammerCLIKatello::Repository::CreateCommand] Called with options: {"option_product_id"=>"1390", "option_name"=>"foreman/rabbitmq", "option_url"=>"https://registry.hub.docker.com", "option_content_type"=>"docker", "option_docker_upstream_name"=>"fedora/rabbitmq"}
    [ INFO 2015-02-04 16:35:05 API] POST /katello/api/repositories
    [DEBUG 2015-02-04 16:35:05 API] Params: {
    "name" => "foreman/rabbitmq",
    "product_id" => "1390",
    "url" => "https://registry.hub.docker.com",
    "content_type" => "docker",
    "docker_upstream_name" => "fedora/rabbitmq"
    }
    [DEBUG 2015-02-04 16:35:05 API] Headers: {}
    [DEBUG 2015-02-04 16:35:08 API] Response: {
    "id" => 103,
    "name" => "foreman/rabbitmq",
    "label" => "foreman_rabbitmq",
    "organization" => {
    "name" => "Default Organization",
    "label" => "Default_Organization",
    "id" => 1
    },
    "created_at" => "2015-02-04T21:35:05Z",
    "updated_at" => "2015-02-04T21:35:07Z",
    "content_type" => "docker",
    "docker_upstream_name" => "fedora/rabbitmq",
    "unprotected" => false,
    "full_path" => "server.com:5000/default_organization-docker_product-foreman_rabbitmq",
    "checksum_type" => nil,
    "url" => "https://registry.hub.docker.com",
    "relative_path" => "default_organization-docker_product-foreman_rabbitmq",
    "major" => nil,
    "minor" => nil,
    "gpg_key_id" => nil,
    "content_id" => "1423085706372",
    "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" => 0,
    "erratum" => 0,
    "puppet_module" => 0
    },
    "permissions" => {
    "deletable" => true
    },
    "last_sync_words" => nil,
    "" => nil,
    "product" => {
    "id" => 1390,
    "cp_id" => "1423081359753",
    "name" => "Docker Product",
    "sync_plan" => nil
    },
    "environment" => {
    "id" => 1
    },
    "last_sync" => nil
    }
    [DEBUG 2015-02-04 16:35:08 API] Response headers: {
    :date => "Wed, 04 Feb 2015 21:35:05 GMT",
    :server => "Apache/2.4.6 (Red Hat)",
    :foreman_version => "1.7.2",
    :foreman_api_version => "2",
    :apipie_checksum => "c6d27c9718be9acd02d1cff8fd677546",
    :x_ua_compatible => "IE=Edge,chrome=1",
    :cache_control => "max-age=0, private, must-revalidate",
    :x_request_id => "89f88125978592535a8c7cf120505ff9",
    :x_runtime => "2.524574",
    :x_rack_cache => "invalidate, pass",
    :x_powered_by => "Phusion Passenger 4.0.18",
    :set_cookie => [
    [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTYwNWIxZDFiN2FhMDdjMDU5YmNlODJlNzA5MWJhNjlmBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--96601c7d348cfe7462502cba43258230d68c8fd6; path=/; HttpOnly"
    ],
    :etag => "\"4609e2ea36469540cb20d10be2fc1dc8\"",
    :status => "200 OK",
    :connection => "close",
    :transfer_encoding => "chunked",
    :content_type => "application/json; charset=utf-8"
    }
    Repository created
  1. hammer -u admin -p changeme -d -v repository info --organization-id 1 --id 103
    [ INFO 2015-02-04 16:36:01 Init] Initialization of Hammer CLI (0.1.4) has started...
    [DEBUG 2015-02-04 16:36:01 Init] Running at ruby 2.0.0-p353
    [ INFO 2015-02-04 16:36:01 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
    [ INFO 2015-02-04 16:36:01 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
    [ INFO 2015-02-04 16:36:01 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_bootdisk.yml has been loaded
    [ INFO 2015-02-04 16:36:01 Init] Configuration from the file /etc/hammer/cli.modules.d/gutterball.yml has been loaded
    [ INFO 2015-02-04 16:36:01 Init] Configuration from the file /etc/hammer/cli.modules.d/import.yml has been loaded
    [ INFO 2015-02-04 16:36:01 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
    [DEBUG 2015-02-04 16:36:01 Connection] Registered: foreman
    [DEBUG 2015-02-04 16:36:01 API] Global headers: {
    :content_type => "application/json",
    :accept => "application/json;version=2",
    "Accept-Language" => "en"
    }
    [ INFO 2015-02-04 16:36:01 Modules] Extension module hammer_cli_foreman (0.1.4) loaded
    [ INFO 2015-02-04 16:36:01 Modules] Extension module hammer_cli_import (0.10.6) loaded
    [ INFO 2015-02-04 16:36:02 HammerCLI::MainCommand] subcommand organization (HammerCLIForeman::Organization) was removed.
    [ INFO 2015-02-04 16:36:02 HammerCLI::MainCommand] subcommand organization (HammerCLIKatello::Organization) was created.
    [ INFO 2015-02-04 16:36:02 Modules] Extension module hammer_cli_katello (0.0.7) loaded
    [DEBUG 2015-02-04 16:36:02 Init] Using locale 'en'
    [DEBUG 2015-02-04 16:36:02 Init] 'mo' files for locale domain 'hammer-cli' loaded from '/usr/share/gems/gems/hammer_cli-0.1.4/locale'
    [DEBUG 2015-02-04 16:36:02 Init] 'mo' files for locale domain 'hammer-cli@system' loaded from '/usr/share/locale'
    [DEBUG 2015-02-04 16:36:02 Init] 'mo' files for locale domain 'hammer-cli-foreman' loaded from '/usr/share/gems/gems/hammer_cli_foreman-0.1.4/locale'
    [DEBUG 2015-02-04 16:36:02 Init] 'mo' files for locale domain 'hammer-cli-foreman@system' loaded from '/usr/share/locale'
    [DEBUG 2015-02-04 16:36:02 Init] 'mo' files for locale domain 'hammer-cli-katello' loaded from '/usr/share/gems/gems/hammer_cli_katello-0.0.7/locale'
    [ INFO 2015-02-04 16:36:02 HammerCLI::MainCommand] Called with options: {"option_verbose"=>true, "option_debug"=>true, "option_username"=>"admin", "option_password"=>"***"}
    [ INFO 2015-02-04 16:36:02 HammerCLIKatello::Repository] Called with options: {}
    [ INFO 2015-02-04 16:36:02 HammerCLIKatello::Repository::InfoCommand] Called with options: {"option_organization_id"=>"1", "option_id"=>"103"}
    [ INFO 2015-02-04 16:36:02 API] GET /katello/api/repositories/103
    [DEBUG 2015-02-04 16:36:02 API] Params: {}
    [DEBUG 2015-02-04 16:36:02 API] Headers: {
    :params => {}
    }
    [DEBUG 2015-02-04 16:36:02 API] Response: {
    "id" => 103,
    "name" => "foreman/rabbitmq",
    "label" => "foreman_rabbitmq",
    "organization" => {
    "name" => "Default Organization",
    "label" => "Default_Organization",
    "id" => 1
    },
    "created_at" => "2015-02-04T21:35:05Z",
    "updated_at" => "2015-02-04T21:35:07Z",
    "content_type" => "docker",
    "docker_upstream_name" => "fedora/rabbitmq",
    "unprotected" => false,
    "full_path" => "server.com:5000/default_organization-docker_product-foreman_rabbitmq",
    "checksum_type" => nil,
    "url" => "https://registry.hub.docker.com",
    "relative_path" => "default_organization-docker_product-foreman_rabbitmq",
    "major" => nil,
    "minor" => nil,
    "gpg_key_id" => nil,
    "content_id" => "1423085706372",
    "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" => 0,
    "erratum" => 0,
    "puppet_module" => 0
    },
    "permissions" => {
    "deletable" => true
    },
    "last_sync_words" => nil,
    "" => nil,
    "product" => {
    "id" => 1390,
    "cp_id" => "1423081359753",
    "name" => "Docker Product",
    "sync_plan" => nil
    },
    "environment" => {
    "id" => 1
    },
    "last_sync" => nil
    }
    [DEBUG 2015-02-04 16:36:02 API] Response headers: {
    :date => "Wed, 04 Feb 2015 21:36:02 GMT",
    :server => "Apache/2.4.6 (Red Hat)",
    :foreman_version => "1.7.2",
    :foreman_api_version => "2",
    :apipie_checksum => "c6d27c9718be9acd02d1cff8fd677546",
    :x_ua_compatible => "IE=Edge,chrome=1",
    :cache_control => "must-revalidate, private, max-age=0",
    :x_request_id => "78f86307842343b5d11ca9d9d7dba6c5",
    :x_runtime => "0.110785",
    :x_rack_cache => "miss",
    :x_powered_by => "Phusion Passenger 4.0.18",
    :set_cookie => [
    [0] "_session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTVhNDJmZGNiMmY5YjhkZDdlOWJiMDcxNWZkZjM0YTMzBjsAVEkiC2xvY2FsZQY7AEYiB2Vu--51f090ab49f51c84ea0c69f9d32e21783df3e8b0; path=/; HttpOnly"
    ],
    :etag => "\"4609e2ea36469540cb20d10be2fc1dc8\"",
    :status => "200 OK",
    :connection => "close",
    :transfer_encoding => "chunked",
    :content_type => "application/json; charset=utf-8"
    }
    ID: 103
    Name: foreman/rabbitmq
    Label: foreman_rabbitmq
    Organization: Default Organization
    Red Hat Repository: no
    Content Type: docker
    URL: https://registry.hub.docker.com
    Publish Via HTTP: no
    Published At: server.com:5000/default_organization-docker_product-foreman_rabbitmq
    Product:
    ID: 1390
    Name: Docker Product
    GPG Key:

Sync:
Status:
Created: 2015/02/04 21:35:05
Updated: 2015/02/04 21:35:07
Content Counts:
Puppet Modules: 0


Related issues 1 (0 open1 closed)

Blocks Katello - Tracker #7125: Docker Content SupportClosedDavid Davis

Actions
Actions #1

Updated by Partha Aji about 9 years ago

Actions #2

Updated by Partha Aji about 9 years ago

Actions #3

Updated by Partha Aji about 9 years ago

Actions #4

Updated by Partha Aji about 9 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Eric Helms about 9 years ago

  • Target version set to 66
  • translation missing: en.field_release set to 23
  • Difficulty set to easy
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF