Title: Error Running Action `openstack.server.reboot` · Issue #29 · StackStorm-Exchange/stackstorm-openstack · GitHub
Open Graph Title: Error Running Action `openstack.server.reboot` · Issue #29 · StackStorm-Exchange/stackstorm-openstack
X Title: Error Running Action `openstack.server.reboot` · Issue #29 · StackStorm-Exchange/stackstorm-openstack
Description: I am trying to execute the action server.reboot but its producing an error. I think the problem is that it is generating the underlying openstack cli command incorrectly. Environment Stackstorm version: st2 3.2.0, on Python 3.6.9 Pack ve...
Open Graph Description: I am trying to execute the action server.reboot but its producing an error. I think the problem is that it is generating the underlying openstack cli command incorrectly. Environment Stackstorm ver...
X Description: I am trying to execute the action server.reboot but its producing an error. I think the problem is that it is generating the underlying openstack cli command incorrectly. Environment Stackstorm ver...
Opengraph URL: https://github.com/StackStorm-Exchange/stackstorm-openstack/issues/29
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error Running Action `openstack.server.reboot`","articleBody":"I am trying to execute the action server.reboot but its producing an error. I think the problem is that it is generating the underlying openstack cli command incorrectly.\r\n\r\n**Environment** \r\nStackstorm version: st2 3.2.0, on Python 3.6.9\r\nPack version: openstack 0.8.0 \r\nOpenstack library version: openstack 5.2.0\r\n\r\n**Input Parameters**\r\n`{\r\n \"log_level\": \"DEBUG\",\r\n \"server\": \"automated_machine_creation_01\",\r\n \"wait\": false,\r\n \"soft\": \"soft\"\r\n}`\r\n\r\n**Output**\r\n`{\r\n \"stdout\": \"\",\r\n \"stderr\": \"/opt/stackstorm/packs/openstack/actions/src/lib/base.py:84: PkgResourcesDeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.\\n command_cls = entry_point.load(require=False)\\nst2.actions.python.WrapperAction: DEBUG Generated command \\\"openstack server reboot automated_machine_creation_01 --soft soft\\\"\\nTraceback (most recent call last):\\n File \\\"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\\\", line 333, in \u003cmodule>\\n obj.run()\\n File \\\"/opt/stackstorm/st2/lib/python3.6/site-packages/python_runner/python_action_wrapper.py\\\", line 192, in run\\n output = action.run(**self._parameters)\\n File \\\"/opt/stackstorm/packs/openstack/actions/src/lib/base.py\\\", line 67, in run\\n return self._format_output(out=out, err=err, exit=p.returncode)\\n File \\\"/opt/stackstorm/packs/openstack/actions/src/lib/base.py\\\", line 96, in _format_output\\n sys.stdout.write(out)\\nTypeError: write() argument must be str, not bytes\\n\",\r\n \"exit_code\": 1,\r\n \"result\": \"None\"\r\n}`\r\n\r\nThe input field was SOFT and HARD are strings, while the openstack cli expects only the parameters `--soft | --hard` without any values. This is how the openstack cli provides the usage for this command. `usage: openstack server reboot [-h] [--hard | --soft] [--wait] \u003cserver>`","author":{"url":"https://github.com/ayazali","@type":"Person","name":"ayazali"},"datePublished":"2020-07-01T01:20:41Z","url":"https://github.com/StackStorm-Exchange/stackstorm-openstack/issues/29"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d41bb9b3-0412-cb40-635a-bbc2b186cd25 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C402:5EB2:5924B3:795CC0:6B05E25E |
| html-safe-nonce | e15c11461c9112c9e0935e1fc76c7ef817ba01a549055aa29f06d43caf6cbc42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDAyOjVFQjI6NTkyNEIzOjc5NUNDMDo2QjA1RTI1RSIsInZpc2l0b3JfaWQiOiI0OTYyODM1NTAxNTc3NTkwNzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fe9407a43b51b2e268c9453eb78732a6ab475c49ca7c7c602e80972329ee4799 |
| hovercard-subject-tag | issue:648601379 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/StackStorm-Exchange/stackstorm-openstack/29/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e181a136ff846e01fbad8eed08cf850eb52a01a49e1504207b8aec28d568f78a/StackStorm-Exchange/stackstorm-openstack/issues/29 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e181a136ff846e01fbad8eed08cf850eb52a01a49e1504207b8aec28d568f78a/StackStorm-Exchange/stackstorm-openstack/issues/29 |
| og:image:alt | I am trying to execute the action server.reboot but its producing an error. I think the problem is that it is generating the underlying openstack cli command incorrectly. Environment Stackstorm ver... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ayazali |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e6b0e6e5a9a8e0ddb968297ede4e2eac72d30ea174a0970eb8f22d6958e91e3 |
| turbo-cache-control | no-preview |
| go-import | github.com/StackStorm-Exchange/stackstorm-openstack git https://github.com/StackStorm-Exchange/stackstorm-openstack.git |
| octolytics-dimension-user_id | 20677668 |
| octolytics-dimension-user_login | StackStorm-Exchange |
| octolytics-dimension-repository_id | 75043220 |
| octolytics-dimension-repository_nwo | StackStorm-Exchange/stackstorm-openstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 75043220 |
| octolytics-dimension-repository_network_root_nwo | StackStorm-Exchange/stackstorm-openstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 023691d14ad20c90d3ee61b0a0977b17dc6b6361 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width