Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to jboss TypeError at boss7.py:469 #33187

Closed
usbportnoy opened this issue May 11, 2016 · 2 comments
Closed

Deploy to jboss TypeError at boss7.py:469 #33187

usbportnoy opened this issue May 11, 2016 · 2 comments
Labels
Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt P4 Priority 4 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around State-Module
Milestone

Comments

@usbportnoy
Copy link
Contributor

Description of Issue/Question

Attempting to deploy a WAR to jboss7 from a local salt source causes an error in salt/states/jboss7.py

  File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1626, in call
    **cdata['kwargs'])
  File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1492, in wrapper
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/salt/states/jboss7.py", line 469, in deployed
    comment = __append_comment(new_comment=get_artifact_comment, current_comment=comment)
  File "/usr/lib/python2.7/dist-packages/salt/states/jboss7.py", line 736, in __append_comment
    return current_comment+'\n'+new_comment
TypeError: cannot concatenate 'str' and 'NoneType' objects

Setup

/srv/salt/jboss.sls

application_deployed:
 jboss7.deployed:
  - salt_source:
      source: salt://test.war
      target_file: '/tmp/test.war'
      undeploy: 'test.war'
  - jboss_config: {{ pillar['jboss_config'] }}

/srv/pillar/jboss.sls

jboss_config:
   cli_path: '/usr/local/jboss-7.1.1/bin/jboss-cli.sh'
   controller: 127.0.0.1:9999

/srv/pillar/top.sls

base:
  '*':
    - jboss

(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)

Steps to Reproduce Issue

  1. configure setup
  2. run salt '*' -l debug state.apply jboss

Versions Report

Master

                  Salt: 2015.5.3
                Python: 2.7.6 (default, Jun 22 2015, 17:58:13)
                Jinja2: 2.7.2
              M2Crypto: 0.21.1
        msgpack-python: 0.3.0
          msgpack-pure: Not Installed
              pycrypto: 2.6.1
               libnacl: Not Installed
                PyYAML: 3.10
                 ioflo: Not Installed
                 PyZMQ: 14.0.1
                  RAET: Not Installed
                   ZMQ: 4.0.4
                  Mako: Not Installed
               Tornado: Not Installed
 Debian source package: 2015.5.3+ds-1trusty1

Minion

Salt Version:
           Salt: 2015.8.8

Dependency Versions:
         Jinja2: 2.6
       M2Crypto: 0.21.1
           Mako: Not Installed
         PyYAML: 3.10
          PyZMQ: 14.0.1
         Python: 2.7.3 (default, Jun 22 2015, 19:33:41)
           RAET: Not Installed
        Tornado: 4.3
            ZMQ: 4.0.4
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 1.5
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
        libgit2: Not Installed
        libnacl: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.3.0
   mysql-python: 1.2.3
      pycparser: Not Installed
       pycrypto: 2.6.1
         pygit2: Not Installed
   python-gnupg: Not Installed
          smmap: Not Installed
        timelib: Not Installed

System Versions:
           dist: Ubuntu 12.04 precise
        machine: x86_64
        release: 3.2.0-29-generic
         system: Ubuntu 12.04 precise
@Ch3LL
Copy link
Contributor

Ch3LL commented May 12, 2016

@usbportnoy thanks for the PR! I'm gonna go ahead and close this issue now :)

@Ch3LL Ch3LL closed this as completed May 12, 2016
@Ch3LL Ch3LL added Bug broken, incorrect, or confusing behavior State-Module Core relates to code central or existential to Salt P4 Priority 4 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around labels May 12, 2016
@Ch3LL Ch3LL added this to the Approved milestone May 12, 2016
@rickh563
Copy link

rickh563 commented Feb 1, 2017

ZD-1185


Raine Curtis has written:

  • "Though is is closed it is still broken. Though the error does not display, it does not show anything now when it fails."

rallytime pushed a commit to rallytime/salt that referenced this issue Feb 6, 2017
Additional fix to  saltstack#33187
Customer was still seeing errors, this should now work.
Tested with 2015.8.13 and 2016.11.2
gitebra pushed a commit to gitebra/salt that referenced this issue Feb 7, 2017
* upstream/develop: (86 commits)
  Change reload_modules to trigger only on state changes (saltstack#39015) (saltstack#39016)
  update GCE docs adding subnetwork parameter
  pip_state: mention Python 2 pip module is required
  Remove raise from _srvmgr
  change to return_json
  Updates to win_iis modules
  Added missing source_hash_name argument in get_managed function Additional fix to  saltstack#33187 Customer was still seeing errors, this should now work. Tested with 2015.8.13 and 2016.11.2
  Fix doc build errors in junos_syslog engine
  Add publisher_acl and publisher_acl_blacklist to defaults
  zone state for Solaris 10/illumos (saltstack#39155)
  Apply fix from saltstack#38705 to 2016.3 branch (saltstack#39077)
  update vmware getting started doc (saltstack#39146)
  [Bugfix] fix argument order for usermod call
  linux_ip: Disable linux_ip for NILinuxRT systems
  Add network module for NILinuxRT: nilrt_ip.py
  Fix problem deleting files
  Remove files not needed by salt-minion
  make helper function private
  add debug logging for batch vars
  Don't fail test if data is empty
  ...
rallytime pushed a commit that referenced this issue Feb 7, 2017
* Fix for #38697

* Lint fixes

* Added missing source_hash_name argument in get_managed function
Additional fix to  #33187
Customer was still seeing errors, this should now work.
Tested with 2015.8.13 and 2016.11.2

* [2016.3] Pylint fix (#39202)

* Ignore empty dicts in highstate outputter

Closes #37174

* Sort the return list from the fileserver.envs runner

* Fix the win_ip_test failures (#39230)

The changes made in #38793 changes the "get_all_ointerfaces" call
to be a list of DNS servers. This change adjusts the tests structure
from a string to a list and fixes the test failure.
cachedout pushed a commit to cachedout/salt that referenced this issue Mar 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt P4 Priority 4 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around State-Module
Projects
None yet
Development

No branches or pull requests

3 participants