Translation errors out for the WordPress test case

Bug #1439444 reported by Vahid Hashemian
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Heat Translator
Fix Released
Undecided
Vahid Hashemian

Bug Description

The translation for test case located at "translator/toscalib/tests/data/tosca_single_instance_wordpress.yaml" returns with the following error:

Traceback (most recent call last):
  File "/home/stack/workspace/heat-translator/main.py", line 79, in <module>
    main()
  File "/home/stack/workspace/heat-translator/main.py", line 42, in main
    heat_tpl = translate(sourcetype, path, parsed_params)
  File "/home/stack/workspace/heat-translator/main.py", line 71, in translate
    output = translator.translate()
  File "/home/stack/workspace/heat-translator/translator/hot/tosca_translator.py", line 36, in translate
    self.hot_template.resources = self.node_translator.translate()
  File "/home/stack/workspace/heat-translator/translator/hot/translate_node_templates.py", line 75, in translate
    return self._translate_nodetemplates()
  File "/home/stack/workspace/heat-translator/translator/hot/translate_node_templates.py", line 131, in _translate_nodetemplates
    resource.handle_hosting()
  File "/home/stack/workspace/heat-translator/translator/hot/syntax/hot_resource.py", line 159, in handle_hosting
    raise Exception(_("Internal Error: expecting host "
Exception: Internal Error: expecting host in software deployment

It seems that the hosting chains are not followed all the way at some places in the code.

Changed in heat-translator:
assignee: nobody → Vahid Hashemian (vahidhashemian)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat-translator (master)

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

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

Reviewed: https://review.openstack.org/170565
Committed: https://git.openstack.org/cgit/openstack/heat-translator/commit/?id=6fa6c7c71f65dc22f203bfbcbc93401f6dd93845
Submitter: Jenkins
Branch: master

commit 6fa6c7c71f65dc22f203bfbcbc93401f6dd93845
Author: Vahid Hashemian <email address hidden>
Date: Fri Apr 3 09:25:29 2015 -0700

    Follow the hosting chain to find the host server

    Since a hosting chain may exist among several node templates (e.g.
    a web application hosted on an application server, the application
    server hosted on a web server, the web server hosted on a compute
    node) update the code to follow the chain and return the actual
    compute node host. The unit test for this patch will be covered by
    bug #1435545.

    Change-Id: I01bab61bc45b4031cd106295d216982332361b6b
    Closes-Bug: #1439444
    Partial-Bug: #1435545

Changed in heat-translator:
status: In Progress → Fix Committed
Revision history for this message
Shiva Charan M S (shiva-charan-m-s) wrote :

Could any help me in fetching the fix for the same issue, as I am facing the same with the latest code.

Revision history for this message
Sahdev Zala (spzala) wrote :

Hi Shiva, I believe you aren't seeing issue with the wordpress template as this bug was originally created for. I have asked for some detail on the other thread where you have asked question, hopefully we can take further discussion there and try to resolve the issue as soon as possible. Thanks!

Changed in heat-translator:
status: Fix Committed → Fix Released
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.