Skip to content

Remove vestiges of glog command-line flags.#3759

Merged
istio-merge-robot merged 1 commit intoistio:masterfrom
geeknoid:master
Feb 28, 2018
Merged

Remove vestiges of glog command-line flags.#3759
istio-merge-robot merged 1 commit intoistio:masterfrom
geeknoid:master

Conversation

@geeknoid
Copy link
Copy Markdown
Contributor

@geeknoid geeknoid commented Feb 24, 2018

No description provided.

@geeknoid geeknoid requested review from a team February 24, 2018 17:30
@ldemailly
Copy link
Copy Markdown
Member

/test e2e-suite-rbac-auth

Copy link
Copy Markdown
Member

@ldemailly ldemailly left a comment

Choose a reason for hiding this comment

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

nice, qq about left over -v x:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is the leftover -v 2 doing anything now ? will it break ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It wasn't clear that all the -v X flags were indeed for glog, so I submitted as-is. Clearly, they are indeed for glog. I'll update and try again.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it might be safer to just absorb (or even better translate into level == debug ) the -v in case some of our customers have their own templates for installing istio ?

(@costinm thoughts on backward compatibility needs for this ?)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ps: you missed this line's "-v 2" - and should those be replaced by -loglevel debug?

@ldemailly
Copy link
Copy Markdown
Member

ldemailly commented Feb 24, 2018

circle beat me to it almost:

flag provided but not defined: -v

who needs reviews when we have good tests ;-)

@geeknoid geeknoid requested a review from a team February 24, 2018 17:58
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

replace by the equivalent with the new logger?

@ldemailly
Copy link
Copy Markdown
Member

I0224 18:25:56.587] po/istio-ingress-68bfbc686d-k8s4v 0/1 Error 1 5s 10.28.26.132 gke-istio-e2e-rbac-rotat-default-pool-708ea9ff-s5bx

it appears the ingress yaml /... is somehow not happy

@ldemailly
Copy link
Copy Markdown
Member

can you add 1 test at least that the glog shim works
I filled https://github.com/istio/glog/issues/1 but it'll probably get lost there

@ldemailly
Copy link
Copy Markdown
Member

ldemailly commented Feb 24, 2018

Please (cd vendor; git checkout 5392831d46eb36cb168e818f1872eae39d9660d5 ) to further test
the sha on master is gone for now/until this works to not block other changes

@geeknoid geeknoid requested review from a team and nmittler February 24, 2018 22:12
@ldemailly
Copy link
Copy Markdown
Member

can you rebase and retest ?

@geeknoid
Copy link
Copy Markdown
Contributor Author

/hold

@istio-testing istio-testing added the do-not-merge/hold Block automatic merging of a PR. label Feb 26, 2018
@istio-merge-robot istio-merge-robot added the needs-rebase Indicates a PR needs to be rebased before being merged label Feb 27, 2018
@istio-merge-robot
Copy link
Copy Markdown

@geeknoid PR needs rebase

@costinm
Copy link
Copy Markdown
Contributor

costinm commented Feb 27, 2018

2 more issies:

  • we use scratch images, so there is no /tmp or good way to get the logs. Can we make sure that stderr is the default ?
  • at least for helm, we need a way to configure the debug level. Not sure what's the equivalent of '-v 2' in the new log - but should be included in the templates.

@ldemailly
Copy link
Copy Markdown
Member

/test e2e-suite-rbac-auth

@ldemailly
Copy link
Copy Markdown
Member

I0228 00:00:58.753] istio-ca-847fcd677-gmfsz 0/1 ImagePullBackOff 0 2m

@ldemailly
Copy link
Copy Markdown
Member

ldemailly commented Feb 28, 2018

ca error is odd but looks unrelated
so I merged istio/old_vendor-istio_repo#13
@geeknoid can you quickly update this PR's vendor/ to the merged sha from master there

git diff vendor should show

+3888d5d41b389c70808311cd43cd5ae9bf94ee2a

so we can merge this one so istio/istio doesn't stay behind vendor too long (in case someone else starts a new PR with vendor changes...)

@ldemailly
Copy link
Copy Markdown
Member

ping^

@geeknoid
Copy link
Copy Markdown
Contributor Author

To answer Laurent's question, you get this on the command-line when using a deprectaed option:

