Skip to content

Conversation

paulfantom
Copy link
Contributor

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 6, 2019
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 6, 2019
@paulfantom paulfantom changed the title [WIP] Consistent log messages Consistent log messages Mar 6, 2019
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 6, 2019
@@ -399,7 +399,6 @@ func checkFlags(cmd *cobra.Command) error {
func main() {
err := rootCmd.Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error occurred: %v\n", err)
os.Exit(1)
glog.Fatalf("Error occurred: %v", err)
Copy link
Member

Choose a reason for hiding this comment

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

+1

@@ -44,7 +44,7 @@ func main() {
glog.Fatal(err)
}

glog.Infof("Registering Components.")
glog.Info("Registering Components.")
Copy link
Member

Choose a reason for hiding this comment

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

Without the dot at the end please

@@ -61,10 +61,13 @@ func main() {
glog.Fatal(err)
}

glog.Infof("Starting the Cmd.")
glog.Info("Starting the Cmd.")
Copy link
Member

Choose a reason for hiding this comment

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

Without the dot at the end please

@@ -109,7 +109,7 @@ func (a *Actuator) handleMachineError(machine *machinev1.Machine, err *apierrors

// Create creates a machine and is invoked by the Machine Controller
func (a *Actuator) Create(context context.Context, cluster *machinev1.Cluster, machine *machinev1.Machine) error {
glog.Infof("Creating machine %q", machine.Name)
glog.Infof("Creating machine %v", machine.Name)
Copy link
Member

Choose a reason for hiding this comment

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

s/%v/%q, names with %q

@@ -149,7 +149,7 @@ func (a *Actuator) Create(context context.Context, cluster *machinev1.Cluster, m

// Delete deletes a machine and is invoked by the Machine Controller
func (a *Actuator) Delete(context context.Context, cluster *machinev1.Cluster, machine *machinev1.Machine) error {
glog.Infof("Deleting machine %q", machine.Name)
glog.Infof("Deleting machine %v", machine.Name)
Copy link
Member

Choose a reason for hiding this comment

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

s/%v/%q, names with %q

@@ -373,7 +373,7 @@ func (a *Actuator) applyMachineStatus(
return nil
}

glog.Infof("Machine %s status has changed: %s", machine.Name, diff.ObjectReflectDiff(machine.Status, machineCopy.Status))
glog.Infof("Machine %s status has changed: %v", machine.Name, diff.ObjectReflectDiff(machine.Status, machineCopy.Status))
Copy link
Member

Choose a reason for hiding this comment

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

s/%s/%q, names with %q

diskVolume, err := virConn.LookupStorageVolByKey(volumeKey)
if err != nil {
return fmt.Errorf("Can't retrieve volume %s", volumeKey)
}
glog.Infof("diskVolume")
glog.Info("diskVolume")
Copy link
Member

Choose a reason for hiding this comment

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

Strange log messages. Maybe Getting disk volume or similar.

@@ -267,18 +267,18 @@ func randomWWN(strlen int) string {

func setDisks(domainDef *libvirtxml.Domain, virConn *libvirt.Connect, volumeKey string) error {
disk := newDefDisk(0)
glog.Infof("LookupStorageVolByKey")
glog.Info("LookupStorageVolByKey")
Copy link
Member

Choose a reason for hiding this comment

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

Rather Looking up storage volume by key

diskVolumeFile, err := diskVolume.GetPath()
if err != nil {
return fmt.Errorf("Error retrieving volume file: %s", err)
}

glog.Infof("DomainDiskSource")
glog.Info("DomainDiskSource")
Copy link
Member

Choose a reason for hiding this comment

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

Constructing domain disk source

@ingvagabund
Copy link
Member

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ingvagabund

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 6, 2019
@ingvagabund
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 8, 2019
@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 1ef5bd8 into openshift:master Mar 8, 2019
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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants