Code Monkey home page Code Monkey logo

common-host-libs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

common-host-libs's Issues

incorrect host network reported when secondary IP is present on an interface

When a node has a secondary IP on an interface, the driver reports the wrong network for the host. This affects our master nodes that might have a secondary IP assigned via keepalived for the API server VIP in an on-premise cluster.

This could be worked around if we were able to define the discovery IP, as being discussed here: hpe-storage/csi-driver#50

[root@k8s01b ~]# ip a show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 56:6f:ac:17:00:75 brd ff:ff:ff:ff:ff:ff
    inet 192.168.133.74/26 brd 192.168.133.127 scope global noprefixroute eth0
       valid_lft forever preferred_lft forever
    inet 192.168.133.70/32 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::546f:acff:fe17:75/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

[root@k8s01b ~]# kubectl -n kube-system get hpenodeinfos -oyaml k8s01b.test.example.com                                                                                                             
apiVersion: storage.hpe.com/v1
kind: HPENodeInfo
metadata:
  creationTimestamp: "2019-11-07T21:40:02Z"
  generation: 1
  name: k8s01b.test.example.com
  resourceVersion: "5193"
  selfLink: /apis/storage.hpe.com/v1/hpenodeinfos/k8s01b.test.example.com
  uid: 27dc6a42-01a7-11ea-a4c0-566fac170006
spec:
  iqns:
  - iqn.1994-05.com.redhat:1c149c6d5933
  networks:
  - 192.168.133.70
  - 172.16.16.0
  - 10.244.0.0
  uuid: 02428b1a-4316-6b38-7330-31622e746573

Versus a node without the secondary IP:

[root@k8s01b ~]# kubectl -n kube-system get hpenodeinfos -oyaml k8s02b.example.com
apiVersion: storage.hpe.com/v1
kind: HPENodeInfo
metadata:
  creationTimestamp: "2019-11-07T21:40:02Z"
  generation: 1
  name: k8s02b.example.com
  resourceVersion: "5181"
  selfLink: /apis/storage.hpe.com/v1/hpenodeinfos/k8s02b.example.com
  uid: 27c8416d-01a7-11ea-a4c0-566fac170006
spec:
  iqns:
  - iqn.1994-05.com.redhat:1be8bf2231b
  networks:
  - 192.168.133.64
  - 172.16.16.0
  - 10.244.1.0
  uuid: 024266b3-af00-6b38-7330-32622e746573

Iscsid and multipathd don't get configured on first install

See

// Start service

and
err = linux.ServiceCommand(multipath, "start")

...
	// Start service
	err = linux.ServiceCommand(iscsi, "start")
	if err != nil {
		return err
	}

	err = SetIscsiRecommendations()
	if err != nil {
		return err
	}
...

In the iscsi code above the configuration file is edited after the service is already started with no reload, so the iscsid process will continue to use to old settings until the process is restarted.

noop disk scheduler not in RHEL 8

In RHEL 8, the noop disk scheduler has been removed.
The udev and the nimble json rules need updating to set the scheduler to none.

tunelinux.ConfigureMultipath not adapted to primera3par

Hi,

we are using the csi-driver with primera3par instead of nimble storage. During csi-driver execution in "node" mode, a call to tunelinux.ConfigureMultipath() is done. This function extends the multipath.conf file and and the "Nimble" configuration:

device {
        vendor               "Nimble"
        product              "Server"
        hardware_handler     "1 alua"
        path_checker         tur
        rr_weight            uniform
        rr_min_io_rq         1
        dev_loss_tmo         infinity
        fast_io_fail_tmo     5
        no_path_retry        30
        path_selector        "service-time 0"
        path_grouping_policy group_by_prio
        prio                 alua
        failback             immediate
    }

So, two issues as we are using primera3par and not nimble storage in our infrastructure, we do not have this in our multipath.conf, for us is just garbage that will not get used.

