Public bug reported: https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/neutron.py#L675 alters the network[subnets] value to be a list of Subnet objects instead of a list of unicode strings. Since the calling code has no idea what it will get back (thanks Python), it breaks in strange ways.
Specifically, the Create Port form expects a list of Subnet objects, not a list of strings and so falls about laughing https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/admin/networks/ports/forms.py#L150 The easiest way to recreate this is a standard devstack, log in as Admin, try to create a Port on the default Private network. ** Affects: horizon Importance: High Assignee: Rob Cresswell (robcresswell) Status: New ** Tags: mitaka-backport-potential newton-backport-potential ** Description changed: https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/neutron.py#L675 alters the network[subnets] value to be a list of Subnet objects instead of a list of unicode strings. Since the calling code has no idea what it will get back (thanks Python), it breaks in strange ways. Specifically, the Create Port form expects a list of Subnet objects, not - a list of strings and so falls about laughing. + a list of strings and so falls about laughing + https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/admin/networks/ports/forms.py#L150 ** Description changed: https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/neutron.py#L675 alters the network[subnets] value to be a list of Subnet objects instead of a list of unicode strings. Since the calling code has no idea what it will get back (thanks Python), it breaks in strange ways. Specifically, the Create Port form expects a list of Subnet objects, not a list of strings and so falls about laughing https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/admin/networks/ports/forms.py#L150 + + The easiest way to recreate this is a standard devstack, log in as + Admin, try to create a Port on the default Private network. ** Changed in: horizon Assignee: (unassigned) => Rob Cresswell (robcresswell) ** Tags added: mitaka-backport-potential newton-backport-potential ** Changed in: horizon Importance: Undecided => High ** Changed in: horizon Milestone: None => ocata-2 -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1645708 Title: Can't create Port as Admin on an unshared Network in another project Status in OpenStack Dashboard (Horizon): New Bug description: https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/neutron.py#L675 alters the network[subnets] value to be a list of Subnet objects instead of a list of unicode strings. Since the calling code has no idea what it will get back (thanks Python), it breaks in strange ways. Specifically, the Create Port form expects a list of Subnet objects, not a list of strings and so falls about laughing https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/admin/networks/ports/forms.py#L150 The easiest way to recreate this is a standard devstack, log in as Admin, try to create a Port on the default Private network. To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1645708/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

