Closed jm66 closed 8 years ago
Can you please share the "/var/log/flocker/vsphere.log"?
Will do, need to massage the log since stores passwords in plain text.
Hi @pratikvgupta found something interesting here:
016-02-02 12:27:37,646 - vsphere_blockdevice - DEBUG - _list_vsphere_volumes: {u'6000c29a4c05d81eac0de98b3483a568': <vsphere_flocker_plugin.vsphere_blockdevice.VsphereBlockDeviceVolume instance at 0x7f9195843c68>}
2016-02-02 12:27:37,658 - vsphere_blockdevice - DEBUG - _find_all_disk_devices: KNAME TYPE
fd0 disk
sda disk
sdb disk
sr0 rom
2016-02-02 12:27:37,658 - vsphere_blockdevice - DEBUG - _find_all_disk_devices: ['KNAME TYPE', 'fd0 disk', 'sda disk', 'sdb disk', 'sr0 rom', '']
2016-02-02 12:27:37,658 - vsphere_blockdevice - DEBUG - _find_all_disk_devices: ['fd0 disk', 'sda disk', 'sdb disk', 'sr0 rom']
2016-02-02 12:27:37,658 - vsphere_blockdevice - DEBUG - _find_all_disk_devices: ['/dev/fd0', '/dev/sda', '/dev/sdb']
2016-02-02 12:27:37,664 - vsphere_blockdevice - ERROR - get_device_path: Error occured for scsiinfo -s /dev/fd0
2016-02-02 12:27:37,669 - vsphere_blockdevice - DEBUG - get_device_path:
Serial Number '6000c294f6b1c9592661c1f1e4ef7e47'
2016-02-02 12:27:37,669 - vsphere_blockdevice - DEBUG - get_device_path: '6000c294f6b1c9592661c1f1e4ef7e47'
2016-02-02 12:27:37,669 - vsphere_blockdevice - DEBUG - get_device_path: 6000c294f6b1c9592661c1f1e4ef7e47
2016-02-02 12:27:37,669 - vsphere_blockdevice - DEBUG - get_device_path: 6000c29a4c05d81eac0de98b3483a568
2016-02-02 12:27:37,674 - vsphere_blockdevice - DEBUG - get_device_path:
Serial Number '6000c29a4c05d81eac0de98b3483a568'
2016-02-02 12:27:37,674 - vsphere_blockdevice - DEBUG - get_device_path: '6000c29a4c05d81eac0de98b3483a568'
2016-02-02 12:27:37,674 - vsphere_blockdevice - DEBUG - get_device_path: 6000c29a4c05d81eac0de98b3483a568
2016-02-02 12:27:37,675 - vsphere_blockdevice - DEBUG - get_device_path: 6000c29a4c05d81eac0de98b3483a568
2016-02-02 12:27:37,675 - vsphere_blockdevice - DEBUG - get_device_path: Found device path : /dev/sdb
2016-02-02 12:27:40,809 - vsphere_blockdevice - DEBUG - list_volumes: starting list volumes
Also, it's taking more than 50s to list volumes:
2016-02-02 12:28:48,080 - vsphere_blockdevice - DEBUG - _list_vsphere_volumes: {u'6000c29a4c05d81eac0de98b3483a568': <vsphere_flocker_plugin.vsphere_blockdevice.VsphereBlockDeviceVolume instance at 0x7f91958460e0>}
2016-02-02 12:28:48,080 - vsphere_blockdevice - DEBUG - list_volumes: vsphere list_volumes: [BlockDeviceVolume(blockdevice_id=u'6000c29a4c05d81eac0de98b3483a568', dataset_id=UUID('27addb92-572c-401f-8722-8f08b3122505'), attached_to=u'vm-6332', size=81604378624)]
2016-02-02 12:28:48,081 - vsphere_blockdevice - DEBUG - list_volumes: 1454434060.81
2016-02-02 12:28:48,081 - vsphere_blockdevice - DEBUG - list_volumes: Took 67.2716050148 seconds
2016-02-02 12:28:48,111 - vsphere_blockdevice - DEBUG - list_volumes: starting list volumes
How can I shere the full log with you?
Can you upload the logs to some shared location like dropbox? I am not sure if github has some way to share logs.
I suspect the latency in listing volumes is due to huge inventory of VMs. And this may be the reason for timeouts while deploying container. I am thinking of a solution to restrict the search for the attached volumes only to the VMs provisioned on the datastore provided in config. Currently, it searches all VMs in VC.
Hi @pratikvgupta, just shared the log.
That makes sense, we have near 1500 VMs in our environment. Yes, limiting the scope of search sounds pretty good. Maybe using a ContainerView
or more sophisticated with PropertyCollector
?
Please, let me know how can I help.
HI @pratikvgupta, https://github.com/vmware/vsphere-flocker-driver/pull/6 was just an error I caught last week, but I haven't been able to properly deploy a container unfortunately. There seems to be a big lag between the vsphere plugin creating the disk in the datastore, presenting it to the VM and responding to docker engine so it times out. We have many VMs (1.4k+) and I see there are constant scans looking for flocker disks. I'm wondering wether this behaviour is related to what I'm seeing.
Let me describe a bit our environment:
vCenter
Datastore
Flocker VM
OS packages
OS services
agent.yml
The problem here is that when I run
docker run -v apples:/data --volume-driver flocker busybox sh -c "echo hello > /data/file.txt"
I get timeouts from the dataset agent. I'm not quite sure yet how thevsphere-flocker-driver
works but I'd appreciate any guidance from your end.Looking at the flocker-docker-plugin I get messages like these:
The flocker-control log looks like:
Querying datasets via Flocker API: