Bug 1377393 - Instance provisioning failure ''The requested availability zone is not available''
Summary: Instance provisioning failure ''The requested availability zone is not availa...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.8.0
Assignee: Marek Aufart
QA Contact: Ola Pavlenko
URL:
Whiteboard: openstack
: 1373559 (view as bug list)
Depends On:
Blocks: 1381624 1390659
TreeView+ depends on / blocked
 
Reported: 2016-09-19 14:52 UTC by Ronnie Rasouli
Modified: 2018-02-12 09:06 UTC (History)
11 users (show)

Fixed In Version: 5.8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1381624 1390659 (view as bug list)
Environment:
Last Closed: 2017-06-12 17:47:12 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
entire evm.log in bz format (5.24 MB, application/x-xz)
2016-09-19 14:52 UTC, Ronnie Rasouli
no flags Details
evm.log part related to instance provison with AZ (33.00 KB, text/plain)
2016-09-20 10:52 UTC, Marek Aufart
no flags Details

Description Ronnie Rasouli 2016-09-19 14:52:56 UTC
Created attachment 1202522 [details]
entire evm.log in bz format

Description of problem:
Instance provisioning fails on RHOS9 

The requested availability zone is not available 

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

5.6.2.0 RHOS9 GA

How reproducible:
100%

Steps to Reproduce:
1.login to cfme ui
2. go to compute -> cloud -> instances
3. fill the network, instance name, tenant...


Actual results:

Request failure:


Request ID
153,000,000,000,002
Status
Error
Request State
Finished
Requester
Administrator
Request Type
VM Provision
Description
Provision from [cirros] to [ddd]
Last Message
[Excon::Error::BadRequest]: Expected([200, 202]) <=> Actual(400 Bad Request) excon.error.response :body => "{\"badRequest\": {\"message\": \"The requested availability zone is not available\", \"code\": 400}}" :cookies => [ ] :heade


Expected results:
provision success, the API call will arrive the openstack cloud provider 

Additional info:

[----] I, [2016-09-19T08:41:53.308252 #15731:609988]  INFO -- : Q-task_id([log_s
tatus]) MIQ(MiqServer.log_system_status) [EVM Server (15538)] MiqQueue count for
 state=["dequeue"] by zone and role: {"default"=>{nil=>1, "smartstate"=>1}}
[----] I, [2016-09-19T08:41:53.308325 #15731:609988]  INFO -- : Q-task_id([log_s
tatus]) MIQ(MiqServer.log_system_status) [EVM Server (15538)] MiqQueue count for
 state=["error"] by zone and role: {"default"=>{nil=>1}}
[----] I, [2016-09-19T08:41:53.308382 #15731:609988]  INFO -- : Q-task_id([log_s
tatus]) MIQ(MiqServer.log_system_status) [EVM Server (15538)] MiqQueue count for

Comment 2 Tzu-Mainn Chen 2016-09-19 23:50:54 UTC
The error message is one returned from OpenStack, meaning the request is making it to the OpenStack API.  I think we need to know more about the QE setup and environment, as this could be an OpenStack issue.

In fact, I wonder if it has anything to do with: https://bugs.launchpad.net/fuel/+bug/1610309 ?

Comment 3 Ronnie Rasouli 2016-09-20 08:35:42 UTC
Mainn, the availability zones indeed missing on my RHOS setup (Mitaka)

nova aggregate-list
+----+------+-------------------+
| Id | Name | Availability Zone |
+----+------+-------------------+
+----+------+-------------------+

Comment 4 Marek Aufart 2016-09-20 09:06:33 UTC
Adding more interesting part of evm.log logfile [1]. It says, that instance should be provisioned with AZ named "volume-nova" which does not exist. I believe it is a UI on controller caused bug.

"nova" availability zone should be present in OSP deployments by default IMO.

[1] http://paste.openstack.org/show/581760/

Comment 5 Marek Aufart 2016-09-20 09:14:39 UTC
It looks to me as a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1373559 (which is comment #4 related to), but to be sure, Ronnie could you provide evm.log content with full entries related to instance provision which failed?

Comment 6 Ronnie Rasouli 2016-09-20 10:16:37 UTC
I have provided complete evm.log in attachments

Comment 7 Marek Aufart 2016-09-20 10:52:53 UTC
Created attachment 1202848 [details]
evm.log part related to instance provison with AZ

Comment 8 Marek Aufart 2016-09-20 10:53:35 UTC
Now I see it, thanks Ronnie. Uncompress the bz, xz and tar archive evm.log.bz was a bit pain, but I finally succeed:)

AZ name "volume-nova" occurs in your log too. This BZ looks to be duplicate bug of https://bugzilla.redhat.com/show_bug.cgi?id=1373559

Comment 9 Tzu-Mainn Chen 2016-09-20 13:55:58 UTC
Hm, interesting.  Looking at the other BZ, it seems as if, Marek, you're selecting an AZ that doesn't exist; if you don't select it, provisioning works fine.  Ronnie, is that the same case here?  If so, the BZ becomes "make sure that phantom AZs are not created".

Comment 10 Ronnie Rasouli 2016-09-20 14:49:26 UTC
In case not selecting AZ the instance provisioning workflow works

Comment 11 Tzu-Mainn Chen 2016-09-20 15:03:05 UTC
*** Bug 1373559 has been marked as a duplicate of this bug. ***

Comment 13 Tzu-Mainn Chen 2016-11-01 13:55:30 UTC
https://github.com/ManageIQ/manageiq/issues/12155

Comment 15 Ronnie Rasouli 2017-03-15 12:30:08 UTC
verified on 5.8.0.4


Note You need to log in before you can comment on or make changes to this bug.