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

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

    <bug>
          <bug_id>46148</bug_id>
          
          <creation_ts>2023-05-14 20:47:44 +0300</creation_ts>
          <short_desc>Не запускается etcd с мониторингом</short_desc>
          <delta_ts>2023-05-14 22:04:08 +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>vitastor</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgeny Shesteperov">alimektor</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>darisishe</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>225810</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeny Shesteperov">alimektor</who>
    <bug_when>2023-05-14 20:47:44 +0300</bug_when>
    <thetext>Версия

-   vitastor-0.8.8-alt1

Дистрибутивы

-   p10-server-10.1-x86-64, обновленный до Sisyphus (3 машины)

Шаги воспроизведения

Попытка настроить кластер Vitastor согласно официальной документации
https://git.yourcmc.ru/vitalif/vitastor/src/branch/master/docs/intro/quickstart.ru.md

Установить пакеты:

    # apt-get install -y vitastor-common vitastor-mon vitastor-nbd vitastor-osd vitastor-client vitastor-nfs qemu-block-vitastor etcd lp_solve

Прописать одинаковые etcd_address (node1, node2, node3) в
/etc/vitastor/vitastor.conf:

    # cat &gt; /etc/vitastor/vitastor.conf &lt;&lt; &apos;_EOF_&apos;
    {
      &quot;etcd_address&quot;: [&quot;XX.XX.XX.XX:2379&quot;,&quot;XX.XX.XX.XX:2379&quot;,&quot;XX.XX.XX.XX:2379&quot;]
    }
    _EOF_

Инициализировать сервисы etcd, запустив /usr/lib/vitastor/mon/make-etcd
на каждом узле:

    # /usr/lib/vitastor/mon/make-etcd

Запустите etcd и мониторы на каждом узле:

    # systemctl enable --now etcd vitastor-mon &amp;&amp; sleep 5; systemctl status etcd vitastor-mon --no-pager -l

Ожидаемый результат: успешно запущенные сервисы.

Фактический результат:

● etcd.service - etcd for vitastor Loaded: loaded
(/etc/systemd/system/etcd.service; enabled; preset: disabled) Active:
activating (auto-restart) (Result: exit-code) since Sun 2023-05-14
20:17:06 MSK; 5s ago Process: 4182 ExecStartPre=chown -R etcd
/var/lib/etcd1.etcd (code=exited, status=0/SUCCESS) Process: 4183
ExecStart=/usr/local/bin/etcd -name etcd1 –data-dir /var/lib/etcd1.etcd
–advertise-client-urls http://XX.XX.XX.XX:2379 –listen-client-urls
http://XX.XX.XX.XX:2379 –initial-advertise-peer-urls
http://XX.XX.XX.XX:2380 –listen-peer-urls http://XX.XX.XX.XX:2380
–initial-cluster-token vitastor-etcd-1 –initial-cluster
etcd0=http://XX.XX.XX.XX:2380,etcd1=http://XX.XX.XX.XX:2380,etcd2=http://XX.XX.XX.XX:2380
–initial-cluster-state new –max-txn-ops=100000
–max-request-bytes=104857600 –auto-compaction-retention=10
–auto-compaction-mode=revision (code=exited, status=203/EXEC) Main PID:
4183 (code=exited, status=203/EXEC) CPU: 9ms

● vitastor-mon.service - Vitastor monitor Loaded: loaded
(/lib/systemd/system/vitastor-mon.service; enabled; preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Sun
2023-05-14 20:17:04 MSK; 7s ago Process: 4175 ExecStart=node
/usr/lib/vitastor/mon/mon-main.js (code=exited, status=1/FAILURE) Main
PID: 4175 (code=exited, status=1/FAILURE) CPU: 176ms

Какой-то дополнительной информации не нашёл.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>225814</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2023-05-14 22:04:08 +0300</bug_when>
    <thetext>Не надо запускать /usr/lib/vitastor/mon/make-etcd.
У нас с пакетом etcd поставляется нормальный service файл.
Под нас надо документацию переделать. Займусь этим позже.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>