Advertisement
Guest User

Untitled

a guest
Mar 7th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.72 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8. !!!!!!!!!!!!controller node
  9.  
  10. [root@oslesctr005 ~]# nova list --host osleskvm010.os.subgroup.mycompany.net --all-tenants
  11. +----+------+-----------+--------+------------+-------------+----------+
  12. | ID | Name | Tenant ID | Status | Task State | Power State | Networks |
  13. +----+------+-----------+--------+------------+-------------+----------+
  14. +----+------+-----------+--------+------------+-------------+----------+
  15. [root@oslesctr005 ~]# nova list --host osleskvm080.os.subgroup.mycompany.net --all-tenants
  16. +--------------------------------------+-------------------+----------------------------------+--------+------------+-------------+----------------------------------------------------+
  17. | ID | Name | Tenant ID | Status | Task State | Power State | Networks |
  18. +--------------------------------------+-------------------+----------------------------------+--------+------------+-------------+----------------------------------------------------+
  19. | a499bcf9-48aa-4f63-be8e-7af927fd8e23 | Test server | 0265d4e22ee242d3b9356fc99833511c | ACTIVE | - | Running | internal-test-net-01=192.168.0.104 |
  20. | e0fc56e7-84fd-4f82-9c39-9cf3a3fdab4d | centos7-4Ral | 0265d4e22ee242d3b9356fc99833511c | ACTIVE | - | Running | internal-test-net-01=192.168.0.105, 212.128.217.15 |
  21. | 626f0a19-a62d-4520-beb2-cffb7465d955 | test_instance_080 | 0265d4e22ee242d3b9356fc99833511c | ACTIVE | - | Running | internal-test-net-01=192.168.0.103, 212.128.217.13 |
  22. +--------------------------------------+-------------------+----------------------------------+--------+------------+-------------+----------------------------------------------------+
  23. [root@oslesctr005 ~]# nova live-migration --block-migrate 626f0a19-a62d-4520-beb2-cffb7465d955 osleskvm010.os.subgroup.mycompany.net
  24. [root@oslesctr005 ~]#
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. !!!!!!!!!!!!kvm node with running instances
  34.  
  35.  
  36. [root@osleskvm080 ~]# rpm -qa |grep qemu
  37. qemu-img-1.5.3-105.el7.x86_64
  38. qemu-kvm-common-1.5.3-105.el7.x86_64
  39. qemu-kvm-1.5.3-105.el7.x86_64
  40. libvirt-daemon-driver-qemu-1.2.17-13.el7.x86_64
  41. ipxe-roms-qemu-20130517-7.gitc4bce43.el7.noarch
  42. qemu-kvm-tools-1.5.3-105.el7.x86_64
  43. [root@osleskvm080 ~]# rpm -qa |grep libvi
  44. libvirt-client-1.2.17-13.el7.x86_64
  45. libvirt-daemon-driver-interface-1.2.17-13.el7.x86_64
  46. libvirt-1.2.17-13.el7.x86_64
  47. libvirt-daemon-config-nwfilter-1.2.17-13.el7.x86_64
  48. libvirt-daemon-config-network-1.2.17-13.el7.x86_64
  49. libvirt-daemon-1.2.17-13.el7.x86_64
  50. libvirt-daemon-driver-secret-1.2.17-13.el7.x86_64
  51. libvirt-daemon-driver-network-1.2.17-13.el7.x86_64
  52. libvirt-daemon-driver-storage-1.2.17-13.el7.x86_64
  53. libvirt-python-1.2.17-2.el7.x86_64
  54. libvirt-daemon-driver-nodedev-1.2.17-13.el7.x86_64
  55. libvirt-daemon-driver-qemu-1.2.17-13.el7.x86_64
  56. libvirt-daemon-kvm-1.2.17-13.el7.x86_64
  57. libvirt-glib-0.1.9-1.el7.x86_64
  58. libvirt-daemon-driver-lxc-1.2.17-13.el7.x86_64
  59. libvirt-daemon-driver-nwfilter-1.2.17-13.el7.x86_64
  60. [root@osleskvm080 ~]#
  61.  
  62. [root@osleskvm080 ~]# netstat -putanv |grep LISTEN
  63. tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 5927/qemu-kvm
  64. tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 19447/qemu-kvm
  65. tcp 0 0 0.0.0.0:5902 0.0.0.0:* LISTEN 9281/qemu-kvm
  66. tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 2076/dnsmasq
  67. tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 8908/sshd
  68. tcp 0 0 192.168.112.92:16509 0.0.0.0:* LISTEN 11667/libvirtd
  69. tcp6 0 0 :::22 :::* LISTEN 8908/sshd
  70. [root@osleskvm080 ~]#
  71.  
  72.  
  73.  
  74.  
  75.  
  76. [root@osleskvm080 ~]# cat /etc/sysconfig/libvirtd |grep -vE "^#|^$"
  77. LIBVIRTD_ARGS="--listen"
  78. [root@osleskvm080 ~]#
  79.  
  80. [root@osleskvm080 ~]# cat /etc/libvirt/libvirtd.conf |grep -vE "^#|^$"
  81. listen_tls = 0
  82. listen_tcp = 1
  83. tcp_port = "16509"
  84. listen_addr = "192.168.112.92"
  85. auth_tcp = "none"
  86. [root@osleskvm080 ~]#
  87.  
  88.  
  89.  
  90.  
  91. ###############log when trying to migrate
  92.  
  93.  
  94.  
  95.  
  96. 2016-03-07 12:59:39.491 16281 ERROR nova.virt.libvirt.driver [req-a451084f-b02a-4bb4-97c3-e40302b0c1fc d816dec9b7f146778df6536ab7c710c7 1bf2367e235342a585e012b6220cb92d - - -] [instance: 626f0a19-a62d-4520-beb2-cffb7465d955] Migration operation has aborted
  97. 2016-03-07 12:59:39.623 16281 ERROR nova.virt.libvirt.driver [req-a451084f-b02a-4bb4-97c3-e40302b0c1fc d816dec9b7f146778df6536ab7c710c7 1bf2367e235342a585e012b6220cb92d - - -] [instance: 626f0a19-a62d-4520-beb2-cffb7465d955] Live Migration failure: internal error: unable to execute QEMU command 'migrate': this feature or command is not currently supported
  98. 2016-03-07 12:59:43.120 16281 INFO nova.compute.resource_tracker [req-b67b98d5-b503-45f0-9ef3-bcb1c06bddd5 - - - - -] Auditing locally available compute resources for node osleskvm080.os.subgroup.mycompany.net
  99. 2016-03-07 12:59:43.843 16281 INFO nova.compute.resource_tracker [req-b67b98d5-b503-45f0-9ef3-bcb1c06bddd5 - - - - -] Total usable vcpus: 16, total allocated vcpus: 3
  100. 2016-03-07 12:59:43.843 16281 INFO nova.compute.resource_tracker [req-b67b98d5-b503-45f0-9ef3-bcb1c06bddd5 - - - - -] Final resource view: name=osleskvm080.os.subgroup.mycompany.net phys_ram=31984MB used_ram=3584MB phys_disk=9GB used_disk=22GB total_vcpus=16 used_vcpus=3 pci_stats=<nova.pci.stats.PciDeviceStats object at 0x4400ed0>
  101. 2016-03-07 12:59:43.874 16281 INFO nova.scheduler.client.report [req-b67b98d5-b503-45f0-9ef3-bcb1c06bddd5 - - - - -] Compute_service record updated for ('osleskvm080.os.subgroup.mycompany.net', 'osleskvm080.os.subgroup.mycompany.net')
  102. 2016-03-07 12:59:43.874 16281 INFO nova.compute.resource_tracker [req-b67b98d5-b503-45f0-9ef3-bcb1c06bddd5 - - - - -] Compute_service record updated for osleskvm080.os.subgroup.mycompany.net:osleskvm080.os.subgroup.mycompany.net
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111. !!!!!!!!!!!!kvm node where I send the instance
  112.  
  113.  
  114. [root@osleskvm010 ~]# rpm -qa |grep qemu
  115. qemu-img-1.5.3-105.el7.x86_64
  116. qemu-kvm-common-1.5.3-105.el7.x86_64
  117. qemu-kvm-1.5.3-105.el7.x86_64
  118. libvirt-daemon-driver-qemu-1.2.17-13.el7.x86_64
  119. ipxe-roms-qemu-20130517-7.gitc4bce43.el7.noarch
  120. qemu-kvm-tools-1.5.3-105.el7.x86_64
  121. ^[[A[root@osleskvm010 ~]# rpm -qa |grep libvir
  122. libvirt-client-1.2.17-13.el7.x86_64
  123. libvirt-daemon-driver-interface-1.2.17-13.el7.x86_64
  124. libvirt-1.2.17-13.el7.x86_64
  125. libvirt-daemon-config-nwfilter-1.2.17-13.el7.x86_64
  126. libvirt-daemon-config-network-1.2.17-13.el7.x86_64
  127. libvirt-daemon-1.2.17-13.el7.x86_64
  128. libvirt-daemon-driver-secret-1.2.17-13.el7.x86_64
  129. libvirt-daemon-driver-network-1.2.17-13.el7.x86_64
  130. libvirt-daemon-driver-storage-1.2.17-13.el7.x86_64
  131. libvirt-python-1.2.17-2.el7.x86_64
  132. libvirt-daemon-driver-nodedev-1.2.17-13.el7.x86_64
  133. libvirt-daemon-driver-qemu-1.2.17-13.el7.x86_64
  134. libvirt-daemon-kvm-1.2.17-13.el7.x86_64
  135. libvirt-glib-0.1.9-1.el7.x86_64
  136. libvirt-daemon-driver-lxc-1.2.17-13.el7.x86_64
  137. libvirt-daemon-driver-nwfilter-1.2.17-13.el7.x86_64
  138. [root@osleskvm010 ~]#
  139.  
  140.  
  141. [root@osleskvm010 ~]# netstat -putanv |grep LISTEN
  142. tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 2056/dnsmasq
  143. tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3870/sshd
  144. tcp 0 0 192.168.112.22:16509 0.0.0.0:* LISTEN 6592/libvirtd
  145. tcp6 0 0 :::22 :::* LISTEN 3870/sshd
  146. [root@osleskvm010 ~]#
  147.  
  148.  
  149.  
  150.  
  151. [root@osleskvm010 ~]# cat /etc/sysconfig/libvirtd |grep -vE "^#|^$"
  152. LIBVIRTD_ARGS="--listen"
  153. [root@osleskvm010 ~]# cat /etc/libvirt/libvirtd.conf |grep -vE "^#|^$"
  154. listen_tls = 0
  155. listen_tcp = 1
  156. tcp_port = "16509"
  157. listen_addr = "192.168.112.22"
  158. auth_tcp = "none"
  159. [root@osleskvm010 ~]#
  160.  
  161.  
  162.  
  163.  
  164.  
  165. ###############log when trying to migrate
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175. 2016-03-07 12:59:33.185 27578 INFO nova.virt.libvirt.driver [req-a451084f-b02a-4bb4-97c3-e40302b0c1fc d816dec9b7f146778df6536ab7c710c7 1bf2367e235342a585e012b6220cb92d - - -] Instance launched has CPU info: {"vendor": "Intel", "model": "SandyBridge", "arch": "x86_64", "features": ["pge", "avx", "clflush", "sep", "syscall", "vme", "dtes64", "msr", "xsave", "vmx", "xtpr", "cmov", "ssse3", "est", "pat", "monitor", "smx", "pbe", "lm", "tsc", "nx", "fxsr", "tm", "sse4.1", "pae", "sse4.2", "pclmuldq", "acpi", "tsc-deadline", "mmx", "osxsave", "cx8", "mce", "de", "tm2", "ht", "dca", "lahf_lm", "pdcm", "mca", "pdpe1gb", "apic", "sse", "pse", "ds", "invtsc", "pni", "rdtscp", "aes", "sse2", "ss", "ds_cpl", "pcid", "fpu", "cx16", "pse36", "mtrr", "popcnt", "x2apic"], "topology": {"cores": 8, "threads": 1, "sockets": 1}}
  176. 2016-03-07 12:59:39.396 27578 INFO nova.compute.manager [req-7ed6c475-cf48-47cc-b5d3-d102329434b2 - - - - -] [instance: 626f0a19-a62d-4520-beb2-cffb7465d955] VM Started (Lifecycle Event)
  177. 2016-03-07 12:59:39.541 27578 INFO nova.compute.manager [req-7ed6c475-cf48-47cc-b5d3-d102329434b2 - - - - -] [instance: 626f0a19-a62d-4520-beb2-cffb7465d955] During the sync_power process the instance has moved from host osleskvm080.os.subgroup.mycompany.net to host osleskvm010.os.subgroup.mycompany.net
  178. 2016-03-07 12:59:39.865 27578 INFO nova.virt.libvirt.driver [-] [instance: 626f0a19-a62d-4520-beb2-cffb7465d955] During wait destroy, instance disappeared.
  179. 2016-03-07 12:59:40.492 27578 INFO nova.virt.libvirt.driver [req-a451084f-b02a-4bb4-97c3-e40302b0c1fc d816dec9b7f146778df6536ab7c710c7 1bf2367e235342a585e012b6220cb92d - - -] [instance: 626f0a19-a62d-4520-beb2-cffb7465d955] Deleting instance files /var/lib/nova/instances/626f0a19-a62d-4520-beb2-cffb7465d955_del
  180. 2016-03-07 12:59:40.494 27578 INFO nova.virt.libvirt.driver [req-a451084f-b02a-4bb4-97c3-e40302b0c1fc d816dec9b7f146778df6536ab7c710c7 1bf2367e235342a585e012b6220cb92d - - -] [instance: 626f0a19-a62d-4520-beb2-cffb7465d955] Deletion of /var/lib/nova/instances/626f0a19-a62d-4520-beb2-cffb7465d955_del complete
  181. 2016-03-07 12:59:54.617 27578 INFO nova.compute.manager [-] [instance: 626f0a19-a62d-4520-beb2-cffb7465d955] VM Stopped (Lifecycle Event)
  182. 2016-03-07 12:59:54.755 27578 INFO nova.compute.manager [req-ce1e3e71-b1e0-4773-9a91-13582dc1f888 - - - - -] [instance: 626f0a19-a62d-4520-beb2-cffb7465d955] During the sync_power process the instance has moved from host osleskvm080.os.subgroup.mycompany.net to host osleskvm010.os.subgroup.mycompany.net
  183. 2016-03-07 13:00:12.783 27578 INFO nova.compute.resource_tracker [req-8f3c2aa2-a5b6-44c3-a447-d48cd56adca2 - - - - -] Auditing locally available compute resources for node osleskvm010.os.subgroup.mycompany.net
  184. 2016-03-07 13:00:13.116 27578 INFO nova.compute.resource_tracker [req-8f3c2aa2-a5b6-44c3-a447-d48cd56adca2 - - - - -] Total usable vcpus: 16, total allocated vcpus: 0
  185. 2016-03-07 13:00:13.116 27578 INFO nova.compute.resource_tracker [req-8f3c2aa2-a5b6-44c3-a447-d48cd56adca2 - - - - -] Final resource view: name=osleskvm010.os.subgroup.mycompany.net phys_ram=31984MB used_ram=512MB phys_disk=9GB used_disk=0GB total_vcpus=16 used_vcpus=0 pci_stats=<nova.pci.stats.PciDeviceStats object at 0x4a093d0>
  186. 2016-03-07 13:00:13.150 27578 INFO nova.scheduler.client.report [req-8f3c2aa2-a5b6-44c3-a447-d48cd56adca2 - - - - -] Compute_service record updated for ('osleskvm010.os.subgroup.mycompany.net', 'osleskvm010.os.subgroup.mycompany.net')
  187. 2016-03-07 13:00:13.151 27578 INFO nova.compute.resource_tracker [req-8f3c2aa2-a5b6-44c3-a447-d48cd56adca2 - - - - -] Compute_service record updated for osleskvm010.os.subgroup.mycompany.net:osleskvm010.os.subgroup.mycompany.net
  188. 2016-03-07 13:00:16.845 27578 INFO nova.compute.manager [req-8f3c2aa2-a5b6-44c3-a447-d48cd56adca2 - - - - -] Running instance usage audit for host osleskvm010.os.subgroup.mycompany.net from 2016-03-07 12:00:00 to 2016-03-07 13:00:00. 0 instances.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214. !!!!!ssh rsa auth in both directions
  215.  
  216.  
  217.  
  218. [root@osleskvm080 ~]# ssh osleskvm010.os.subgroup.mycompany.net
  219. This system is for the use of authorized users only. Individuals using this computer system without authority, or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by system personnel.
  220. Last failed login: Mon Mar 7 12:20:49 WET 2016 from osleskvm080.os.subgroup.mycompany.net on ssh:notty
  221. There were 3 failed login attempts since the last successful login.
  222. Last login: Mon Mar 7 12:00:44 2016
  223. [root@osleskvm010 ~]# ssh osleskvm080.os.subgroup.mycompany.net
  224. This system is for the use of authorized users only. Individuals using this computer system without authority, or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by system personnel.
  225. Last login: Mon Mar 7 12:36:48 2016 from osleskvm010.os.subgroup.mycompany.net
  226. [root@osleskvm080 ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement