Forum Discussion

Jeff_Giroux's avatar
Oct 21, 2014

OpenStack F5 plug-in IceHouse and Python Dependencies

My customer asks...

 

Where can get the plugin that works on icehouse release without python 2.7. The python 2.7 dependency is killing my environment. We are running the Mirantis distribution of IceHouse running on CentOS. If I upgrade the python to 2.7 then the rest of the services are not working in Openstack environment. The default install comes with Python 2.6 and it doesn't work with current F5 plug-in.

 

  • He just tried installed with –nodeps option but still couldn’t get the agent running.

     

    [root@node-3 ~] /etc/init.d/f5-bigip-lbaas-agent status f5-bigip-lbaas-agent is stopped [root@node-3 ~] /etc/init.d/f5-bigip-lbaas-agent start Starting f5-bigip-lbaas-agent: [ OK ] [root@node-3 ~] /etc/init.d/f5-bigip-lbaas-agent status f5-bigip-lbaas-agent dead but pid file exists [root@node-3 ~]

     

    I can’t find any logs in /var/log folder. Where are the install logs or error logs for the package?

     

  • Attempting to load the agent manually gives the below error:

     

    [root@node-3 site-packages] /usr/bin/f5-bigip-lbaas-agent --config-file=/etc/neutron/f5-bigip-lbaas-agent.ini --config-file=/etc/neutron/neutron.conf --debug Traceback (most recent call last): File "/usr/bin/f5-bigip-lbaas-agent", line 6, in from neutron.services.loadbalancer.drivers.f5.bigip.agent import main ImportError: No module named f5.bigip.agent

     

  • I have got this working by symlinking the f5 lbaas files in/usr/lib/python2.7/site-packages from /usr/lib/python2.6/site-packages. Commands run:

    ln -s /usr/lib/python2.7/site-packages/f5_bigip_lbaas_agent-1.0.4.icehouse_1-py2.7.egg-info /usr/lib/python2.6/site-packages/f5_bigip_lbaas_agent-1.0.4.icehouse_1-py2.7.egg-info
    ln -s /usr/lib/python2.7/site-packages/f5_lbaas_driver-1.0.4.icehouse_1-py2.7.egg-info /usr/lib/python2.6/site-packages/f5_lbaas_driver-1.0.4.icehouse_1-py2.7.egg-info
    ln -s /usr/lib/python2.7/site-packages/f5 /usr/lib/python2.6/site-packages/f5
    ln -s /usr/lib/python2.7/site-packages/neutron/services/loadbalancer/drivers/f5 /usr/lib/python2.6/site-packages/neutron/services/loadbalancer/drivers/f5

    I also had to comment out the loadbalancer service plugin for haproxy in

    /usr/share/neutron/neutron-dist.conf
    due to this Red Hat bug

    The service then starts and is running fine.

  • Forgot to mention, our environment was built from Fuel 5.0 with IceHouse on Centos