{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/32835","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/32835/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/32835/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/32835/events","html_url":"https://github.com/ansible/ansible/pull/32835","id":273280439,"number":32835,"title":"Add additional mapping attributes for VM/Template registration","user":{"login":"maorlipchuk","id":7034637,"avatar_url":"https://avatars3.githubusercontent.com/u/7034637?v=4","gravatar_id":"","url":"https://api.github.com/users/maorlipchuk","html_url":"https://github.com/maorlipchuk","followers_url":"https://api.github.com/users/maorlipchuk/followers","following_url":"https://api.github.com/users/maorlipchuk/following{/other_user}","gists_url":"https://api.github.com/users/maorlipchuk/gists{/gist_id}","starred_url":"https://api.github.com/users/maorlipchuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maorlipchuk/subscriptions","organizations_url":"https://api.github.com/users/maorlipchuk/orgs","repos_url":"https://api.github.com/users/maorlipchuk/repos","events_url":"https://api.github.com/users/maorlipchuk/events{/privacy}","received_events_url":"https://api.github.com/users/maorlipchuk/received_events","type":"User","site_admin":false},"labels":[{"id":686214011,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.5","name":"affects_2.5","color":"ededed","default":false},{"id":530145226,"url":"https://api.github.com/repos/ansible/ansible/labels/ci_verified","name":"ci_verified","color":"b60205","default":false},{"id":61528803,"url":"https://api.github.com/repos/ansible/ansible/labels/cloud","name":"cloud","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-13T00:28:08Z","updated_at":"2017-11-13T00:31:59Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ansible/ansible/pulls/32835","html_url":"https://github.com/ansible/ansible/pull/32835","diff_url":"https://github.com/ansible/ansible/pull/32835.diff","patch_url":"https://github.com/ansible/ansible/pull/32835.patch"},"body":"SUMMARY\r\n\r\nAdd additional mapping attributes for VM/Template registration\r\n\r\nISSUE TYPE\r\n\r\nFeature Pull Request\r\nCOMPONENT NAME\r\n\r\nlib/ansible/modules/cloud/ovirt/ovirt_templates.py\r\nlib/ansible/modules/cloud/ovirt/ovirt_vms.py\r\n\r\nANSIBLE VERSION\r\n\r\nansible 2.4.0\r\nADDITIONAL INFORMATION\r\n\r\nAdd additional mappings params for entity registration\r\n\r\nAs part of the effort to support DR with oVirt\r\nthe \"Register\" operation is being added with a new mapping parameter\r\nthat describes the configuration of the registration.\r\n\r\nThe idea of supporting DR site to site in oVirt is to have 2 active\r\nsetups using storage replication between the primary setup and the\r\nsecondary setup.\r\nBoth setups will have active DCs, clusters, and hosts, although those\r\nwill not be identical.\r\nThe user can define a mapping which will be used to recover its setup.\r\n\r\nEach mapping can be used to map any entity's attribute stored in the OVF\r\nwith its correlated entity.\r\nFor example, there could be a primary setup with an entity configured on cluster A.\r\nWe also keep an active secondary setup which only have cluster B.\r\nCluster B is compatible for that entity and in case of a DR scenario theoretically\r\nthe storage domain can be imported to the secondary setup and the use can\r\nregister the entity to cluster B.\r\n\r\nIn that case, we can automate the recovery process by defining a cluster mapping,\r\nso once the entity will be registered its OVF will indicate it belongs to\r\ncluster A but the mapping which will be sent will indicate that cluster B should\r\nbe valid for every thing that is configured on cluster A.\r\nThe engine should do the switch, and register the entity to cluster B in the\r\nsecondary site.\r\n\r\nCluster mapping is just one example.\r\nThe following list describes the different mappings which were\r\nintroduced:\r\nLUN mapping\r\nRole mapping\r\nPermissions mapping\r\nAffinity group mapping\r\nAffinity label mapping\r\n\r\nEach mapping will be used for its specific OVF's data once the register operation\r\nwill take place in the engine."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/343781794","html_url":"https://github.com/ansible/ansible/pull/32835#issuecomment-343781794","issue_url":"https://api.github.com/repos/ansible/ansible/issues/32835","id":343781794,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2017-11-13T00:31:59Z","updated_at":"2017-11-13T00:31:59Z","author_association":"CONTRIBUTOR","body":"cc @machacekondra @mwperina\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: notify --->"}}
{"actor":{"display_login":"ansibot"}}