You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Scott Creeley (JIRA)" <ji...@apache.org> on 2014/03/24 19:34:51 UTC

[jira] [Commented] (AMBARI-5194) Improve User Experience during install

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

Scott Creeley commented on AMBARI-5194:
---------------------------------------

suggested improvements:

1.  existing users and directories created during RHS GlusterFS install - test for existence of gluster and then if found follow the existing suppressed control block

    #   see if /var/lib/amabari-agent/data/HDP-*.Gluster* exists OR if /mnt/glusterfs exists  
    #   we can assume rhs/gluster is being used or was once used
    REPO_ARTIFACT_PATH = "/var/lib/ambari-agent/data/"
    REPO_ARTIFACT_FILE = "HDP-*.Gluster"
    REPO_ARTIFACT_SEARCH = "%s%s" % (REPO_ARTIFACT_PATH,REPO_ARTIFACT_FILE) + "*"
    gluster_artifact_result = glob.glob(REPO_ARTIFACT_SEARCH)
    
    GLUSTER_FS_PATH = "/mnt/glusterfs"
    gluster_fs_result = glob.glob(GLUSTER_FS_PATH)
    isGluster = gluster_artifact_result != [] or gluster_fs_result != []


    if componentsMapped or commandsInProgress or isSuse or isGluster:
      dict['existingRepos'] = [self.RESULT_UNAVAILABLE]
      dict['installedPackages'] = []
      dict['alternatives'] = []
      dict['stackFoldersAndFiles'] = []
      dict['existingUsers'] = []

    else:
      etcs = []

2.  iptables improvement - change command to iptables -S.  Cleaner output that can be verfied easily to show iptables have been flushed

def checkIptables(self):
  iptablesIsRunning = True
  try:
    iptables = subprocess.Popen(["iptables", "-S"], stdout=subprocess.PIPE)
    stdout = iptables.communicate()
    if stdout == ('-P INPUT ACCEPT\n-P FORWARD ACCEPT\n-P OUTPUT ACCEPT\n', None):
      iptablesIsRunning = False
  except:
      pass

  dict['iptablesIsRunning'] = self.checkIptables()

> Improve User Experience during install
> --------------------------------------
>
>                 Key: AMBARI-5194
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5194
>             Project: Ambari
>          Issue Type: Improvement
>          Components: agent
>    Affects Versions: 1.4.4
>         Environment: Red Hat Storage Server - GlusterFS stack
>            Reporter: Scott Creeley
>              Labels: Ambari, HostCheck
>             Fix For: 1.5.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> improve the HostInfo.py (Host Check) during the ambari installer process, particularly for step 3 of the process where the nodes are registered and confirmed.  The check will find some user and directories that are normal for a RHS GlusterFS cluster, and we think they should be suppressed to help improve overall user experience.  Also, the iptables check always returns a 0, even when the iptables have been flushed, again this results in an erroneous warning message.



--
This message was sent by Atlassian JIRA
(v6.2#6252)