Bug#960132: mdadm: mdcheck_start.service trying to start unexisting file

2020-05-13 Thread Павел Мотырев
Bug affects all versions since release 4.1-1 - systemd services for
mdcheck was created in
0004-mdcheck-add-systemd-unit-files-to-run-mdcheck.patch
(https://sources.debian.org/patches/mdadm/4.1-1/0004-mdcheck-add-systemd-unit-files-to-run-mdcheck.patch/)



Bug#960132: mdadm: mdcheck_start.service trying to start unexisting file

2020-05-09 Thread Павел Мотырев
X-Debbugs-Cc: none
Package: mdadm
Version: 4.1-5
Severity: normal

mdcheck_start.service trying to start unexisting file

root@debian:/# cat /lib/systemd/system/mdcheck_start.service | grep Exec
ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
ExecStart=/usr/share/mdadm/mdcheck --duration $MDADM_CHECK_DURATION
root@debian:/# ls -la /usr/share/mdadm/mdcheck
ls: cannot access '/usr/share/mdadm/mdcheck': No such file or directory
root@debian:/# dpkg -L mdadm | grep mdcheck
/lib/systemd/system/mdcheck_continue.service
/lib/systemd/system/mdcheck_continue.timer
/lib/systemd/system/mdcheck_start.service
/lib/systemd/system/mdcheck_start.timer

-- System Information:
Debian Release: 10.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-9-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mdadm depends on:
ii  debconf [debconf-2.0]  1.5.71
ii  libc6  2.28-10
ii  lsb-base   10.2019051400
ii  udev   241-7~deb10u4

Versions of packages mdadm recommends:
ii  exim4-daemon-light [mail-transport-agent]  4.92-8+deb10u3
ii  kmod   26-1

Versions of packages mdadm suggests:
pn  dracut-core  

-- debconf information:
  mdadm/autoscan: true
  mdadm/mail_to: root
  mdadm/start_daemon: true
  mdadm/autocheck: true

There is a patch in attachment, that adds missed scripts into the
package during build process.
This bug also affects Ubuntu mdadm package -
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1852747
--- a/debian/rules	2020-05-10 01:51:20.69600 +0700
+++ b/debian/rules	2020-05-10 01:52:56.4 +0700
@@ -28,6 +28,7 @@
 	rm -rf udeb
 	mkdir udeb
 	ln *.[ch] Makefile udeb/
+	ln misc/mdcheck misc/syslog-events udeb/
 	touch $@
 
 build-arch: udeb/build-stamp
@@ -63,6 +64,8 @@
 
 	install -Dm0755 debian/mkconf $(DESTDIR)/usr/share/mdadm/mkconf
 	install -Dm0755 debian/checkarray $(DESTDIR)/usr/share/mdadm/checkarray
+	install -Dm0755 udeb/mdcheck $(DESTDIR)/usr/share/mdadm/mdcheck
+	install -Dm0755 udeb/syslog-events $(DESTDIR)/usr/share/mdadm/syslog-events
 	install -Dm0755 debian/bugscript $(DESTDIR)/usr/share/bug/mdadm/script
 	install -Dm0755 udeb/mdadm $(DESTDIR_UDEB)/sbin/mdadm
 	install -Dm0755 udeb/mdmon $(DESTDIR_UDEB)/sbin/mdmon


Bug#584657: some additional parse/undefined object-group/... errors

2014-02-27 Thread Павел Мотырев
Hi,
I found way to fix this errors:
 Unlinked OID in IPATM-IPMC-MIB: marsMIB ::= { mib-2 57 }
 Undefined identifier: mib-2 near line 18 of 
 /usr/share/mibs/ietf/IPATM-IPMC-MIB
 Expected ::= (RFC5644): At line 493 in 
 /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
 Expected { (EOF): At line 651 in 
 /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
 Bad object identifier: At line 651 in 
 /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
 Bad parse of OBJECT-IDENTITY: At line 651 in 
 /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB

See attachment
--- /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB~	2014-02-27 14:50:32.0 +0700
+++ /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB	2014-02-27 14:52:44.0 +0700
@@ -490,56 +490,56 @@
DESCRIPTION
   Type-P-Spatial-One-way-Delay-Vector
REFERENCE
-  Reference RFC5644, section 5.1.
-   := { ianaIppmMetrics 52 }
+  Reference RFC5644, section 5.1.
+   ::= { ianaIppmMetrics 52 }
 
ietfSpatialPacketLossVector OBJECT-IDENTITY
STATUS current
DESCRIPTION
   Type-P-Spatial-Packet-Loss-Vector
REFERENCE
-  Reference RFC5644, section 5.2.
-   := { ianaIppmMetrics 53 } 
+  Reference RFC5644, section 5.2.
+   ::= { ianaIppmMetrics 53 } 
 
ietfSpatialOneWayIpdvVector OBJECT-IDENTITY
STATUS current
DESCRIPTION
   Type-P-Spatial-One-way-ipdv-Vector
REFERENCE
-  Reference RFC5644, section 5.3.
-   := { ianaIppmMetrics 54 }
+  Reference RFC5644, section 5.3.
+   ::= { ianaIppmMetrics 54 }
 
ietfSegmentOneWayDelayStream OBJECT-IDENTITY
STATUS current
DESCRIPTION
   Type-P-Segment-One-way-Delay-Stream
REFERENCE
-  Reference RFC5644, section 6.1.
-   := { ianaIppmMetrics 55 } 
+  Reference RFC5644, section 6.1.
+   ::= { ianaIppmMetrics 55 } 
 
ietfSegmentPacketLossStream OBJECT-IDENTITY
STATUS current
DESCRIPTION
   Type-P-Segment-Packet-Loss-Stream
REFERENCE
-  Reference RFC5644, section 6.2.
-   := { ianaIppmMetrics 56 }
+  Reference RFC5644, section 6.2.
+   ::= { ianaIppmMetrics 56 }
 
ietfSegmentIpdvPrevStream OBJECT-IDENTITY
STATUS current
DESCRIPTION
   Type-P-Segment-ipdv-prev-Stream
REFERENCE
-  Reference RFC5644, section 6.3.
-   := { ianaIppmMetrics 57 } 
+  Reference RFC5644, section 6.3.
+   ::= { ianaIppmMetrics 57 } 
 
ietfSegmentIpdvMinStream OBJECT-IDENTITY
STATUS current
DESCRIPTION
   Type-P-Segment-ipdv-min-Stream
REFERENCE
-  Reference RFC5644, section 6.4.
-   := { ianaIppmMetrics 58 }
+  Reference RFC5644, section 6.4.
+   ::= { ianaIppmMetrics 58 }
 
-- One-to-group metrics
 
@@ -548,24 +548,24 @@
DESCRIPTION
   Type-P-One-to-group-Delay-Vector
REFERENCE
-  Reference RFC5644, section 7.1.
-   := { ianaIppmMetrics 59 }
+  Reference RFC5644, section 7.1.
+   ::= { ianaIppmMetrics 59 }
 
ietfOneToGroupPacketLossVector OBJECT-IDENTITY
STATUS current
DESCRIPTION
   Type-P-One-to-group-Packet-Loss-Vector
REFERENCE
-  Reference RFC5644, section 7.2.
-   := { ianaIppmMetrics 60 } 
+  Reference RFC5644, section 7.2.
+   ::= { ianaIppmMetrics 60 } 
 
ietfOneToGroupIpdvVector OBJECT-IDENTITY
STATUS current
DESCRIPTION
   Type-P-One-to-group-ipdv-Vector
REFERENCE
-  Reference RFC5644, section 7.3.
-   := { ianaIppmMetrics 61 } 
+  Reference RFC5644, section 7.3.
+   ::= { ianaIppmMetrics 61 } 
 
-- One to group statistics
 
@@ -576,40 +576,40 @@
DESCRIPTION
   Type-P-One-to-group-Receiver-n-Mean-Delay
REFERENCE
-  Reference RFC5644, section 8.3.1.
-   := { ianaIppmMetrics 62 } 
+  Reference RFC5644, section 8.3.1.
+   ::= { ianaIppmMetrics 62 } 
 
ietfOneToGroupMeanDelay OBJECT-IDENTITY
STATUS current
DESCRIPTION
   Type-P-One-to-group-Mean-Delay
REFERENCE
-   Reference RFC5644, section 8.3.2.
-   := { ianaIppmMetrics 63 } 
+   Reference RFC5644, section 8.3.2.
+   ::= { ianaIppmMetrics 63 } 
 
ietfOneToGroupRangeMeanDelay OBJECT-IDENTITY
STATUS current
DESCRIPTION
   Type-P-One-to-group-Range-Mean-Delay
REFERENCE
-  Reference RFC5644, section 8.3.3.
-   := { ianaIppmMetrics 64 } 
+  Reference RFC5644, section 8.3.3.
+   ::= { ianaIppmMetrics 64 } 
 
ietfOneToGroupMaxMeanDelay OBJECT-IDENTITY
STATUS current
DESCRIPTION
   Type-P-One-to-group-Max-Mean-Delay
REFERENCE
-  Reference RFC5644, section 8.3.4.
-   := { ianaIppmMetrics 65 } 
+  Reference