<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi guys, we have a diablo cluster with keystone.<br>
      We can successfully create servers, but when we try to add a rule
      to the default security group, or create a new one, we get a 400
      "badRequest" error.<br>
      <br>
      Here we left the two requests, can anyone point where the solution
      might be ?<br>
      <br>
      LISTING THE DEFAULT SECURITY GROUP:<br>
      # curl -X GET <a class="moz-txt-link-rfc2396E" href="http://172.16.159.5:8774/v1.1/5/os-security-groups">"http://172.16.159.5:8774/v1.1/5/os-security-groups"</a>
      -H "X-Auth-Token: 3dd60c26-5f1d-438a-9e26-a2ff86570196" | python
      -mjson.tool<br>
      RESP:<br>
      {<br>
          "security_groups": [<br>
              {<br>
                  "description": "default", <br>
                  "id": 67, <br>
                  "name": "default", <br>
                  "rules": [], <br>
                  "tenant_id": "5"<br>
              }<br>
          ]<br>
      }<br>
      <br>
      TRYING TO CREATE A SECURITY GROUP:<br>
      # curl -X POST -d "{"security_group": {"name": "testSG",
      "description": "testSG"}}"
      <a class="moz-txt-link-rfc2396E" href="http://172.16.x.y:8774/v1.1/5/os-security-groups">"http://172.16.x.y:8774/v1.1/5/os-security-groups"</a> -H
      "X-Auth-Token: 3dd60c26-5f1d-438a-9e26-a2ff86570196"<br>
      RESP : <br>
      {"badRequest": {"message": "The server could not comply with the
      request since it is either malformed or otherwise incorrect.",
      "code": 400}}<br>
      <br>
      TRYING TO ADD A RULE TO THE DEFAULT SECURITY GROUP:<br>
      # curl -X POST -d "{"security_group_rule": {"ip_protocol": "tcp",
      "from_port": "22", "to_port": "22", "group_id": 67,
      "parent_group_id": 16, "cidr": "0.0.0.0/0"}}"
      <a class="moz-txt-link-rfc2396E" href="http://172.16.159.5:8774/v1.1/5/os-security-group-rules">"http://172.16.159.5:8774/v1.1/5/os-security-group-rules"</a> -H
      "X-Auth-Token: 3dd60c26-5f1d-438a-9e26-a2ff86570196"<br>
      RESP:<br>
      {"badRequest": {"message": "The server could not comply with the
      request since it is either malformed or otherwise incorrect.",
      "code": 400}}<br>
      <br>
      PS: the token is the one obtained from keystone for tenant 5,
      listing of SG is working ok, but creation of new SG nor adding a
      new rule for that SG, is not.<br>
      PS1: Is the parent_group_id value, the same as group_id on the
      "security_groups" database table ?<br>
      <br>
      Best regards.</tt><br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <title></title>
      <a href="www.mercadolibre.com"><img alt="meli"
          src="cid:part1.06010105.07020608@mercadolibre.com" border="0"></a><br>
      <div class="moz-signature"> <font style="font-size: 8pt"
          color="#333333"><b>Alejandro Comisario </b><br>
          <b> Infrastructure IT - #melicloud Cloud Builder</b></font><br>
        <font color="#666666"><span style="font-size: 6pt; color: gray;"
            lang="ES">Arias 3751, Piso 7 (C1430CRG) <br>
            Ciudad de Buenos Aires - Argentina<br>
            Cel: +549(11) 15-3770-1857<br>
            Tel : +54(11) 4640-8443</span><br>
        </font> </div>
    </div>
  </body>
</html>