Bug 1244893
Summary: | CLI does not validate if --neutron-tunnel-types matches --neutron-network-type | |||
---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Dan Sneddon <dsneddon> | |
Component: | python-rdomanager-oscplugin | Assignee: | Brad P. Crochet <brad> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Marius Cornea <mcornea> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | high | |||
Version: | 7.0 (Kilo) | CC: | akrivoka, brad, calfonso, dsneddon, jslagle, mburns, mcornea, oblaut, rhel-osp-director-maint, sasha, ukalifon, ushkalim | |
Target Milestone: | y2 | Keywords: | Triaged, ZStream | |
Target Release: | 7.0 (Kilo) | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1282835 (view as bug list) | Environment: | ||
Last Closed: | 2015-11-17 15:09:39 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1282835 |
Description
Dan Sneddon
2015-07-20 17:31:56 UTC
*** Bug 1244894 has been marked as a duplicate of this bug. *** I got no error when I passed "--neutron-tunnel-types vxlan --neutron-network-type gre" on the command line. Deployment succeeded (I didn't test the resulting overcloud, but it deployed). @Udi Can you include the version of python-rdomanager-oscplugin? Verified that version was python-rdomanager-oscplugin-0.0.10-1.el7 openstack overcloud deploy --templates ~/templates/my-overcloud -e ~/templates/my-overcloud/environments/network-isolation.yaml -e ~/templates/network-environment.yaml --control-scale 1 --compute-scale 1 --ceph-storage-scale 0 --neutron-tunnel-types vxlan results in [heat-admin@overcloud-controller-0 ~]$ sudo grep tenant_network /etc/neutron/plugin.ini | grep -v ^# tenant_network_types = gre I think neutron-network-type defaults to gre in overcloud_deploy. Expected result: The same result as when passing specific neutron-network-type: [stack@instack ~]$ openstack overcloud deploy --templates ~/templates/my-overcloud -e ~/templates/my-overcloud/environments/network-isolation.yaml -e ~/templates/network-environment.yaml --control-scale 1 --compute-scale 1 --ceph-storage-scale 0 --neutron-tunnel-types vxlan --neutron-network-type gre ERROR: openstack Neutron network type must be in Neutron tunnel types (vxlan) [stack@instack ~]$ rpm -qa | grep oscplugin python-rdomanager-oscplugin-0.0.10-3.el7ost.noarch Verified: Environment: python-rdomanager-oscplugin-0.0.10-4.el7ost.noarch Attempted to deploy with command: openstack overcloud deploy --templates --control-scale 3 --compute-scale 1 --ceph-storage-scale 0 -e <yaml> --ntp-server x.x.x.x --timeout 90 --compute-flavor compute --control-flavor control --neutron-tunnel-types gre Resulted in: ERROR: openstack Neutron network type must be specified when Neutron tunnel types is specified I have one report that when deploying with --neutron-network-type vlan the user was required to add --neutron-tunnel-types vlan. That is not correct. We do want to make sure that when the network type is GRE or VXLAN that the neutron-tunnel-types includes that network type, but not when the network type is VLAN. When the network type is VLAN, the neutron-tunnel-types shouldn't be required. (In reply to Dan Sneddon from comment #13) > I have one report that when deploying with --neutron-network-type vlan the > user was required to add --neutron-tunnel-types vlan. > > That is not correct. We do want to make sure that when the network type is > GRE or VXLAN that the neutron-tunnel-types includes that network type, but > not when the network type is VLAN. When the network type is VLAN, the > neutron-tunnel-types shouldn't be required. I confirm that: [stack@instack ~]$ openstack overcloud deploy --templates ~/templates/my-overcloud -e ~/templates/my-overcloud/environments/network-isolation.yaml -e ~/templates/network-environment.yaml --control-scale 3 --compute-scale 1 --ntp-server clock.redhat.com -e ~/templates/snmpd.yaml --neutron-network-type vlan ERROR: openstack Neutron tunnel types must be specified when Neutron network type is specified Before moving it to assigned do you think --neutron-network-vlan-ranges should be required if --neutron-network-type is set to vlan? (In reply to Marius Cornea from comment #14) > (In reply to Dan Sneddon from comment #13) > > I have one report that when deploying with --neutron-network-type vlan the > > user was required to add --neutron-tunnel-types vlan. > > > > That is not correct. We do want to make sure that when the network type is > > GRE or VXLAN that the neutron-tunnel-types includes that network type, but > > not when the network type is VLAN. When the network type is VLAN, the > > neutron-tunnel-types shouldn't be required. > > I confirm that: > > [stack@instack ~]$ openstack overcloud deploy --templates > ~/templates/my-overcloud -e > ~/templates/my-overcloud/environments/network-isolation.yaml -e > ~/templates/network-environment.yaml --control-scale 3 --compute-scale 1 > --ntp-server clock.redhat.com -e ~/templates/snmpd.yaml > --neutron-network-type vlan > ERROR: openstack Neutron tunnel types must be specified when Neutron network > type is specified > > Before moving it to assigned do you think --neutron-network-vlan-ranges > should be required if --neutron-network-type is set to vlan? That's a great point, yes we probably should require --neutron-network-vlan-ranges when vlan mode is selected. Ok, so when --neutron-network-type is set to vlan --neutron-tunnel-types should not be required but instead --neutron-network-vlan-ranges should be passed. (In reply to Marius Cornea from comment #16) > Ok, so when --neutron-network-type is set to vlan --neutron-tunnel-types > should not be required but instead --neutron-network-vlan-ranges should be > passed. Yes, that is correct. This bug is blocking us from deploying with VLAN and verify functionality Closing this bug after cloning it for OSP8 to take care of the last corner case. The rest of it is in the current release. |