René's URL Explorer Experiment


Title: Server creation impossible due to improper handling of repeatable parameters · Issue #37 · StackStorm-Exchange/stackstorm-openstack · GitHub

Open Graph Title: Server creation impossible due to improper handling of repeatable parameters · Issue #37 · StackStorm-Exchange/stackstorm-openstack

X Title: Server creation impossible due to improper handling of repeatable parameters · Issue #37 · StackStorm-Exchange/stackstorm-openstack

Description: Versions used StackStorm version used: st2 3.4.1, on Python 3.6.9 stackstorm-openstackversion used: 1.0.1 Bug description I'm unable to create a server using the "openstack.server.create" action due the improper handling of repeatable pa...

Open Graph Description: Versions used StackStorm version used: st2 3.4.1, on Python 3.6.9 stackstorm-openstackversion used: 1.0.1 Bug description I'm unable to create a server using the "openstack.server.create" action du...

X Description: Versions used StackStorm version used: st2 3.4.1, on Python 3.6.9 stackstorm-openstackversion used: 1.0.1 Bug description I'm unable to create a server using the "openstack.server.create&q...

Opengraph URL: https://github.com/StackStorm-Exchange/stackstorm-openstack/issues/37

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Server creation impossible due to improper handling of repeatable parameters","articleBody":"# Versions used\r\nStackStorm version used: st2 3.4.1, on Python 3.6.9\r\nstackstorm-openstackversion used: 1.0.1\r\n\r\n# Bug description\r\nI'm unable to create a server using the \"openstack.server.create\" action due the improper handling of repeatable parameters.\r\n\r\nFirstly, parameters `network`, `port`, `nic` and `hint` are included in the generated command even if no value is set. Those parameters interact with each other (`network` is a wrapper for `nic`, according to [OpenStack documentation](https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/server.html#server-create)) and by sending all of them independently of user input makes a conflict and the result is not what is expected. (Examples 1 & 2 below)\r\n\r\nThe second problem concerns type conversion of repeatable list parameters like `network`. Indeed, when forcing dummy or null values for `nic`, `hint` and `port`, the given `network` parameter is still incorrectly interpreted during the conversion from ST2 array to Python list to repeated openstack args.\r\n\r\n# Errors output\r\n## Example 1\r\nTrying to create a server with only one NIC on the \"Ext-Net\" network, using the `network` parameter\r\n```\r\n~$ st2 run openstack.server.create flavor=s1-2 server_name=Test network=Ext-Net image=\"Debian 10\"\r\n..\r\nid: 608aa296c25e5f8822520b56\r\naction.ref: openstack.server.create\r\ncontext.user: st2admin\r\nparameters: \r\n  flavor: s1-2\r\n  image: Debian 10\r\n  network:\r\n  - Ext-Net\r\n  server_name: Test\r\nstatus: failed\r\nstart_timestamp: Thu, 29 Apr 2021 12:12:06 UTC\r\nend_timestamp: Thu, 29 Apr 2021 12:12:10 UTC\r\nresult: \r\n  exit_code: 1\r\n  result: None\r\n  stderr: \"/opt/stackstorm/packs/openstack/actions/src/lib/base.py:84: PkgResourcesDeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.\r\n  command_cls = entry_point.load(require=False)\r\nst2.actions.python.WrapperAction: DEBUG    Generated command \". /root/openstackrc.sh && openstack server create -f json Test --flavor s1-2 --image 'Debian 10' --network '['\"'\"'Ext-Net'\"'\"']' --port None --nic None --hint '[]'\"\r\nInvalid argument None; argument must be of form 'net-id=net-uuid,port-id=port-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,tag=tag'\r\n\"\r\n  stdout: ''\r\n```\r\n\r\n## Example 2\r\nTrying to create a server with only one NIC on the \"Ext-Net\" network, using the `nic` parameter\r\n```\r\n~$ st2 run openstack.server.create flavor=s1-2 server_name=Test nic=\"net-id=393d06cc-a82c-4dc4-a576-c79e8dd67ba3\" image=\"Debian 10\"\r\n..\r\nid: 608aa2d4c25e5f8822520b59\r\naction.ref: openstack.server.create\r\ncontext.user: st2admin\r\nparameters: \r\n  flavor: s1-2\r\n  image: Debian 10\r\n  nic:\r\n  - net-id=393d06cc-a82c-4dc4-a576-c79e8dd67ba3\r\n  server_name: Test\r\nstatus: failed\r\nstart_timestamp: Thu, 29 Apr 2021 12:13:08 UTC\r\nend_timestamp: Thu, 29 Apr 2021 12:13:11 UTC\r\nresult: \r\n  exit_code: 1\r\n  result: None\r\n  stderr: \"/opt/stackstorm/packs/openstack/actions/src/lib/base.py:84: PkgResourcesDeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.\r\n  command_cls = entry_point.load(require=False)\r\nst2.actions.python.WrapperAction: DEBUG    Generated command \". /root/openstackrc.sh && openstack server create -f json Test --flavor s1-2 --image 'Debian 10' --network None --port None --nic '['\"'\"'net-id=393d06cc-a82c-4dc4-a576-c79e8dd67ba3'\"'\"']' --hint '[]'\"\r\nInvalid argument ['net-id=393d06cc-a82c-4dc4-a576-c79e8dd67ba3']; argument must be of form 'net-id=net-uuid,port-id=port-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,tag=tag'\r\n\"\r\n  stdout: ''\r\n\r\n```\r\n\r\n## Example 3\r\nTrying to create a server with only one NIC on the \"Ext-Net\" network using the `network` parameter while providing dummy or null values for other buggy parameters.\r\n```\r\n~$ st2 run openstack.server.create flavor=s1-2 server_name=Test image=\"Debian 10\" hint='[dummy=value]' port='[]' nic='[]' network='[\"Ext-Net\"]'\r\n..\r\nid: 608aa3e6c25e5f8822520b65\r\naction.ref: openstack.server.create\r\ncontext.user: st2admin\r\nparameters: \r\n  flavor: s1-2\r\n  hint:\r\n  - '[dummy=value]'\r\n  image: Debian 10\r\n  network:\r\n  - Ext-Net\r\n  nic: []\r\n  port: []\r\n  server_name: Test\r\nstatus: failed\r\nstart_timestamp: Thu, 29 Apr 2021 12:17:42 UTC\r\nend_timestamp: Thu, 29 Apr 2021 12:17:46 UTC\r\nresult: \r\n  exit_code: 1\r\n  result: None\r\n  stderr: \"/opt/stackstorm/packs/openstack/actions/src/lib/base.py:84: PkgResourcesDeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.\r\n  command_cls = entry_point.load(require=False)\r\nst2.actions.python.WrapperAction: DEBUG    Generated command \". /root/openstackrc.sh && openstack server create -f json Test --flavor s1-2 --image 'Debian 10' --network '['\"'\"'Ext-Net'\"'\"']' --hint '['\"'\"'[dummy=value]'\"'\"']'\"\r\nNo Network found for ['Ext-Net']\r\n\"\r\n  stdout: ''\r\n\r\n```\r\n---\r\nI've been trying to fix this bug but I can't understand why those parameters does not work properly for the specific \"openstack.server.create\" action. Any hint on this would be greatly appreciated!\r\nThanks","author":{"url":"https://github.com/teeptoo","@type":"Person","name":"teeptoo"},"datePublished":"2021-04-29T12:25:56Z","url":"https://github.com/StackStorm-Exchange/stackstorm-openstack/issues/37"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:67214a78-0263-e5d8-459a-fb2e1062ff2d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8578:1DDB0:52C1F2:717DFF:6B05E25E
html-safe-nonceed965736cf325cb01a9e435d72cd332ca73a1a816f63dd5f9398e88410459044
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTc4OjFEREIwOjUyQzFGMjo3MTdERkY6NkIwNUUyNUUiLCJ2aXNpdG9yX2lkIjoiNzQ4ODY2MjcyNTIxMjg4OTY5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac543cde2848ba2ef6f115ddf63e80934d6f708a512226e6b16ae38574a7f82372
hovercard-subject-tagissue:870959910
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/StackStorm-Exchange/stackstorm-openstack/37/issue_layout
twitter:imagehttps://opengraph.githubassets.com/71432777653f7ba9b665ab09deaed76a5ecb68ee201afff0ec0706fae775a62d/StackStorm-Exchange/stackstorm-openstack/issues/37
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/71432777653f7ba9b665ab09deaed76a5ecb68ee201afff0ec0706fae775a62d/StackStorm-Exchange/stackstorm-openstack/issues/37
og:image:altVersions used StackStorm version used: st2 3.4.1, on Python 3.6.9 stackstorm-openstackversion used: 1.0.1 Bug description I'm unable to create a server using the "openstack.server.create" action du...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameteeptoo
hostnamegithub.com
expected-hostnamegithub.com
None9e6b0e6e5a9a8e0ddb968297ede4e2eac72d30ea174a0970eb8f22d6958e91e3
turbo-cache-controlno-preview
go-importgithub.com/StackStorm-Exchange/stackstorm-openstack git https://github.com/StackStorm-Exchange/stackstorm-openstack.git
octolytics-dimension-user_id20677668
octolytics-dimension-user_loginStackStorm-Exchange
octolytics-dimension-repository_id75043220
octolytics-dimension-repository_nwoStackStorm-Exchange/stackstorm-openstack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id75043220
octolytics-dimension-repository_network_root_nwoStackStorm-Exchange/stackstorm-openstack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release023691d14ad20c90d3ee61b0a0977b17dc6b6361
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/StackStorm-Exchange/stackstorm-openstack/issues/37#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FStackStorm-Exchange%2Fstackstorm-openstack%2Fissues%2F37
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FStackStorm-Exchange%2Fstackstorm-openstack%2Fissues%2F37
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=StackStorm-Exchange%2Fstackstorm-openstack
Reloadhttps://github.com/StackStorm-Exchange/stackstorm-openstack/issues/37
Reloadhttps://github.com/StackStorm-Exchange/stackstorm-openstack/issues/37
Reloadhttps://github.com/StackStorm-Exchange/stackstorm-openstack/issues/37
StackStorm-Exchangehttps://github.com/StackStorm-Exchange
stackstorm-openstackhttps://github.com/StackStorm-Exchange/stackstorm-openstack
Codehttps://github.com/StackStorm-Exchange/stackstorm-openstack
Issues6 (6)https://github.com/StackStorm-Exchange/stackstorm-openstack/issues
Pull requests2 (2)https://github.com/StackStorm-Exchange/stackstorm-openstack/pulls
Actionshttps://github.com/StackStorm-Exchange/stackstorm-openstack/actions
Projectshttps://github.com/StackStorm-Exchange/stackstorm-openstack/projects
Security and qualityhttps://github.com/StackStorm-Exchange/stackstorm-openstack/security
Insightshttps://github.com/StackStorm-Exchange/stackstorm-openstack/insights
https://github.com/StackStorm-Exchange/stackstorm-openstack
New issuehttps://github.com/login?return_to=https://github.com/StackStorm-Exchange/stackstorm-openstack/issues/37
New issuehttps://github.com/login?return_to=https://github.com/StackStorm-Exchange/stackstorm-openstack/issues/37
Server creation impossible due to improper handling of repeatable parametershttps://github.com/StackStorm-Exchange/stackstorm-openstack/issues/37#top
https://github.com/teeptoo
teeptoohttps://github.com/teeptoo
on Apr 29, 2021https://github.com/StackStorm-Exchange/stackstorm-openstack/issues/37#issue-870959910
OpenStack documentationhttps://docs.openstack.org/python-openstackclient/latest/cli/command-objects/server.html#server-create
Sign up for freehttps://github.com/signup?return_to=https://github.com/StackStorm-Exchange/stackstorm-openstack/issues/37
Sign in to commenthttps://github.com/login?return_to=https://github.com/StackStorm-Exchange/stackstorm-openstack/issues/37
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.