Bug 1504041

Summary: [RFE][Octavia] Support and test minor updates
Product: Red Hat OpenStack Reporter: Nir Magnezi <nmagnezi>
Component: openstack-octaviaAssignee: Nir Magnezi <nmagnezi>
Status: CLOSED ERRATA QA Contact: Alexander Stafeyev <astafeye>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: astafeye, ihrachys, jlibosva, lpeer, majopela, nyechiel, oblaut, scorcora
Target Milestone: Upstream M2Keywords: FutureFeature, TestOnly, Triaged
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-octavia-2.0.0-0.20171206012820.82d9f44.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-27 13:37:56 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: 1433523, 1552443    

Description Nir Magnezi 2017-10-19 11:24:53 UTC
Support minor updates, which in our case is mostly about Amphora image updates.

We added[1] the support for glance tags, which means Octavia will always use the latest (timestamp) image loaded to glance that is tagged with a specific value (amp_image_tag = amphora by default).
For security reasons, this is also restricted to a specific image owner,  configured in amp_image_owner_id

We should test and verify this upgrade process works in a live deployment, and possibly automate the process and have it running in CI.

[1] https://review.openstack.org/#/c/284690/

Comment 2 Alexander Stafeyev 2017-10-19 11:41:03 UTC
Steps- 

1. Upload Amphora image to Glance with proper tag for amphora.
2. Run LB tests
3. Upload different image to Glance with proper tag for amphora.
4. Run LB tests. 

*!* The image could be build on top of supported OSs( rhel, Centos) or supplied as already LB amphora dedicated images.

Comment 3 Ofer Blaut 2017-10-23 13:06:10 UTC
(In reply to Alexander Stafeyev from comment #2)
> Steps- 
> 
> 1. Upload Amphora image to Glance with proper tag for amphora.
> 2. Run LB tests
> 3. Upload different image to Glance with proper tag for amphora.
> 4. Run LB tests. 
> 
> *!* The image could be build on top of supported OSs( rhel, Centos) or
> supplied as already LB amphora dedicated images.

You need to test update including Container update ( while amphora is the old one) and amphora works the same after the update ( new house keeper didn't remove it and HA still works )

Comment 6 Jakub Libosvar 2017-12-14 14:41:42 UTC
This is testing only bug, no dev work required. Putting to POST.

Comment 11 Nir Magnezi 2018-04-23 12:30:03 UTC
(In reply to Alexander Stafeyev from comment #2)
> Steps- 
> 
> 1. Upload Amphora image to Glance with proper tag for amphora.
> 2. Run LB tests
> 3. Upload different image to Glance with proper tag for amphora.
> 4. Run LB tests. 
> 
> *!* The image could be build on top of supported OSs( rhel, Centos) or
> supplied as already LB amphora dedicated images.

I would expend the above steps as follows:

1. Upload the first amphora image.
2. Create a loadbalancer and check basic sanity (loadbalancer ACTIVE)
3. via admin user: get the details about the current amphora instance (openstack server show <amphora instance id>)
4. Upload another image to glance.
5. Repeat step 2.
6. Repeat step 3. and verify the instance got created from the newly uploaded imaged.

Comment 13 errata-xmlrpc 2018-06-27 13:37:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2018:2086