Flag --v has been deprecated, please use --log_output_level instead

To address Costin's issue, this PR doesn't change anything in the behavior of the system, it merely removes useless command-line options from our help messages and from our command-lines. So these concerns should be filed as separate issues.

@istio-testing
Copy link
Copy Markdown
Collaborator

istio-testing commented Feb 28, 2018

@geeknoid: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
prow/e2e-suite-rbac-auth.sh 340a788f20bd3b8889f2380138808b8d65ebe821 link /test e2e-suite-rbac-auth
Details

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. I understand the commands that are listed here.

@geeknoid
Copy link
Copy Markdown
Contributor Author

/test e2e-simple

@geeknoid
Copy link
Copy Markdown
Contributor Author

/unhold

@geeknoid
Copy link
Copy Markdown
Contributor Author

All green and happy. Just needs approval.

@costinm
Copy link
Copy Markdown
Contributor

costinm commented Feb 28, 2018

/lgtm

Will file a bug for flag defaults.

@ldemailly
Copy link
Copy Markdown
Member

/lgtm

@istio-merge-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: costinm, ldemailly

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@ldemailly
Copy link
Copy Markdown
Member

/hold cancel

@istio-testing istio-testing removed the do-not-merge/hold Block automatic merging of a PR. label Feb 28, 2018
@istio-merge-robot
Copy link
Copy Markdown

/test all [submit-queue is verifying that this PR is safe to merge]

@istio-merge-robot
Copy link
Copy Markdown

Automatic merge from submit-queue.

@istio-merge-robot istio-merge-robot merged commit c6166bf into istio:master Feb 28, 2018
The following command sends a `report` request to Mixer.
```shell
bazel-bin/mixer/cmd/mixc/mixc report -v 2 --string_attributes destination.service=abc.ns.svc.cluster.local,source.name=myservice,target.port=8080 --stringmap_attributes "request.headers=clnt:abc;source:abcd,destination.labels=app:ratings,source.labels=version:v2" --int64_attributes response.duration=2003,response.size=1024 --timestamp_attributes request.time="2017-07-04T00:01:10Z" --bytes_attributes source.ip=c0:0:0:2
bazel-bin/mixer/cmd/mixc/mixc report --string_attributes destination.service=abc.ns.svc.cluster.local,source.name=myservice,target.port=8080 --stringmap_attributes "request.headers=clnt:abc;source:abcd,destination.labels=app:ratings,source.labels=version:v2" --int64_attributes response.duration=2003,response.size=1024 --timestamp_attributes request.time="2017-07-04T00:01:10Z" --bytes_attributes source.ip=c0:0:0:2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

when we updated this, we should have removed references to bazel ;). Follow-on PR to remove bazel-bin ?

@ldemailly
Copy link
Copy Markdown
Member

did you run "make depend.status" before the PRs ? because it's failing on circleci
https://circleci.com/gh/istio/istio/39019

make depend.status
No error means your Gopkg.* are in sync and ok with vendor/
dep status -dot > /go/out/linux_amd64/release/dep.dot
Lock inputs-digest mismatch. This happens when Gopkg.toml is modified.
Run `dep ensure` to regenerate the inputs-digest.
input-digest mismatch
Makefile:234: recipe for target 'depend.status' failed
make: *** [depend.status] Error 1

and for me too when I try to fix it:

Solving failure: No versions of gopkg.in/russross/blackfriday.v2 met constraints:
	v2.0.0: Could not introduce gopkg.in/russross/blackfriday.v2@v2.0.0, as its subpackage gopkg.in/russross/blackfriday.v2 does not contain usable Go code (*build.NoGoError).. (Package is required by github.com/istio/tools@master.)
	v2: Could not introduce gopkg.in/russross/blackfriday.v2@v2, as it is not allowed by constraint ^2.0.0 from project github.com/istio/tools.
	v2-commonmark-testsuite: Could not introduce gopkg.in/russross/blackfriday.v2@v2-commonmark-testsuite, as it is not allowed by constraint ^2.0.0 from project github.com/istio/tools.
	v2-issue423-crlf: Could not introduce gopkg.in/russross/blackfriday.v2@v2-issue423-crlf, as it is not allowed by constraint ^2.0.0 from project github.com/istio/tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants