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

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

    <bug>
          <bug_id>32391</bug_id>
          
          <creation_ts>2016-08-18 14:45:34 +0300</creation_ts>
          <short_desc>lxc-create -t altlinux не отрабатывает</short_desc>
          <delta_ts>2016-08-26 13:58:28 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p8</product>
          <component>lxc</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></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="Michael Shigorin">mike</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>cas</cc>
    
    <cc>dans</cc>
    
    <cc>yulepikhin</cc>
          
          <qa_contact name="qa-p8@altlinux.org">qa-p8</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>158145</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2016-08-18 14:45:34 +0300</bug_when>
    <thetext>Пишут, что...

[root@localhost ~]# lxc-create -t altlinux -n test
Checking cache download in /var/cache/lxc/altlinux/x86_64/7.0.5/default/rootfs ...
Downloading altlinux minimal ...
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
Последняя версия dev-minimal уже установлена.
0 будет обновлено, 0 новых установлено, 0 пакетов будет удалено и 0 не будет обновлено.
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
Пакет apt-conf-sisyphus присутствует в базе данных, но не имеет доступной версии.
Как правило это означает, что хотя пакет упоминается в списке зависимостей,
он отсутствует в репозитории, был вытеснен, либо в sources.list нет адреса
E: Для пакета apt-conf-sisyphus не найдено подходящего кандидата для установки
Failed to download the rootfs, aborting.
Failed to download &apos;altlinux base&apos;
failed to install altlinux
lxc-create: lxccontainer.c: create_run_template: 1290 container creation template for test failed
lxc-create: lxc_create.c: main: 316 Error creating container test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158146</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2016-08-18 15:26:19 +0300</bug_when>
    <thetext>Пишут, что аналогично и на p8 с поправкой на путь:
-/var/cache/lxc/altlinux/x86_64/7.0.5/default/rootfs
+/var/cache/lxc/altlinux/x86_64/Server/default/rootfs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158150</commentid>
    <comment_count>2</comment_count>
    <who name="Denis Pynkin">dans</who>
    <bug_when>2016-08-18 22:46:37 +0300</bug_when>
    <thetext>Попробую пофиксить /usr/share/lxc/templates/lxc-altlinux, чтобы он был более универсальным.
Правильно ли я понимаю, что достаточно изменить apt-conf-sisyphus на apt-conf?

В качестве полумеры, которая работает всегда:
mkdir /etc/lxc/profiles
cat &lt;&lt;EOF &gt; /etc/lxc/profiles/p8
interactivesystem
apt apt-conf
etcnet-full
openssh-server 
systemd-sysvinit systemd-units systemd NetworkManager-daemon
EOF
lxc-create -n testalt -t altlinux -- -P p8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158155</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2016-08-19 11:24:42 +0300</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; Правильно ли я понимаю, что достаточно изменить apt-conf-sisyphus на apt-conf?
По идее, да; по крайней мере в m-p вижу так:

pkg.in/lists/tagged/basesystem:apt-conf

&gt; В качестве полумеры, которая работает всегда:
Спасибо, передал.  В коде видел, но не разобрался сходу, куда именно лезет и что там ждёт.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158165</commentid>
    <comment_count>4</comment_count>
    <who name="Юрий Лепихин">yulepikhin</who>
    <bug_when>2016-08-19 13:01:09 +0300</bug_when>
    <thetext>Заменил на apt-conf и сделал apt-get update
После этого контейнер создался, но не запускается:

root@comp-core-i5-4200u-b809f7 templates]# lxc-create -t altlinux -n test
Checking cache download in /var/cache/lxc/altlinux/x86_64/Server/default/rootfs ... 
Cache found. Updating...
Reading Package Lists...
Building Dependency Tree...
Reading Package Lists...
Building Dependency Tree...
0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
Update finished
Copy /var/cache/lxc/altlinux/x86_64/Server/default/rootfs to /var/lib/lxc/test/rootfs ... 
Copying rootfs to /var/lib/lxc/test/rootfs ...setting root passwd to rooter
container rootfs and config created
network configured as veth in the virbr0
[root@comp-core-i5-4200u-b809f7 templates]# lxc-start -n test 
lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 346 To get more details, run the container in foreground mode.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
[root@comp-core-i5-4200u-b809f7 templates]# 

Что не так?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158166</commentid>
    <comment_count>5</comment_count>
    <who name="Юрий Лепихин">yulepikhin</who>
    <bug_when>2016-08-19 15:18:48 +0300</bug_when>
    <thetext>В логе вот такое сообщение

lxc-start 20160819110425.856 ERROR    lxc_conf - conf.c:instantiate_veth:2594 - failed to attach &apos;vethKLNC9Y&apos; to the bridge &apos;lxcbr0&apos;: Operation not permitted

Что делать?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158213</commentid>
    <comment_count>6</comment_count>
    <who name="Denis Pynkin">dans</who>
    <bug_when>2016-08-22 09:20:53 +0300</bug_when>
    <thetext>&gt; lxc-start 20160819110425.856 ERROR    lxc_conf - conf.c:instantiate_veth:2594 -
&gt; failed to attach &apos;vethKLNC9Y&apos; to the bridge &apos;lxcbr0&apos;: Operation not permitted
&gt; 
&gt; Что делать?

подозреваю, что запустить от рута.
Если не поможет, то данных недостаточно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158216</commentid>
    <comment_count>7</comment_count>
    <who name="Denis Pynkin">dans</who>
    <bug_when>2016-08-22 12:18:06 +0300</bug_when>
    <thetext>[#168754] DONE lxc.git=2.0.4-alt1
в сизиф отправлено.

Просьба забрать для p8.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158218</commentid>
    <comment_count>8</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2016-08-22 13:19:05 +0300</bug_when>
    <thetext>#168759 AWAITING #1 p8 copy=lxc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158239</commentid>
    <comment_count>9</comment_count>
    <who name="Юрий Лепихин">yulepikhin</who>
    <bug_when>2016-08-23 10:27:26 +0300</bug_when>
    <thetext>Запускал от рута. Какие ещё данные нужны?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158240</commentid>
    <comment_count>10</comment_count>
    <who name="Юрий Лепихин">yulepikhin</who>
    <bug_when>2016-08-23 11:29:03 +0300</bug_when>
    <thetext>Обновил до 2.0.4
Сервер стал &quot;Школьным&quot; сервером.
результат запуска контейнера тот же:

[root@comp-core-i5-4200u-b809f7 lxc]# lxc-start -n test 
lxc-start: tools/lxc_start.c: main: 344 The container failed to start.
lxc-start: tools/lxc_start.c: main: 346 To get more details, run the container in foreground mode.
lxc-start: tools/lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
[root@comp-core-i5-4200u-b809f7 lxc]# 

содержимое лога:

[root@comp-core-i5-4200u-b809f7 lxc]# cat test.log
      lxc-start 20160823112515.049 ERROR    lxc_conf - conf.c:instantiate_veth:2596 - failed to attach &apos;vethD2HM24&apos; to the bridge &apos;lxcbr0&apos;: Operation not permitted
      lxc-start 20160823112515.056 ERROR    lxc_conf - conf.c:lxc_create_network:2882 - failed to create netdev
      lxc-start 20160823112515.056 ERROR    lxc_start - start.c:lxc_spawn:1081 - failed to create the network
      lxc-start 20160823112515.056 ERROR    lxc_start - start.c:__lxc_start:1354 - failed to spawn &apos;test&apos;
      lxc-start 20160823112520.061 ERROR    lxc_start_ui - tools/lxc_start.c:main:344 - The container failed to start.
      lxc-start 20160823112520.061 ERROR    lxc_start_ui - tools/lxc_start.c:main:346 - To get more details, run the container in foreground mode.
      lxc-start 20160823112520.062 ERROR    lxc_start_ui - tools/lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
[root@comp-core-i5-4200u-b809f7 lxc]# 


Что делать?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158250</commentid>
    <comment_count>11</comment_count>
    <who name="Denis Pynkin">dans</who>
    <bug_when>2016-08-23 17:41:42 +0300</bug_when>
    <thetext>(В ответ на комментарий №10)
&gt; Обновил до 2.0.4
Судя по логу ошибка, заявленная в текущем баге ушла.
Я вас попрошу создать новый баг, поскольку это другая проблема.

&gt; [root@comp-core-i5-4200u-b809f7 lxc]# cat test.log
&gt;       lxc-start 20160823112515.049 ERROR    lxc_conf -
&gt; conf.c:instantiate_veth:2596 - failed to attach &apos;vethD2HM24&apos; to the bridge
&gt; &apos;lxcbr0&apos;: Operation not permitted

а приведите, для начала, вывод команд:
ip a
systemctl status lxc-net

возможно пригодятся файлы:
/etc/lxc/default.conf
/etc/sysconfig/lxc-net</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158302</commentid>
    <comment_count>12</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2016-08-26 13:58:28 +0300</bug_when>
    <thetext>(В ответ на комментарий №11)
&gt; (В ответ на комментарий №10)
&gt; &gt; Обновил до 2.0.4
&gt; Судя по логу ошибка, заявленная в текущем баге ушла.
&gt; Я вас попрошу создать новый баг, поскольку это другая проблема.
&gt; 
&gt; &gt; [root@comp-core-i5-4200u-b809f7 lxc]# cat test.log
&gt; &gt;       lxc-start 20160823112515.049 ERROR    lxc_conf -
&gt; &gt; conf.c:instantiate_veth:2596 - failed to attach &apos;vethD2HM24&apos; to the bridge
&gt; &gt; &apos;lxcbr0&apos;: Operation not permitted
&gt; 
&gt; а приведите, для начала, вывод команд:
&gt; ip a
&gt; systemctl status lxc-net
&gt; 
&gt; возможно пригодятся файлы:
&gt; /etc/lxc/default.conf
&gt; /etc/sysconfig/lxc-net
Создан новый баг с подробностями: https://bugzilla.altlinux.org/show_bug.cgi?id=32423</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>