Skip to content

Conversation

@cjschaef
Copy link
Member

Add support for DNS Service on IBM Cloud in IPI. This allows lookup
of resources based on PublishStrategy, CIS (External) vs. DNS
(Internal). Handles service and zone lookup, and configuring DNS
and Infrastructure.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 23, 2022
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 23, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 23, 2022

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@cjschaef cjschaef force-pushed the ibmcloud_private_installconfig branch from 56fdc1b to 2114650 Compare August 24, 2022 20:36
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 24, 2022
@cjschaef cjschaef force-pushed the ibmcloud_private_installconfig branch from 2114650 to 5c600eb Compare August 25, 2022 13:02
@cjschaef cjschaef marked this pull request as ready for review August 25, 2022 13:02
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 25, 2022
@openshift-ci openshift-ci bot requested review from rna-afk and rvanderp3 August 25, 2022 13:08
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 25, 2022

@cjschaef: The /retest command does not accept any targets.
The following commands are available to trigger required jobs:

  • /test aro-unit
  • /test e2e-aws
  • /test e2e-aws-upi
  • /test e2e-azure
  • /test e2e-azure-upi
  • /test e2e-gcp
  • /test e2e-gcp-upi
  • /test e2e-metal-ipi-ovn-ipv6
  • /test e2e-vsphere
  • /test e2e-vsphere-upi
  • /test gofmt
  • /test golint
  • /test govet
  • /test images
  • /test okd-images
  • /test okd-unit
  • /test okd-verify-codegen
  • /test openstack-manifests
  • /test shellcheck
  • /test tf-lint
  • /test unit
  • /test verify-codegen
  • /test verify-vendor
  • /test yaml-lint

The following commands are available to trigger optional jobs:

  • /test e2e-alibaba
  • /test e2e-aws-disruptive
  • /test e2e-aws-fips
  • /test e2e-aws-imdsv2
  • /test e2e-aws-proxy
  • /test e2e-aws-shared-vpc
  • /test e2e-aws-single-node
  • /test e2e-aws-upgrade
  • /test e2e-aws-upi-proxy
  • /test e2e-aws-workers-rhel8
  • /test e2e-azure-resourcegroup
  • /test e2e-azure-shared-vpc
  • /test e2e-azurestack
  • /test e2e-azurestack-upi
  • /test e2e-crc
  • /test e2e-gcp-shared-vpc
  • /test e2e-gcp-upgrade
  • /test e2e-gcp-upi-xpn
  • /test e2e-ibmcloud
  • /test e2e-libvirt
  • /test e2e-metal-assisted
  • /test e2e-metal-ipi
  • /test e2e-metal-ipi-ovn-dualstack
  • /test e2e-metal-ipi-swapped-hosts
  • /test e2e-metal-ipi-virtualmedia
  • /test e2e-metal-single-node-live-iso
  • /test e2e-nutanix
  • /test e2e-openstack
  • /test e2e-openstack-kuryr
  • /test e2e-openstack-parallel
  • /test e2e-openstack-proxy
  • /test e2e-openstack-upi
  • /test e2e-ovirt
  • /test e2e-vsphere-zones
  • /test okd-e2e-aws-ovn
  • /test okd-e2e-aws-upgrade
  • /test okd-e2e-gcp
  • /test okd-e2e-gcp-upgrade
  • /test okd-e2e-vsphere
  • /test tf-fmt

Use /test all to run the following jobs that were automatically triggered:

  • pull-ci-openshift-installer-master-aro-unit
  • pull-ci-openshift-installer-master-e2e-aws
  • pull-ci-openshift-installer-master-e2e-azure
  • pull-ci-openshift-installer-master-e2e-gcp
  • pull-ci-openshift-installer-master-e2e-ibmcloud
  • pull-ci-openshift-installer-master-e2e-libvirt
  • pull-ci-openshift-installer-master-e2e-metal-assisted
  • pull-ci-openshift-installer-master-e2e-metal-ipi
  • pull-ci-openshift-installer-master-e2e-openstack
  • pull-ci-openshift-installer-master-e2e-ovirt
  • pull-ci-openshift-installer-master-e2e-vsphere
  • pull-ci-openshift-installer-master-gofmt
  • pull-ci-openshift-installer-master-golint
  • pull-ci-openshift-installer-master-govet
  • pull-ci-openshift-installer-master-images
  • pull-ci-openshift-installer-master-okd-e2e-aws-ovn
  • pull-ci-openshift-installer-master-okd-images
  • pull-ci-openshift-installer-master-okd-unit
  • pull-ci-openshift-installer-master-okd-verify-codegen
  • pull-ci-openshift-installer-master-shellcheck
  • pull-ci-openshift-installer-master-tf-fmt
  • pull-ci-openshift-installer-master-tf-lint
  • pull-ci-openshift-installer-master-unit
  • pull-ci-openshift-installer-master-verify-codegen
  • pull-ci-openshift-installer-master-verify-vendor
  • pull-ci-openshift-installer-master-yaml-lint
