Skip to content

Conversation

@Fedosin
Copy link
Contributor

@Fedosin Fedosin commented Jul 30, 2019

To allow users to provide custom cloud names in the install config we need to remove hardcoded 'openstack' name.

To do so and to keep the compatibility with the current behavior, we read cloud name from the install config first, and if it's empty, set it to the value of OS_CLOUD env variable. If both values are not specified, then cloud name defaults to "openstack".

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1732858

@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 30, 2019
@Fedosin Fedosin force-pushed the unhardcode_openstack branch from 77fa8de to 3b3c07a Compare July 30, 2019 17:08
@openshift-ci-robot openshift-ci-robot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 30, 2019
@Fedosin Fedosin force-pushed the unhardcode_openstack branch from 3b3c07a to 7db337b Compare July 30, 2019 20:09
@Fedosin
Copy link
Contributor Author

Fedosin commented Jul 31, 2019

/test e2e-openstack

@Fedosin Fedosin force-pushed the unhardcode_openstack branch from 7db337b to c042f68 Compare July 31, 2019 11:08
@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 31, 2019
@Fedosin
Copy link
Contributor Author

Fedosin commented Jul 31, 2019

/test e2e-openstack

@tomassedovic
Copy link
Contributor

/assign

@tomassedovic
Copy link
Contributor

/lgtm
/hold

Looks good to me, thanks! I'm putting it on /hold until the e2e-openstack job passes. All OpenStack are currently broken due to openshift/library-go#500. The fix (openshift/cluster-kube-controller-manager-operator#275) is merged, but we need to wait for it to appear in the release image and retest.

Feel free to remove the hold once e2e-openstack is green.

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Aug 5, 2019
@tomassedovic
Copy link
Contributor

/retest

@mandre
Copy link
Member

mandre commented Aug 5, 2019

/test e2e-openstack

@mandre
Copy link
Member

mandre commented Aug 5, 2019

/retest

2 similar comments
@tomassedovic
Copy link
Contributor

/retest

@mandre
Copy link
Member

mandre commented Aug 5, 2019

/retest

@Fedosin
Copy link
Contributor Author

Fedosin commented Aug 6, 2019

/test e2e-openstack

1 similar comment
@Fedosin
Copy link
Contributor Author

Fedosin commented Aug 6, 2019

/test e2e-openstack

@Fedosin Fedosin force-pushed the unhardcode_openstack branch from c042f68 to 1e6c781 Compare August 6, 2019 13:03
@openshift-ci-robot openshift-ci-robot removed lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 6, 2019
@Fedosin
Copy link
Contributor Author

Fedosin commented Aug 6, 2019

/hold cancel

Copy link
Contributor

Choose a reason for hiding this comment

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

why is the cloud name on master machine objects different from the the one that should actually be used??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's not related here at all... I changed this.
Now, when the installer wants to read a local clouds.yaml file, it looks at "cloud" value from the install-config.yaml first, and, if there is nothing, it tries the default value "openstack".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But when we create a system secret with a generated "clouds.yaml" item, it always sets the name as "openstack" there, which is good for consistency.

@Fedosin Fedosin force-pushed the unhardcode_openstack branch from 7962a4e to 065efa8 Compare August 13, 2019 22:29
@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 13, 2019
Copy link
Contributor

Choose a reason for hiding this comment

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

this should part of the defaults.. not when passing those to terraform.

@Fedosin Fedosin force-pushed the unhardcode_openstack branch from 065efa8 to ff6f1fa Compare August 14, 2019 10:22
@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 14, 2019
@Fedosin Fedosin force-pushed the unhardcode_openstack branch from ff6f1fa to 37f7816 Compare August 14, 2019 11:36
@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 14, 2019
@Fedosin Fedosin force-pushed the unhardcode_openstack branch from 37f7816 to b4de924 Compare August 14, 2019 16:14
To allow users to provide custom cloud names in the install
config we need to remove the hardcoded 'openstack' name.

To do so and to keep the compatibility with the current behavior,
we read cloud name from the install config first, and if it's empty,
set it to the value of OS_CLOUD env variable. If both values are not
specified, then cloud name defaults to "openstack".
@Fedosin Fedosin force-pushed the unhardcode_openstack branch from b4de924 to b920e6c Compare August 14, 2019 19:16
@openshift-ci-robot
Copy link
Contributor

@Fedosin: This pull request references a valid Bugzilla bug. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Bug 1732858: unhardcode the cloud name for openstack

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 Aug 14, 2019
@abhinavdahiya
Copy link
Contributor

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 14, 2019
@Fedosin
Copy link
Contributor Author

Fedosin commented Aug 15, 2019

/test e2e-openstack

2 similar comments
@Fedosin
Copy link
Contributor Author

Fedosin commented Aug 15, 2019

/test e2e-openstack

@Fedosin
Copy link
Contributor Author

Fedosin commented Aug 15, 2019

/test e2e-openstack

@dprince
Copy link
Contributor

dprince commented Aug 16, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 16, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhinavdahiya, dprince, Fedosin, mandre, tomassedovic

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-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit c7a87b5 into openshift:master Aug 16, 2019
@openshift-ci-robot
Copy link
Contributor

@Fedosin: All pull requests linked via external trackers have merged. The Bugzilla bug has been moved to the MODIFIED state.

Details

In response to this:

Bug 1732858: unhardcode the cloud name for openstack

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.

@Fedosin Fedosin deleted the unhardcode_openstack branch November 1, 2019 11:18
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/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. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants