Comment 2 for bug 1439696

Revision history for this message
Vikram Hosakote (vhosakot) wrote :

After unstacking and re-stacking, when the heat template is run for the first time, does it start the neutron lbaas agent ?

I have seen the 404 error (The resource could not be found) for "neutron lb-healthmonitor-create" when the neutron lbaas agent is not running.

Refer https://wiki.openstack.org/wiki/Neutron/LBaaS/HowToRun to setup and run the lbaas agent. Ideally, the heat template should do this.

I can run the commands successfully when the neutron lbaas agent is running.

# ps aux | grep lb
neutron 24794 0.0 0.0 276740 31152 ? Ss Apr01 0:20 /usr/bin/python /usr/bin/neutron-lbaas-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/lbaas_agent.ini --log-file /var/log/neutron/lbaas-agent.log

# neutron lb-healthmonitor-create --delay 3 --type HTTP --max-retries 3 --timeout 3
Created a new health_monitor:
+----------------+--------------------------------------+
| Field | Value |
+----------------+--------------------------------------+
| admin_state_up | True |
| delay | 3 |
| expected_codes | 200 |
| http_method | GET |
| id | 771eca34-42c1-44e9-a96c-56de7afd2b7e |
| max_retries | 3 |
| pools | |
| tenant_id | ab81207b56754cafac46f183dc86529e |
| timeout | 3 |
| type | HTTP |
| url_path | / |
+----------------+--------------------------------------+

# neutron lb-healthmonitor-list
+--------------------------------------+------+----------------+
| id | type | admin_state_up |
+--------------------------------------+------+----------------+
| 771eca34-42c1-44e9-a96c-56de7afd2b7e | HTTP | True |
+--------------------------------------+------+----------------+