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

Configuration does not set vcloud config correctly #9

Open
surfer190 opened this issue Feb 10, 2020 · 1 comment
Open

Configuration does not set vcloud config correctly #9

surfer190 opened this issue Feb 10, 2020 · 1 comment

Comments

@surfer190
Copy link
Contributor

Steps to reproduce:

  1. Install the pack st2 pack install vcd

  2. Configure the pack st2 pack config vcd and enter config

  3. See the following results

defaults:
  org:
    Settings:
      ...
vcloud: {}
vclouds:
  host: xxx
  passwd: xxx
  ssl_verify: true
  user: xxx

Then run st2 action execute vcd.get_org_ids

Traceback (most recent call last):
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/python_runner/python_action_wrapper.py", line 333, in <module>
    obj.run()
  File "/opt/stackstorm/st2/lib/python2.7/site-packages/python_runner/python_action_wrapper.py", line 192, in run
    output = action.run(**self._parameters)
  File "/opt/stackstorm/packs/vcd/actions/get_org_ids.py", line 21, in run
    self.set_connection(vcloud)
  File "/opt/stackstorm/packs/vcd/actions/lib/vcd.py", line 43, in set_connection
    self.vcd_host = self.config['vcloud'][vcloud]['host']
KeyError: u'xxx'

Expected Results

The vcloud dictionary is setup correctly during configuration.

vcloud: {
  'default': {
    'host': 'xxx',
    'passwd': 'xxx',
    'ssl_verify': True,
    'user': 'xxx'
  }
}
@nmaludy
Copy link
Contributor

nmaludy commented Feb 10, 2020

st2 pack config is not supported for this pack because it uses complex nested configuration. See this issue on the main repo; StackStorm/st2#3276

You'll have to edit /opt/stackstorm/configs/vcd.yaml manually to enter the proper syntax. See the example config for what it should look like: https://github.com/StackStorm-Exchange/stackstorm-vcd/blob/master/vcd.yaml.example

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