Bug 1464459 - [UPDATES] Failed to register nodes during minor updates
Summary: [UPDATES] Failed to register nodes during minor updates
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: zstream
: 13.0 (Queens)
Assignee: Lukas Bezdicka
QA Contact: Raviv Bar-Tal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-23 13:32 UTC by Yurii Prokulevych
Modified: 2020-12-23 11:58 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-30 13:57:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yurii Prokulevych 2017-06-23 13:32:53 UTC
Description of problem:
-----------------------
Attempt to register oc nodes to cdn during minor update fails.

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
openstack-tripleo-heat-templates-6.0.0-12.el7ost.noarch
openstack-tripleo-validations-5.5.0-1.el7ost.noarch
python-tripleoclient-6.1.0-6.el7ost.noarch
openstack-tripleo-heat-templates-6.0.0-12.el7ost.noarch
puppet-tripleo-6.3.0-12.el7ost.noarch
openstack-tripleo-common-6.0.0-8.el7ost.noarch
openstack-tripleo-puppet-elements-6.0.0-3.el7ost.noarch
openstack-tripleo-image-elements-6.0.0-2.el7ost.noarch
openstack-tripleo-ui-3.1.0-9.el7ost.noarch


How reproducible:
-----------------
100%


Steps to Reproduce:
1. Deploy uc and oc:
openstack overcloud deploy \
--templates /usr/share/openstack-tripleo-heat-templates \
--libvirt-type kvm \
--ntp-server clock.redhat.com \
--environment-file /usr/share/openstack-tripleo-heat-templates/environments/services/sahara.yaml \
--environment-file /usr/share/openstack-tripleo-heat-templates/environments/cinder-backup.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml \
-e /home/stack/virt/internal.yaml \
-e /home/stack/virt/network/network-environment.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
-e /home/stack/virt/enable-tls.yaml \
-e /home/stack/virt/inject-trust-anchor.yaml \
-e /home/stack/virt/public_vip.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/tls-endpoints-public-ip.yaml \
-e /home/stack/virt/hostnames.yml \
-e /home/stack/virt/debug.yaml \
-e /home/stack/virt/nodes_data.yaml

2. Update uc
3. Update deployment plan with registration details:

openstack overcloud deploy \
--templates /usr/share/openstack-tripleo-heat-templates \
--libvirt-type kvm \
--ntp-server clock.redhat.com \
--environment-file /usr/share/openstack-tripleo-heat-templates/environments/services/sahara.yaml \
--environment-file /usr/share/openstack-tripleo-heat-templates/environments/cinder-backup.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml \
-e /home/stack/virt/internal.yaml \
-e /home/stack/virt/network/network-environment.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
-e /home/stack/virt/enable-tls.yaml \
-e /home/stack/virt/inject-trust-anchor.yaml \
-e /home/stack/virt/public_vip.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/tls-endpoints-public-ip.yaml \
-e /home/stack/virt/hostnames.yml \
-e /home/stack/virt/debug.yaml \
-e /home/stack/virt/nodes_data.yaml \
-e /home/stack/virt/environment-rhel-registration.yaml \
-e /usr/share/openstack-tripleo-heat-templates/extraconfig/pre_deploy/rhel-registration/yprokule-rhel-registration-resource-registry.yaml

3. Try to run minor update
    openstack overcloud update stack -i overcloud


Actual results:
---------------
Update fails

Additional info:
----------------
Virtual setup: 3controllers + 3compute + 3ceph

Comment 1 Lukas Bezdicka 2017-06-26 13:10:51 UTC
Even if I set values for overcloud deploy command (rhel-reg ..) it is not stored on swift and I can only see rhel_reg values set in mistral environment.

Comment 2 Amit Ugol 2017-07-27 08:18:15 UTC
since this issue is blocking cdn based update testing, I'm asking for blocker.

Comment 5 Brad P. Crochet 2018-09-24 17:04:32 UTC
Lukas,

When you say you set them on the command, do you mean the CLI values? --rhel-reg-*?

Or are you referring to an environment file?

Comment 6 Jose Luis Franco 2019-01-30 13:57:11 UTC
This BZ was opened for OSP11, which is EOL already and by mistake got the release version moved to OSP13. I have just verified that the minor update process works correctly with the rhel-registration service on OSP13, so I'll close this bug as won't fix.

The steps for my test on OSP13 were:

1. Deploy osp13 puddle 2019-01-03.2
2. Subscribe the undercloud to QE Satellite server
3. Perform minor update for the undercloud
4. Run containers image prepare to download latest container images
5. Prepare rhel-registration resources and parameters under ~/rhel-registration
6. Run overcloud update prepare command:
openstack overcloud update prepare \
--timeout 100 \
--templates /usr/share/openstack-tripleo-heat-templates \
--stack overcloud \
--libvirt-type kvm \
--ntp-server clock.redhat.com \
-e /home/stack/virt/config_lvm.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
-e /home/stack/virt/network/network-environment.yaml \
-e /home/stack/virt/hostnames.yml \
-e /home/stack/virt/nodes_data.yaml \
-e /home/stack/virt/extra_templates.yaml \
-e /home/stack/overcloud_images.yaml \
-e /home/stack/rhel-registration/environment-rhel-registration.yaml \
-e /home/stack/rhel-registration/rhel-registration-resource-registry.yaml
~                                                                                
7. Overcloud nodes are registered after running the prepare step:
(undercloud) [stack@undercloud-0 ~]$ ssh heat-admin.24.9                                                                                                             
Last login: Wed Jan 30 10:38:24 2019 from 192.168.24.1
[heat-admin@compute-0 ~]$ sudo subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

8. Run openstack overcloud update run for Controller and Compute:
openstack overcloud update run --nodes Controller 2>&1 | tee overcloud_update_run_Controller.log

9. Run converge


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