adamant-kite-43734
09/21/2023, 3:25 AMfuture-fountain-82544
09/21/2023, 3:30 AMfuture-fountain-82544
09/21/2023, 3:32 AM[pvc-a52f5d04-76e6-4058-abbc-34d8b20331da-e-2565aa66] go-iscsi-helper: tgtd is already runningfuture-fountain-82544
09/21/2023, 3:35 AM# audit2why < /var/log/audit/audit.log
type=AVC msg=audit(1695262967.474:1524): avc: denied { read } for pid=48846 comm="iscsiadm" path="/dev/null" dev="tmpfs" ino=72 scontext=system_u:system_r:iscsid_t:s0 tcontext=system_u:object_r:container_runtime_tmpfs_t:s0 tclass=chr_file permissive=0
Was caused by:
Missing type enforcement (TE) allow rule.
You can use audit2allow to generate a loadable module to allow this access.
which would translate to this
# audit2allow < /var/log/audit/audit.log
#============= iscsid_t ==============
allow iscsid_t container_runtime_tmpfs_t:chr_file read;future-fountain-82544
09/21/2023, 3:35 AMfuture-fountain-82544
09/21/2023, 3:43 AMfuture-fountain-82544
09/21/2023, 4:03 AMfuture-fountain-82544
09/21/2023, 4:03 AMcreamy-pencil-82913
09/21/2023, 5:17 AMfuture-fountain-82544
09/21/2023, 1:35 PMfuture-fountain-82544
09/21/2023, 2:45 PMfuture-fountain-82544
09/21/2023, 2:49 PMEvents:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 51s default-scheduler Successfully assigned logging-system/logging-system-fluentd-0 to kdevdev2-compute1.macc.ns.internet2.edu
Warning FailedAttachVolume 42s (x5 over 52s) attachdetach-controller AttachVolume.Attach failed for volume "pvc-bf64b67b-c1ed-4f45-a408-21412a8503f6" : rpc error: code = DeadlineExceeded desc = vol
ume pvc-bf64b67b-c1ed-4f45-a408-21412a8503f6 failed to attach to node kdevdev2-compute1.macc.ns.internet2.edu with attachmentID csi-ccc1ab4902965eeeb91a846c3604db8461757657f681720a5009ccd97fbfe592
PVC Describe:
Name: logging-system-fluentd-buffer-logging-system-fluentd-0
Namespace: logging-system
StorageClass: longhorn
Status: Bound
Volume: pvc-bf64b67b-c1ed-4f45-a408-21412a8503f6
Labels: app.kubernetes.io/component=fluentd
app.kubernetes.io/managed-by=logging-system
app.kubernetes.io/name=fluentd
Annotations: pv.kubernetes.io/bind-completed: yes
pv.kubernetes.io/bound-by-controller: yes
volume.beta.kubernetes.io/storage-provisioner: driver.longhorn.io
volume.kubernetes.io/storage-provisioner: driver.longhorn.io
Finalizers: [kubernetes.io/pvc-protection]
Capacity: 20Gi
Access Modes: RWO
VolumeMode: Filesystem
Used By: logging-system-fluentd-0
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ExternalProvisioning 10m (x2 over 10m) persistentvolume-controller waiting for a volume to be created, either by external provis
ioner "driver.longhorn.io" or manually created by system administrator
Normal Provisioning 10m driver.longhorn.io_csi-provisioner-65cb5cc4ff-k2xmk_90d4fb49-de20-4aab-9a8f-86a1c1af5514 External provisioner is provisioning volume for claim "loggin
g-system/logging-system-fluentd-buffer-logging-system-fluentd-0"
Normal ProvisioningSucceeded 10m driver.longhorn.io_csi-provisioner-65cb5cc4ff-k2xmk_90d4fb49-de20-4aab-9a8f-86a1c1af5514 Successfully provisioned volume pvc-bf64b67b-c1ed-4f45-a408-2
1412a8503f6future-fountain-82544
09/21/2023, 3:45 PMfuture-fountain-82544
09/21/2023, 4:41 PMfuture-fountain-82544
09/21/2023, 4:41 PMcreamy-pencil-82913
09/21/2023, 4:42 PMfuture-fountain-82544
09/21/2023, 4:42 PMcreamy-pencil-82913
09/21/2023, 4:43 PMfuture-fountain-82544
09/21/2023, 4:45 PMfuture-fountain-82544
09/21/2023, 4:54 PMcreamy-pencil-82913
09/21/2023, 5:04 PMfuture-fountain-82544
09/21/2023, 5:05 PMfuture-fountain-82544
09/21/2023, 5:06 PM