{"action":"created","issue":{"url":"https://api.github.com/repos/juju/juju/issues/7835","repository_url":"https://api.github.com/repos/juju/juju","labels_url":"https://api.github.com/repos/juju/juju/issues/7835/labels{/name}","comments_url":"https://api.github.com/repos/juju/juju/issues/7835/comments","events_url":"https://api.github.com/repos/juju/juju/issues/7835/events","html_url":"https://github.com/juju/juju/pull/7835","id":255813298,"number":7835,"title":"Add-Model for CAAS Clouds","user":{"login":"mikemccracken","id":1768106,"avatar_url":"https://avatars1.githubusercontent.com/u/1768106?v=4","gravatar_id":"","url":"https://api.github.com/users/mikemccracken","html_url":"https://github.com/mikemccracken","followers_url":"https://api.github.com/users/mikemccracken/followers","following_url":"https://api.github.com/users/mikemccracken/following{/other_user}","gists_url":"https://api.github.com/users/mikemccracken/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemccracken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemccracken/subscriptions","organizations_url":"https://api.github.com/users/mikemccracken/orgs","repos_url":"https://api.github.com/users/mikemccracken/repos","events_url":"https://api.github.com/users/mikemccracken/events{/privacy}","received_events_url":"https://api.github.com/users/mikemccracken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-07T04:43:25Z","updated_at":"2017-09-10T23:22:39Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/juju/juju/pulls/7835","html_url":"https://github.com/juju/juju/pull/7835","diff_url":"https://github.com/juju/juju/pull/7835.diff","patch_url":"https://github.com/juju/juju/pull/7835.patch"},"body":"Adds the ability to create a new model in a CAAS cloud that has been\r\nregistered to an existing controller.\r\n\r\nCreates a minimal model config, does not currently use existing\r\nmodelmanager modelconfigcreator, which has some IAAS-specific parts.\r\n\r\nAdds CloudIsCAAS function to the cloud package to have one location to\r\ndetermine if a cloud is a CAAS cloud type based on the type string\r\n(which may be e.g. \"kubernetes\" or \"dcos\" etc)\r\n\r\nChanges NewModel to not require CAAS model clouds to match the\r\ncontroller's cloud, because the controller will be on an IAAS cloud in\r\nthe initial version of CAAS support. Eventually we may bootstrap a\r\ncontroller onto the CAAS cloud itself.\r\n\r\nChanges some TODOs which reference (unfortunately) former contributors.\r\n\r\n\r\n## QA steps\r\nIf you've added a CAAS cloud with `JUJU_DEV_FEATURE_FLAGS=caas,cross-model,developer-mode juju --debug add-caas kubernetes myk8scloud`\r\n\r\nthen this will add a model to that cloud:\r\n```\r\nJUJU_DEV_FEATURE_FLAGS=caas,cross-model,developer-mode juju --debug add-model caastester myk8scloud\r\n```\r\nverify that it's there with `juju models`.\r\n\r\n## Documentation changes\r\n\r\nWill require doc changes to \"add-model\" command once we remove the feature flag."},"comment":{"url":"https://api.github.com/repos/juju/juju/issues/comments/328379617","html_url":"https://github.com/juju/juju/pull/7835#issuecomment-328379617","issue_url":"https://api.github.com/repos/juju/juju/issues/7835","id":328379617,"user":{"login":"mikemccracken","id":1768106,"avatar_url":"https://avatars1.githubusercontent.com/u/1768106?v=4","gravatar_id":"","url":"https://api.github.com/users/mikemccracken","html_url":"https://github.com/mikemccracken","followers_url":"https://api.github.com/users/mikemccracken/followers","following_url":"https://api.github.com/users/mikemccracken/following{/other_user}","gists_url":"https://api.github.com/users/mikemccracken/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemccracken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemccracken/subscriptions","organizations_url":"https://api.github.com/users/mikemccracken/orgs","repos_url":"https://api.github.com/users/mikemccracken/repos","events_url":"https://api.github.com/users/mikemccracken/events{/privacy}","received_events_url":"https://api.github.com/users/mikemccracken/received_events","type":"User","site_admin":false},"created_at":"2017-09-10T23:22:39Z","updated_at":"2017-09-10T23:22:39Z","author_association":"MEMBER","body":"Just a note - add-model does not check the 'caas' feature flag to add a caas model, because you can only create caas models on caas clouds, and 'add-caas' does check the feature flag on the client side.\r\n\r\nThe AddModel function in state also checks the flag on the controller side, so if we somehow have a caas cloud on a controller with it un-set, add-model will return an error."}}
{"actor":{"display_login":"mikemccracken"}}