Details

In response to this:

/retest aro-unit
/retest e2e-ibmcloud
/retest golint
/retest govet
/retest okd-unit
/retest shellcheck
/retest tf-fmt
/retest unit
/retest verify-vendor
/retest yaml-lint

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.

@cjschaef
Copy link
Member Author

/test aro-unit
/test e2e-ibmcloud
/test golint
/test govet
/test okd-unit
/test shellcheck
/test tf-fmt
/test unit
/test verify-vendor
/test yaml-lint

@cjschaef
Copy link
Member Author

/test golint
/test govet
/test okd-unit
/test tf-fmt
/test e2e-ibmcloud

@cjschaef cjschaef force-pushed the ibmcloud_private_installconfig branch from 5c600eb to c0dad3f Compare August 25, 2022 18:18
@cjschaef
Copy link
Member Author

/test gofmt
/test golint
/test images
/test okd-unit
/test okd-verify-codegen
/test tf-fmt
/test unit
/test verify-codegen

@cjschaef
Copy link
Member Author

cjschaef commented Aug 25, 2022

/retitle CORS-2255: IBMCloud: Add DNS Service support - installconfig

@openshift-ci openshift-ci bot changed the title IBMCloud: Add DNS Service support - installconfig CORS-2255: IBMCloud: Add DNS Service support - installconfig Aug 25, 2022
@jeffnowicki
Copy link
Contributor

/retitle CORS-2271: IBMCloud: Add DNS Service support - installconfig

