Skip to content

Conversation

jichenjc
Copy link
Contributor

What this PR does / why we need it:

keep seeing

I1113 00:24:14.043296       1 openstackmachine_controller.go:291] controllers/OpenStackMachine "msg"="Creating Machine" "cluster"="capi-openstack-3" "machine"="capi-openstack-control-plane-d2fnl" "namespace"="default" "openStackCluster"="capi-openstack-3" "openStackMachine"="capi-openstack-control-plane-rthx6"

but actually it's not creating .. it's getOrCreate, so the log is confusing
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:


@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 13, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jichenjc

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 13, 2020
@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 13, 2020

Build succeeded.

@@ -288,8 +288,6 @@ func (r *OpenStackMachineReconciler) reconcileNormal(ctx context.Context, logger
return ctrl.Result{}, err
}

logger.Info("Creating Machine")
Copy link
Contributor

Choose a reason for hiding this comment

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

Not good message is true. I suggest to update to 'Reconciling Machine create started'
in contrast to L370 logger.Info("Reconciled Machine create successfully").

@hidekazuna
Copy link
Contributor

It is best to see event. because SuccessfulCreateServer is just after calling createInstance.
https://github.com/kubernetes-sigs/cluster-api-provider-openstack/blob/master/pkg/cloud/services/compute/instance.go#L145

@jichenjc
Copy link
Contributor Author

It is best to see event. because SuccessfulCreateServer is just after calling createInstance.
https://github.com/kubernetes-sigs/cluster-api-provider-openstack/blob/master/pkg/cloud/services/compute/instance.go#L145

yes, but reading log makes me very confusing .. so better update log

@hidekazuna
Copy link
Contributor

It is best to see event. because SuccessfulCreateServer is just after calling createInstance.
https://github.com/kubernetes-sigs/cluster-api-provider-openstack/blob/master/pkg/cloud/services/compute/instance.go#L145

yes, but reading log makes me very confusing .. so better update log

Currently create or delete resource start message is not logged. You can refer to network resources creation. We need logging policy.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 13, 2020

Build failed.

@jichenjc
Copy link
Contributor Author

It is best to see event. because SuccessfulCreateServer is just after calling createInstance.
https://github.com/kubernetes-sigs/cluster-api-provider-openstack/blob/master/pkg/cloud/services/compute/instance.go#L145

yes, but reading log makes me very confusing .. so better update log

Currently create or delete resource start message is not logged. You can refer to network resources creation. We need logging policy.

agree

so are you suggesting should I add in this PR for all those logs ?

@hidekazuna hidekazuna mentioned this pull request Nov 16, 2020
@hidekazuna
Copy link
Contributor

Currently create or delete resource start message is not logged. You can refer to network resources creation. We need logging policy.

agree

so are you suggesting should I add in this PR for all those logs ?

Raised another issue.

@jichenjc
Copy link
Contributor Author

recheck

@jichenjc
Copy link
Contributor Author

@hidekazuna so what about this one? maybe merge first? or anything need change ? thanks

@theopenlab-ci
Copy link

theopenlab-ci bot commented Nov 17, 2020

Build failed.

@jichenjc
Copy link
Contributor Author

recheck

@hidekazuna
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 17, 2020
@k8s-ci-robot k8s-ci-robot merged commit a7a9ff5 into kubernetes-sigs:master Nov 17, 2020
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants