We're updating the issue view to help you get more done. 

cfy agents install for other tenants failing

Description

After a snapshot restore on 4.1 a cfy agents install fails with the following:

  1. cfy agents install -t tenant1
    2017-07-07 15:53:44.101 CFY <tenant1helloworld_dep> [vm_2fwws5.validate_amqp] Sending task 'cloudify_agent.operations.validate_agent_amqp'
    2017-07-07 15:53:44.892 LOG <tenant1helloworld_dep> [vm_2fwws5.validate_amqp] INFO: Checking if agent can be accessed through current rabbitmq
    2017-07-07 15:53:45.103 CFY <tenant1helloworld_dep> [vm_2fwws5.validate_amqp] Task started 'cloudify_agent.operations.validate_agent_amqp'
    2017-07-07 15:54:15.225 LOG <tenant1helloworld_dep> [vm_2fwws5.validate_amqp] INFO: Agent unavailable, reason Could not access tasks list for agent vm_2fwws5
    2017-07-07 15:54:15.677 CFY <tenant1helloworld_dep> [vm_2fwws5.validate_amqp] Task failed 'cloudify_agent.operations.validate_agent_amqp' -> 500: Internal Server Error
    2017-07-07 15:54:16.125 CFY <tenant1helloworld_dep> 'install_new_agents' workflow execution failed: RuntimeError: Workflow failed: Task failed 'cloudify_agent.operations.validate_agent_amqp' -> 500: Internal Server Error
    2017-07-07 15:54:16.228 LOG <tenant1helloworld_dep> [vm_2fwws5.validate_amqp] INFO: Checking if agent can be accessed through different rabbitmq
    2017-07-07 15:54:16.228 LOG <tenant1helloworld_dep> [vm_2fwws5.validate_amqp] INFO: Agent unavailable, reason 500: Internal Server Error
    Summary:
    Execution of workflow 'install_new_agents' for deployment 'tenant1helloworld_dep' failed. [error=Traceback (most recent call last):
    File "/tmp/pip-build-WhgkMY/cloudify-plugins-common/cloudify/dispatch.py", line 513, in _remote_workflow_child_thread
    File "/tmp/pip-build-WhgkMY/cloudify-plugins-common/cloudify/dispatch.py", line 544, in _execute_workflow_function
    File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/plugins/workflows.py", line 332, in install_new_agents
    graph.execute()
    File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/workflows/tasks_graph.py", line 133, in execute
    self._handle_terminated_task(task)
    File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/workflows/tasks_graph.py", line 207, in _handle_terminated_task
    raise RuntimeError(message)
    RuntimeError: Workflow failed: Task failed 'cloudify_agent.operations.validate_agent_amqp' -> 500: Internal Server Error
    ]

tenant1 does exist on the old manager and the new one (and the restore was successful).

This happens both when using the -t argument and when explicitly switching tenant first.

Bug confirmed only on 4.1- may also affect 4.0.1 and 4.0.

Status

Assignee

Unassigned

Reporter

geokala

Labels

Severity

None

Bug Type

None

Target Version

None

Severity

None

Fix versions

Affects versions

4.1