Status Update
Comments
an...@gmail.com <an...@gmail.com> #3
In the mean time, you can downgrade to Cloud SDK version 185 as a workaround by running the following command:
gcloud components update --version 185.0.0
jo...@google.com <jo...@google.com> #4
You can also try to connect to the VM using Cloud Shell [1] if that works then it will help us isolate the issue to a certain version of Cloud SDK
To summarize, we need the following to look into this further:
- the command you're using to connect to the vm from Cloud SDK
- output of "gcloud info --anonymize"
- whether it works from Cloud Shell or not.
[1]
an...@gmail.com <an...@gmail.com> #5
binaries. Just remove it and it's work !
Le mer. 27 mai 2020 à 18:37, <buganizer-system@google.com> a écrit :
--
Anthony GIES
gs...@google.com <gs...@google.com> #6
You seem to have run the gcloud beta compute ssh command. If so, how did you run this command, what parameters and flags? You may refer to the
If you ran in fact another command, related details would be appreciated.
What type of VM do you want to ssh into? It may be worthwhile mentioning here that this command does not work when connecting to Windows VMs.
It is advisable to run gcloud components update first.
What is the output of gcloud info?
More information becomes available if you run: gcloud beta compute ssh [example-instance] --zone= [zone] --verbosity=debug. In fact, you should run the same command you tried initially, followed by the "--verbosity=debug" parameter set. What is the output of this command? All feedback posted here should have private information items edited out, to avoid any privacy issue.
What happens if you try to run the same command from another machine, or using another network to access the Internet?
Have you in any way modified the default network? If the default network was edited, or if not using the default network, you may need to explicitly enable ssh access by adding a firewall-rule. For ssh-related troubleshooting, you may refer to
Description
information in the report you file. In order to help diagnose the issue,
we've included some installation information in this report. Please look
through and redact any information you consider personal or sensitive
before submitting this issue.
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Please provide any additional information below.
Trace:
gcloud_main.py:186
gcloud_cli.Execute()
calliope/cli.py:1009
self._HandleAllErrors(exc, command_path_string, specified_arg_names)
calliope/cli.py:1042
exceptions.HandleError(exc, command_path_string, self.__known_error_handler)
calliope/exceptions.py:527
core_exceptions.reraise(exc)
core/exceptions.py:146
six.reraise(type(exc_value), exc_value, tb)
calliope/cli.py:952
args = self.__parser.parse_args(_ApplyFlagsFile(argv))
calliope/parser_extensions.py:701
namespace, unknown_args, _ = self._ParseKnownArgs(args, namespace)
calliope/parser_extensions.py:488
parser.parse_known_args(args, namespace) or (namespace, []))
calliope/parser_extensions.py:666
args, namespace, wrapper=False)
calliope/parser_extensions.py:488
parser.parse_known_args(args, namespace) or (namespace, []))
argparse/__init__.py:1735
namespace, args = self._parse_known_args(args, namespace)
argparse/__init__.py:1923
positionals_end_index = consume_positionals(start_index)
argparse/__init__.py:1900
take_action(action, args)
argparse/__init__.py:1809
action(self, namespace, argument_values, option_string)
calliope/parser_extensions.py:1232
parser, namespace, values, option_string=option_string)
argparse/__init__.py:1111
namespace, arg_strings = parser.parse_known_args(arg_strings, namespace)
calliope/parser_extensions.py:666
args, namespace, wrapper=False)
calliope/parser_extensions.py:488
parser.parse_known_args(args, namespace) or (namespace, []))
argparse/__init__.py:1735
namespace, args = self._parse_known_args(args, namespace)
argparse/__init__.py:1923
positionals_end_index = consume_positionals(start_index)
argparse/__init__.py:1900
take_action(action, args)
argparse/__init__.py:1809
action(self, namespace, argument_values, option_string)
calliope/parser_extensions.py:1232
parser, namespace, values, option_string=option_string)
argparse/__init__.py:1111
namespace, arg_strings = parser.parse_known_args(arg_strings, namespace)
calliope/parser_extensions.py:666
args, namespace, wrapper=False)
calliope/parser_extensions.py:488
parser.parse_known_args(args, namespace) or (namespace, []))
argparse/__init__.py:1735
namespace, args = self._parse_known_args(args, namespace)
argparse/__init__.py:1923
positionals_end_index = consume_positionals(start_index)
argparse/__init__.py:1900
take_action(action, args)
argparse/__init__.py:1793
argument_values = self._get_values(action, argument_strings)
calliope/parser_extensions.py:1150
return super(ArgumentParser, self)._get_values(action, arg_strings)
argparse/__init__.py:2229
self._check_value(action, value[0])
calliope/parser_extensions.py:779
if is_subparser and action.IsValidChoice(arg):
calliope/parser_extensions.py:1218
return self._calliope_command.IsValidSubElement(choice)
calliope/backend.py:606
return bool(self.LoadSubElement(name))
calliope/backend.py:677
parent_group=self)
calliope/backend.py:771
yaml_command_translator=cli_generator.yaml_command_translator)
calliope/command_loading.py:163
impl_paths, path, construction_id, is_command, yaml_command_translator)
calliope/command_loading.py:230
module = _GetModuleFromPath(impl_file, path, construction_id)
calliope/command_loading.py:457
exceptions.reraise(CommandLoadFailure('.'.join(path), e))
core/exceptions.py:146
six.reraise(type(exc_value), exc_value, tb)
calliope/command_loading.py:452
return pkg_resources.GetModuleFromPath(name_to_give, impl_file)
core/util/pkg_resources.py:141
module = imp.load_module(name_to_give, f, file_path, items)
surface/compute/ssh.py:29
from googlecloudsdk.command_lib.compute import iap_tunnel
command_lib/compute/iap_tunnel.py:22
import ctypes
ctypes/__init__.py:552
_reset_cache()
ctypes/__init__.py:276
CFUNCTYPE(c_int)(lambda: None)
CommandLoadFailure: Problem loading gcloud.beta.compute.ssh: .
Installation information:
Google Cloud SDK [292.0.0]
Platform: [Mac OS X, x86_64] ('Darwin', 'macpro-antho', '19.4.0', 'Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64', 'x86_64', 'i386')
Locale: ('fr_FR', 'UTF-8')
Python Version: [2.7.13 (default, Jan 8 2020, 18:42:31) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]]
Python Location: [/Applications/MAMP/Library/bin/python2]
Site Packages: [Disabled]
Installation Root: [${HOME}/google-cloud-sdk]
Installed Components:
core: [2020.05.08]
beta: [2019.05.17]
gsutil: [4.50]
bq: [2.0.57]
System PATH: [${HOME}/google-cloud-sdk/bin:/opt/local/bin:/opt/local/sbin:/Applications/MAMP/Library/bin:/Applications/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/opt/mysql@5.7/bin:/usr/local/opt/php@7.3/sbin:/usr/local/opt/php@7.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin]
Python PATH: [${HOME}/google-cloud-sdk/lib/third_party:${HOME}/google-cloud-sdk/lib:/Applications/MAMP/Library/lib/python27.zip:/Applications/MAMP/Library/lib/python2.7:/Applications/MAMP/Library/lib/python2.7/plat-darwin:/Applications/MAMP/Library/lib/python2.7/plat-mac:/Applications/MAMP/Library/lib/python2.7/plat-mac/lib-scriptpackages:/Applications/MAMP/Library/lib/python2.7/lib-tk:/Applications/MAMP/Library/lib/python2.7/lib-old:/Applications/MAMP/Library/lib/python2.7/lib-dynload]
Cloud SDK on PATH: [False]
Kubectl on PATH: [/usr/local/bin/kubectl]
WARNING: There are old versions of the Google Cloud Platform tools on your system PATH.
/Applications/google-cloud-sdk/bin/bq
/Applications/google-cloud-sdk/bin/java_dev_appserver.sh
/Applications/google-cloud-sdk/bin/gcloud
/Applications/google-cloud-sdk/bin/docker-credential-gcloud
/Applications/google-cloud-sdk/bin/dev_appserver.py
/Applications/google-cloud-sdk/bin/gsutil
/Applications/google-cloud-sdk/bin/endpointscfg.py
/Applications/google-cloud-sdk/bin/git-credential-gcloud.sh
Installation Properties: [${HOME}/google-cloud-sdk/properties]
User Config Directory: [${CLOUDSDK_CONFIG}]
Active Configuration Name: [default]
[output truncated]