Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in fetching configurations of VertexAI metadataStore using Client Library in chef inspec #438

Open
IpsitaNeogi opened this issue Apr 17, 2023 · 1 comment

Comments

@IpsitaNeogi
Copy link

IpsitaNeogi commented Apr 17, 2023

Hi Team,

I am trying to fetch configurations of VertexAI metadataStore using Google Client Library in chef inspec.

I have gone through the file structures of the library and found that gem folder is present in two locations.
• Where ruby is installed - C:\Ruby30-x64\lib\ruby\gems\3.0.0\gems
• Where inspec is installed - C:\opscode\inspec\embedded\lib\ruby\gems\3.1.0\gems

To install 'google-cloud-ai_platform' gem in 'C:\opscode\inspec\embedded\lib\ruby\gems\3.1.0\gems', I tried below methods.

  1. Install google-cloud-ai_platform by running below command
    gem install google-cloud-ai_platform --install-dir "C:\opscode\inspec\embedded\lib\ruby\gems\3.1.0" --ignore-dependencies
    It is throwing below error while running inspec command 'inspec exec . --input-file=inputs.yml -t gcp://' :
    C:/opscode/inspec/embedded/lib/ruby/3.1.0/rubygems/specification.rb:1401:in `rescue in block in activate_dependencies': Could not find 'google-cloud-ai_platform-v1' (>= 0.0, < 2.a) among 303 total gem(s) (Gem::MissingSpecError)

  2. Install google-cloud-ai_platform-v1 by running below command
    gem install google-cloud-ai_platform-v1 --install-dir "C:\opscode\inspec\embedded\lib\ruby\gems\3.1.0" --ignore-dependencies
    It is throwing below error while running inspec command 'inspec exec . --input-file=inputs.yml -t gcp://' :
    C:/opscode/inspec/embedded/lib/ruby/3.1.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'gapic-common' (>= 0.18.0, < 2.a) among 304 total gem(s) (Gem::MissingSpecError)

  3. Install gapic-common by running below command
    gem install gapic-common --install-dir "C:\opscode\inspec\embedded\lib\ruby\gems\3.1.0" --ignore-dependencies
    It is throwing below error while running inspec command 'inspec exec . --input-file=inputs.yml -t gcp://' :
    Unable to activate gapic-common-0.18.0, because googleauth-0.14.0 conflicts with googleauth (~> 1.0) (Gem::ConflictError)

  4. Update googleauth by running below command
    gem update googleauth --install-dir "C:\opscode\inspec\embedded\lib\ruby\gems\3.1.0"
    It is throwing below error while running inspec command 'inspec exec . --input-file=inputs.yml -t gcp://' :
    C:/opscode/inspec/embedded/lib/ruby/3.1.0/rubygems/specification.rb:2236:in `raise_if_conflicts': Unable to activate gapic-common-0.18.0, because googleauth-0.14.0 conflicts with googleauth (~> 1.0) (Gem::ConflictError)

  5. Install googleauth by running below command
    gem install googleauth --install-dir "C:\opscode\inspec\embedded\lib\ruby\gems\3.1.0" --ignore-dependencies
    It is throwing below error while running inspec command 'inspec exec . --input-file=inputs.yml -t gcp://' :
    C:/opscode/inspec/embedded/lib/ruby/3.1.0/rubygems/specification.rb:2236:in `raise_if_conflicts': Unable to activate gapic-common-0.18.0, because googleauth-0.14.0 conflicts with googleauth (~> 1.0) (Gem::ConflictError)

Imported lib by adding require "google/cloud/ai_platform" in the ruby script.

Could you please suggest what need to be done?

@IpsitaNeogi IpsitaNeogi changed the title Issue in fetching configurations of VertexAI metadataStore using REST API in chef inspec Issue in fetching configurations of VertexAI metadataStore using Client Library in chef inspec Apr 19, 2023
@sa-progress
Copy link
Contributor

All the resources for Vertex AI are available with the latest version in InSpec-gcp, which is only supported by REST APIs.

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

No branches or pull requests

2 participants