You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
Tried creating a volume using short-name - TestVol1. Volume got created on the datastore where vm resides (vsan datastore) and not on the default-datastore.
root@sc-rdops-vm02-dhcp-52-237:~# docker volume ls
DRIVER VOLUME NAME
root@sc-rdops-vm02-dhcp-52-237:~# docker volume create --driver=vsphere --name=TestVol1 -o size=1gb
TestVol1
root@sc-rdops-vm02-dhcp-52-237:~# docker volume ls
DRIVER VOLUME NAME
vsphere TestVol1@vsanDatastore
root@sc-rdops-vm02-dhcp-52-237:~#
[root@sc-rdops-vm18-dhcp-32-67:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py ls
Volume Datastore VM-Group Capacity Used Filesystem Policy Disk Format Attached-to Access Attach-as Created By Created Date
-------- ------------- -------- -------- ----- ---------- -------------- ----------- ----------- ---------- ---------------------- ------------ ------------------------
TestVol1 vsanDatastore _DEFAULT 1GB 112MB ext4 [VSAN default] thin detached read-write independent_persistent ubuntu-VM0.2 Fri Mar 17 18:44:17 2017
[root@sc-rdops-vm18-dhcp-32-67:~]
ashahi1
changed the title
[DEFAULT tenant] Volume is created on the datastore where vm resides and not on specified default-datatsore
[DEFAULT tenant] Volume is created on the datastore where vm resides and not on specified default-datastore
Mar 17, 2017
The purpose of _DEFAULT tenant being backward compatibility and allowing admin to use volumes without getting involved in tenancy; we don't expect user to set a default datastore to the default tenant. If VM belongs to default tenant, the current logic will always pick up the datastore where VM resides unless the user specifies fully qualified name of volume while creating a volume.
we don't expect user to set a default datastore to the default tenant.
there is no reason to further complicate the experience. "default datastore" can be set on any vm-group aka tenant (including default) an should behave the same on all vm-groups (including default)
Plus, there is a good use case for default DS in default tenant : I want every one in my org to put volumes on slow and cheap storage, unless they explicitly ask for something else
If VM belongs to default tenant, the current logic will always pick up the datastore where VM resides unless the user specifies fully qualified name of volume while creating a volume.
VM resides on vsan datastore.
Steps:
For user created tenant, specified --default-datastore is picked up during volume creation if volume name is specified using short name.
Steps and their output is as follows:
Logs:
docker-volume-vsphere.txt
vmdk_ops.txt
The text was updated successfully, but these errors were encountered: