bumplzz69 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

gcloud preview app deploy fails after latest update #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Running a full deploy on the directory fails giving an output that directories 
are not supported and individual .yaml files need to be used:
gcloud preview app deploy .

When individual files are used, specifying the version in the module .yaml file 
messes the deploy and gcloud created an app version based on the timestamp.
gcloud preview app deploy app.yaml config.yaml

What is the expected output? What do you see instead?
Expected output is the app deploys to server:

Current output:
gcloud preview app deploy app.yaml "redacted".yaml "redacted".yaml 

WARNING: The [version] field is specified in file ["hidden"].  This field is 
not used by gcloud and should be removed.
WARNING: The [version] field is specified in file ["hidden"].  This field is 
not used by gcloud and should be removed.
WARNING: The [version] field is specified in file ["hidden"].  This field is 
not used by gcloud and should be removed.
ERROR: The version [1] declared in ["hidden", "hidden", "hidden"] does not 
match the current gcloud version [20150422t220415].
ERROR: (gcloud.preview.app.deploy) Errors occurred while parsing the App Engine 
app configuration.

What is the output of 'gcloud info'?

Please provide any additional information below.
Google Cloud SDK [0.9.57]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.9 (default, Feb 10 2015, 03:29:19)  [GCC 4.2.1 Compatible 
Apple LLVM 6.0 (clang-600.0.56)]]
Site Packages: [Disabled]

Installation Root: [[username]/google-cloud-sdk]
Installed Components:
  core: [2015.04.21]
  app-engine-python: [1.9.18]
  core-nix: [2014.10.20]
  compute: [2015.04.21]
  app: [2015.04.21]
  gcloud: [2015.04.21]
  app-engine-go-darwin-x86_64: [1.9.18]
  gcloud-extensions-darwin-x86_64: [0.15.0]
  gsutil: [4.11]
  gsutil-nix: [4.6]
  dns: [2015.04.21]
  sql: [2015.04.09]
  gcutil: [1.16.5]
  preview: [2015.04.21]
  bq-nix: [2.0.18]
  app-engine-java: [1.9.18]
  gcutil-nix: [1.16.5]
  bq: [2.0.18]

Rest information redacted to protect information.

Original issue reported on code.google.com by clekkalf...@gmail.com on 23 Apr 2015 at 2:37

GoogleCodeExporter commented 9 years ago
This is the new intended behavior. If you'd like to specify a version now, you 
should use the command line flag instead of the yaml file.

Can you try:

gcloud preview app deploy app.yaml foo.yaml bar.yaml --version=1

Original comment by dlor...@google.com on 23 Apr 2015 at 3:06

GoogleCodeExporter commented 9 years ago
This works after specifying the version as a flag and removing version from the 
file and is deploying the whole directory deprecated too ?

Original comment by clekkalf...@gmail.com on 23 Apr 2015 at 12:33

GoogleCodeExporter commented 9 years ago
Yes, .yamls need to be listed explicitly now.

Original comment by markp...@google.com on 23 Apr 2015 at 5:46