Bug 1411527

Summary: Unable to provision VMs to a VLAN with a '/' in the name
Product: Red Hat CloudForms Management Engine Reporter: Saif Ali <saali>
Component: ProvidersAssignee: Adam Grare <agrare>
Status: CLOSED CURRENTRELEASE QA Contact: Alex Newman <anewman>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6.0CC: anewman, clasohm, cpelland, fdewaley, gmccullo, jfrey, jhardy, jocarter, kmorey, lufu, mawest, myoder, nstephan, obarenbo, pmcgowan, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: vm:provision
Fixed In Version: 5.8.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1420442 1420466 (view as bug list) Environment:
Last Closed: 2017-06-12 17:29:36 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: 1420442, 1420466    
Attachments:
Description Flags
Logs none

Description Saif Ali 2017-01-09 22:13:00 UTC
Created attachment 1238916 [details]
Logs

Description of problem:
vlan_123_audit
vlan_456_prod_middletier_172.16.33/24

When attempting to provision to a VLAN with a '/' in the name, the automation method prov.set_customization_spec(spec, true) sets the prov.options[:vlan] to [nil, nil]. This results in the provision failing to be placed because it can not find a host with the VLAN 'nil'.

Version-Release number of selected component (if applicable):
5.6.2.2-20161017185613_7cee0a0

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 7 Greg McCullough 2017-01-19 14:21:46 UTC
Based on the previous logic here we likely want to encode the value before doing the db lookup:
https://github.com/ManageIQ/manageiq/blob/capablanca/app/models/manageiq/providers/vmware/infra_manager/provision/configuration/network.rb#L84

Comment 14 Greg McCullough 2017-02-23 18:58:13 UTC
*** Bug 1426337 has been marked as a duplicate of this bug. ***