Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

fix origin openshift-ansible deploys on centos #2772

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

maxamillion
Copy link
Contributor

Signed-off-by: Adam Miller [email protected]

What this PR does / why we need it:
This fixes a number of issues with the OpenShift Origin openshift-ansible deploy on CentOS images.

@codecov
Copy link

codecov bot commented Apr 25, 2018

Codecov Report

Merging #2772 into master will decrease coverage by 0.14%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2772      +/-   ##
=========================================
- Coverage   46.95%   46.8%   -0.15%     
=========================================
  Files          86      86              
  Lines       12781   12774       -7     
=========================================
- Hits         6001    5979      -22     
- Misses       6226    6250      +24     
+ Partials      554     545       -9
Impacted Files Coverage Δ
pkg/api/vlabs/validate.go 40.73% <0%> (-2.5%) ⬇️
pkg/operations/kubernetesupgrade/upgrader.go 56.48% <0%> (-0.84%) ⬇️
pkg/api/convertertoagentpoolonlyapi.go 28.11% <0%> (-0.37%) ⬇️
pkg/acsengine/engine.go 62.72% <0%> (-0.11%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b7cef8...58d62b2. Read the comment docs.

ANSIBLE_DEPLOY_TYPE="origin"
IMAGE_TYPE="${SERVICE_TYPE}"
IMAGE_PREFIX="openshift"
# FIXME: These versions are set to deal with differences in how Origin and OCP
Copy link
Contributor

Choose a reason for hiding this comment

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

Topic for discussion in the next arch call @pweil- @jim-minter ?

Copy link
Member

Choose a reason for hiding this comment

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

I was discussing this on IRC with maxamillion and didn't update the PR - I'm of the opinion that this can/should be removed from the PR before it merges.

Copy link
Member

Choose a reason for hiding this comment

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

(at least all the new PROMETHEUS_VERSION bits - the existing ANSIBLE_DEPLOY_TYPE/IMAGE_PREFIX stuff is required and will end up getting baked into the image one day)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What specifically should be removed?

Copy link
Member

Choose a reason for hiding this comment

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

nothing else

@@ -74,6 +72,10 @@ localmaster:
template_service_broker_image_name: "IMAGE_TYPE-template-service-broker"
template_service_broker_version: "vVERSION"

# NOTE: This is redundant, but required to handle version skew between
# openshift-ansible in Origin and OCP
openshift_examples_content_version: "vSHORT_VER"
Copy link
Member

Choose a reason for hiding this comment

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

is SHORT_VER still defined in this PR? Looks like it's been dropped?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's not defined explicitly because I can do a bash parameter expansion to obtain the value and the sed statement is still there with s|SHORT_VER|${VERSION%.*}|g;

Copy link
Member

Choose a reason for hiding this comment

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

thanks, was looking in the wrong place

@@ -62,6 +71,15 @@ set -x
routerLBHost="{{.RouterLBHostname}}"
routerLBIP=$(dig +short $routerLBHost)

# NOTE: The version of openshift-ansible for origin defaults the ansible var
# openshift_prometheus_node_exporter_image_version correctly as needed by
# origin, but for OCP it does not.
Copy link
Member

Choose a reason for hiding this comment

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

This is fixed in openshift/openshift-ansible@c27a0f4, which is in >= 3.9.15. Please add a note to that effect, and a TODO to remove this once we're installing >= 3.9.15.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

+1 - will do

@jim-minter
Copy link
Member

jim-minter commented Apr 26, 2018

needs rebase + confirm that it's tested, otherwise looks good

@maxamillion
Copy link
Contributor Author

rebased and squashed, confirm deploy of both OCP and Origin v3.9.x

@jim-minter
Copy link
Member

lgtm, @CecileRobertMichon please merge

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

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

lgtm

@maxamillion
Copy link
Contributor Author

@CecileRobertMichon looking at the CircleCI output, I don't think the failure is related to my change. Any chance we can restart the checks?

@CecileRobertMichon CecileRobertMichon merged commit 0d5ceb2 into Azure:master Apr 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants