Andrew Onischuk created AMBARI-11370:
----------------------------------------

             Summary: Agent configs upgrade fails on upgrade 1.6.0 -> 2.0.1
                 Key: AMBARI-11370
                 URL: https://issues.apache.org/jira/browse/AMBARI-11370
             Project: Ambari
          Issue Type: Bug
            Reporter: Andrew Onischuk
            Assignee: Andrew Onischuk
             Fix For: 2.1.0


ambari-agent.ini config upgrade fails on upgrade from Ambari 1.6.0 -> 2.0.1.
(1.7 and 2.0 upgrade is fine)  
Impact: Server hostname is changed to the default 'localhost' and all other
custom configs are restored to defaults.  
Old configs are saved to backup, so user can restore it manually.

    
    
    Running Transaction
      Updating   : ambari-agent-2.0.1-45.x86_64                                 
                                                                                
                                             1/2 
    #includedir /etc/sudoers.d
    Upgrading configs in /etc/ambari-agent/conf/ambari-agent.ini
    Values will be updated from /etc/ambari-agent/conf/ambari-agent.ini.old 
except the following list: [('heartbeat', 'dirs')]
    Traceback (most recent call last):
      File "/var/lib/ambari-agent/upgrade_agent_configs.py", line 44, in 
<module>
        agent_config.set(section, property_name, property_val)
      File "/usr/lib64/python2.6/ConfigParser.py", line 377, in set
        raise NoSectionError(section)
    ConfigParser.NoSectionError: No section: 'puppet'
      Cleanup    : ambari-agent-1.6.0-46.x86_64                                 
                                                                                
                                             2/2 
      Verifying  : ambari-agent-2.0.1-45.x86_64                                 
                                                                                
                                             1/2 
      Verifying  : ambari-agent-1.6.0-46.x86_64                                 
                                                                                
                                             2/2 
    
    Updated:
      ambari-agent.x86_64 0:2.0.1-45                                            
                                                                                
                                                 
    
    Complete!
    





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

Reply via email to