<div dir="auto">직접적인 원인은<div dir="auto"><br></div><div dir="auto">"sudo: no tty....." 문구로 보이네요</div><div dir="auto"><br></div><div dir="auto">아래처럼 해보시겠어요?</div><div dir="auto"><br></div><div dir="auto"># vi /etc/sudoers</div><div dir="auto"><br></div><div dir="auto">1. 아래부분 주석처리</div><div dir="auto"><br></div><div dir="auto">#Defaults requiretty</div><div dir="auto"><br></div><div dir="auto">2. cinder 유저권한 확인</div><div dir="auto"><br></div><div dir="auto">cinder ALL=(ALL) NOPASSWD: ALL</div><div dir="auto"><br></div><div dir="auto">3. cinder-volume 서비스 재시작</div><div dir="auto"><br></div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr">2018년 12월 20일 (목) 오후 4:19에 Jongwoo Han <<a href="mailto:jongwoohan@gmail.com">jongwoohan@gmail.com</a>>님이 작성:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="KO" link="blue" vlink="#954F72"><div class="m_6469142317332741854WordSection1"><p class="MsoNormal">기본 설치 가이드를 따라서 설치하셨다면<span lang="EN-US"> lvm-cinder </span>로 설치하셨을 텐데<span lang="EN-US">, </span>기억으로는 아마 그 가이드에<span lang="EN-US"> cinder</span>용<span lang="EN-US"> lvm </span>볼륨을 생성하는 부분이 빠져있어서<span lang="EN-US"> cinder </span>데몬이 제대로 작동하지 않았을 수 있습니다<span lang="EN-US">.</span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal">이 경우라면 해결 방법은<span lang="EN-US"> cinder lvm </span>볼륨명을<span lang="EN-US"> cinder.conf </span>에 있는 것으로 수작업으로 만들어주고<span lang="EN-US"> cinder-volume </span>서비스를 재시작하면 됩니다<span lang="EN-US">. </span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"\00ad74\00b9bc",sans-serif"><u></u> <u></u></span></p><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal" style="border:none;padding:0cm"><b>보낸 사람<span lang="EN-US">: </span></b><span lang="EN-US"><a href="mailto:nickeysgo@gmail.com" target="_blank" rel="noreferrer">Minjun Hong</a><br></span><b>보낸 날짜<span lang="EN-US">: </span></b><span lang="EN-US">2018</span>년<span lang="EN-US"> 12</span>월<span lang="EN-US"> 19</span>일 수요일 오후<span lang="EN-US"> 11:28<br></span><b>받는 사람<span lang="EN-US">: </span></b><span lang="EN-US"><a href="mailto:openstack-ko@lists.openstack.org" target="_blank" rel="noreferrer">openstack-ko@lists.openstack.org</a><br></span><b>제목<span lang="EN-US">: </span></b><span lang="EN-US">[openstack-ko] [Cinder] </span>인스턴스 생성 시<span lang="EN-US"> volume </span>연결 문제</p></div><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"\00ad74\00b9bc",sans-serif"><u></u> <u></u></span></p><div><div><div><div><div><div><p class="MsoNormal" align="left" style="text-align:left;text-autospace:ideograph-numeric ideograph-other;word-break:keep-all">안녕하세요<span lang="EN-US">. Openstack</span>을 학교 서버에 수동으로 설치 중인데<span lang="EN-US">, Cinder </span>관련 해서 문제가 발생해서 도움 요청 합니다<span lang="EN-US">.</span><span lang="EN-US"><u></u><u></u></span></p><div><p class="MsoNormal"><span lang="EN-US">Queens </span>버전 최소 설치 가이드<span lang="EN-US"> (<a href="https://docs.openstack.org/cinder/queens/install/index-ubuntu.html)%EB%A5%BC" target="_blank" rel="noreferrer">https://docs.openstack.org/cinder/queens/install/index-ubuntu.html)<span lang="EN-US"><span lang="EN-US">를</span></span></a> </span>참고 해서 설치 중인데<span lang="EN-US">, </span>인스턴스를 생성 할 때<span lang="EN-US">, </span>해당 인스턴스가 사용할<span lang="EN-US"> volume</span>을<span lang="EN-US"> storage server</span>에서 못받아 오는 것 처럼 보입니다<span lang="EN-US">.</span></p></div><div><p class="MsoNormal"><span lang="EN-US">iSCSI</span>를 위한 <span lang="EN-US">tgt </span>서비스를 보면<span lang="EN-US">, </span>뭔가 커널 모듈이 추가적으로 로드 되어야 하는거 같은데<span lang="EN-US">, </span>이게 스토리지 서버에 있는<span lang="EN-US"> RAID controller </span>와 관련이 있을까요<span lang="EN-US">?</span></p></div><div><p class="MsoNormal">아래는<span lang="EN-US"> tgt </span>서비스의 상태입니다<span lang="EN-US">.</span></p></div><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div><div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><p class="MsoNormal"><span lang="EN-US">● tgt.service - (i)SCSI target daemon<br> Loaded: loaded (/lib/systemd/system/tgt.service; enabled; vendor preset: enabled)<br> Active: active (running) since Wed 2018-12-19 22:05:55 KST; 26min ago<br> Docs: man:tgtd(8)<br> Process: 2249 ExecStartPost=/usr/sbin/tgtadm --op update --mode sys --name State -v ready (code=exited, status=0/SUCCESS)<br> Process: 2230 ExecStartPost=/usr/sbin/tgt-admin -e -c /etc/tgt/targets.conf (code=exited, status=0/SUCCESS)<br> Process: 2206 ExecStartPost=/usr/sbin/tgtadm --op update --mode sys --name State -v offline (code=exited, status=0/SUCCESS)<br> Main PID: 2170 (tgtd)<br> Status: "Starting event loop..."<br> Tasks: 1<br> Memory: 2.7M<br> CPU: 87ms<br> CGroup: /system.slice/tgt.service<br> └─2170 /usr/sbin/tgtd -f<br>Dec 19 22:05:55 node0 systemd[1]: Starting (i)SCSI target daemon...<br>Dec 19 22:05:55 node0 tgtd[2170]: tgtd: iser_ib_init(3434) Failed to initialize RDMA; load kernel modules?<br>Dec 19 22:05:55 node0 tgtd[2170]: tgtd: work_timer_start(150) use signal based scheduler<br>Dec 19 22:05:55 node0 tgtd[2170]: tgtd: bs_init(387) use signalfd notification<br>Dec 19 22:05:55 node0 systemd[1]: Started (i)SCSI target daemon.</span></p></blockquote></div><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div><div><p class="MsoNormal">그리고 아래는<span lang="EN-US"> cinder </span>서비스의 상태 입니다<span lang="EN-US">.</span></p></div><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div><div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><p class="MsoNormal"><span lang="EN-US">● cinder-volume.service - OpenStack Cinder Volume<br> Loaded: loaded (/lib/systemd/system/cinder-volume.service; enabled; vendor preset: enabled)<br> Active: active (running) since Wed 2018-12-19 22:05:55 KST; 45min ago<br> Main PID: 2110 (cinder-volume)<br> Tasks: 2<br> Memory: 210.2M<br> CPU: 1min 23.649s<br> CGroup: /system.slice/cinder-volume.service<br> ├─2110 /usr/bin/python2 /usr/bin/cinder-volume --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-volume.log<br> └─2657 /usr/bin/python2 /usr/bin/cinder-volume --config-file=/etc/cinder/cinder.conf --log-file=/var/log/cinder/cinder-volume.log<br>Dec 19 22:05:55 node0 systemd[1]: Started OpenStack Cinder Volume.<br>Dec 19 22:06:00 node0 sudo[2658]: pam_unix(sudo:auth): auth could not identify password for [cinder]</span></p></blockquote><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">Cinder-volume</span>의 로그는 계속해서<span lang="EN-US"> cinder-volume </span>서비스가 통신을 못하고 있는 것 처럼 보이는데<span lang="EN-US">, </span>아래와 같이<span lang="EN-US"> volume</span>에 접근 하려고 할 때<span lang="EN-US"> (e.g. instance </span>생성<span lang="EN-US">), </span>에러 메시지가 출력 되고<span lang="EN-US">, </span>그 이후에는 계속해서 동일한 메시지가 매초 반복되고 있습니다<span lang="EN-US">.</span></p></div><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><p class="MsoNormal"><span lang="EN-US">2018-12-19 22:04:00.747 35996 INFO oslo_service.service [req-bcc39e60-531e-4484-ab4b-bab085d112c4 - - - - -] Caught SIGTERM, stopping children<br>2018-12-19 22:04:00.784 35996 INFO oslo_service.service [req-bcc39e60-531e-4484-ab4b-bab085d112c4 - - - - -] Waiting on 1 children to exit<br>2018-12-19 22:04:00.809 35996 INFO oslo_service.service [req-bcc39e60-531e-4484-ab4b-bab085d112c4 - - - - -] Child 36039 killed by signal 15<br>2018-12-19 22:05:58.378 2110 INFO root [-] Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt<br>2018-12-19 22:05:58.403 2110 INFO root [-] Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt<br>2018-12-19 22:05:59.820 2110 INFO cinder.rpc [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Automatically selected cinder-scheduler objects version 1.35 as minimum service version.<br>2018-12-19 22:05:59.826 2110 INFO cinder.rpc [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Automatically selected cinder-scheduler RPC version 3.10 as minimum service version.<br>2018-12-19 22:05:59.875 2110 INFO cinder.volume.manager [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Determined volume DB was empty at startup.<br>2018-12-19 22:05:59.908 2110 WARNING oslo_config.cfg [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Option "iscsi_helper" from group "lvm" is deprecated. Use option "target_helper" from group "lvm".<br>2018-12-19 22:05:59.914 2110 WARNING oslo_config.cfg [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Option "iscsi_protocol" from group "lvm" is deprecated. Use option "target_protocol" from group "lvm".<br>2018-12-19 22:05:59.916 2110 INFO cinder.volume.manager [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Image-volume cache disabled for host node0@lvm.<br>2018-12-19 22:05:59.932 2110 INFO oslo_service.service [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Starting 1 workers<br>2018-12-19 22:05:59.940 2657 INFO cinder.service [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Starting cinder-volume node (version 13.0.0)<br>2018-12-19 22:05:59.942 2110 WARNING oslo_config.cfg [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Option "iscsi_helper" from group "DEFAULT" is deprecated. Use option "target_helper" from group "DEFAULT".<br>2018-12-19 22:05:59.952 2110 WARNING oslo_config.cfg [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Option "auth_uri" from group "keystone_authtoken" is deprecated for removal (The auth_uri option is deprecated in favor of www_authenticate_uri and will be removed in the S release.). Its value may be silently ignored in the future.<br>2018-12-19 22:05:59.953 2110 WARNING oslo_config.cfg [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Option "auth_uri" from group "keystone_authtoken" is deprecated. Use option "www_authenticate_uri" from group "keystone_authtoken".<br>2018-12-19 22:05:59.961 2657 INFO cinder.volume.manager [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Starting volume driver LVMVolumeDriver (3.0.0)<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Failed to initialize driver.: ProcessExecutionError: Unexpected error while running command.<br>Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C vgs --version<br>Exit code: 1<br>Stdout: u''<br>Stderr: u'sudo: no tty present and no askpass program specified\n'<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager Traceback (most recent call last):<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager File "/opt/stack/cinder/cinder/volume/manager.py", line 433, in init_host<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager self.driver.check_for_setup_error()<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 286, in check_for_setup_error<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager if volutils.supports_thin_provisioning():<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager File "/opt/stack/cinder/cinder/volume/utils.py", line 628, in supports_thin_provisioning<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager utils.get_root_helper())<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager File "/opt/stack/cinder/cinder/brick/local_dev/lvm.py", line 225, in supports_thin_provisioning<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager return LVM.get_lvm_version(root_helper) >= (2, 2, 95)<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager File "/opt/stack/cinder/cinder/brick/local_dev/lvm.py", line 202, in get_lvm_version<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager run_as_root=True)<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 424, in execute<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager cmd=sanitized_cmd)<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager ProcessExecutionError: Unexpected error while running command.<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C vgs --version<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager Exit code: 1<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager Stdout: u''<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager Stderr: u'sudo: no tty present and no askpass program specified\n'<br>2018-12-19 22:06:00.007 2657 ERROR cinder.volume.manager<br>2018-12-19 22:06:00.075 2657 INFO cinder.volume.manager [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Initializing RPC dependent components of volume driver LVMVolumeDriver (3.0.0)<br>2018-12-19 22:06:00.076 2657 ERROR cinder.utils [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Volume driver LVMVolumeDriver not initialized<br>2018-12-19 22:06:00.076 2657 ERROR cinder.volume.manager [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Cannot complete RPC initialization because driver isn't initialized properly.: DriverNotInitialized: Volume driver not ready.<br>2018-12-19 22:06:10.077 2657 ERROR cinder.service [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Manager for service cinder-volume node0@lvm is reporting problems, not sending heartbeat. Service will appear "down".<br>2018-12-19 22:06:20.077 2657 ERROR cinder.service [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Manager for service cinder-volume node0@lvm is reporting problems, not sending heartbeat. Service will appear "down".<br>2018-12-19 22:06:30.078 2657 ERROR cinder.service [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Manager for service cinder-volume node0@lvm is reporting problems, not sending heartbeat. Service will appear "down".<br>2018-12-19 22:06:40.078 2657 ERROR cinder.service [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Manager for service cinder-volume node0@lvm is reporting problems, not sending heartbeat. Service will appear "down".<br>2018-12-19 22:06:50.079 2657 ERROR cinder.service [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Manager for service cinder-volume node0@lvm is reporting problems, not sending heartbeat. Service will appear "down".<br>2018-12-19 22:07:00.079 2657 ERROR cinder.service [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Manager for service cinder-volume node0@lvm is reporting problems, not sending heartbeat. Service will appear "down".<br>2018-12-19 22:07:10.078 2657 WARNING cinder.volume.manager [req-b3178448-4e17-489b-8267-2fd7992bc876 - - - - -] Update driver status failed: (config name lvm) is uninitialized.</span></p></blockquote></div><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div><div><p class="MsoNormal">위의 로그에서<span lang="EN-US"> 'Manage for service cinder -volume node0@lvm is ...' </span>이 부분이 계속 반복 되는 부분 입니다<span lang="EN-US">.</span></p></div><div><p class="MsoNormal">혹시<span lang="EN-US">, </span>이에 대해서 경험 해 보신 분 있으시면<span lang="EN-US">, </span>조언 부탁 드립니다<span lang="EN-US">.</span></p></div><div><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p></div></div></div></div></div></div></div><p class="MsoNormal">감사합니다<span lang="EN-US">.</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"\00ad74\00b9bc",sans-serif"><u></u> <u></u></span></p></div></div>_______________________________________________<br>
openstack-ko mailing list<br>
<a href="mailto:openstack-ko@lists.openstack.org" target="_blank" rel="noreferrer">openstack-ko@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-ko" rel="noreferrer noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-ko</a><br>
</blockquote></div></div>