[Openstack] Does security group in neutron be supported in windows 2012 (JUNO) ?

Erhan Ekici erhan.ekici at gmail.com
Fri Jan 9 17:42:26 UTC 2015


Hi Livemoon,

I have not tried cloudbase nova client yet. However, I took a look at your
log file and followed the error messages in Juno release source code:

*From neutron/agent/securitygroups_rpc.py file:*

229    def _update_security_group_info(self, security_groups,
230                                    security_group_member_ips):
231       * LOG.debug("Update security group information")*
232        for sg_id, sg_rules in security_groups.items():
233           * self.firewall.update_security_group_rules(sg_id, sg_rules)*
234        for remote_sg_id, member_ips in
security_group_member_ips.items():
235            self.firewall.update_security_group_members(
236                remote_sg_id, member_ips)

*From neutron/agent/firewall.py*

112    def update_security_group_rules(self, sg_id, rules):
113        """Update rules in a security group."""
114        *raise NotImplementedError()*

I think it is clear that you got error message. You can take a look at
neutron juno release source code and trace your error messages in source
code.

https://github.com/openstack/neutron/blob/stable/juno/neutron/agent/firewall.py

Erhan,



On Fri, Jan 9, 2015 at 8:15 AM, livemoon <mwjpiero at gmail.com> wrote:

>
> I install nova(cloudbase juno version) on windows 2012 (Hyper-V). I using
> flat mode in neutron.
> I found security_group is in config file and I set
> "enable_security_group=true" in neutron_hyperv_agent and set
> "security_group_api=neutron" in nova
>
> but in the neutron log file ,it said:
>
> 2015-01-09 13:53:43.303 3816 DEBUG
> neutron.plugins.hyperv.agent.security_groups_driver
> [req-23712714-abcf-44bd-9480-ce471f094330 None] Creating port 1 rules
> prepare_port_filter C:\Program Files (x86)\Cloudbase
> Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\plugins\hyperv\agent\security_groups_driver.py:53
> 2015-01-09 13:53:43.303 3816 DEBUG neutron.agent.securitygroups_rpc
> [req-23712714-abcf-44bd-9480-ce471f094330 None] Update security group
> information for ports [u'cbab1deb-5a73-4c5d-bb80-ce733bfe22ac']
> prepare_devices_filter C:\Program Files (x86)\Cloudbase
> Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\agent\securitygroups_rpc.py:225
> 2015-01-09 13:53:43.303 3816 DEBUG neutron.agent.securitygroups_rpc
> [req-23712714-abcf-44bd-9480-ce471f094330 None] Update security group
> information _update_security_group_info C:\Program Files (x86)\Cloudbase
> Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\agent\securitygroups_rpc.py:231
> 2015-01-09 13:53:43.303 3816 ERROR
> neutron.plugins.hyperv.agent.hyperv_neutron_agent
> [req-23712714-abcf-44bd-9480-ce471f094330 None] Error in agent event loop:
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent Traceback (most recent
> call last):
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent   File "C:\Program Files
> (x86)\Cloudbase
> Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\plugins\hyperv\agent\hyperv_neutron_agent.py",
> line 448, in daemon_loop
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent     sync =
> self._process_network_ports(port_info)
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent   File "C:\Program Files
> (x86)\Cloudbase
> Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\plugins\hyperv\agent\hyperv_neutron_agent.py",
> line 424, in _process_network_ports
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent     resync_a =
> self._treat_devices_added(port_info['added'])
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent   File "C:\Program Files
> (x86)\Cloudbase
> Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\plugins\hyperv\agent\hyperv_neutron_agent.py",
> line 392, in _treat_devices_added
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent
> self.sec_groups_agent.prepare_devices_filter([device])
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent   File "C:\Program Files
> (x86)\Cloudbase
> Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\agent\securitygroups_rpc.py",
> line 202, in decorated_function
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent     return func(self,
> *args, **kwargs)
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent   File "C:\Program Files
> (x86)\Cloudbase
> Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\agent\securitygroups_rpc.py",
> line 227, in prepare_devices_filter
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent     security_groups,
> security_group_member_ips)
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent   File "C:\Program Files
> (x86)\Cloudbase
> Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\agent\securitygroups_rpc.py",
> line 233, in _update_security_group_info
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent
> self.firewall.update_security_group_rules(sg_id, sg_rules)
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent   File "C:\Program Files
> (x86)\Cloudbase
> Solutions\OpenStack\Nova\Python27\lib\site-packages\neutron\agent\firewall.py",
> line 114, in update_security_group_rules
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent     raise
> NotImplementedError()
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent NotImplementedError
> 2015-01-09 13:53:43.303 3816 TRACE
> neutron.plugins.hyperv.agent.hyperv_neutron_agent
>
> Dose the security group implemented now in hyper-v?
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150109/f15b53e4/attachment.html>


More information about the Openstack mailing list