-
Notifications
You must be signed in to change notification settings - Fork 254
HIVE-2391: vSphere zonal support #2731
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
base: master
Are you sure you want to change the base?
Conversation
@dlom: This pull request references HIVE-2391 which is a valid jira issue. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dlom The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@dlom: This pull request references HIVE-2391 which is a valid jira issue. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
xref: HIVE-2396 |
in the vCenter. | ||
description: |- | ||
Datacenter is the name of the datacenter to use in the vCenter. | ||
Deprecated: Please use Platform.VSphere instead |
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.
The Deprecated fields datacenter, defaultDatastore and vCenter are still defined as required. After hive upgrade, the users still need to configure them even configuring platform.vsphere.vSphere already, which means the transition not done completely.
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've marked all of the deprecated fields as optional, please let me know if the issue persists
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 can see the update in hive.openshift.io_clusterdeployments.yaml now
flags.StringVar(&opt.OpenStackIngressFloatingIP, "openstack-ingress-floating-ip", "", "Floating IP address to use for cluster's Ingress service") | ||
|
||
// vSphere flags | ||
flags.StringVar(&opt.VSphereVCenter, "vsphere-vcenter", "", "Domain name or IP address of the vCenter") |
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.
The vsphere parameters are deleted but the vsphere sample for hiveutil create-cluster not updated accoringly, see the "case 3 - hiveutil" part of OCP-84265.
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.
@jianping-shu I've updated the documentation. Please let me know if you have any questions, or need a sample platform-spec.json
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.
The vsphere sample for hiveutil create-cluster is updated, fixed.
I've tried the following 2 cases on OCP-84265
1)--vsphere-platform-spec-json paramter is missing but the error could be improved
jianpingshu@jshu-mac bin % ./hiveutil create-cluster jshu1 --cloud=vsphere --vsphere-api-vip=192.168.1.2 --vsphere-ingress-vip=192.168.1.3 --vsphere-ca-certs=./vcenter-certificate -o yaml > jshu1.yaml
DEBU[0000] Couldn't find install logs provider environment variable. Skipping.
FATA[0000] Error command=create-cluster error="error decoding platform : unexpected end of JSON input"
2)I tried several json files but all got the following error, see this code , looks like it needs "os.ReadFile" for the json file, can you help check?
jianpingshu@jshu-mac bin % ./hiveutil create-cluster jshu1 --cloud=vsphere --vsphere-api-vip=192.168.1.2 --vsphere-ingress-vip=192.168.1.3 --vsphere-ca-certs=./vcenter-certificate --vsphere-platform-spec-json=./platform2.json -o yaml > jshu1.yaml
DEBU[0000] Couldn't find install logs provider environment variable. Skipping.
FATA[0000] Error command=create-cluster error="error decoding platform /Users/jianpingshu/program/test_case/HIVE/HIVE-2391/hiveutil/platform2.json: invalid character '/' looking for beginning of value"
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.
@jianping-shu it's my mistake: The environment variable should contain the contents of the json, not a path to the json file itself. I've updated the docs to match the correct intended usage
556f051
to
afcf08f
Compare
/retest |
Caution There are some errors in your PipelineRun template.
|
@dlom I tried the new commit, install vsphere cd with old format i.e. without platform.vsphere.vSphere still failed due to the same error. Pls. check the comments and hive controlller log attached on https://issues.redhat.com/browse/HIVE-2917. |
@dlom can you pick up this again now private image work is in review - need to get this wrapped up |
@dlom: The following test failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
xref: HIVE-2391
This PR is a re-do of #2541