Quentin123345 / google-cloud-sdk

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

gcloud preview app deploy defaults to auto_id_policy of legacy #443

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I recently changed from using appcfg to gcloud for deployment. After performing 
a deploy like this:

    gcloud preview app deploy app.yaml backend.yaml --promote

I noticed that new entities created in Cloud Datastore were being assigned IDs 
such as this (which looks like the legacy ID policy):

1
2
3
4

Instead of the scattered ID scheme that had been used on all previously created 
entities in my datastore.

5154850081865728
5647906690301952
6021053448978432    
4895153542135808

I added "auto_id_policy: default" to both of my yaml files and deployed again 
using gcloud. The IDs are now being assigned correctly using the scattered 
approach.

What is the output of 'gcloud info'?

Google Cloud SDK [91.0.1]
Platform: [Mac OS X, x86_64]
Python Version: [2.7.10 (default, Oct 23 2015, 18:05:06)  [GCC 4.2.1 Compatible 
Apple LLVM 7.0.0 (clang-700.0.59.5)]]

Snippet from my app.yaml:

runtime: python27
api_version: 1
threadsafe: true

module: default

libraries:
- name: endpoints
  version: "1.0"
- name: jinja2
  version: "2.6"
- name: lxml
  version: "2.3"
- name: webapp2
  version: "2.5.2"
- name: webob
  version: "1.2.3"
- name: ssl
  version: "2.7"
- name: pycrypto
  version: "2.6"
- name: numpy
  version: "1.6.1"
- name: MySQLdb
  version: "1.2.4b4"
- name: setuptools
  version: "latest"

Original issue reported on code.google.com by bryce.mc...@bitstrata.com on 22 Dec 2015 at 9:47

GoogleCodeExporter commented 8 years ago
Thanks for reporting this. I'll check whether this change is intentional--if 
so, we'll make the messaging around it much clearer; if not, we'll fix it.

Note that in general gcloud and appcfg aren't intended to be 100% compatible, 
so you may run into issues like this from time to time. We'll have a 
comprehensive list of the differences posted once App Engine deployments via 
gcloud are stable.

Original comment by z...@google.com on 4 Jan 2016 at 2:39

GoogleCodeExporter commented 8 years ago
Looks like this is in fact a bug. Thanks for reporting. We'll get it fixed up.

Original comment by z...@google.com on 4 Jan 2016 at 4:12