Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-4039

Mountpoint policy failure should return 400 instead of 500

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Image Builder
    • None
    • Moderate
    • None

      Describe the problem

      When specifying wrong mountpoints composer errors with

       

      ErrorEnqueueingJob, failed generating manifest: The following custom mountpoints are not supported [\"[SWAP]\"]" 
      
      

      which results in a 500. It should be 400, the 500 sometimes results in alerts which shouldn't be alerts.

       

       

      Steps to reproduce

      1. Send an api request with wrong mountpoints to image builder.

       

      Composer should error with some sort of identifiable error (separate error code etc…), so that image builder can make decisions based on it.

            Unassigned Unassigned
            sraymaek Sanne Raymaekers
            None
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: