¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 708°Ç
   
ovsdb-client error
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2016-08-18 (¸ñ) 13:36 Á¶È¸ : 2325
                                
¹®Á¦ : ÀνºÅϽº°¡ »ý¼ºµÇÁö ¾Ê°í ¾Æ·¡¿Í °°Àº ¿¡·¯¹ß»ý

ComputeNode
# tail -f /var/log/nova/nova-compute.log
...................................
2016-08-18 09:33:44.950 5722 ERROR nova.network.linux_net [req-693b82fb-e24e-42d3-b6f8-31f2805303bb b03804ea1653457fafcfad34fcc28212 54ce8cc61ed54db6ba0666ab1148c4ba - - -] Unable to execute ['ovs-vsctl', '--timeout=120', '--', '--if-exists', 'del-port', u'qvof178718f-16', '--', 'add-port', 'br-int', u'qvof178718f-16', '--', 'set', 'Interface', u'qvof178718f-16', u'external-ids:iface-id=f178718f-1625-4489-bad8-2f98fad0d67b', 'external-ids:iface-status=active', u'external-ids:attached-mac=fa:16:3e:9c:22:89', 'external-ids:vm-uuid=7007fd41-555b-4651-a07b-51f01b8ca01f']. Exception: Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf ovs-vsctl --timeout=120 -- --if-exists del-port qvof178718f-16 -- add-port br-int qvof178718f-16 -- set Interface qvof178718f-16 external-ids:iface-id=f178718f-1625-4489-bad8-2f98fad0d67b external-ids:iface-status=active external-ids:attached-mac=fa:16:3e:9c:22:89 external-ids:vm-uuid=7007fd41-555b-4651-a07b-51f01b8ca01f
Exit code: 1
Stdout: u''
Stderr: u'sudo: unable to resolve host hl-206-34\novs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (Protocol error)\n'
2016-08-18 09:33:44.951 5722 ERROR nova.compute.manager [req-693b82fb-e24e-42d3-b6f8-31f2805303bb b03804ea1653457fafcfad34fcc28212 54ce8cc61ed54db6ba0666ab1148c4ba - - -] [instance: 7007fd41-555b-4651-a07b-51f01b8ca01f] Instance failed to spawn
...................................

# pstree
...................
     ¦§¦¡nova-compute¦¡¦¡¦¡21*[{nova-compute}]
     ¦§¦¡26*[ovsdb-client]
...................


# ps aux |grep ovs
root     21968  0.0  0.0  19476   544 ?        S<s  13:23   0:00 ovsdb-server: monitoring pid 21969 (healthy)                                                                                                                                                                                                                                                                                                                                                       
root     21969  0.4  0.0  19876  2084 ?        S<   13:23   0:01 ovsdb-server /etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/var/run/openvswitch/db.sock --private-key=db:Open_vSwitch,SSL,private_key --certificate=db:Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --no-chdir --log-file=/var/log/openvswitch/ovsdb-server.log --pidfile=/var/run/openvswitch/ovsdb-server.pid --detach --monitor
root     21978  0.0  0.0  24100   628 ?        S<s  13:23   0:00 ovs-vswitchd: monitoring pid 21979 (healthy)                                                                                                                                                                                   
root     21979  1.0  0.1 393672 50880 ?        S<Ll 13:23   0:04 ovs-vswitchd unix:/var/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -vfile:info --mlockall --no-chdir --log-file=/var/log/openvswitch/ovs-vswitchd.log --pidfile=/var/run/openvswitch/ovs-vswitchd.pid --detach --monitor
root     25487  0.0  0.0  19548  1864 ?        S    13:25   0:00 /usr/bin/ovsdb-client monitor Interface name,ofport,external_ids --format=json
root     25651  0.0  0.0  19548  1864 ?        S    13:25   0:00 /usr/bin/ovsdb-client monitor Interface name,ofport,external_ids --format=json
root     25781  0.0  0.0  19548  1864 ?        S    13:26   0:00 /usr/bin/ovsdb-client monitor Interface name,ofport,external_ids --format=json
root     25925  0.0  0.0  19548  1864 ?        S    13:26   0:00 /usr/bin/ovsdb-client monitor Interface name,ofport,external_ids --format=json
root     26056  0.0  0.0  19548  1860 ?        S    13:27   0:00 /usr/bin/ovsdb-client monitor Interface name,ofport,external_ids --format=json
root     26199  0.0  0.0  19548  1864 ?        S    13:27   0:00 /usr/bin/ovsdb-client monitor Interface name,ofport,external_ids --format=json
root     26330  0.0  0.0  19548  1864 ?        S    13:28   0:00 /usr/bin/ovsdb-client monitor Interface name,ofport,external_ids --format=json
root     26442  0.0  0.0  19548  1864 ?        S    13:28   0:00 /usr/bin/ovsdb-client monitor Interface name,ofport,external_ids --format=json
root     26528  0.0  0.0  19548  1860 ?        S    13:29   0:00 /usr/bin/ovsdb-client monitor Interface name,ofport,external_ids --format=json
root     26629  0.0  0.0  19548  1860 ?        S    13:29   0:00 /usr/bin/ovsdb-client monitor Interface name,ofport,external_ids --format=json
root     26723  0.0  0.0  19548  1864 ?        S    13:30   0:00 /usr/bin/ovsdb-client monitor Interface name,ofport,external_ids --format=json
root     26750  0.0  0.0  11680   928 pts/11   S+   13:30   0:00 grep --color=auto ovs

# sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf ovsdb-client monitor Interface name,ofport,external_ids --format=json
sudo: unable to resolve host hl-206-34
{"data":[["84fb458b-103e-44d0-b580-0a0dd63aef64","initial","br-int",65534,["map",[]]],["6fb06d19-4e65-4fcc-9625-e8e29993b9c4","initial","patch-int",1,["map",[]]],["6cda4717-9df4-4194-aa5f-e27b2f525e70","initial","br-tun",65534,["map",[]]],["bdcf25b6-33f4-4408-a08f-e54e0d4e5e32","initial","patch-tun",1,["map",[]]],["483f842e-8fc5-45cb-85af-5086b1ec6fa1","initial","br0",65534,["map",[]]],["503e9e2b-19af-47f5-b47f-b17b738806e3","initial","eth2",1,["map",[]]]],"headings":["row","action","name","ofport","external_ids"]}

ÇØ°á)
ÀÚ±âÀڽŠComputeNode hostname  ¼³Á¤ÀÌ µÇ¾îÀÖÁö ¾Ê¾ÒÀ½
# cat /etc/hosts
......................
172.16.206.34 hl-206-34    # Ãß°¡

# service openvswitch-switch restart


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.