Uploaded image for project: 'Coopr'
  1. Coopr
  2. COOPR-511

Google provisioner plugin disk names

    Details

    • Rank:
      1|hzyfk7:

      Description

      Saw this error when creating a cluster named 'FileDropzoneTest':

      Unexpected Error Occurred in FogProviderGoogle.create: #<ArgumentError: Parameter 'disk' has an invalid value: FileDropzoneTest193-1000. Must match: /^[a-z](?:[-a-z0-9]

      {0,61}

      [a-z0-9])?$/.>

      We should be making sure that we're using valid disk names. The server is supposed to be responsible for making sure the length is 63 or less (COOPR-324), but per RFC 1123, its ok for a hostname to start with a digit so we'd have to do some cleaning before creating disks. Lowercasing everything and stripping leading digits should maintain uniqueness (at least within a Coopr system) because the cluster id and host number are present in the hostname.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                derek Derek Wood
                Reporter:
                ashau Albert Shau
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: