{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/1138","repository_url":"https://api.github.com/repos/vmware/docker-volume-vsphere","labels_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/1138/labels{/name}","comments_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/1138/comments","events_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/1138/events","html_url":"https://github.com/vmware/docker-volume-vsphere/issues/1138","id":218656900,"number":1138,"title":"[Multi-ESX] Confusing difference in SingleNode vs MultiNode behavior after config init","user":{"login":"ashahi1","id":23107823,"avatar_url":"https://avatars2.githubusercontent.com/u/23107823?v=3","gravatar_id":"","url":"https://api.github.com/users/ashahi1","html_url":"https://github.com/ashahi1","followers_url":"https://api.github.com/users/ashahi1/followers","following_url":"https://api.github.com/users/ashahi1/following{/other_user}","gists_url":"https://api.github.com/users/ashahi1/gists{/gist_id}","starred_url":"https://api.github.com/users/ashahi1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashahi1/subscriptions","organizations_url":"https://api.github.com/users/ashahi1/orgs","repos_url":"https://api.github.com/users/ashahi1/repos","events_url":"https://api.github.com/users/ashahi1/events{/privacy}","received_events_url":"https://api.github.com/users/ashahi1/received_events","type":"User","site_admin":false},"labels":[{"id":310972922,"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/labels/kind/enhancement","name":"kind/enhancement","color":"84b6eb","default":false},{"id":326563811,"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/labels/P0","name":"P0","color":"006b75","default":false}],"state":"open","locked":false,"assignee":{"login":"lipingxue","id":4754483,"avatar_url":"https://avatars0.githubusercontent.com/u/4754483?v=3","gravatar_id":"","url":"https://api.github.com/users/lipingxue","html_url":"https://github.com/lipingxue","followers_url":"https://api.github.com/users/lipingxue/followers","following_url":"https://api.github.com/users/lipingxue/following{/other_user}","gists_url":"https://api.github.com/users/lipingxue/gists{/gist_id}","starred_url":"https://api.github.com/users/lipingxue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lipingxue/subscriptions","organizations_url":"https://api.github.com/users/lipingxue/orgs","repos_url":"https://api.github.com/users/lipingxue/repos","events_url":"https://api.github.com/users/lipingxue/events{/privacy}","received_events_url":"https://api.github.com/users/lipingxue/received_events","type":"User","site_admin":false},"assignees":[{"login":"lipingxue","id":4754483,"avatar_url":"https://avatars0.githubusercontent.com/u/4754483?v=3","gravatar_id":"","url":"https://api.github.com/users/lipingxue","html_url":"https://github.com/lipingxue","followers_url":"https://api.github.com/users/lipingxue/followers","following_url":"https://api.github.com/users/lipingxue/following{/other_user}","gists_url":"https://api.github.com/users/lipingxue/gists{/gist_id}","starred_url":"https://api.github.com/users/lipingxue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lipingxue/subscriptions","organizations_url":"https://api.github.com/users/lipingxue/orgs","repos_url":"https://api.github.com/users/lipingxue/repos","events_url":"https://api.github.com/users/lipingxue/events{/privacy}","received_events_url":"https://api.github.com/users/lipingxue/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/milestones/13","html_url":"https://github.com/vmware/docker-volume-vsphere/milestone/13","labels_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/milestones/13/labels","id":2417197,"number":13,"title":"0.14","description":"","creator":{"login":"pdhamdhere","id":16676511,"avatar_url":"https://avatars0.githubusercontent.com/u/16676511?v=3","gravatar_id":"","url":"https://api.github.com/users/pdhamdhere","html_url":"https://github.com/pdhamdhere","followers_url":"https://api.github.com/users/pdhamdhere/followers","following_url":"https://api.github.com/users/pdhamdhere/following{/other_user}","gists_url":"https://api.github.com/users/pdhamdhere/gists{/gist_id}","starred_url":"https://api.github.com/users/pdhamdhere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdhamdhere/subscriptions","organizations_url":"https://api.github.com/users/pdhamdhere/orgs","repos_url":"https://api.github.com/users/pdhamdhere/repos","events_url":"https://api.github.com/users/pdhamdhere/events{/privacy}","received_events_url":"https://api.github.com/users/pdhamdhere/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":16,"state":"open","created_at":"2017-03-28T17:02:08Z","updated_at":"2017-04-20T18:37:05Z","due_on":"2017-04-28T07:00:00Z","closed_at":null},"comments":10,"created_at":"2017-04-01T01:36:10Z","updated_at":"2017-04-21T12:06:07Z","closed_at":null,"body":"Each time, after initializing SingleNode mode, vm-group ls will always initially list  _DEFAULT tenant unless user creates new tenant.\r\nWhereas for MultiNode mode, after initializing MultiNode mode, vm-group ls may also show tenants other than _DEFAULT which might have been created from different ESXs. \r\nThis can \"may-be\" create confusion for the user.\r\n\r\n---------------------------------------------------------------------\r\n\r\nPosted the output below to make things a bit clear.\r\n\r\n- Configured SingleNode config on ESX-1 :\r\n```\r\n[root@sc-rdops-vm06-dhcp-162-163:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py config init --local\r\nCreating new DB at /etc/vmware/vmdkops/auth-db\r\n[root@sc-rdops-vm06-dhcp-162-163:~]\r\n\r\n```\r\n- Created a tenant\r\n```\r\n[root@sc-rdops-vm06-dhcp-162-163:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group create --name=tenant_new\r\nvm-group create succeeded\r\n[root@sc-rdops-vm06-dhcp-162-163:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group ls\r\nUuid                                  Name        Description                 Default_datastore  VM_list\r\n------------------------------------  ----------  --------------------------  -----------------  -------\r\n11111111-1111-1111-1111-111111111111  _DEFAULT    This is a default vm-group\r\nf41a97dd-75d8-4591-9dea-132bc299e2da  tenant_new\r\n\r\n```\r\n- Removed SingleNode mode and I do not see the user created tenant\r\n```\r\n[root@sc-rdops-vm06-dhcp-162-163:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py config rm --local --confirm\r\nMoved /etc/vmware/vmdkops/auth-db to backup file /etc/vmware/vmdkops/auth-db.bak_Sat_Apr__1_00:32:46_2017\r\n\r\n```\r\n- Again initialized SingleNode mode and vm-group ls only shows _DEFAULT tenant\r\n```\r\n[root@sc-rdops-vm06-dhcp-162-163:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group ls\r\nUuid                                  Name      Description                 Default_datastore  VM_list\r\n------------------------------------  --------  --------------------------  -----------------  -------\r\n11111111-1111-1111-1111-111111111111  _DEFAULT  This is a default vm-group\r\n\r\n```\r\n\r\n--------------\r\n\r\nAfter removing singleNode mode, initialized MutliNode mode and did admin-cli vm-group ls:\r\n\r\n```\r\n[root@sc-rdops-vm06-dhcp-162-163:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py config init --datastore=sharedVmfs-0\r\nCreating a symlink to /vmfs/volumes/sharedVmfs-0/dockvols/vmdkops_config.db at /etc/vmware/vmdkops/auth-db\r\n[root@sc-rdops-vm06-dhcp-162-163:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group ls\r\nUuid                                  Name          Description                        Default_datastore  VM_list\r\n------------------------------------  ------------  ---------------------------------  -----------------  ------------\r\n11111111-1111-1111-1111-111111111111  _DEFAULT      New description of default tenant\r\ned00d8a9-3709-4391-b7ed-333f0b5d41b1  new-vmgroup1  Hello from vmgroup1                vsanDatastore      VM1_163_vsan\r\n\r\n```\r\n\r\nI do see tenants other than _DEFAULT tenant which can confuse the user.\r\n"},"comment":{"url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/comments/296173422","html_url":"https://github.com/vmware/docker-volume-vsphere/issues/1138#issuecomment-296173422","issue_url":"https://api.github.com/repos/vmware/docker-volume-vsphere/issues/1138","id":296173422,"user":{"login":"govint","id":15854712,"avatar_url":"https://avatars0.githubusercontent.com/u/15854712?v=3","gravatar_id":"","url":"https://api.github.com/users/govint","html_url":"https://github.com/govint","followers_url":"https://api.github.com/users/govint/followers","following_url":"https://api.github.com/users/govint/following{/other_user}","gists_url":"https://api.github.com/users/govint/gists{/gist_id}","starred_url":"https://api.github.com/users/govint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/govint/subscriptions","organizations_url":"https://api.github.com/users/govint/orgs","repos_url":"https://api.github.com/users/govint/repos","events_url":"https://api.github.com/users/govint/events{/privacy}","received_events_url":"https://api.github.com/users/govint/received_events","type":"User","site_admin":false},"created_at":"2017-04-21T12:06:06Z","updated_at":"2017-04-21T12:06:06Z","body":"Just asking, why does the user need to remove the DB, would a \"reset\" option be sufficient to get the DB to a known initial state?\r\n\r\nAnd can DB removal (for local nodes) be tied to VIB removal?"}}
{"actor":{"display_login":"govint"}}