<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>31136</bug_id>
          
          <creation_ts>2015-07-11 01:14:52 +0300</creation_ts>
          <short_desc>systemd-tmpfiles не работает на ядрах без поддержки AT_EMPTY_PATH</short_desc>
          <delta_ts>2015-09-07 23:43:54 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>kernel-image-ovz-el</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://bugzilla.openvz.org/show_bug.cgi?id=3280</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Y. Afonin">asy</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>glebfm</cc>
    
    <cc>kernelbot</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>mithraen</cc>
    
    <cc>rider</cc>
    
    <cc>sbolshakov</cc>
    
    <cc>shaba</cc>
    
    <cc>shrek</cc>
    
    <cc>sin</cc>
    
    <cc>vitty</cc>
    
    <cc>vsu</cc>
    
    <cc>vt</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>152118</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2015-07-11 01:14:52 +0300</bug_when>
    <thetext># apt-get reinstall systemd-utils
...
1: systemd-utils             ################################### [100%]
Running /usr/lib/rpm/posttrans-filetriggers
Failed to create directory or subvolume &quot;/home&quot;: Invalid argument
Failed to create directory or subvolume &quot;/srv&quot;: Invalid argument
Failed to fstat() file /run/lock: Invalid argument
Failed to fstat() file /run/lock/subsys: Invalid argument
Failed to fstat() file /run/lock/serial: Invalid argument
Failed to create directory or subvolume &quot;/tmp&quot;: Invalid argument
Failed to create directory or subvolume &quot;/var/tmp&quot;: Invalid argument
Failed to create directory or subvolume &quot;/var&quot;: Invalid argument
Failed to fstat() file /var/log: Invalid argument
Failed to fstat() file /var/log/wtmp: Invalid argument
Failed to fstat() file /var/log/btmp: Invalid argument
Failed to fstat() file /var/cache: Invalid argument
Failed to fstat() file /var/lib: Invalid argument
Failed to fstat() file /var/spool: Invalid argument
Failed to fstat() file /tmp/.X11-unix: Invalid argument
Failed to fstat() file /tmp/.ICE-unix: Invalid argument
Failed to fstat() file /tmp/.XIM-unix: Invalid argument
Failed to fstat() file /tmp/.font-unix: Invalid argument
Failed to fstat() file /tmp/.Test-unix: Invalid argument
Done.

С удовольствием бы удалил, но

The following packages will be REMOVED:
  etcnet etcnet-defaults-server interactivesystem startup systemd-utils</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152194</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2015-07-22 20:13:07 +0300</bug_when>
    <thetext>это не ошибки.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152201</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2015-07-23 12:31:10 +0300</bug_when>
    <thetext>Если это не ошибка, то что это такое и зачем оно изображается как куча ошибок?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152202</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2015-07-23 13:01:12 +0300</bug_when>
    <thetext>это /sbin/systemd-tmpfiles, вызванный из posttrans-filetriggers, пытается создать или удалить директории и файлы в соответствии с конфигами в /lib/tmpfiles.d/*
Некоторые настройки не применимы к simfs,а некоторые только для btrfs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152203</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2015-07-23 13:41:21 +0300</bug_when>
    <thetext>исправлено в 222-alt2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152206</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2015-07-23 16:16:10 +0300</bug_when>
    <thetext>(In reply to comment #4)
&gt; исправлено в 222-alt2

При обновлении systemd-utils с 222-alt1 до 222-alt2:

Running /usr/lib/rpm/posttrans-filetriggers
Failed to fstat() file /home: Invalid argument
Failed to fstat() file /srv: Invalid argument
Failed to fstat() file /run/lock: Invalid argument
Failed to fstat() file /run/lock/subsys: Invalid argument
Failed to fstat() file /run/lock/serial: Invalid argument
Failed to fstat() file /tmp: Invalid argument
Failed to fstat() file /var/tmp: Invalid argument
Failed to fstat() file /var: Invalid argument
Failed to fstat() file /var/log: Invalid argument
Failed to fstat() file /var/log/wtmp: Invalid argument
Failed to fstat() file /var/log/btmp: Invalid argument
Failed to fstat() file /var/cache: Invalid argument
Failed to fstat() file /var/lib: Invalid argument
Failed to fstat() file /var/spool: Invalid argument
Failed to fstat() file /tmp/.X11-unix: Invalid argument
Failed to fstat() file /tmp/.ICE-unix: Invalid argument
Failed to fstat() file /tmp/.XIM-unix: Invalid argument
Failed to fstat() file /tmp/.font-unix: Invalid argument
Failed to fstat() file /tmp/.Test-unix: Invalid argument
Done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152210</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2015-07-23 17:56:34 +0300</bug_when>
    <thetext>а можно увидеть вывод
strace systemd-tmpfiles --create /lib/tmpfiles.d/home.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152211</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2015-07-23 18:08:13 +0300</bug_when>
    <thetext>(In reply to comment #6)
&gt; а можно увидеть вывод
&gt; strace systemd-tmpfiles --create /lib/tmpfiles.d/home.conf

Это, очевидно, AT_EMPTY_PATH:

# strace -P/home -P/srv systemd-tmpfiles --create /lib/tmpfiles.d/home.conf
mkdir(&quot;/home&quot;, 0755)                    = -1 EEXIST (File exists)
lstat(&quot;/home&quot;, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open(&quot;/home&quot;, O_RDONLY|O_NOFOLLOW|O_NOATIME|O_CLOEXEC|O_PATH) = 3
newfstatat(3, &quot;&quot;, 0x7fff188ae9a0, AT_EMPTY_PATH) = -1 EINVAL (Invalid argument)
Failed to fstat() file /home: Invalid argument
close(3)                                = 0
mkdir(&quot;/srv&quot;, 0755)                     = -1 EEXIST (File exists)
lstat(&quot;/srv&quot;, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open(&quot;/srv&quot;, O_RDONLY|O_NOFOLLOW|O_NOATIME|O_CLOEXEC|O_PATH) = 3
newfstatat(3, &quot;&quot;, 0x7fff188ae9a0, AT_EMPTY_PATH) = -1 EINVAL (Invalid argument)
Failed to fstat() file /srv: Invalid argument
close(3)                                = 0
+++ exited with 1 +++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152218</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2015-07-23 19:24:49 +0300</bug_when>
    <thetext>открыл баг в апстриме
https://github.com/systemd/systemd/issues/689</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152219</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2015-07-23 19:59:09 +0300</bug_when>
    <thetext>что и следовало ожидать, апстрим systemd заявляет поддержку ядер &gt;=3.7
Эта ошибка уже всплвала ранее (https://github.com/systemd/systemd/issues/421)
и в апстриме openvz
https://bugzilla.openvz.org/show_bug.cgi?id=3280
Надо обновлять ядро openvz до 042stab111.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152220</commentid>
    <comment_count>10</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2015-07-23 21:37:52 +0300</bug_when>
    <thetext>(In reply to comment #9)

&gt; что и следовало ожидать, апстрим systemd заявляет поддержку ядер &gt;=3.7

Тогда надо как-то делать так, чтобы ненужные компоненты systemd не попадали в систему с sysvinit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152221</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2015-07-23 23:55:02 +0300</bug_when>
    <thetext>(но Глеб сейчас в отпуске)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152232</commentid>
    <comment_count>12</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2015-07-24 13:19:56 +0300</bug_when>
    <thetext>kernel-image-ovz-el-2.6.32-alt137 -&gt; sisyphus:

* Fri Jul 24 2015 Dmitry V. Levin &lt;ldv@altlinux&gt; 2.6.32-alt137
- Backported AT_EMPTY_PATH fixes from 042stab111.1 (closes: #31136).

* Thu Jul 23 2015 Dmitry V. Levin &lt;ldv@altlinux&gt; 2.6.32-alt136
- Updated to 042stab108.8 (fixes multiple CVEs).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152646</commentid>
    <comment_count>13</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2015-09-03 12:43:08 +0300</bug_when>
    <thetext>Что-то не до конца:

1: systemd-utils             ##################################################### [100%]
Running /usr/lib/rpm/posttrans-filetriggers
Failed to create directory or subvolume &quot;/home&quot;: Invalid argument
Failed to create directory or subvolume &quot;/srv&quot;: Invalid argument
Failed to create directory or subvolume &quot;/tmp&quot;: Invalid argument
Failed to create directory or subvolume &quot;/var/tmp&quot;: Invalid argument
Failed to create directory or subvolume &quot;/var&quot;: Invalid argument
Done.

[root@mail ~]# uname -a
Linux qwerty 2.6.32-ovz-el-alt137 #1 SMP Fri Jul 24 09:23:14 UTC 2015 i686 GNU/Linux</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152649</commentid>
    <comment_count>14</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2015-09-03 13:41:27 +0300</bug_when>
    <thetext>(In reply to comment #13)
&gt; Что-то не до конца:

У меня обновление до systemd-utils-217-alt3 никаких эффектов не вызвало.
Так что strace вам в руки.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152689</commentid>
    <comment_count>15</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2015-09-07 23:43:54 +0300</bug_when>
    <thetext>kernel-image-ovz-el-2.6.32-alt137 -&gt; p7:

* Fri Jul 24 2015 Dmitry V. Levin &lt;ldv@altlinux&gt; 2.6.32-alt137
- Backported AT_EMPTY_PATH fixes from 042stab111.1 (closes: #31136).

* Thu Jul 23 2015 Dmitry V. Levin &lt;ldv@altlinux&gt; 2.6.32-alt136
- Updated to 042stab108.8 (fixes multiple CVEs).

* Tue Jul 14 2015 Gleb F-Malinovskiy &lt;glebfm@altlinux&gt; 2.6.32-alt135
- Updated to 042stab108.6.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>