sr-build-tools icon indicating copy to clipboard operation
sr-build-tools copied to clipboard

Default deployment script bug " 'config_branch' is undefined"

Open AndriyPt opened this issue 7 years ago • 0 comments

Error " 'config_branch' is undefined " is appearing in case if rosintall file contains dependency on sr_config. In case if such dependency is not present script is working fine. This is due dev_machine role logic which need to be addressed

TASK [dev_machine : Check if sr-config is installed] ***************************
task path: /tmp/sr-build-tools/ansible/roles/dev_machine/tasks/main.yml:3
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: user
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1488972343.07-220147347844822 `" && echo ansible-tmp-1488972343.07-220147347844822="` echo $HOME/.ansible/tmp/ansible-tmp-1488972343.07-220147347844822 `" ) && sleep 0'
<localhost> PUT /tmp/tmpcmEwGA TO /home/user/.ansible/tmp/ansible-tmp-1488972343.07-220147347844822/stat
<localhost> EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/user/.ansible/tmp/ansible-tmp-1488972343.07-220147347844822/stat; rm -rf "/home/user/.ansible/tmp/ansible-tmp-1488972343.07-220147347844822/" > /dev/null 2>&1 && sleep 0'
ok: [localhost] =>   invocation => {u'module_name': u'stat', u'module_args': {u'checksum_algorithm': u'sha1', u'mime': False, u'get_checksum': True, u'follow': False, u'path': u'/home/user/projects/shadow_robot/base/src/sr_config', u'get_md5': True}}
  stat => {u'uid': 1000, u'exists': True, u'woth': False, u'isreg': False, u'mtime': 1488971104.6180336, u'inode': 49435, u'isgid': False, u'size': 4096, u'wgrp': False, u'isuid': False, u'gid': 1000, u'pw_name': u'user', u'ischr': False, u'wusr': True, u'xoth': True, u'rusr': True, u'nlink': 7, u'issock': False, u'rgrp': True, u'gr_name': u'user', u'path': u'/home/user/projects/shadow_robot/base/src/sr_config', u'xusr': True, u'atime': 1488971517.3460264, u'isdir': True, u'ctime': 1488971104.6180336, u'isblk': False, u'xgrp': True, u'dev': 43, u'roth': True, u'isfifo': False, u'mode': u'0755', u'islnk': False}
  changed => False


TASK [dev_machine : Checkout or create the config branch] **********************
task path: /tmp/sr-build-tools/ansible/roles/dev_machine/tasks/main.yml:7
fatal: [localhost]: FAILED! =>   msg => 'config_branch' is undefined
  failed => True

AndriyPt avatar Mar 08 '17 14:03 AndriyPt