{"action":"created","issue":{"url":"https://api.github.com/repos/gondor/openstack4j/issues/573","repository_url":"https://api.github.com/repos/gondor/openstack4j","labels_url":"https://api.github.com/repos/gondor/openstack4j/issues/573/labels{/name}","comments_url":"https://api.github.com/repos/gondor/openstack4j/issues/573/comments","events_url":"https://api.github.com/repos/gondor/openstack4j/issues/573/events","html_url":"https://github.com/gondor/openstack4j/issues/573","id":133573083,"number":573,"title":"Cannot create Flavors","user":{"login":"starbender","id":13143608,"avatar_url":"https://avatars.githubusercontent.com/u/13143608?v=3","gravatar_id":"","url":"https://api.github.com/users/starbender","html_url":"https://github.com/starbender","followers_url":"https://api.github.com/users/starbender/followers","following_url":"https://api.github.com/users/starbender/following{/other_user}","gists_url":"https://api.github.com/users/starbender/gists{/gist_id}","starred_url":"https://api.github.com/users/starbender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starbender/subscriptions","organizations_url":"https://api.github.com/users/starbender/orgs","repos_url":"https://api.github.com/users/starbender/repos","events_url":"https://api.github.com/users/starbender/events{/privacy}","received_events_url":"https://api.github.com/users/starbender/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-14T19:50:24Z","updated_at":"2016-05-02T14:04:26Z","closed_at":null,"body":"Looks like there are two properties being sent to Nova to create a Flavor which it doesn't like. \r\nOS-FLV-DISABLED:disabled and public\r\n\r\nGetting the following error: \r\n`Additional properties are not allowed (u'OS-FLV-DISABLED:disabled', u'public' were unexpected), status=400, status-code=BAD_REQUEST}\r\n`\r\nUsing the following code.\r\n```\r\nFlavor flavor = os.compute().flavors()\r\n                .create(\"name\",512,1,10,0,0,0f,true);\r\n\r\n```\r\nConnecting to a v2.0 endpoint.\r\n\r\nI can't tell if this is a version problem of API I'm connecting to or not."},"comment":{"url":"https://api.github.com/repos/gondor/openstack4j/issues/comments/216244371","html_url":"https://github.com/gondor/openstack4j/issues/573#issuecomment-216244371","issue_url":"https://api.github.com/repos/gondor/openstack4j/issues/573","id":216244371,"user":{"login":"vinodborole","id":3897901,"avatar_url":"https://avatars.githubusercontent.com/u/3897901?v=3","gravatar_id":"","url":"https://api.github.com/users/vinodborole","html_url":"https://github.com/vinodborole","followers_url":"https://api.github.com/users/vinodborole/followers","following_url":"https://api.github.com/users/vinodborole/following{/other_user}","gists_url":"https://api.github.com/users/vinodborole/gists{/gist_id}","starred_url":"https://api.github.com/users/vinodborole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinodborole/subscriptions","organizations_url":"https://api.github.com/users/vinodborole/orgs","repos_url":"https://api.github.com/users/vinodborole/repos","events_url":"https://api.github.com/users/vinodborole/events{/privacy}","received_events_url":"https://api.github.com/users/vinodborole/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T14:04:26Z","updated_at":"2016-05-02T14:04:26Z","body":"@elikraja  i am able to create it with o4j. My openstack version is Juno\r\n\r\nMy code:\r\n\r\n     public static OSClient buildACIClient(){\r\n        return OSFactory.builder().endpoint(authURL).credentials(username, password).tenantId(tenantID).useNonStrictSSLClient(true).perspective(Facing.ADMIN).authenticate();\r\n    }\r\n\r\n    private static void createFlavor(OSClient client) {\r\n        Flavor flavor = client.compute().flavors().create(\"deleteme\",512,1,10,0,0,1.0f,true);\r\n        System.out.println(flavor.getId());\r\n    }\r\n\r\n\r\n\r\nINFO: 1 * Sending client request on thread main\r\n1 > POST http://10.193.180.230:8774/v2/8be60cc30edc44978d24d51ce5f8d9da/flavors\r\n1 > Accept: application/json\r\n1 > Content-Type: application/json\r\n1 > User-Agent: OpenStack4j / OpenStack Client\r\n1 > X-Auth-Token: 97115bf8a85f41ddb4a203d8f5268e8b\r\n{\r\n  \"flavor\" : {\r\n    \"name\" : \"deleteme\",\r\n    \"ram\" : 512,\r\n    \"vcpus\" : 1,\r\n    \"disk\" : 10,\r\n    \"swap\" : 0,\r\n    \"public\" : true,\r\n    \"OS-FLV-EXT-DATA:ephemeral\" : 0,\r\n    \"rxtx_factor\" : 1.0,\r\n    \"OS-FLV-DISABLED:disabled\" : false,\r\n    \"os-flavor-access:is_public\" : true\r\n  }\r\n}\r\n\r\nMay 02, 2016 7:32:12 PM org.glassfish.jersey.filter.LoggingFilter log\r\nINFO: 2 * Client response received on thread main\r\n2 < 200\r\n2 < Connection: keep-alive\r\n2 < Content-Length: 533\r\n2 < Content-Type: application/json\r\n2 < Date: Mon, 02 May 2016 14:02:12 GMT\r\n2 < X-Compute-Request-Id: req-345c75fa-e688-4f34-9d1e-d0f15bed9260\r\n{\"flavor\": {\"name\": \"deleteme\", \"links\": [{\"href\": \"http://10.193.180.230:8774/v2/8be60cc30edc44978d24d51ce5f8d9da/flavors/b2d0e9da-566b-4084-b60f-a3aefc9cf5b7\", \"rel\": \"self\"}, {\"href\": \"http://10.193.180.230:8774/8be60cc30edc44978d24d51ce5f8d9da/flavors/b2d0e9da-566b-4084-b60f-a3aefc9cf5b7\", \"rel\": \"bookmark\"}], \"ram\": 512, \"OS-FLV-DISABLED:disabled\": false, \"vcpus\": 1, \"swap\": \"\", \"os-flavor-access:is_public\": true, \"rxtx_factor\": 1.0, \"OS-FLV-EXT-DATA:ephemeral\": 0, \"disk\": 10, \"id\": \"b2d0e9da-566b-4084-b60f-a3aefc9cf5b7\"}}"}}