Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1239

Gzipped userdata not handled in openstack-nova debug logging

    Details

    • Flags:
      Patch

      Description

      It is very common to gzip userdata on openstack to preserve space (when using cloud-init for example).
      If debug logging is enabled, then this binary data is shown as is which disrupts the log.

      Example output:

      >> creating new server region(RegionOne) name(foo-f2e) image(41c50bca-cb94-4dc4-b4ce-6c98242eaaa6) flavor(08fbed24-7fcf-42e3-bc5a-cdd7a701ef0c) options(CreateServerOptions{keyName=null, securityGroupNames=[default], metadata={Name=foo, jclouds-group=foo}, userData=*lots of "garbage"*, networks=[73cbec8a-f53d-41af-843b-1cd4a6afc025], availabilityZone=null, configDrive=false})
      

      See https://github.com/jclouds/jclouds/pull/1061 (master) and https://github.com/jclouds/jclouds/pull/1062 (2.0.x branch)

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 0c1fe36a6635835d59e50a18e7bf55f7f65de7eb in jclouds's branch refs/heads/2.0.x from Fritz Elfert
        [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=0c1fe36 ]

        JCLOUDS-1239: Handle gzipped userdata in logging

        Show
        jira-bot ASF subversion and git services added a comment - Commit 0c1fe36a6635835d59e50a18e7bf55f7f65de7eb in jclouds's branch refs/heads/2.0.x from Fritz Elfert [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=0c1fe36 ] JCLOUDS-1239 : Handle gzipped userdata in logging
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit e26146c6c17c11200f7d186f01c76155423424b0 in jclouds's branch refs/heads/master from Fritz Elfert
        [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=e26146c ]

        JCLOUDS-1239: Handle gzipped userdata in logging

        Show
        jira-bot ASF subversion and git services added a comment - Commit e26146c6c17c11200f7d186f01c76155423424b0 in jclouds's branch refs/heads/master from Fritz Elfert [ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=e26146c ] JCLOUDS-1239 : Handle gzipped userdata in logging

          People

          • Assignee:
            Unassigned
            Reporter:
            felfert2 Fritz Elfert
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development