-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/48407/
-----------------------------------------------------------

Review request for Ambari and Dmitro Lisnichenko.


Bugs: AMBARI-17115
    https://issues.apache.org/jira/browse/AMBARI-17115


Repository: ambari


Description
-------

**Scenario** \- Modify log directory for FLUME (Key - Flume Log Dir)

Expected - Service Should start successfully  
Output - Service Failed to start (New log folder was not created )

    
    
    
    Traceback (most recent call last):
      File 
"/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume_handler.py",
 line 126, in <module>
        FlumeHandler().execute()
      File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
 line 257, in execute
        method(env)
      File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
 line 681, in restart
        self.start(env, upgrade_type=upgrade_type)
      File 
"/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume_handler.py",
 line 54, in start
        self.configure(env)
      File 
"/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume_handler.py",
 line 39, in configure
        flume(action='config')
      File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", 
line 89, in thunk
        return fn(*args, **kwargs)
      File 
"/var/lib/ambari-agent/cache/common-services/FLUME/1.4.0.2.0/package/scripts/flume.py",
 line 109, in flume
        mode=0755,
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", 
line 155, in __init__
        self.env.run()
      File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
line 160, in run
        self.run_action(resource, action)
      File 
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py", 
line 124, in run_action
        provider_action()
      File 
"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
 line 189, in action_create
        raise Fail("Applying %s failed, parent directory %s doesn't exist" % 
(self.resource, dirname))
    resource_management.core.exceptions.Fail: Applying 
Directory['/grid/0/_QE-7627_/_logRMP5891_/FLUME'] failed, parent directory 
/grid/0/_QE-7627_/_logRMP5891_ doesn't exist


Diffs
-----

  
ambari-server/src/main/resources/common-services/FLUME/1.4.0.2.0/package/scripts/flume.py
 9df2ba6 
  ambari-server/src/test/python/stacks/2.0.6/FLUME/test_flume.py 964280d 

Diff: https://reviews.apache.org/r/48407/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk

Reply via email to