Would it be possible to avoid adding this Nimble configuration when Nimble storage is not being used? Wouldn't be necessary to have a "devices" default configuration created by csi driver in case of primera3par so an external source of configuration is not needed? We are using this in our case (as recommended by HPE):

device {
        prio                 alua
        vendor               "3PARdata VV"
        path_grouping_policy group_by_prio
        hardware_handler     "1 alua"
        failback             immediate
        fast_io_fail_tmo     10
        path_selector        "round-robin 0"
        product              "Server"
        no_path_retry        30
        path_checker         tur
        dev_loss_tmo         infinity
    }

Error while mounting volume, cannot discover without IP

Nimble Docker Volume Plugin: docker.io/store/nimblestorage/nimble:3.1.0
Nimble: 5.1.4.200-739124-opt
Docker Engine: 19.03.6

After i successfully created a volume, i cannot mount the volume because of an error saying that it cannot discover without IP.

$ docker volume create -d nimble --name huiwen
huiwen
$ docker run -it --rm -v huiwen:/data bash
docker: Error response from daemon: error while mounting volume '/var/lib/docker/plugins/97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5/rootfs': cannot discover without IP. Please sanity check host OS and array IP configuration, network, netmask and gateway.

Trace logs:

 level=info msg=\">>>>> POST /VolumeDriver.Capabilities - Volume Driver Capabilities\" file=\"server.go:1995\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=VolumeDriver.Capabilities file=\"capabilities.go:25\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"obtained volume driver scope as global\" file=\"plugin.go:149\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"HostContext :&{     [] [] }\" file=\"capabilities.go:32\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>> getProviderClient\" file=\"provider.go:85\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<< getProviderClient\" file=\"provider.go:91\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"Request: action=POST path=https://192.168.105.10:8443/container-provider/VolumeDriver.Capabilities\" file=\"client.go:173\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"response: 200 OK, length=40\" file=\"client.go:224\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=debug msg=\"About to decode the error response &{0x673460 0xc0000a1740 0x681320} into destination interface\" file=\"client.go:231\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=debug msg=\"/VolumeDriver.Capabilities: request=({Name: Opts:map[] ID: Host:0xc0000ea750 Preferences:map[] Scope:false User:0xc0002c2220 ReqID:}) response=(&{Capability:0xc000011080 Err:})\" file=\"capabilities.go:63\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=info msg=\"<<<<< POST /VolumeDriver.Capabilities - Volume Driver Capabilities 34.439015ms\" file=\"server.go:1995\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=info msg=\">>>>> POST /VolumeDriver.Get - Volume Driver Get\" file=\"server.go:1995\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=VolumeDriver.Get file=\"get.go:29\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"populateHostContextAndScope called\" file=\"handler.go:180\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"obtained volume driver scope as global\" file=\"plugin.go:149\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"getHostContext called\" file=\"host_handler.go:45\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"Body :{\\\"Name\\\":\\\"huiwen\\\"}\\n\" file=\"host_handler.go:52\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"HostContextCache present. Reading from it\" file=\"host_handler.go:61\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"Successfully read from cache.\" file=\"host_handler.go:65\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"host context in Plugin Req: &{000c29b8-37b5-756e-692d-766d73767233 uni-vmsvr30011 localhost 000c29b8-37b5-756e-692d-766d73767233 iscsi [0xc0003be060 0xc0003be0c0 0xc0003be120 0xc0003be180 0xc0003be1e0 0xc0003be240 0xc0003be300 0xc0003be480 0xc0003be4e0 0xc0003be5a0 0xc0003be600 0xc0003be660 0xc0003be6c0 0xc0003be720 0xc0003be780 0xc0003be7e0 0xc0003be840 0xc0003be8a0 0xc0003be900 0xc0003be960 0xc0003be9c0 0xc0003bea20 0xc0003beae0 0xc0003beb40 0xc0003beba0 0xc0003bec00 0xc0003bec60 0xc0003becc0 0xc0003bed20 0xc0003bed80 0xc0003bede0 0xc0003bee40 0xc0003beea0 0xc0003bef60 0xc0003befc0 0xc0003bf020 0xc0003bf080 0xc0003bf0e0 0xc0003bf1a0 0xc0003bf200] [0xc000496000] v0.0.0} Scope :false\" file=\"handler.go:190\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>> getProviderClient\" file=\"provider.go:85\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<< getProviderClient\" file=\"provider.go:91\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"Acquiring mutex lock for huiwen\" file=\"concurrent.go:44\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=debug msg=\"taken lock for volume huiwen in /VolumeDriver.Get\" file=\"get.go:49\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"Request: action=POST path=https://192.168.105.10:8443/container-provider/VolumeDriver.Get\" file=\"client.go:173\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"response: 200 OK, length=1265\" file=\"client.go:224\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=debug msg=\"About to decode the error response &{0x673460 0xc000376940 0x681320} into destination interface\" file=\"client.go:231\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>> FileExists for path /opt/hpe-storage/etc/chapid\" file=\"file.go:62\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< FileExists\" file=\"file.go:72\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"Request: action=GET path=http://unix/hosts\" file=\"client.go:173\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=info msg=\">>>>> GET /hosts - Hosts\" file=\"server.go:1995\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>> FileLoadGob called with /etc/hpe-storage/node.gob\" file=\"file.go:278\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< FileLoadGob\" file=\"file.go:287\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=info msg=\"<<<<< GET /hosts - Hosts 251.934µs\" file=\"server.go:1995\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"response: 200 OK, length=57\" file=\"client.go:224\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=debug msg=\"About to decode the error response &{0x673460 0xc00004b200 0x681320} into destination interface\" file=\"client.go:231\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"setting up chapi client with socket /opt/hpe-storage/etc/chapid\" file=\"chapiclient_linux.go:35\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"GetDeviceSerialNumber called with 3fb9963b9e82495a6c9ce900dfed38cb\" file=\"plugin_linux.go:126\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"GetMounts called\" file=\"chapiclient.go:460\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"cacheHostID called\" file=\"chapiclient.go:122\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"GetHostID called\" file=\"chapiclient.go:135\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"Request: action=GET path=http://unix/hosts\" file=\"client.go:173\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=info msg=\">>>>> GET /hosts - Hosts\" file=\"server.go:1995\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>> FileLoadGob called with /etc/hpe-storage/node.gob\" file=\"file.go:278\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< FileLoadGob\" file=\"file.go:287\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=info msg=\"<<<<< GET /hosts - Hosts 185.033µs\" file=\"server.go:1995\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"response: 200 OK, length=57\" file=\"client.go:224\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=debug msg=\"About to decode the error response &{0x673460 0xc00004b840 0x681320} into destination interface\" file=\"client.go:231\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"hostid obtained is :000c29b8-37b5-756e-692d-766d73767233\" file=\"chapiclient.go:156\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"getting mounts for serial Number xxx\" file=\"chapiclient.go:466\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"Request: action=GET path=http://unix/hosts/000c29b8-37b5-756e-692d-766d73767233/mounts/2xxx\" file=\"client.go:173\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=info msg=\">>>>> GET /hosts/000c29b8-37b5-756e-692d-766d73767233/mounts/2xxx - MountsOnHost\" file=\"server.go:1995\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>> getMountsOnHostForSerialNumber with serial number 2xxx\" file=\"handler_linux.go:354\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>> validateHost\" file=\"handler_linux.go:648\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>> FileLoadGob called with /etc/hpe-storage/node.gob\" file=\"file.go:278\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< FileLoadGob\" file=\"file.go:287\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"current host matches with id=000c29b8-37b5-756e-692d-766d73767233\" file=\"handler_linux.go:709\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"host= retrieved from id=:000c29b8-37b5-756e-692d-766d73767233\" file=\"handler_linux.go:662\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< validateHost\" file=\"handler_linux.go:663\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>> GetMounts, serialNumber: 2xxx\" file=\"chapidriver_linux.go:215\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>>> GetNimbleDmDevices called with 2xxx and lunID \" file=\"device.go:174\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"ExecCommandOutputWithTimeout called with dmsetup[ls --target multipath] 60\" file=\"cmd.go:35\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"process with pid: 20 finished successfully\" file=\"cmd.go:62\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace file=\"cmd.go:66\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=debug msg=\"Found 0 devices\" file=\"device.go:320\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<<< GetNimbleDmDevices\" file=\"device.go:326\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>> GetMountPointsForDevices, devices: []\" file=\"mount.go:89\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>> FileGetStringsWithPattern called with path: /proc/mounts Pattern: \" file=\"file.go:112\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< FileGetStringsWithPattern\" file=\"file.go:135\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< GetMountPointsForDevices\" file=\"mount.go:148\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< GetMounts\" file=\"chapidriver_linux.go:222\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< getMountsOnHostForSerialNumber\" file=\"handler_linux.go:374\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=info msg=\"<<<<< GET /hosts/000c29b8-37b5-756e-692d-766d73767233/mounts/2xxx - MountsOnHost 1.852641ms\" file=\"server.go:1995\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"response: 200 OK, length=14\" file=\"client.go:224\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=debug msg=\"About to decode the error response &{0x673460 0xc0001b20c0 0x681320} into destination interface\" file=\"client.go:231\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=debug msg=\"/VolumeDriver.Get: request=(&{Name:huiwen Opts:map[] ID: Host:0xc0000ea7e0 Preferences:map[] Scope:false User:0xc0003d6d20 ReqID:}) response=(&{ID: Name:huiwen Size:0 Description: InUse:false Published:false BaseSnapID: ParentVolID: Clone:false Config:map[] Metadata:[] SerialNumber:xxx AccessProtocol: Iqn:iqn.2007-11.com.nimblestorage:huiwen.docker-v5e5535c7956dd818.00001065.cb38eddf DiscoveryIP: MountPoint: Status:map[ApplicationCategory:Virtual Server Blocksize:4096 CachePinned:false CachingEnabled:true Connections:0 DedupeEnabled:false Description:Volume provisioned by Docker EncryptionCipher:none Folder:DOCKER-VOL-SHARED Group:GRP ID:065e5535c7956dd818000000000000000000001065 LimitIOPS:-1 LimitMBPS:-1 LimitVolPercentOfSize:100 PerfPolicy:DockerDefault Pool:default Serial:xxx SnapUsageMiB:0 Snapshots:[] ThinlyProvisioned:true VolSizeMiB:5120 VolUsageMiB:0 VolumeCollection:map[Description: Name:huiwen.docker ReplicationType:periodic_snapshot Schedules:[map[Days:all Repeat Until:23:59 Snapshot Every:1 days Snapshots To Retain:2 Starting At:03:00 Trigger:regular]]] VolumeName:huiwen.docker delayedCreate:true destroyOnDetach:false destroyOnRm:false filesystem:xfs inUse:false] Chap:<nil> Networks:[] ConnectionMode: LunID: TargetScope:volume IscsiSessions:[] FcSessions:[]})\" file=\"get.go:85\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5


 level=trace msg=\"initiating create filesystem xfs for volume (huiwen)\" file=\"mount.go:267\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>> AttachDevice called with []*model.Volume{(*model.Volume)(0xc000243080)}\" file=\"chapiclient.go:247\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"cacheHostID called\" file=\"chapiclient.go:122\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"Request: action=POST path=http://unix/hosts/000c29b8-37b5-756e-692d-766d73767233/devices\" file=\"client.go:173\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=info msg=\">>>>> POST /hosts/000c29b8-37b5-756e-692d-766d73767233/devices - CreateDevice\" file=\"server.go:1995\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>> validateHost\" file=\"handler_linux.go:648\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\">>>>> FileLoadGob called with /etc/hpe-storage/node.gob\" file=\"file.go:278\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< FileLoadGob\" file=\"file.go:287\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"current host matches with id=000c29b8-37b5-756e-692d-766d73767233\" file=\"handler_linux.go:709\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"host= retrieved from id=:000c29b8-37b5-756e-692d-766d73767233\" file=\"handler_linux.go:662\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< validateHost\" file=\"handler_linux.go:663\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=CreateNimbleDevices file=\"device.go:868\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"create request with serialnumber :xxx, accessprotocol iscsi discoveryip , iqn iqn.2007-11.com.nimblestorage:huiwen.docker-v5e5535c7956dd818.00001065.cb38eddf \" file=\"device.go:871\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"Err :cannot discover without IP. Please sanity check host OS and array IP configuration, network, netmask and gateway\" file=\"handler_linux.go:742\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=info msg=\"<<<<< POST /hosts/000c29b8-37b5-756e-692d-766d73767233/devices - CreateDevice 2.1129ms\" file=\"server.go:1995\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"response: 500 Internal Server Error, length=135\" file=\"client.go:224\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
