-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Openstack heat network #27783
Openstack heat network #27783
Conversation
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
3 similar comments
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
a59d197
to
c2ea1d1
Compare
CLAs look good, thanks! |
c2ea1d1
to
9fc460a
Compare
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
9fc460a
to
57da831
Compare
@kubernetes/sig-openstack I'm pretty clueless how to review this. Can anyone suggest a person? |
lgtm. @jianhuiz: Any reason you chose to default to lbaas v1 rather than v2? I mention it only because I thought part of the push for adding support for v2 was that many (most?) clouds supported v2 and not v1. |
@@ -32,6 +32,10 @@ write_files: | |||
password=$OS_PASSWORD | |||
region=$OS_REGION_NAME | |||
tenant-id=$OS_TENANT_ID | |||
[LoadBalancer] | |||
lb-version=$LBAAS_VERSION | |||
subnet-id=$SUBNET_ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok if SUBNET_ID
and FLOATING_NETWORK_ID
are not set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in my environments which are OpenStack Juno and Liberty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the current state of the proposal to remove LBaaS V1 from Neutron? I was under the impression that this could happen as early as Newton.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I don't think it's worth writing any new code using v1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So for this change we have 2 choices:
- Default to v1, as written.
- Default to v2 above at line 38.
Defaulting to v2 here would effectively be a change in the heat scripts vs the regular k8s openstack plugin that defaults to v1 if nothing is specified. I agree 100% that at some point we need to start defaulting to v2, and that point is now / very soon. I kind of think the two pieces of k8s/openstack should follow the same logic, whatever that logic is, however - so I have a weak preference for that s/v1/v2/g default to be in another change.
I'm working on a PR to just query the available neutron extensions, and pick v2 vs v1 automatically - so we can hopefully drop all the explicit defaults once that is merged and never speak of this again. I don't have an opinion on whether we should delay this change until that other one lands - I'm fine with merging this change and then removing the explicit default (line 38) later if there's any urgency.
Edit: LBaaS v1/v2 autodetect PR is #29726
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, #29726 has merged. I think we should make sure we default lb-version to ""
(empty string / unspecified) here, and let the autodetection code do its thing (still with the option for users to override if they need to).
@anguslees I thought defaults to v1 is backward compatible and will not break the scripts people are currently using. I personally have both versions (Juno and Liberty) so it wouldn't matter which is default. |
@jianhuiz: Agreed, we should auto-detect which lbaas versions the server advertises and remove this option (or at least leave it only for rare override use cases). I raised this on the lbaasv2 change, but the original submitter didn't have time to add it (nor have I) and I didn't want to block support for lbaasv2 over it. Patches always welcome :) |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
1 similar comment
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
@@ -35,6 +35,8 @@ MINION_FLAVOR=${MINION_FLAVOR:-m1.medium} | |||
|
|||
EXTERNAL_NETWORK=${EXTERNAL_NETWORK:-public} | |||
|
|||
LBAAS_VERSION=${LBAAS_VERSION:-v1} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @anguslees, we can default to "" and let the plugin auto-detect which loadbalancer to use.
57da831
to
551bd65
Compare
default LBAAS_VERSION to "" |
this LGTM |
lbaas_version: | ||
type: string | ||
description: version of OpenStack LBaaS service | ||
default: v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This "default" needs to be removed too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, forgot it. fixed now
551bd65
to
9908a02
Compare
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
lgtm |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
GCE e2e build/test passed for commit 9908a02. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 9908a02. |
Automatic merge from submit-queue |
add lbaas subnet and floating network configuration
support lbaas v2
add environment variable for fixed network
fix lb creation failed because of no 'name' for pool members according to lbaas v2 api#27810#25987
@dagnello @lavalamp @mikedanese
This change is