{"action":"created","issue":{"url":"https://api.github.com/repos/apache/cloudstack/issues/1771","repository_url":"https://api.github.com/repos/apache/cloudstack","labels_url":"https://api.github.com/repos/apache/cloudstack/issues/1771/labels{/name}","comments_url":"https://api.github.com/repos/apache/cloudstack/issues/1771/comments","events_url":"https://api.github.com/repos/apache/cloudstack/issues/1771/events","html_url":"https://github.com/apache/cloudstack/pull/1771","id":191244338,"number":1771,"title":"CLOUDSTACK-9611: Dedicating a Guest VLAN range to Project does not work.","user":{"login":"nitin-maharana","id":12583725,"avatar_url":"https://avatars.githubusercontent.com/u/12583725?v=3","gravatar_id":"","url":"https://api.github.com/users/nitin-maharana","html_url":"https://github.com/nitin-maharana","followers_url":"https://api.github.com/users/nitin-maharana/followers","following_url":"https://api.github.com/users/nitin-maharana/following{/other_user}","gists_url":"https://api.github.com/users/nitin-maharana/gists{/gist_id}","starred_url":"https://api.github.com/users/nitin-maharana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitin-maharana/subscriptions","organizations_url":"https://api.github.com/users/nitin-maharana/orgs","repos_url":"https://api.github.com/users/nitin-maharana/repos","events_url":"https://api.github.com/users/nitin-maharana/events{/privacy}","received_events_url":"https://api.github.com/users/nitin-maharana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-23T11:16:53Z","updated_at":"2016-12-09T08:08:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/cloudstack/pulls/1771","html_url":"https://github.com/apache/cloudstack/pull/1771","diff_url":"https://github.com/apache/cloudstack/pull/1771.diff","patch_url":"https://github.com/apache/cloudstack/pull/1771.patch"},"body":"Description:\r\n=========\r\n\r\nTrying to dedicate a guest VLAN range to an account fails. Either API documentation is wrong or code path needs to be corrected. If we pass both account and projectId parameters to the dedicateGuestVlanRange (which are not mentioned as mutually exclusive in API description) the API layer throws error saying both are mutually exclusive.\r\n\r\nSteps to Reproduce:\r\n===============\r\nCreate an account. Create a project in that account.\r\n\r\nGo to Admin account and change the view to the above project.\r\n\r\nNavigate to Infrastructure -> Zone -> Physical Network -> Guest -> Dedicate Guest VLAN range.\r\n\r\nTry to dedicate the guest VLAN range from the project view for the account associated with the project.\r\n\r\nIt fails with error saying \"accountName and projectId are mutually exclusive\".\r\n\r\n![image](https://cloud.githubusercontent.com/assets/12583725/20559763/15fe55d8-b19c-11e6-9996-62602d269f10.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/12583725/20559765/1957af36-b19c-11e6-938f-e9c7c9eee987.png)\r\n\r\nExpected:\r\n=======\r\nThe VLAN range should get dedicated to the project account.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/12583725/20559787/33ef67b2-b19c-11e6-90fd-41c9c583efd9.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/12583725/20559789/376cae22-b19c-11e6-9755-ff1e7237fb21.png)\r\n\r\nResolution:\r\n========\r\nChanged the account field of API to optional.\r\nEven if the account name is passed while adding from a particular project view, then it is ignored in API.\r\n\r\nNotes:\r\n=====\r\nIf we do the dedication from default view then it works fine as no projectId is associated over there."},"comment":{"url":"https://api.github.com/repos/apache/cloudstack/issues/comments/265956916","html_url":"https://github.com/apache/cloudstack/pull/1771#issuecomment-265956916","issue_url":"https://api.github.com/repos/apache/cloudstack/issues/1771","id":265956916,"user":{"login":"blueorangutan","id":16489489,"avatar_url":"https://avatars.githubusercontent.com/u/16489489?v=3","gravatar_id":"","url":"https://api.github.com/users/blueorangutan","html_url":"https://github.com/blueorangutan","followers_url":"https://api.github.com/users/blueorangutan/followers","following_url":"https://api.github.com/users/blueorangutan/following{/other_user}","gists_url":"https://api.github.com/users/blueorangutan/gists{/gist_id}","starred_url":"https://api.github.com/users/blueorangutan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueorangutan/subscriptions","organizations_url":"https://api.github.com/users/blueorangutan/orgs","repos_url":"https://api.github.com/users/blueorangutan/repos","events_url":"https://api.github.com/users/blueorangutan/events{/privacy}","received_events_url":"https://api.github.com/users/blueorangutan/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T08:08:02Z","updated_at":"2016-12-09T08:08:02Z","body":"@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress."}}
{"actor":{"display_login":"blueorangutan"}}