" level=error msg=\"status code was 500 Internal Server Error for request: action=POST path=http://unix/hosts/000c29b8-37b5-756e-692d-766d73767233/devices, attempting to decode error response.\" file=\"client.go:184\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=debug msg=\"About to decode the error response &{0x673460 0xc0000a1a40 0x681320} into destination interface\" file=\"client.go:231\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
" level=error msg=\"AttachDevice: cannot discover without IP. Please sanity check host OS and array IP configuration, network, netmask and gateway for volume(huiwen)\" file=\"chapiclient.go:268\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< AttachDevice\" file=\"chapiclient.go:269\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"cannot discover without IP. Please sanity check host OS and array IP configuration, network, netmask and gateway\" file=\"mount.go:272\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5
 level=trace msg=\"<<<<< handleDelayedCreateAndMountFilesystem for volume &{ID: Name:huiwen Size:0 Description: InUse:false Published:false BaseSnapID: ParentVolID: Clone:false Config:map[] Metadata:[] SerialNumber:xxx AccessProtocol:iscsi Iqn:iqn.2007-11.com.nimblestorage:huiwen.docker-v5e5535c7956dd818.00001065.cb38eddf DiscoveryIP: MountPoint:/var/lib/kubelet/plugins/hpe.com/mounts/huiwen Status:map[ApplicationCategory:Virtual Server Blocksize:4096 CachePinned:false CachingEnabled:true Connections:0 DedupeEnabled:false Description:Volume provisioned by Docker EncryptionCipher:none Folder:DOCKER-VOL-SHARED Group:GRP ID:065e5535c7956dd818000000000000000000001065 LimitIOPS:-1 LimitMBPS:-1 LimitVolPercentOfSize:100 PerfPolicy:DockerDefault Pool:default Serial:xxx SnapUsageMiB:0 ThinlyProvisioned:true VolSizeMiB:5120 VolUsageMiB:0 VolumeCollection:map[Description: Name:huiwen.docker ReplicationType:periodic_snapshot Schedules:[map[Days:all Repeat Until:23:59 Snapshot Every:1 days Snapshots To Retain:2 Starting At:03:00 Trigger:regular]]] VolumeName:huiwen.docker delayedCreate:1590767697307 destroyOnDetach:false destroyOnRm:false filesystem:xfs inUse:false] Chap:<nil> Networks:[] ConnectionMode:manual LunID:0 TargetScope:volume IscsiSessions:[] FcSessions:[]}\" file=\"mount.go:273\"" plugin=97f7b6c7e77e9a025ffe69badd8e421b90389b76f72025e20bedf24f0956b5d5

csi-driver fails to mount iSCSI targets from upgraded FreeNAS hosts

TrueNAS hosts that started life as a FreeNAS install often have an iSCSI Global Basename of iqn.2005-10.org.freenas.ctl and, for those with a non-trivial number of pre-existing (manually configured) iSCSI initiators, changing the server's Global iSCSI Configuration is prohibitively tedious.

To rectify this issue, this module should accept both org.freenas.ctl and org.truenas.ctl as valid vendor patterns.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.