Friday, October 9, 2015

OpenStack Kilo : Nova : AMQP server on controllerIP:5672 is unreachable

Problem:

On the compute node :

/var/log/nova/nova-compute.log

2015-10-09 14:16:33.001 1511 ERROR oslo_messaging._drivers.impl_rabbit [req-8d61628a-1b9c-46c2-9eb1-5ecb4ac4b937 - - - - -] AMQP server on controllerIP:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 2 seconds

Solution :

On the controller node :
Controller node firewalld is up and port 5672 is not open

# firewall-cmd --get-default-zone
FedoraServer

# firewall-cmd --zone=FedoraServer  --list-all
FedoraServer (default)
  interfaces:
  sources:
  services: cockpit dhcpv6-client ssh
  ports:
  masquerade: no
  forward-ports:
  icmp-blocks:
  rich rules:




# firewall-cmd --permanent --zone=FedoraServer --add-port=5672/tcp
success



# firewall-cmd --reload
success

# firewall-cmd --zone=FedoraServer --list-all
FedoraServer (default)
  interfaces:
  sources:
  services: cockpit dhcpv6-client ssh
  ports: 5672/tcp  <---- now it is there
  masquerade: no
  forward-ports:
  icmp-blocks:
  rich rules:

Apply the same thing for other ports :
# firewall-cmd --permanent --zone=FedoraServer --add-port=35357/tcp
success
# firewall-cmd --permanent --zone=FedoraServer --add-port=8774/tcp
success
# firewall-cmd --permanent --zone=FedoraServer --add-port=9696/tcp
success
# firewall-cmd --reload
success

Now back to compute node:
# nova service-list
+----+------------------+-----------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host      | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+-----------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-consoleauth | Fedora-69 | internal | enabled | up    | 2015-10-09T18:48:10.000000 | -               |
| 2  | nova-conductor   | Fedora-69 | internal | enabled | up    | 2015-10-09T18:48:11.000000 | -               |
| 3  | nova-cert        | Fedora-69 | internal | enabled | up    | 2015-10-09T18:48:10.000000 | -               |
| 4  | nova-scheduler   | Fedora-69 | internal | enabled | up    | 2015-10-09T18:48:10.000000 | -               |
| 5  | nova-compute     | fedora-68 | nova     | enabled | up    | 2015-10-09T18:48:10.000000 | -               |
+----+------------------+-----------+----------+---------+-------+----------------------------+-----------------+




No comments:

Post a Comment