Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Add some basic version information reporting: #1956

Merged
merged 1 commit into from
Feb 13, 2018

Conversation

ojarjur
Copy link
Contributor

@ojarjur ojarjur commented Feb 13, 2018

  1. Add the version of the Cloud SDK and datalab component used to
    create an instance to that instance's metadata.
  2. When connecting to an instance using the --diagnose-me flag,
    report the version info from that instance's metadata entries.

1. Add the version of the Cloud SDK and datalab component used to
   create an instance to that instance's metadata.
2. When connecting to an instance using the `--diagnose-me` flag,
   report the version info from that instance's metadata entries.
'Cloud SDK component versions:'
'\n\tCloud SDK: {}'
'\n\tDatalab: {}'.format(
instance, sdk_version, datalab_version))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also print the current datalab/gcloud version, to help diagnose whether connect problems are due to a bad local version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's already done in the datalab.py file.

An example output of running datalab connect --diagnose-me ... is:

Running with diagnostic messages enabled
Using the command "gcloud" to invoke gcloud
The installed gcloud version is:
        Cloud SDK: 188.0.0
        Datalab: 20180119
Instance ... was created with the following Cloud SDK component versions:
        Cloud SDK: 188.0.0
        Datalab: 20180119
Connecting to ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants