Skip to content

st2 pack install connects to index.stackstorm.org even for local file installs #3772

Closed
@LindsayHill

Description

@LindsayHill

(Potentially related to #3771)

If I clone a StackStorm-Exchange repo to a local directory, and then attempt to install that repo using st2 pack install file:////home/vagrant/mypack, ST2 will attempt to connect to index.stackstorm.org.

If I don't have Internet access, this results in an error:

vagrant@bwcvagrant:~$ st2 pack install file:///home/vagrant/stackstorm-tesla.local/
ERROR: 400 Client Error: Bad Request
MESSAGE: No results from the index: tried https://index.stackstorm.org/v1/index.json.
Status: [
    {
        "url": "https://index.stackstorm.org/v1/index.json",
        "message": "ConnectionError(MaxRetryError(\"HTTPSConnectionPool(host='index.stackstorm.org', port=443): Max retries exceeded with url: /v1/index.json (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa1864c8290>: Failed to establish a new connection: [Errno -2] Name or service not known',))\",),)",
        "error": "unresponsive",
        "packs": 0
    }
] for url: http://127.0.0.1:9101/v1/packs/index/search

vagrant@bwcvagrant:~$

I don't understand why st2 pack install is searching the index when it has been given a local file path to install from.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions