vmware-archive / vsphere-flocker-driver

vSphere Flocker driver
Other
24 stars 16 forks source link

Incompatible with CentOS 6, 7 #26

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hello,

I have installed Flocker 1.11 using the official documentation on a CentOS7 controller and agent. I have succesfully installed the vsphere-flocker-driver. Whenever I create a volume I can see the .vmdk file being created in vSphere, however the vpshere-flocker-driver is unable to attach the volume to my node. Apparantly the vsphere-flocker-plugin relies on the executable scsiinfo to be present, which is not installable in CentOS 6 and 7.

Any chances of a workaround or fix? According to the sg3_utils package maintainer, the scsiinfo command is outdated.

Here is a tail of my /var/log/flocker/vsphere.log

2016-04-26 10:06:17,210 - vsphere_blockdevice - DEBUG - _list_vsphere_volumes: Found 1 vSphere volumes: 6000c29886bfda7f79a12abbf6494597
2016-04-26 10:06:17,210 - vsphere_blockdevice - DEBUG - list_volumes: vSphere Volumes found 1: [BlockDeviceVolume(blockdevice_id=u'6000c29886bfda7f79a12abbf6494597', dataset_id=UUID('ea1e7428-fa0d-4990-9c4b-3da808189fe6'), attached_to=u'50264ebb-ef3e-5fd3-0eea-41f01ddbf839', size=81604378624)]
2016-04-26 10:06:17,210 - vsphere_blockdevice - DEBUG - list_volumes: List volumes finished. Took 0.712903022766 seconds
2016-04-26 10:06:17,405 - vsphere_blockdevice - DEBUG - _list_vsphere_volumes: Found 1 VMs
2016-04-26 10:06:17,629 - vsphere_blockdevice - DEBUG - _wait_for_tasks: (vim.host.DatastoreBrowser.SearchResults) [
   (vim.host.DatastoreBrowser.SearchResults) {
      dynamicType = <unset>,
      dynamicProperty = (vmodl.DynamicProperty) [],
      datastore = 'vim.Datastore:datastore-10686',
      folderPath = '[Internal_Flocker_POC] FLOCKER/',
      file = (vim.host.DatastoreBrowser.FileInfo) [
         (vim.host.DatastoreBrowser.VmDiskInfo) {
            dynamicType = <unset>,
            dynamicProperty = (vmodl.DynamicProperty) [],
            path = 'ea1e7428-fa0d-4990-9c4b-3da808189fe6.vmdk',
            fileSize = 0L,
            modification = <unset>,
            owner = <unset>,
            diskType = vim.vm.device.VirtualDisk.FlatVer2BackingInfo,
            capacityKb = 79691776L,
            hardwareVersion = 11,
            controllerType = <unset>,
            diskExtents = (str) [],
            thin = <unset>
         }
      ]
   }
] 
2016-04-26 10:06:17,637 - vsphere_blockdevice - DEBUG - _find_virtual_disks: Virtual Disks: (vim.host.DatastoreBrowser.FileInfo) [
   (vim.host.DatastoreBrowser.VmDiskInfo) {
      dynamicType = <unset>,
      dynamicProperty = (vmodl.DynamicProperty) [],
      path = 'ea1e7428-fa0d-4990-9c4b-3da808189fe6.vmdk',
      fileSize = 0L,
      modification = <unset>,
      owner = <unset>,
      diskType = vim.vm.device.VirtualDisk.FlatVer2BackingInfo,
      capacityKb = 79691776L,
      hardwareVersion = 11,
      controllerType = <unset>,
      diskExtents = (str) [],
      thin = <unset>
   }
]
2016-04-26 10:06:17,749 - vsphere_blockdevice - DEBUG - _list_vsphere_volumes: Found 1 vSphere volumes: 6000c29886bfda7f79a12abbf6494597
2016-04-26 10:06:17,749 - vsphere_blockdevice - DEBUG - _find_all_disk_devices: Executing lsblk -d -o KNAME,TYPE
2016-04-26 10:06:17,756 - vsphere_blockdevice - DEBUG - _find_all_disk_devices: KNAME TYPE
sda   disk
sdb   disk
sr0   rom
loop0 loop
loop1 loop

2016-04-26 10:06:17,756 - vsphere_blockdevice - DEBUG - _find_all_disk_devices: ['KNAME TYPE', 'sda   disk', 'sdb   disk', 'sr0   rom', 'loop0 loop', 'loop1 loop', '']
2016-04-26 10:06:17,756 - vsphere_blockdevice - DEBUG - _find_all_disk_devices: ['sda   disk', 'sdb   disk', 'sr0   rom', 'loop0 loop', 'loop1 loop']
2016-04-26 10:06:17,756 - vsphere_blockdevice - DEBUG - _find_all_disk_devices: Devices found: /dev/sda./dev/sdb
2016-04-26 10:06:17,756 - vsphere_blockdevice - DEBUG - get_device_path: Executing scsiinfo -s /dev/sda 
2016-04-26 10:06:17,762 - vsphere_blockdevice - ERROR - get_device_path: Error occured for scsiinfo -s /dev/sda: [Errno 2] No such file or directory
2016-04-26 10:06:17,762 - vsphere_blockdevice - DEBUG - get_device_path: Executing scsiinfo -s /dev/sdb 
2016-04-26 10:06:17,767 - vsphere_blockdevice - ERROR - get_device_path: Error occured for scsiinfo -s /dev/sdb: [Errno 2] No such file or directory
ghost commented 8 years ago

Ugh, I just noticed there's a pull-request open for CentOS support. Disregard please :)