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

Updating to 3.14.0: submit throws errors #446

Open
mbande opened this issue Aug 18, 2018 · 2 comments
Open

Updating to 3.14.0: submit throws errors #446

mbande opened this issue Aug 18, 2018 · 2 comments

Comments

@mbande
Copy link
Contributor

mbande commented Aug 18, 2018

Using previous version, the following config works fine:

{
    "serializer": "json",
    "topology_specs": "topologies/",
    "envs": {
        "prod": {
            "user": "",
            "nimbus": "localhost",
            "workers": ["localhost"],
            "use_virtualenv": true,
            "install_virtualenv": false,
            "use_ssh_for_nimbus": false,
            "virtualenv_root": "/opt/",
            "virtualenv_name": "venv"
        }
    }
}

as you can see, my app uses an existing virtual env and does not need virtualenv_specs, also my app use local nimbus
updating to 3.14.0, submit throws:

Traceback (most recent call last):
  File "/opt/venv/bin/sparse", line 11, in <module>
    sys.exit(main())
  File "/opt/venvlib/python3.4/site-packages/streamparse/cli/sparse.py", line 79, in main
    args.func(args)
  File "/opt/venv/lib/python3.4/site-packages/streamparse/cli/submit.py", line 299, in main
    user=args.user)
  File "/opt/venv/lib/python3.4/site-packages/streamparse/cli/submit.py", line 185, in submit_topology
    user=user)
  File "/opt/venv/lib/python3.4/site-packages/streamparse/cli/update_virtualenv.py", line 91, in create_or_update_virtualenvs
    config["virtualenv_specs"] = config["virtualenv_specs"].rstrip("/")
KeyError: 'virtualenv_specs'

i'v added a dummy virtualenv_specs to config, and a new error appears:

[localhost] Executing task '_create_or_update_virtualenv'
Warning: Unable to load SSH config file '/home/user/.ssh/config'
Fatal error: Needed to prompt for a connection or sudo password (host: localhost), but input would be ambiguous in parallel mode
Aborting.
Fatal error: One or more hosts failed while executing task '_create_or_update_virtualenv'
Aborting.
@mbande mbande changed the title Updating 3.14.0: Mutliple errors Updating to 3.14.0: submit throws errors Aug 18, 2018
@amoyiki
Copy link

amoyiki commented Aug 25, 2018

you can see this How to ssh to localhost without password?

@mbande
Copy link
Contributor Author

mbande commented Aug 26, 2018

@amoyiki "use_ssh_for_nimbus": false is supposed to disable ssh at all!

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