gce error on running gcloud compute create

84 views
Skip to first unread message

Mainak Ghosh

unread,
Oct 15, 2014, 12:17:24 PM10/15/14
to gce-dis...@googlegroups.com
Hello,

I am running into this issue while trying to run:

gcloud compute instances create node1 --zone us-central1-a --image centos-6 --machine-type n1-standard-4 --project "Cloud Configurability"

Error:

Traceback (most recent call last):
  File "/project/mongo-db-query/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 153, in <module>
    main()
  File "/project/mongo-db-query/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 149, in main
    _cli.Execute()
  File "/project/mongo-db-query/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 431, in Execute
    post_run_hooks=self.__post_run_hooks, kwargs=kwargs)
  File "/project/mongo-db-query/google-cloud-sdk/./lib/googlecloudsdk/calliope/frontend.py", line 274, in _Execute
    pre_run_hooks=pre_run_hooks, post_run_hooks=post_run_hooks)
  File "/project/mongo-db-query/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 860, in Run
    last_group = context_filter(tool_context, config, args)
  File "/project/mongo-db-query/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 276, in ContextFilter
    group.Filter(context, args)
  File "/project/mongo-db-query/google-cloud-sdk/lib/googlecloudsdk/compute/subcommands/__init__.py", line 51, in Filter
    context['resources'] = resources.REGISTRY.CloneAndSwitchAPIs(v1_compute)
  File "/project/mongo-db-query/google-cloud-sdk/./lib/googlecloudsdk/core/resources.py", line 429, in CloneAndSwitchAPIs
    reg = self._Clone()
  File "/project/mongo-db-query/google-cloud-sdk/./lib/googlecloudsdk/core/resources.py", line 345, in _Clone
    return copy.deepcopy(self)
  File "/opt/python27/lib/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 344, in _reconstruct
    state = deepcopy(state, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 344, in _reconstruct
    state = deepcopy(state, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 344, in _reconstruct
    state = deepcopy(state, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/opt/python27/lib/python2.7/copy.py", line 335, in _reconstruct
    y.append(item)
  File "/project/mongo-db-query/google-cloud-sdk/./lib/protorpc/messages.py", line 1087, in append
    self.__field.validate_element(value)
AttributeError: 'FieldList' object has no attribute '_FieldList__field'

I am using Python 2.7.

Thanks and Regards,
Mainak.

Katharina Probst

unread,
Oct 15, 2014, 12:36:57 PM10/15/14
to gce-dis...@googlegroups.com
Hi Mainak,

can you try passing in your project ID for the --project flag?

You can find the project ID in the cloud console (go to the overview page of your project, it'll be at the top under "Project ID:")



--
© 2014 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To post to this group, send email to gce-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/17f52d24-3a2c-4d66-a42f-2c6e166e8b29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mainak Ghosh

unread,
Oct 15, 2014, 1:09:52 PM10/15/14
to gce-dis...@googlegroups.com
Hello Katharina,

I tried that. It still does not help.

Mainak

Katharina Probst

unread,
Oct 15, 2014, 1:26:34 PM10/15/14
to gce-dis...@googlegroups.com
Thanks for reporting - we're looking into it.

Jeff Vaughan

unread,
Oct 15, 2014, 3:18:57 PM10/15/14
to 'Katharina Probst' via gce-discussion, Katharina Probst, gce-dis...@googlegroups.com
Hi Mainak,

Could you share the output you get from `gcloud version`?

Thanks!

Cheers,
Jeff


On October 15, 2014 at 1:26:36 PM, 'Katharina Probst' via gce-discussion (gce-dis...@googlegroups.com) wrote:
> Thanks for reporting - we're looking into it.
>
> On Wed, Oct 15, 2014 at 10:09 AM, Mainak Ghosh
> wrote:
>
> > Hello Katharina,
> >
> > I tried that. It still does not help.
> >
> > Mainak
> >
> > On Wednesday, October 15, 2014 11:36:57 AM UTC-5, Katharina Probst wrote:
> >>
> >> Hi Mainak,
> >>
> >> can you try passing in your project ID for the --project flag?
> >>
> >> You can find the project ID in the cloud console (go to the overview page
> >> of your project, it'll be at the top under "Project ID:")
> >>
> >>
> >>
> >> On Wed, Oct 15, 2014 at 9:17 AM, Mainak Ghosh
> >> wrote:
> >>
> >>> Hello,
> >>>
> >>> I am running into this issue while trying to run:
> >>>
> >>> gcloud compute instances create node1 --zone us-central1-a --image
> >>> centos-6 --machine-type n1-standard-4 --project "Cloud Configurability"
> >>>
> >>> Error:
> >>>
> >>> Traceback (most recent call last):
> >>> File "/project/mongo-db-query/google-cloud-sdk/./lib/
> >>> googlecloudsdk/gcloud/gcloud.py", line 153, in
> >>> main()
> >>> File "/project/mongo-db-query/google-cloud-sdk/./lib/
> > https://groups.google.com/d/msgid/gce-discussion/57e18f24-f0f0-4ff7-8fae-1905b26d4314%40googlegroups.com
> >
> > .
> >
> > For more options, visit https://groups.google.com/d/optout.
> >
>
> --
> © 2014 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
>
> Email preferences: You received this email because you signed up for the Google Compute
> Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate
> in discussions with other members of the Google Compute Engine community and the Google
> Compute Engine Team.
> ---
> You received this message because you are subscribed to the Google Groups "gce-discussion"
> group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
> To post to this group, send email to gce-dis...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/CAHyWLEWvhbTyXfwhmz4k9N0XWu1jpVtUX0xHxi%3DdRYiEzv0nyQ%40mail.gmail.com.

Mainak Ghosh

unread,
Oct 15, 2014, 3:55:44 PM10/15/14
to gce-dis...@googlegroups.com, kpr...@google.com
Google Cloud SDK 0.9.33

bq 2.0.18
bq-nix 2.0.18
compute 2014.09.30
core 2014.09.30
core-nix 2014.09.30
dns 2014.09.02
gcutil 1.16.5
gcutil-nix 1.16.5
gsutil 4.6
gsutil-nix 4.6
sql 2014.09.30

Katharina Probst

unread,
Oct 16, 2014, 11:58:36 AM10/16/14
to Mainak Ghosh, gce-dis...@googlegroups.com
Hi Mainak,

still working on this. To rule out any other issues: are you able to create instances from the cloud console (https://console.developers.google.com) for that same project? 

Thanks,
Kathrin

Mainak Ghosh

unread,
Oct 16, 2014, 1:24:55 PM10/16/14
to gce-dis...@googlegroups.com, famous...@gmail.com
Yes I tried that and it works

Jeffrey Vaughan

unread,
Oct 16, 2014, 2:27:48 PM10/16/14
to gce-dis...@googlegroups.com, famous...@gmail.com
Hi Mainak,

I'm trying to reproduce and haven't managed to do so yet.  For a little more context, could you provide some more information?

What happens when when you run `gcloud compute instances list`?  Do you see existing instances or a do you get a stack trace as above?

What platform are you on (windows, linux, etc.) ?

How did you install glcoud?

Cheers,
Jeff

Mainak Ghosh

unread,
Oct 16, 2014, 3:08:21 PM10/16/14
to gce-dis...@googlegroups.com, famous...@gmail.com
I get the same stacktrace. I am using CentOS 5.5 64 bit. I followed the instructions here: https://cloud.google.com/sdk/.

I also upgraded my Python v 2.7

Jeffrey Vaughan

unread,
Oct 20, 2014, 4:23:06 PM10/20/14
to gce-dis...@googlegroups.com, famous...@gmail.com
Hi Mainak,

We still haven't been able to reproduce, but the stack trace is suggestive and the next version of the gcloud 0.9.35 includes a fix that I expect will resolve this issue.  The new release should be available at the end of the week or early next week.  Please let us know if that helps.

Best,
Jeff

Mainak Ghosh

unread,
Oct 20, 2014, 4:24:42 PM10/20/14
to gce-dis...@googlegroups.com
Hello Jeff,

I moved to a different OS (Ubuntu) and it is working. So problem is solved for now. Thanks for pursuing.

Mainak
--
Mainak Ghosh



Mainak Ghosh

unread,
Oct 20, 2014, 4:25:23 PM10/20/14
to gce-dis...@googlegroups.com, famous...@gmail.com
Hello Jeff,

I moved to a different OS (Ubuntu) and it is working. So problem is solved for now. Thanks for pursuing.

Mainak

Trevor Allred

unread,
Oct 21, 2014, 12:57:40 PM10/21/14
to gce-dis...@googlegroups.com, famous...@gmail.com
Jeff,

I was getting this same error on just a single machine running Centos 6  and I just updated gcloud sdk and it's now working. Thanks!

[root@devops-provision-1 ~]# gcloud components update

The following components will be updated:

    ----------------------------------------------------------------------

    | Cloud SDK Core Libraries                     | 2014.10.20 | < 1 MB |

    | Cloud SDK Core Libraries (Platform Specific) | 2014.10.20 | < 1 MB |

    ---------------------------------------------------------------------- 
Reply all
Reply to author
Forward
0 new messages