epretorious

Unable to start agent: Failed to get private nic name

Jun 3rd, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.62 KB | None | 0 0
  1. ### 1. Network configuration
  2. [root@vmh-1 ~]# nmcli dev stat && echo && nmcli conn show && echo && brctl show
  3. DEVICE TYPE STATE CONNECTION
  4. bond0 bond connected MGT
  5. p1p1 ethernet connected SAN1
  6. p1p2 ethernet connected SAN2
  7. p1p3 ethernet connected bond-slave-p1p3
  8. p1p4 ethernet connected bond-slave-p1p4
  9. p1p5 ethernet disconnected --
  10. lo loopback unmanaged --
  11.  
  12. NAME UUID TYPE DEVICE
  13. MGT bf4aa9ff-53ce-4caf-8b26-1f0228a9914f bond bond0
  14. SAN1 54f64855-666c-44cf-8c0e-45ae5681d1c0 ethernet p1p1
  15. SAN2 7b516066-1f5a-4b51-bda1-1c28884af4f1 ethernet p1p2
  16. bond-slave-p1p3 206c2364-492b-414e-a7c4-1e8ce4da3efb ethernet p1p3
  17. bond-slave-p1p4 22333958-d8b7-416a-bcf3-38c553efa527 ethernet p1p4
  18. p1p5 9581f463-b6f7-42ba-9d87-63b4836399b9 ethernet --
  19.  
  20. bridge name bridge id STP enabled interfaces
  21.  
  22. [root@vmh-1 ~]# ip add | grep 'bond0\|p1p1\|p1p2'
  23. 3: p1p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000
  24. inet 172.16.1.3/25 brd 172.16.1.127 scope global noprefixroute p1p1
  25. 4: p1p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000
  26. inet 172.16.1.131/25 brd 172.16.1.255 scope global noprefixroute p1p2
  27. 5: p1p3: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP group default qlen 1000
  28. 6: p1p4: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP group default qlen 1000
  29. 7: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
  30. inet 172.16.0.6/24 brd 172.16.0.255 scope global noprefixroute bond0
  31.  
  32.  
  33. ### 2. libvirtd
  34. [root@vmh-1 ~]# grep -v '^#' /etc/libvirt/libvirtd.conf | grep -v ^$
  35. listen_tls = 0
  36. listen_tcp = 1
  37. tcp_port = "16509"
  38. mdns_adv = 0
  39. auth_tcp = "none"
  40.  
  41. [root@vmh-1 ~]# netstat -tanp | grep virt
  42. tcp 0 0 0.0.0.0:16509 0.0.0.0:* LISTEN 1508/libvirtd
  43. tcp6 0 0 :::16509 :::* LISTEN 1508/libvirtd
  44.  
  45. [root@vmh-1 ~]# systemctl status libvirtd
  46. ● libvirtd.service - Virtualization daemon
  47. Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
  48. Active: active (running) since Wed 2020-06-03 02:34:58 GMT; 14h ago
  49. Docs: man:libvirtd(8)
  50. https://libvirt.org
  51. Main PID: 1508 (libvirtd)
  52. Tasks: 17 (limit: 32768)
  53. CGroup: /system.slice/libvirtd.service
  54. └─1508 /usr/sbin/libvirtd --listen
  55.  
  56. Jun 03 17:33:12 vmh-1.local libvirtd[1508]: 2020-06-03 17:33:12.058+0000: 1508: error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error
  57. Jun 03 17:33:23 vmh-1.local libvirtd[1508]: 2020-06-03 17:33:23.046+0000: 1508: error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error
  58. Jun 03 17:33:34 vmh-1.local libvirtd[1508]: 2020-06-03 17:33:34.060+0000: 1508: error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error
  59. Jun 03 17:33:45 vmh-1.local libvirtd[1508]: 2020-06-03 17:33:45.038+0000: 1508: error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error
  60. Jun 03 17:33:56 vmh-1.local libvirtd[1508]: 2020-06-03 17:33:56.069+0000: 1508: error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error
  61. Jun 03 17:34:07 vmh-1.local libvirtd[1508]: 2020-06-03 17:34:07.056+0000: 1508: error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error
  62. Jun 03 17:34:18 vmh-1.local libvirtd[1508]: 2020-06-03 17:34:18.051+0000: 1508: error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error
  63. Jun 03 17:34:29 vmh-1.local libvirtd[1508]: 2020-06-03 17:34:29.041+0000: 1508: error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error
  64. Jun 03 17:34:40 vmh-1.local libvirtd[1508]: 2020-06-03 17:34:40.052+0000: 1508: error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error
  65. Jun 03 17:34:51 vmh-1.local libvirtd[1508]: 2020-06-03 17:34:51.044+0000: 1508: error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error
  66.  
  67.  
  68. ### 3. /var/log/cloudstack/agent/agent.log
  69. 2020-06-03 17:11:00,649 INFO [cloud.agent.AgentShell] (main:null) (logid:) Agent started
  70. 2020-06-03 17:11:00,654 INFO [cloud.agent.AgentShell] (main:null) (logid:) Implementation Version is 4.14.0.0
  71. 2020-06-03 17:11:00,656 INFO [cloud.agent.AgentShell] (main:null) (logid:) agent.properties found at /etc/cloudstack/agent/agent.properties
  72. 2020-06-03 17:11:00,671 INFO [cloud.agent.AgentShell] (main:null) (logid:) Defaulting to using properties file for storage
  73. 2020-06-03 17:11:00,672 INFO [cloud.agent.AgentShell] (main:null) (logid:) Defaulting to the constant time backoff algorithm
  74. 2020-06-03 17:11:00,689 INFO [cloud.utils.LogUtils] (main:null) (logid:) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
  75. 2020-06-03 17:11:00,701 INFO [cloud.agent.AgentShell] (main:null) (logid:) Using default Java settings for IPv6 preference for agent connection
  76. 2020-06-03 17:11:00,789 INFO [cloud.agent.Agent] (main:null) (logid:) id is
  77. 2020-06-03 17:11:00,792 WARN [cloud.resource.ServerResourceBase] (main:null) (logid:) Nics are not specified in properties file/db, will try to autodiscover
  78. 2020-06-03 17:11:00,797 INFO [cloud.resource.ServerResourceBase] (main:null) (logid:) Designating private to be nic bond0
  79. 2020-06-03 17:11:00,803 ERROR [kvm.resource.LibvirtComputingResource] (main:null) (logid:) uefi properties file not found due to: Unable to find file uefi.properties.
  80. 2020-06-03 17:11:00,847 INFO [kvm.resource.LibvirtConnection] (main:null) (logid:) No existing libvirtd connection found. Opening a new one
  81. 2020-06-03 17:11:01,014 INFO [org.reflections.Reflections] (main:null) (logid:) Reflections took 40 ms to scan 1 urls, producing 9 keys and 11 values
  82. 2020-06-03 17:11:01,021 INFO [kvm.resource.LibvirtComputingResource] (main:null) (logid:) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
  83. 2020-06-03 17:11:01,028 ERROR [kvm.resource.LibvirtComputingResource] (main:null) (logid:) Failed to get private nic name
  84. 2020-06-03 17:11:01,028 ERROR [cloud.agent.AgentShell] (main:null) (logid:) Unable to start agent: Failed to get private nic name
  85.  
  86.  
  87. ### 4. /var/log/messages
  88. Jun 3 17:06:36 vmh-1 systemd: cloudstack-agent.service holdoff time over, scheduling restart.
  89. Jun 3 17:06:36 vmh-1 systemd: Stopped CloudStack Agent.
  90. Jun 3 17:06:36 vmh-1 systemd: Started CloudStack Agent.
  91. Jun 3 17:06:36 vmh-1 java: log4j:WARN No appenders could be found for logger (com.cloud.agent.AgentShell).
  92. Jun 3 17:06:36 vmh-1 java: log4j:WARN Please initialize the log4j system properly.
  93. Jun 3 17:06:36 vmh-1 java: log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  94. Jun 3 17:06:36 vmh-1 java: INFO [cloud.agent.AgentShell] (main:) (logid:) Agent started
  95. Jun 3 17:06:36 vmh-1 java: INFO [cloud.agent.AgentShell] (main:) (logid:) Implementation Version is 4.14.0.0
  96. Jun 3 17:06:36 vmh-1 java: INFO [cloud.agent.AgentShell] (main:) (logid:) agent.properties found at /etc/cloudstack/agent/agent.properties
  97. Jun 3 17:06:36 vmh-1 java: INFO [cloud.agent.AgentShell] (main:) (logid:) Defaulting to using properties file for storage
  98. Jun 3 17:06:36 vmh-1 java: INFO [cloud.agent.AgentShell] (main:) (logid:) Defaulting to the constant time backoff algorithm
  99. Jun 3 17:06:36 vmh-1 java: INFO [cloud.utils.LogUtils] (main:) (logid:) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
  100. Jun 3 17:06:36 vmh-1 java: INFO [cloud.agent.AgentShell] (main:) (logid:) Using default Java settings for IPv6 preference for agent connection
  101. Jun 3 17:06:36 vmh-1 java: INFO [cloud.agent.Agent] (main:) (logid:) id is
  102. Jun 3 17:06:36 vmh-1 java: WARN [cloud.resource.ServerResourceBase] (main:) (logid:) Nics are not specified in properties file/db, will try to autodiscover
  103. Jun 3 17:06:36 vmh-1 java: INFO [cloud.resource.ServerResourceBase] (main:) (logid:) Designating private to be nic bond0
  104. Jun 3 17:06:36 vmh-1 java: ERROR [kvm.resource.LibvirtComputingResource] (main:) (logid:) uefi properties file not found due to: Unable to find file uefi.properties.
  105. Jun 3 17:06:36 vmh-1 java: INFO [kvm.resource.LibvirtConnection] (main:) (logid:) No existing libvirtd connection found. Opening a new one
  106. Jun 3 17:06:36 vmh-1 kvm: 1 guest now active
  107. Jun 3 17:06:36 vmh-1 kvm: 0 guests now active
  108. Jun 3 17:06:36 vmh-1 kvm: 1 guest now active
  109. Jun 3 17:06:36 vmh-1 kvm: 0 guests now active
  110. Jun 3 17:06:37 vmh-1 java: INFO [org.reflections.Reflections] (main:) (logid:) Reflections took 42 ms to scan 1 urls, producing 9 keys and 11 values
  111. Jun 3 17:06:37 vmh-1 java: INFO [kvm.resource.LibvirtComputingResource] (main:) (logid:) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
  112. Jun 3 17:06:37 vmh-1 java: ERROR [kvm.resource.LibvirtComputingResource] (main:) (logid:) Failed to get private nic name
  113. Jun 3 17:06:37 vmh-1 java: ERROR [cloud.agent.AgentShell] (main:) (logid:) Unable to start agent: Failed to get private nic name
  114. Jun 3 17:06:37 vmh-1 java: Unable to start agent: Failed to get private nic name
  115. Jun 3 17:06:37 vmh-1 libvirtd: 2020-06-03 17:06:37.070+0000: 1508: error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error
  116. Jun 3 17:06:37 vmh-1 systemd: cloudstack-agent.service: main process exited, code=exited, status=66/n/a
  117. Jun 3 17:06:37 vmh-1 systemd: Unit cloudstack-agent.service entered failed state.
  118. Jun 3 17:06:37 vmh-1 systemd: cloudstack-agent.service failed.
  119. Jun 3 17:06:47 vmh-1 systemd: cloudstack-agent.service holdoff time over, scheduling restart.
  120. Jun 3 17:06:47 vmh-1 systemd: Stopped CloudStack Agent.
  121. Jun 3 17:06:47 vmh-1 systemd: Started CloudStack Agent.
  122. Jun 3 17:06:47 vmh-1 java: log4j:WARN No appenders could be found for logger (com.cloud.agent.AgentShell).
  123. Jun 3 17:06:47 vmh-1 java: log4j:WARN Please initialize the log4j system properly.
  124. Jun 3 17:06:47 vmh-1 java: log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  125. Jun 3 17:06:47 vmh-1 java: INFO [cloud.agent.AgentShell] (main:) (logid:) Agent started
  126. Jun 3 17:06:47 vmh-1 java: INFO [cloud.agent.AgentShell] (main:) (logid:) Implementation Version is 4.14.0.0
  127. Jun 3 17:06:47 vmh-1 java: INFO [cloud.agent.AgentShell] (main:) (logid:) agent.properties found at /etc/cloudstack/agent/agent.properties
  128. Jun 3 17:06:47 vmh-1 java: INFO [cloud.agent.AgentShell] (main:) (logid:) Defaulting to using properties file for storage
  129. Jun 3 17:06:47 vmh-1 java: INFO [cloud.agent.AgentShell] (main:) (logid:) Defaulting to the constant time backoff algorithm
  130. Jun 3 17:06:47 vmh-1 java: INFO [cloud.utils.LogUtils] (main:) (logid:) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
  131. Jun 3 17:06:47 vmh-1 java: INFO [cloud.agent.AgentShell] (main:) (logid:) Using default Java settings for IPv6 preference for agent connection
  132. Jun 3 17:06:47 vmh-1 java: INFO [cloud.agent.Agent] (main:) (logid:) id is
  133. Jun 3 17:06:47 vmh-1 java: WARN [cloud.resource.ServerResourceBase] (main:) (logid:) Nics are not specified in properties file/db, will try to autodiscover
  134. Jun 3 17:06:47 vmh-1 java: INFO [cloud.resource.ServerResourceBase] (main:) (logid:) Designating private to be nic bond0
  135. Jun 3 17:06:47 vmh-1 java: ERROR [kvm.resource.LibvirtComputingResource] (main:) (logid:) uefi properties file not found due to: Unable to find file uefi.properties.
  136. Jun 3 17:06:47 vmh-1 java: INFO [kvm.resource.LibvirtConnection] (main:) (logid:) No existing libvirtd connection found. Opening a new one
  137. Jun 3 17:06:47 vmh-1 kvm: 1 guest now active
  138. Jun 3 17:06:47 vmh-1 kvm: 0 guests now active
  139. Jun 3 17:06:47 vmh-1 kvm: 1 guest now active
  140. Jun 3 17:06:47 vmh-1 kvm: 0 guests now active
  141. Jun 3 17:06:48 vmh-1 java: INFO [org.reflections.Reflections] (main:) (logid:) Reflections took 40 ms to scan 1 urls, producing 9 keys and 11 values
  142. Jun 3 17:06:48 vmh-1 java: INFO [kvm.resource.LibvirtComputingResource] (main:) (logid:) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
  143. Jun 3 17:06:48 vmh-1 java: ERROR [kvm.resource.LibvirtComputingResource] (main:) (logid:) Failed to get private nic name
  144. Jun 3 17:06:48 vmh-1 java: ERROR [cloud.agent.AgentShell] (main:) (logid:) Unable to start agent: Failed to get private nic name
  145. Jun 3 17:06:48 vmh-1 java: Unable to start agent: Failed to get private nic name
  146. Jun 3 17:06:48 vmh-1 libvirtd: 2020-06-03 17:06:48.041+0000: 1508: error : virNetSocketReadWire:1806 : End of file while reading data: Input/output error
  147. Jun 3 17:06:48 vmh-1 systemd: cloudstack-agent.service: main process exited, code=exited, status=66/n/a
  148. Jun 3 17:06:48 vmh-1 systemd: Unit cloudstack-agent.service entered failed state.
  149. Jun 3 17:06:48 vmh-1 systemd: cloudstack-agent.service failed.
Advertisement
Add Comment
Please, Sign In to add comment