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

[DO_NOT_MERGE] origin e2e debug 3.11 #21029

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion test/end-to-end/core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,18 @@ os::cmd::expect_success 'oc project cache'
e2e_user_token="$(oc whoami -t)"

os::log::info "Docker login as e2e-user to ${DOCKER_REGISTRY}"
os::cmd::expect_success "docker login -u e2e-user -p ${e2e_user_token} ${DOCKER_REGISTRY}"
set +e
oc get pods -n default -o yaml
oc get pods -n default | grep registry
oc get pods -n default | grep registry | awk '{print $1}' | xargs -n 1 oc logs -n default
Copy link
Contributor

Choose a reason for hiding this comment

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

If there are more than one registyry pods, this will lead to the mess of logs.

oc get pods -n default -l docker-registry=default -o name |
   xargs -ri sh -c 'echo === {} ====; oc logs -n default {}; echo'


echo "ATTEMPTING LOGIN"
docker login -u e2e-user -p ${e2e_user_token} ${DOCKER_REGISTRY}

oc get pods -n default | grep registry | awk '{print $1}' | xargs -n 1 oc logs -n default
Copy link
Contributor

Choose a reason for hiding this comment

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

Why you want to show all logs from all registry pods twice ?


set -e
os::cmd::try_until_success "docker login -u e2e-user -p ${e2e_user_token} ${DOCKER_REGISTRY}"
os::log::info "Docker login successful"

os::log::info "Tagging and pushing ruby-22-centos7 to ${DOCKER_REGISTRY}/cache/ruby-22-centos7:latest"
Expand Down