Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1806779: Mirroring from custom directory via oc adm release mirror fails #424

Merged
merged 1 commit into from May 18, 2020

Conversation

smarterclayton
Copy link
Contributor

@smarterclayton smarterclayton commented May 18, 2020

The command fails when specifying a non-default from directory because
the from directory was not passed to either extract or mirror. Add that
transformation.

Fixes

oc adm release mirror --from-dir=X --from=file://Y:Z
error: blob unknown

because mirror was looking for Y:Z in the current dir, not X.

Also include the Parallel options as good practice even if they are
not heavily used in these flows.

The command fails when specifying a non-default from directory because
the from directory was not passed to either extract or mirror. Add that
transformation.

Also include the Parallel options as good practice even if they are
not heavily used in these flows.
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 18, 2020
@smarterclayton smarterclayton changed the title release: Mirroring from custom directory via oc adm release mirror fails Bug 1806779: Mirroring from custom directory via oc adm release mirror fails May 18, 2020
@openshift-ci-robot
Copy link

@smarterclayton: An error was encountered adding this pull request to the external tracker bugs for bug 1806779 on the Bugzilla server at https://bugzilla.redhat.com:

JSONRPC error 32000: There was an error reported for a GitHub REST call. URL: https://api.github.com/repos/openshift/oc/pulls/424 Error: 403 Forbidden at /loader/0x56443bb7c4f0/Bugzilla/Extension/ExternalBugs/Type/GitHub.pm line 111. at /loader/0x56443bb7c4f0/Bugzilla/Extension/ExternalBugs/Type/GitHub.pm line 111. eval {...} called at /loader/0x56443bb7c4f0/Bugzilla/Extension/ExternalBugs/Type/GitHub.pm line 98 Bugzilla::Extension::ExternalBugs::Type::GitHub::_do_rest_call('Bugzilla::Extension::ExternalBugs::Type::GitHub=HASH(0x564442...', 'https://api.github.com/repos/openshift/oc/pulls/424', 'GET') called at /loader/0x56443bb7c4f0/Bugzilla/Extension/ExternalBugs/Type/GitHub.pm line 62 Bugzilla::Extension::ExternalBugs::Type::GitHub::get_data('Bugzilla::Extension::ExternalBugs::Type::GitHub=HASH(0x564442...', 'Bugzilla::Extension::ExternalBugs::Bug=HASH(0x564443294170)') called at /loader/0x56443bb7c4f0/Bugzilla/Extension/ExternalBugs/Bug.pm line 302 eval {...} called at /loader/0x56443bb7c4f0/Bugzilla/Extension/ExternalBugs/Bug.pm line 302 Bugzilla::Extension::ExternalBugs::Bug::update_ext_info('Bugzilla::Extension::ExternalBugs::Bug=HASH(0x564443294170)', 1) called at /loader/0x56443bb7c4f0/Bugzilla/Extension/ExternalBugs/Bug.pm line 125 Bugzilla::Extension::ExternalBugs::Bug::create('Bugzilla::Extension::ExternalBugs::Bug', 'HASH(0x5644431a6150)') called at /var/www/html/bugzilla/extensions/ExternalBugs/Extension.pm line 877 Bugzilla::Extension::ExternalBugs::bug_start_of_update('Bugzilla::Extension::ExternalBugs=HASH(0x564442b7c730)', 'HASH(0x564442f917e0)') called at /var/www/html/bugzilla/Bugzilla/Hook.pm line 21 Bugzilla::Hook::process('bug_start_of_update', 'HASH(0x564442f917e0)') called at /var/www/html/bugzilla/Bugzilla/Bug.pm line 1170 Bugzilla::Bug::update('Bugzilla::Bug=HASH(0x564442e26b70)') called at /loader/0x56443bb7c4f0/Bugzilla/Extension/ExternalBugs/WebService.pm line 88 Bugzilla::Extension::ExternalBugs::WebService::add_external_bug('Bugzilla::WebService::Server::JSONRPC::Bugzilla::Extension::E...', 'HASH(0x564442c96ad0)') called at (eval 2406) line 1 eval ' $procedure->{code}->($self, @params) ;' called at /usr/share/perl5/vendor_perl/JSON/RPC/Legacy/Server.pm line 220 JSON::RPC::Legacy::Server::_handle('Bugzilla::WebService::Server::JSONRPC::Bugzilla::Extension::E...', 'HASH(0x564443392018)') called at /var/www/html/bugzilla/Bugzilla/WebService/Server/JSONRPC.pm line 295 Bugzilla::WebService::Server::JSONRPC::_handle('Bugzilla::WebService::Server::JSONRPC::Bugzilla::Extension::E...', 'HASH(0x564443392018)') called at /usr/share/perl5/vendor_perl/JSON/RPC/Legacy/Server.pm line 126 JSON::RPC::Legacy::Server::handle('Bugzilla::WebService::Server::JSONRPC::Bugzilla::Extension::E...') called at /var/www/html/bugzilla/Bugzilla/WebService/Server/JSONRPC.pm line 70 Bugzilla::WebService::Server::JSONRPC::handle('Bugzilla::WebService::Server::JSONRPC::Bugzilla::Extension::E...') called at /var/www/html/bugzilla/jsonrpc.cgi line 31 ModPerl::ROOT::Bugzilla::ModPerl::ResponseHandler::var_www_html_bugzilla_jsonrpc_2ecgi::handler('Apache2::RequestRec=SCALAR(0x56444494d500)') called at /usr/lib64/perl5/vendor_perl/ModPerl/RegistryCooker.pm line 207 eval {...} called at /usr/lib64/perl5/vendor_perl/ModPerl/RegistryCooker.pm line 207 ModPerl::RegistryCooker::run('Bugzilla::ModPerl::ResponseHandler=HASH(0x56444378e768)') called at /usr/lib64/perl5/vendor_perl/ModPerl/RegistryCooker.pm line 173 ModPerl::RegistryCooker::default_handler('Bugzilla::ModPerl::ResponseHandler=HASH(0x56444378e768)') called at /usr/lib64/perl5/vendor_perl/ModPerl/Registry.pm line 32 ModPerl::Registry::handler('Bugzilla::ModPerl::ResponseHandler', 'Apache2::RequestRec=SCALAR(0x56444494d500)') called at /var/www/html/bugzilla/mod_perl.pl line 139 Bugzilla::ModPerl::ResponseHandler::handler('Bugzilla::ModPerl::ResponseHandler', 'Apache2::RequestRec=SCALAR(0x56444494d500)') called at (eval 2406) line 0 eval {...} called at (eval 2406) line 0
Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

