Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-920

tomcat-vault.sh encryption functionality intermittently hangs on RHEL6 x86

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Minor Minor
    • None
    • JWS 3.1.0 SP2 DR2, JWS 3.1.0 SP2 ER1
    • tomcat-vault
    • None
    • User Experience

      During our testing, RHEL6 x86 machines are intermittently failing when issuing the following command:

      tomcat-vault.sh --encrypt 1 2 (note that the actual values after encrypt are irrelevant)

      When trying it manually, I can see that tomcat-vault intermittently hangs, which causes timeout and fail of the test. For example:

      [root@rhel6-x86-1650 ~]# for i in {1..10}; do /mnt/hudson_workspace/tomcat-vault-1.1.6/bin/tomcat-vault.sh --encrypt 2 3; done
      =========================================================================
      
        Tomcat Vault
      
        VAULT_HOME: /mnt/hudson_workspace/tomcat-vault-1.1.6/lib
      
        JAVA: java
      
      =========================================================================
      
      Encrypted value: CRYPT::LwuNB5nJZrNHW3EfKDsMvQ==
      =========================================================================
      
        Tomcat Vault
      
        VAULT_HOME: /mnt/hudson_workspace/tomcat-vault-1.1.6/lib
      
        JAVA: java
      
      =========================================================================
      
      Encrypted value: CRYPT::SJFNHH04uSjcix4IROG+TQ==
      =========================================================================
      
        Tomcat Vault
      
        VAULT_HOME: /mnt/hudson_workspace/tomcat-vault-1.1.6/lib
      
        JAVA: java
      
      =========================================================================
      
      Encrypted value: CRYPT::+i+E6n1XgbT+R3bpmZHOYw==
      =========================================================================
      
        Tomcat Vault
      
        VAULT_HOME: /mnt/hudson_workspace/tomcat-vault-1.1.6/lib
      
        JAVA: java
      
      =========================================================================
      
      Encrypted value: CRYPT::CATOf+DjAuQC1JQz1K25Rg==
      =========================================================================
      
        Tomcat Vault
      
        VAULT_HOME: /mnt/hudson_workspace/tomcat-vault-1.1.6/lib
      
        JAVA: java
      
      =========================================================================
      
      Encrypted value: CRYPT::cS5iTRkPk8EGcq8BWwrcXw==
      =========================================================================
      
        Tomcat Vault
      
        VAULT_HOME: /mnt/hudson_workspace/tomcat-vault-1.1.6/lib
      
        JAVA: java
      
      =========================================================================
      
      Encrypted value: CRYPT::wakK2dpYYXaHSJQqrVeOrg==
      =========================================================================
      
        Tomcat Vault
      
        VAULT_HOME: /mnt/hudson_workspace/tomcat-vault-1.1.6/lib
      
        JAVA: java
      
      ### This is where the hang happened, command became unresponsive ###
      =========================================================================
      ^C=========================================================================
      
        Tomcat Vault
      
        VAULT_HOME: /mnt/hudson_workspace/tomcat-vault-1.1.6/lib
      
        JAVA: java
      
      =========================================================================
      
      ^C=========================================================================
      
        Tomcat Vault
      
        VAULT_HOME: /mnt/hudson_workspace/tomcat-vault-1.1.6/lib
      
        JAVA: java
      
      =========================================================================
      
      ^C=========================================================================
      
        Tomcat Vault
      
        VAULT_HOME: /mnt/hudson_workspace/tomcat-vault-1.1.6/lib
      
        JAVA: java
      
      =========================================================================
      
      ^C[root@rhel6-x86-1650 ~]# ^C
      

      I am not sure what is a possible cause. I have tested that this happens only on RHEL6 x86 (x86_64 RHEL6 or RHEL7 did not hang even when I executed the command in a 1..100 range). JDK is failing with both Oracle/OpenJDK 1.8, and OpenJDK 1.7. Given that it fails on these three, I assume it is JDK independent and did not try further JDK combinations.

      I have also verified that this is reproducible on vault 1.1.5--same command, when it works for the first time, issuing it several times in a row causes it to hang.

              rhn-support-csutherl Coty Sutherland
              mczernek@redhat.com Marek Czernek (Inactive)
              Marek Czernek Marek Czernek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: