← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1668163] Re: Change the error message when injected file path length exceeds quota

 

** No longer affects: keystone

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1668163

Title:
  Change the error  message when injected file path length exceeds quota

Status in OpenStack Compute (nova):
  New

Bug description:
  I set the below quota value

  {"quota_set":{"injected_file_path_bytes":1}}

  I deployed a VM whose injected file path length was 2 bytes.

  "personality": [
              {
                  "path": "/etc/banners.txt",
                  "contents": "ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBp dCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5k IGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVs c2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4g QnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRo ZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlv dSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vy c2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6 b25zLiINCg0KLVJpY2hhcmQgQmFjaA=="
              }
          ],

  The deploy failed with error as follows.

  {
      "forbidden": {
          "message": "Personality file path too long",
          "code": 403
      }
  }

  problem1 :
  =========

  The error message must clearly display the exact quota name i.e
  injected_file_path_bytes and must also state that it is set to 1 like
  "Personality injected_file_path_bytes exceeds the maximum length [1]"
  or like "InjectedFilePathLengthExceedsLimit: Requested filepath size 2
  is larger than maximum allowed limit 1"

  
  problem2 :
  =========

  {
      "forbidden": {
          "message": "Personality file content too long",
          "code": 403
      }
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1668163/+subscriptions


References