Skip to content
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

Update GCE getting started guide to include gcloud preview #6149

Merged
merged 1 commit into from
Mar 30, 2015
Merged

Update GCE getting started guide to include gcloud preview #6149

merged 1 commit into from
Mar 30, 2015

Conversation

ghodss
Copy link
Contributor

@ghodss ghodss commented Mar 30, 2015

Otherwise you get this error when you're trying to use https://get.k8s.io:

You do not currently have this command group installed.  Using it
requires the installation of components: [preview]

The following components will be installed:
    -----------------------------------------------------------------------------------
    | Developer Preview gcloud Commands                         | 2015.03.23 | < 1 MB |
    | Native extensions for preview commands (Mac OS X, x86_64) |     0.13.1 | 3.6 MB |
    -----------------------------------------------------------------------------------

Do you want to continue (Y/n)?

@roberthbailey
Copy link
Contributor

I just merged a PR last week from @ihmccreery that added this but it looks like it was taken out when @brendandburns simplified the instructions to use k8s.io. :/

@roberthbailey
Copy link
Contributor

LGTM.

@roberthbailey roberthbailey added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 30, 2015
@roberthbailey roberthbailey self-assigned this Mar 30, 2015
@zmerlynn
Copy link
Member

It's actually trying to install it automatically, so we don't need the
instructions. We just need to add an echo in verify prereqs saying what's
going on.
On Mar 29, 2015 6:57 PM, "Robert Bailey" notifications@github.com wrote:

LGTM.


Reply to this email directly or view it on GitHub
#6149 (comment)
.

@ghodss
Copy link
Contributor Author

ghodss commented Mar 30, 2015

It's trying to install it automatically, but it's failing. Here's the output when I use https://get.k8s.io:

...
Creating minions.
date: illegal option -- I
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
./cluster/../cluster/gce/util.sh: line 422: @: unbound variable
WARNING: You have selected a disk size of under [200GB]. This may result in poor I/O performance. For more information, see: https://developers.google.com/compute/docs/disks#pdperformance.
Created [https://www.googleapis.com/compute/v1/projects/divine-precinct-90000/global/instanceTemplates/kubernetes-minion-template].
NAME                       MACHINE_TYPE  CREATION_TIMESTAMP
kubernetes-minion-template n1-standard-1 2015-03-29T18:23:27.473-07:00
You do not currently have this command group installed.  Using it
requires the installation of components: [preview]

The following components will be installed:
    -----------------------------------------------------------------------------------
    | Developer Preview gcloud Commands                         | 2015.03.23 | < 1 MB |
    | Native extensions for preview commands (Mac OS X, x86_64) |     0.13.1 | 3.6 MB |
    -----------------------------------------------------------------------------------

Do you want to continue (Y/n)?
ERROR: (gcloud) This prompt could not be answered because you are not in an interactive session.  You can re-run the command with the --quiet flag to accept default answers for all prompts.
Waiting for minions to run. 0 out of 4 running. Retrying.
You do not currently have this command group installed.  Using it
requires the installation of components: [preview]

The following components will be installed:
    -----------------------------------------------------------------------------------
    | Developer Preview gcloud Commands                         | 2015.03.23 | < 1 MB |
    | Native extensions for preview commands (Mac OS X, x86_64) |     0.13.1 | 3.6 MB |
    -----------------------------------------------------------------------------------

Do you want to continue (Y/n)?
ERROR: (gcloud) This prompt could not be answered because you are not in an interactive session.  You can re-run the command with the --quiet flag to accept default answers for all prompts.
MBPr:kube-quickstart sam$

If you're going to make it install automatically you need to somehow make gcloud preview do it - it's not doing it today. (I tried just adding --quiet and it didn't work for me.)

@zmerlynn
Copy link
Member

You can definitely do it with -q, and you should be able to override it
with an env variable, though I just noticed the KUBE_PROMPT_FOR_UPDATE
stuff is also busted, too, I think, because it's never accepting the
variable from the outside (it's always "y")? On phone right now, though.

Cc @brendanburns
On Mar 29, 2015 7:33 PM, "Sam Ghods" notifications@github.com wrote:

It's trying to install it automatically, but it's failing. Here's the
output when I use https://get.k8s.io:

...
Creating minions.
date: illegal option -- I
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
./cluster/../cluster/gce/util.sh: line 422: @: unbound variable
WARNING: You have selected a disk size of under [200GB]. This may result in poor I/O performance. For more information, see: https://developers.google.com/compute/docs/disks#pdperformance.
Created [https://www.googleapis.com/compute/v1/projects/divine-precinct-90000/global/instanceTemplates/kubernetes-minion-template].
NAME MACHINE_TYPE CREATION_TIMESTAMP
kubernetes-minion-template n1-standard-1 2015-03-29T18:23:27.473-07:00
You do not currently have this command group installed. Using it
requires the installation of components: [preview]

The following components will be installed:
-----------------------------------------------------------------------------------
| Developer Preview gcloud Commands | 2015.03.23 | < 1 MB |
| Native extensions for preview commands (Mac OS X, x86_64) | 0.13.1 | 3.6 MB |
-----------------------------------------------------------------------------------

Do you want to continue (Y/n)?
ERROR: (gcloud) This prompt could not be answered because you are not in an interactive session. You can re-run the command with the --quiet flag to accept default answers for all prompts.
Waiting for minions to run. 0 out of 4 running. Retrying.
You do not currently have this command group installed. Using it
requires the installation of components: [preview]

The following components will be installed:
-----------------------------------------------------------------------------------
| Developer Preview gcloud Commands | 2015.03.23 | < 1 MB |
| Native extensions for preview commands (Mac OS X, x86_64) | 0.13.1 | 3.6 MB |
-----------------------------------------------------------------------------------

Do you want to continue (Y/n)?
ERROR: (gcloud) This prompt could not be answered because you are not in an interactive session. You can re-run the command with the --quiet flag to accept default answers for all prompts.
MBPr:kube-quickstart sam$

If you're going to make it install automatically you need to somehow make gcloud
preview do it - it's not doing it today. (I tried just adding --quiet and
it didn't work for me.)


Reply to this email directly or view it on GitHub
#6149 (comment)
.

vmarmol added a commit that referenced this pull request Mar 30, 2015
Update GCE getting started guide to include gcloud preview
@vmarmol vmarmol merged commit 58bc479 into kubernetes:master Mar 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants