Bug 1333750

Summary: Nova endpoint v2 deployed instead of v2.1
Product: Red Hat OpenStack Reporter: Ricardo Noriega <rnoriega>
Component: openstack-packstackAssignee: Alfredo Moralejo <amoralej>
Status: CLOSED CURRENTRELEASE QA Contact: Joe H. Rahme <jhakimra>
Severity: high Docs Contact:
Priority: medium    
Version: 9.0 (Mitaka)CC: amoralej, aortega, apevec, aschultz, mburns, rnoriega, srevivo
Target Milestone: asyncKeywords: Rebase, TestOnly, Triaged, ZStream
Target Release: 9.0 (Mitaka)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-8.0.3-1.el7ost.src.rpm Doc Type: Bug Fix
Doc Text:
Cause: Before this version, packstack was deploying endpoint with nova v2.0 for compute. Consequence: API calls included in microversions after 2.1 was not available. Fix: Since openstack-packstack-8.0.3, endpoint is created with v2.1 which is backwards compatible with api v2.0. Result: All nova API features are available to packsack users.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-10 17:31:14 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:

Description Ricardo Noriega 2016-05-06 10:08:16 UTC
Description of problem:

After an All-In-One deployment made with Packstack, Nova V2 service endpoint was present in Keystone catalog, instead of the newer V2.1.

Default endpoint version should be 2.1. 



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

packstack Mitaka 8.0.0.0rc2



How reproducible:

Highly

Steps to Reproduce:
1. Create an AIO environment
2. Some commands output an error message related to microversion mismatch

Actual results:


Expected results:


Additional info:

OSP-d is deploying v2.1 endpoint in version 8, so Packstack should do the same.

Comment 2 Ivan Chavero 2016-05-12 19:44:51 UTC
Can you please provide log files with the microversion error?

Comment 3 Ivan Chavero 2016-05-12 22:27:43 UTC
confirmed that nova v2 is deprecated

Comment 4 Ricardo Noriega 2016-08-24 11:42:14 UTC
I've pushed this patch:

https://review.openstack.org/#/c/359329/

Comment 7 Alfredo Moralejo 2017-05-31 15:33:14 UTC
Required patch has been included in upstream tag 8.0.3, so we'll rebase packstack to this tag

Comment 8 Alfredo Moralejo 2017-05-31 17:29:12 UTC
Testing instructions:

1. Install packstack:

yum install -y openstack-packstack

2. Deploy any configuration (nova is mandatory in packstack)

packstack --allinone

3. Get URL for nova endpoint:

# source keystonerc_admin 

# openstack endpoint list | grep nova
| 646aaa8b8c254e2fab8e005e53b2bdf8 | RegionOne | nova          | compute      |

# openstack endpoint show 646aaa8b8c254e2fab8e005e53b2bdf8
+--------------+-----------------------------------------------+
| Field        | Value                                         |
+--------------+-----------------------------------------------+
| adminurl     | http://192.168.121.83:8774/v2.1/%(tenant_id)s |
| enabled      | True                                          |
| id           | 646aaa8b8c254e2fab8e005e53b2bdf8              |
| internalurl  | http://192.168.121.83:8774/v2.1/%(tenant_id)s |
| publicurl    | http://192.168.121.83:8774/v2.1/%(tenant_id)s |
| region       | RegionOne                                     |
| service_id   | 4152fb2e975a4d4d8f37c56d4af7bde0              |
| service_name | nova                                          |
| service_type | compute                                       |
+--------------+-----------------------------------------------+

internalurl, adminurl and publicurl should be  http://<ip address>:8774/v2.1/%(tenant_id)s

Comment 9 Lon Hohberger 2017-09-06 19:59:28 UTC
According to our records, this should be resolved by openstack-packstack-8.0.3-1.el7ost.  This build is available now.

Comment 10 Mike Burns 2017-10-10 17:31:14 UTC
sanity test shows v2.1 with released versions.