You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by "Anuruddha Lanka Liyanarachchi (JIRA)" <ji...@apache.org> on 2015/06/30 06:03:04 UTC

[jira] [Comment Edited] (STRATOS-1454) Python Cartridge agnet is not terminating members

    [ https://issues.apache.org/jira/browse/STRATOS-1454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14606951#comment-14606951 ] 

Anuruddha Lanka Liyanarachchi edited comment on STRATOS-1454 at 6/30/15 4:02 AM:
---------------------------------------------------------------------------------

This is because tenant_id is stored as an unicode string in dictionary and the passed tenant id is an integer. 
I have fixed the issue now in the PR 
https://github.com/apache/stratos/pull/363

Now the following error occurs.
2015-06-01 18:03:17,287:DEBUG:Running checkout job
Exception in thread Thread-38:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/agentgithandler.py", line 456, in execute_task
    AgentGitHandler.checkout(self.repo_info)
  File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/agentgithandler.py", line 61, in checkout
    if AgentGitHandler.is_valid_git_repository(git_repo):
  File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/agentgithandler.py", line 139, in is_valid_git_repository
    output, errors = AgentGitHandler.execute_git_command(["show-ref"], git_repo.local_repo_path)
  File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/agentgithandler.py", line 433, in execute_git_command
    p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=os_env, cwd=repo_path)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory: '/var/www'


was (Author: anuruddhal):
This is because tenant_id is stored as an unicode string in dictionary and the passed tenant id is an integer. 
I have fixed the issue now in the PR 
https://github.com/apache/stratos/pull/363

> Python Cartridge agnet is not terminating members
> -------------------------------------------------
>
>                 Key: STRATOS-1454
>                 URL: https://issues.apache.org/jira/browse/STRATOS-1454
>             Project: Stratos
>          Issue Type: Bug
>    Affects Versions: 4.1.0 RC1
>            Reporter: Anuruddha Lanka Liyanarachchi
>
> Python Cartridge agent is not terminating members when an application is undeploying.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)