Bug 1561962
Summary: | Unable to create Cloud Network "<network_name>": undefined method `[]' for nil:NilClass | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Radim Hrazdil <rhrazdil> | ||||
Component: | Providers | Assignee: | Marek Aufart <maufart> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Radim Hrazdil <rhrazdil> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 5.9.0 | CC: | alkaplan, cpelland, gblomqui, istein, jfrey, jhardy, mmirecki, mperina, obarenbo, rhrazdil | ||||
Target Milestone: | GA | ||||||
Target Release: | cfme-future | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-05-23 14:55:30 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | RHEVM | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 1562065 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Radim Hrazdil
2018-03-29 09:19:48 UTC
The same Error message also occurs when adding a Security Group. Adding the info here, as it is most likely the same issue. [----] E, [2018-04-13T04:38:31.586732 #3026:11ff134] ERROR -- : MIQ(ManageIQ::Providers::Redhat::NetworkManager::SecurityGroup.raw_create_security_group) security_group=[newtestsecuritygroup], error: Expected(201) <=> Actual(405 Method Not Allowed) excon.error.response :body => "{\n \"error\": {\n \"message\": \"Method not allowed: POST\",\n \"code\": 405,\n \"title\": \"Method Not Allowed\"\n }\n}\n" :cookies => [ ] :headers => { "Connection" => "close" "Content-Type" => "application/json" "Date" => "Fri, 13 Apr 2018 08:38:31 GMT" "Server" => "BaseHTTP/0.3 Python/2.7.5" } :host => "<ovirt_engine_fqdn>" :local_address => "<CFME_IP>" :local_port => 42744 :path => "/v2.0/security-groups" :port => 9696 :reason_phrase => "Method Not Allowed" :remote_ip => "<ovirt_engine_IP>" :status => 405 :status_line => "HTTP/1.0 405 Method Not Allowed\r\n" [----] E, [2018-04-13T04:38:31.589752 #3026:11ff134] ERROR -- : MIQ(MiqQueue#deliver) Message id: [80098], Error: [undefined method `[]' for nil:NilClass] [----] E, [2018-04-13T04:38:31.590165 #3026:11ff134] ERROR -- : [NoMethodError]: undefined method `[]' for nil:NilClass Method:[block in method_missing] [----] E, [2018-04-13T04:38:31.590513 #3026:11ff134] ERROR -- : /opt/rh/cfme-gemset/bundler/gems/cfme-providers-openstack-3ffa6670e3c4/app/models/manageiq/providers/openstack/helper_methods.rb:24:in `parse_error_message_from_neutron_response' ... Adding a cloud network with network type 'local' is not supported by the ovirt-provider-ovn (you can see the error in the ovn provider log). Marcin, can you please add a list of the supported network types. Adding SecurityGroup is currently not supported by the ovn provider (same - you can see the error in the ovn provider log). Regarding the unreadable error messages - https://github.com/ManageIQ/manageiq-providers-openstack/pull/263/files should have fixed it. We support "flat" and "vlan" With flat, provider:physical_network must also be give With valn, we must additionally have provider:segmentation_id (as in: https://developer.openstack.org/api-ref/network/v2/#networks) Hi Radim, If now with https://github.com/ManageIQ/manageiq-providers-openstack/pull/263 the error looks better. Can you please consider closing the bug? Created attachment 1427546 [details]
network_error_message
Hello Alona,
I just checked the new error message (screenshot attached), the content of the error message is correct, but I believe, the error message still could be improved.
This is ok to be logged, in UI I would imagine something like:
Unable to create Cloud Network "test": nework_type [vxlan] is not supported.
Hi Radim and Ilanit, That's the format of the error returned from the provider/neutron. Maybe it should be parsed. Anyway, IMO it is not a rhev provider bug. Hello Alona, I agree. Closing this as a duplicate of BZ1562065 as the original error is fixed by [1]. [1] https://github.com/ManageIQ/manageiq-providers-openstack/pull/263 *** This bug has been marked as a duplicate of bug 1562065 *** |