Exception raised when using stack-adopt with -e argument

Bug #1510818 reported by Yingzhe Zeng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-heatclient
Fix Committed
High
Yingzhe Zeng

Bug Description

Use stack-adopt subcommand with -e argument provided, as follow:
heat stack-adopt -a adopt_stack_data -e env mystack

An exception occurs:
Traceback (most recent call last):
  File "/usr/local/bin/heat", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/heatclient/shell.py", line 705, in main
    HeatShell().main(args)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/shell.py", line 655, in main
    args.func(client, args)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/v1/shell.py", line 197, in do_stack_adopt
    env_path=args.environment_file)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/common/template_utils.py", line 188, in process_environment_and_files
    env_url = utils.normalise_file_path_to_url(env_path)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/common/utils.py", line 293, in normalise_file_path_to_url
    if parse.urlparse(path).scheme:
  File "/usr/lib/python2.7/urlparse.py", line 143, in urlparse
    tuple = urlsplit(url, scheme, allow_fragments)
  File "/usr/lib/python2.7/urlparse.py", line 176, in urlsplit
    cached = _parse_cache.get(key, None)
TypeError: unhashable type: 'list'

Changed in python-heatclient:
assignee: nobody → Yingzhe Zeng (zengyingzhe)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-heatclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/240737

Changed in python-heatclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-heatclient (master)

Reviewed: https://review.openstack.org/240737
Committed: https://git.openstack.org/cgit/openstack/python-heatclient/commit/?id=67b2db0db434802c026e8d1aaf8963a3083f65a5
Submitter: Jenkins
Branch: master

commit 67b2db0db434802c026e8d1aaf8963a3083f65a5
Author: zengyingzhe <email address hidden>
Date: Mon Nov 2 09:54:14 2015 +0800

    Fix environment files parsing bug for stack-adopt

    Should use process_multiple_environments_and_files
    to parse the environment file arguments instead.

    Change-Id: I2f00df78462f1468ff12f7f9f8ca8a5d4c2d181b
    Closes-Bug: #1510818

Changed in python-heatclient:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-heatclient (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/266650

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-heatclient (stable/liberty)

Reviewed: https://review.openstack.org/266650
Committed: https://git.openstack.org/cgit/openstack/python-heatclient/commit/?id=6fcf1e82a87dfda78aee707a2f05cc520a764050
Submitter: Jenkins
Branch: stable/liberty

commit 6fcf1e82a87dfda78aee707a2f05cc520a764050
Author: zengyingzhe <email address hidden>
Date: Mon Nov 2 09:54:14 2015 +0800

    Fix environment files parsing bug for stack-adopt

    Should use process_multiple_environments_and_files
    to parse the environment file arguments instead.

    Change-Id: I2f00df78462f1468ff12f7f9f8ca8a5d4c2d181b
    Closes-Bug: #1510818

tags: added: in-stable-liberty
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-heatclient 0.8.1

This issue was fixed in the openstack/python-heatclient 0.8.1 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-heatclient 0.9.0

This issue was fixed in the openstack/python-heatclient 0.9.0 release.

Changed in python-heatclient:
importance: Undecided → High
milestone: none → 1.3.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-heatclient 0.8.1

This issue was fixed in the openstack/python-heatclient 0.8.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.