-
Notifications
You must be signed in to change notification settings - Fork 476
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
Issue #345 docker-env doesn't behave as expected #350
Conversation
@praveenkumar seems CI is failing Also, how did you do the change in version to Viper. When I just take your change to glide.yaml and delete the lock file to re-generate the lock file I get:
That's by the way pretty much expected and inline with what we have seen before. We need to figure out what's going on here first. |
@hferentschik yes I am working on that and your observation is as expected, I put it WIP for this reason. How did you generated glide.yaml at first place using glide init and then put required version? |
Got you. |
aa4b475
to
e990b01
Compare
@hferentschik So finally I ended up updating complete I also changed origin git version from 1.3. to 1.4.1
|
retest this please |
08e1d76
to
9be5ea5
Compare
@praveenkumar doing
|
|
@@ -187,7 +187,7 @@ func initStartFlags() { | |||
startFlagSet.Int(cpus, constants.DefaultCPUS, "Number of CPU cores to allocate to the Minishift VM.") | |||
startFlagSet.String(humanReadableDiskSize, constants.DefaultDiskSize, "Disk size to allocate to the Minishift VM. Use the format <size><unit>, where unit = b, k, m or g.") | |||
startFlagSet.String(hostOnlyCIDR, "192.168.99.1/24", "The CIDR to be used for the minishift VM. (Only supported with VirtualBox driver.)") | |||
startFlagSet.StringSliceVar(&dockerEnv, "docker-env", nil, "Environment variables to pass to the Docker daemon. Use the format <key>=<value>.") | |||
startFlagSet.StringArrayVar(&dockerEnv, "docker-env", nil, "Environment variables to pass to the Docker daemon. Use the format <key>=<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.
+1
--username string User name for the virtual machine. | ||
-v, --v value log level for V logs | ||
--vmodule value comma-separated list of pattern=N settings for file-filtered logging | ||
--alsologtostderr log to standard error as well as files |
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's the change in this generated files? I don't seem to see it?
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.
--log-flush-frequency duration
is not any more option in updated glog nothing else changed.
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.
cool, thanks. I could not spot the difference ;-) Fair enough
--vm-driver string The driver to use for the Minishift VM. Possible values: [virtualbox vmwarefusion kvm xhyve hyperv] (default "kvm") | ||
--cpus int Number of CPU cores to allocate to the Minishift VM. (default 2) | ||
--disk-size string Disk size to allocate to the Minishift VM. Use the format <size><unit>, where unit = b, k, m or g. (default "20g") | ||
--docker-env stringArray Environment variables to pass to the Docker daemon. Use the format <key>=<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.
"stringArray", something missing in the command setup?
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.
No it's not missing when we updated viper and pflag now doc generation include the type also. check https://github.com/kubernetes/minikube/blob/master/docs/minikube_start.md also have same.
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 see. That sucks imo. How does "stringSlice" or "stringArray" any sense to the user. For him these are strings. Is there a bug report for this in Viper? If not we should create one. Seems also Viper is quite inactive :-(
--iso-url string Location of the minishift ISO. (default "https://github.com/minishift/minishift-b2d-iso/releases/download/v1.0.0/minishift-b2d.iso") | ||
--memory int Amount of RAM to allocate to the Minishift VM. (default 2048) | ||
--metrics Install metrics (experimental) | ||
-e, --openshift-env stringSlice Specify key-value pairs of environment variables to set on the OpenShift container. |
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.
"stringSlice"? Towards the docs we should not expose things like string array or string slice.
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 is auto-generated as per doc build. I am not sure if we can make any changes here.
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.
We should investigate. IMO this is a bug in Viper then. If there is nothing in Viper, we can always control the generation and fix afterwards, but that's not something worth doing right now.
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.
Actually, I have issues with many of the autogenerated documentation... :-s
version: 152183b11abcd2b07ee814c8da82296340949747 | ||
repo: https://github.com/openshift/go-restful.git | ||
vcs: git | ||
- package: github.com/docker/distribution |
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.
nice to get rid of this
@hferentschik @LalatenduMohanty @budhrg @gbraad please make sure you compile minishift using this PR before we merge I am seeing something interesting.
|
@praveenkumar I noticed the same thing. It seems minishift/cmd/minikube/cmd/start.go Line 231 in 0fc98b2
|
Maybe related to this - spf13/viper#276 |
9be5ea5
to
9bd56ea
Compare
@hferentschik yes so I used a specific version which have Jimmy changes plus logs info in the glide.yaml file. |
glide.yaml
Outdated
@@ -1,7 +1,7 @@ | |||
package: github.com/minishift/minishift | |||
import: | |||
- package: github.com/docker/machine | |||
version: 91e368eb7422665278b1d5665139ee0f9980b588 | |||
version: 15fd4c70403bab784d91031af02d9e169ce66412 |
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.
Updated docker-machine release - 0.9
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.
can we add an actual version here, instead of the sha?
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.
@hferentschik we can it was before set as sha so I just did same. Can we do it later sometime if that is not so blocker? Problem is my net connection take more than 30-40 mins after glide clear cache and regenerating lock file from clean setup :( I can put a issue if that make you happy :) and track it.
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'd prefer doing it now. It seems connected really. You also should not have to clear the caches completely. Once everything works maybe for good measure.
For me it does not take so long to regenerate. I can otherwise try tomorrow. I'd really like to get way from depending on sha's like this
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.
@hferentschik done.
- package: github.com/spf13/viper | ||
repo: https://github.com/jimmidyson/viper.git | ||
vcs: git | ||
version: 382f87b929b84ce13e9c8a375a4b217f224e6c65 |
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.
Added specific version because latest one is broken.
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.
+1, any chance we can depend on an actual version/tag. I really dislike depending on commits like this.
Does this fix the issue with not able to bootstrap OpenShift 1.3.1 as well, or does this just address the problem with the isSet method?
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.
it fix the openshift 1.3.1 also now. I also dislike on the commit but sadly this doesn't have any tag/release version :(
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 also dislike on the commit but sadly this doesn't have any tag/release version
:-(, ok nothing we can do then. Maybe a comment of sorts why we take this commit
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.
@hferentschik I did add a comment see L#36
retest this please |
1 similar comment
retest this please |
9bd56ea
to
69302e2
Compare
Hi @praveenkumar , I am unable to see that metrics log as per your comment above after compiling the binary with your PR. Note, I have changed to version to
@LalatenduMohanty @hferentschik @gbraad Are you able to see? |
will verify ASAP
|
@budhrg I updated the PR after that it was viper which causing the issue, now everything works as expected. |
Then, LGTM 👍 |
LGTM |
@@ -1,7 +1,7 @@ | |||
package: github.com/minishift/minishift | |||
import: | |||
- package: github.com/docker/machine | |||
version: 91e368eb7422665278b1d5665139ee0f9980b588 | |||
version: 0.9.0 |
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.
Thanks :-). Eventually I would like to switch as many as dependencies to using this form of version.
@@ -27,26 +28,35 @@ import: | |||
subpackages: | |||
- github | |||
- package: github.com/inconshreveable/go-update | |||
- package: github.com/mitchellh/mapstructure | |||
version: db1efb556f84b25a0a13a04aad883943538ad2e0 |
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.
As said, we should aim for versions/tags, but let's go ahead for now
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.
@hferentschik Sadly no release and tag for this also :(
# The following repositories need to be specified explicitly, since the versions referenced by the openshift/origin dependency | ||
# refer to forks of these projects within the openshift organizaton | ||
# This needs to be manually updated after upgrading the openshift/origin dependnecy | ||
- package: k8s.io/kubernetes | ||
version: 52492b4bff99ef3b8ca617d385a3ff0612f9402d | ||
version: a9e9cf3b407c1d315686c452bdb918c719c3ea6e |
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.
hopefully we can get soon rid of this dependency now. It takes most time to checkout and compile and is useless for us
Merged, thanks. |
This patch will fix docker-env issue and it does require latest version of pflag which comes from viper plugin and since spf13/viper#205 is already merged which was holding us to use fork of this project.