@openshift-ci openshift-ci bot changed the title CORS-2255: IBMCloud: Add DNS Service support - installconfig [CORS-2271](https://issues.redhat.com//browse/CORS-2271): IBMCloud: Add DNS Service support - installconfig Aug 25, 2022
@jeffnowicki
Copy link
Contributor

jeffnowicki commented Aug 25, 2022

/retitle CORS-2271: IBMCloud: Add DNS Service support - installconfig

@openshift-ci openshift-ci bot changed the title [CORS-2271](https://issues.redhat.com//browse/CORS-2271): IBMCloud: Add DNS Service support - installconfig CORS-2271: IBMCloud: Add DNS Service support - installconfig Aug 25, 2022
@cjschaef
Copy link
Member Author

/test images
/test verify-codegen

@cjschaef
Copy link
Member Author

The core linting tests all finally got kicked off properly and have passed.

Will see about getting the remaining e2e tests to at least run now.

/retest

@patrickdillon
Copy link
Contributor

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 26, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: patrickdillon

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 26, 2022
@cjschaef cjschaef force-pushed the ibmcloud_private_installconfig branch 2 times, most recently from 23471ae to 146ae30 Compare August 26, 2022 15:06
Copy link
Contributor

@rvanderp3 rvanderp3 left a comment

Choose a reason for hiding this comment

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

I left a few questions, overall looks good.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"github.com/openshift/installer/pkg/types"
"github.com/pkg/errors"
"github.com/pkg/errors"
"github.com/openshift/installer/pkg/types"

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

Comment on lines 153 to 185
Copy link
Contributor

Choose a reason for hiding this comment

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

could we make a new type here for instanceType and create constants for "DNS" and "CIS"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, I can do that.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"github.com/openshift/installer/pkg/types"
"github.com/pkg/errors"
"github.com/pkg/errors"
"github.com/openshift/installer/pkg/types"

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

Comment on lines 8 to 10
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"github.com/IBM/go-sdk-core/v5/core"
"github.com/openshift/installer/pkg/types"
"github.com/IBM/go-sdk-core/v5/core"
"github.com/openshift/installer/pkg/types"

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

Comment on lines +106 to +109
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to allow access of this variable outside the protection of the mutex?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think that is acceptable, since if the value isn't set, it get locked by the mutex after this check, setting it, or waiting for another thread to set it and then rechecking if it is set.

I thought this method was potentially best given the last time I ran into this when fixing the deadlock bug, per this review comment
#6241 (review)

Not opposed to making a change, but just wasn't sure which path is safer/best.

Comment on lines 140 to 147
Copy link
Contributor

Choose a reason for hiding this comment

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

is the purpose of the mutex in DNSInstance to guard against concurrent modification of m.dnsInstance? if so, could this public function possibly negate that protection?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good point, although the public function allows access to test the metadata functions, perhaps I can work out another method for performing the testing of the functions in metadata without having to have public "set" functions.

Copy link
Member Author

Choose a reason for hiding this comment

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

I removed the SetDNSInstance function for now, will handle necessary changes in upcoming unit test PR for metadata.

@cjschaef cjschaef force-pushed the ibmcloud_private_installconfig branch from 146ae30 to f52ee7c Compare August 26, 2022 16:00
@rvanderp3
Copy link
Contributor

/retest

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 2 against base HEAD 82dfb36 and 8 for PR HEAD f52ee7c73da4f8c19d4b89ddd82332338afa77c7 in total

@rvanderp3
Copy link
Contributor

/retest

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 1 against base HEAD 82dfb36 and 7 for PR HEAD f52ee7c73da4f8c19d4b89ddd82332338afa77c7 in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 82dfb36 and 6 for PR HEAD f52ee7c73da4f8c19d4b89ddd82332338afa77c7 in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 2 against base HEAD abf77d9 and 5 for PR HEAD f52ee7c73da4f8c19d4b89ddd82332338afa77c7 in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 1 against base HEAD abf77d9 and 4 for PR HEAD f52ee7c73da4f8c19d4b89ddd82332338afa77c7 in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD abf77d9 and 3 for PR HEAD f52ee7c73da4f8c19d4b89ddd82332338afa77c7 in total

@jeffnowicki
Copy link
Contributor

/retest

@jeffnowicki
Copy link
Contributor

/test golint

1 similar comment
@jeffnowicki
Copy link
Contributor

/test golint

@cjschaef cjschaef force-pushed the ibmcloud_private_installconfig branch from f52ee7c to 6af39b1 Compare August 29, 2022 13:27
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 29, 2022
@cjschaef
Copy link
Member Author

Pushed up fix to addressing missing comments for consts in golint

 INFO[2022-08-29T12:24:10Z] /go/src/github.com/openshift/installer/pkg/asset/installconfig/ibmcloud/client.go:61:2: exported const CISInstanceType should have comment (or a comment on this block) or be unexported
Found 1 lint suggestions; failing. 

@rvanderp3
Copy link
Contributor

/retest

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 29, 2022
@cjschaef
Copy link
Member Author

/hold
I need to rebase since a conflict has popped up with #6157 merging.

I will have to rebase to resolve the conflict when I can.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 29, 2022
Add support for DNS Service on IBM Cloud in IPI. This allows lookup
of resources based on PublishStrategy, CIS (External) vs. DNS
(Internal). Handles service and zone lookup, and configuring DNS
and Infrastructure.

Partial: https://issues.redhat.com/browse/SPLAT-633
Update vendor packages for added IBM Cloud DNS Service support.
@cjschaef cjschaef force-pushed the ibmcloud_private_installconfig branch from 6af39b1 to 13a20a7 Compare August 29, 2022 22:04
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 29, 2022
@cjschaef
Copy link
Member Author

/unhold
Rebase completed

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 29, 2022
@rvanderp3
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 30, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 30, 2022

@cjschaef: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/okd-e2e-aws-ovn 13a20a7 link false /test okd-e2e-aws-ovn
ci/prow/e2e-openstack 13a20a7 link false /test e2e-openstack
ci/prow/e2e-libvirt 13a20a7 link false /test e2e-libvirt
ci/prow/e2e-metal-ipi 13a20a7 link false /test e2e-metal-ipi
ci/prow/e2e-ibmcloud 13a20a7 link false /test e2e-ibmcloud

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 924ac31 into openshift:master Aug 30, 2022
@cjschaef cjschaef deleted the ibmcloud_private_installconfig branch August 30, 2022 16:20
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants