Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-4087

Improve error handling and reporting for EC2 ebs snapshot / volume procedures (scripts)

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      The following has been observed:

      The EA does not start up if shell scripts fail to run successfully. So far this has happened in

      /opt/bamboo-elastic-agent/bin/restoreSnapshot.sh and /opt/bamboo-elastic-agent/bin/setAwsEnv.sh

      can be failing on getting the availability zone using curl. This is stopping the agent from starting successfully.
      The response from amazon is

      <?xml version="1.0" encoding="iso-8859-1"?> 
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>404 - Not Found</title> 
      </head> 
      <body> <h1>404 - Not Found</h1> </body> </html>

      and the agent is not started up. The instance remains idle - no warning or error messages are sent to the server.
      then restoreSnapshot.sh hangs

      1     0  1122  1114  23   0   2648   484 wait   S    ?          0:00 /bin/sh /opt/bamboo-elastic-agent/bin/restoreSnapshot.sh
      0     0  1123  1122  24   0   2640  1136 wait   S    ?          0:00 bash /usr/local/ec2/ec2-api-tools/bin/ec2-create-volume --snapshot snap-d64885bf --availability-zone
      

            [BAM-4087] Improve error handling and reporting for EC2 ebs snapshot / volume procedures (scripts)

            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3017491 ] New: JAC Suggestion Workflow 3 [ 3602883 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing v4 [ 2699227 ] New: JAC Suggestion Workflow [ 3017491 ]
            Owen made changes -
            Backlog Order (Obsolete) Original: 18870000000
            Issue Type Original: Improvement [ 4 ] New: Suggestion [ 10000 ]
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 1417962 ] New: Confluence Workflow - Public Facing v4 [ 2699227 ]
            Marek Went (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2014 v2 [ 606963 ] New: Bamboo Workflow 2016 v1 [ 1417962 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2014 [ 594939 ] New: Bamboo Workflow 2014 v2 [ 606963 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2010 [ 201242 ] New: Bamboo Workflow 2014 [ 594939 ]
            MarkC made changes -
            Workflow Original: reviewflow [ 196405 ] New: Bamboo Workflow 2010 [ 201242 ]
            MarkC made changes -
            Workflow Original: Feature Request Workflow [ 177033 ] New: reviewflow [ 196405 ]
            sladey made changes -
            Fix Version/s New: 2.3 [ 14572 ]

              kbrazulewicz Krystian Brazulewicz
              ukuhnhardt Ulrich Kuhnhardt [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h