In response to this:

Bug 1806779: Mirroring from custom directory via oc adm release mirror fails

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. label May 18, 2020
@openshift-ci-robot
Copy link

@smarterclayton: This pull request references Bugzilla bug 1806779, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1806779: Mirroring from custom directory via oc adm release mirror fails

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label May 18, 2020
Copy link
Member

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: smarterclayton, soltysh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [smarterclayton,soltysh]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 18, 2020
@openshift-merge-robot openshift-merge-robot merged commit 67da73a into openshift:master May 18, 2020
@openshift-ci-robot
Copy link

@smarterclayton: All pull requests linked via external trackers have merged: openshift/oc#320, openshift/oc#424. Bugzilla bug 1806779 has been moved to the MODIFIED state.

In response to this:

Bug 1806779: Mirroring from custom directory via oc adm release mirror fails

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sdodson
Copy link
Member

sdodson commented Jun 1, 2020

/cherrypick release-4.4

@openshift-cherrypick-robot

@sdodson: #424 failed to apply on top of branch "release-4.4":

error: Failed to merge in the changes.
Using index info to reconstruct a base tree...
M	pkg/cli/admin/release/extract.go
M	pkg/cli/admin/release/mirror.go
M	pkg/cli/admin/release/new.go
Falling back to patching base and 3-way merge...
Auto-merging pkg/cli/admin/release/new.go
Auto-merging pkg/cli/admin/release/mirror.go
Auto-merging pkg/cli/admin/release/extract.go
CONFLICT (content): Merge conflict in pkg/cli/admin/release/extract.go
Patch failed at 0001 release: Mirroring from custom directory via oc adm release mirror fails

In response to this:

/cherrypick release-4.4

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

wking pushed a commit to wking/oc that referenced this pull request Jun 1, 2020
The command fails when specifying a non-default from directory because
the from directory was not passed to either extract or mirror. Add that
transformation.

Also include the Parallel options as good practice even if they are
not heavily used in these flows.

Backporting e1567dd (openshift#424) and
resolving a context conflict because 4.4 does not include 2725cfa
(release: Support `-o commit` on `oc adm release extract --git`,
2020-03-26, openshift#358).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants