Bug 1329242 - Upgrade fails with Property error: resources.NodeExtraConfig.properties: Property rhel_reg_sat_repo not assigned
Summary: Upgrade fails with Property error: resources.NodeExtraConfig.properties: Pro...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: rhosp-director
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Sofer Athlan-Guyot
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-21 13:24 UTC by Marius Cornea
Modified: 2017-01-30 09:59 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-30 09:59:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Marius Cornea 2016-04-21 13:24:54 UTC
Description of problem:
During 7->8 upgrade, when providing the subscription parameters in an environment file the 1st step of the upgrade fails with:
Property error: resources.NodeExtraConfig.properties: Property rhel_reg_sat_repo not assigned

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-0.8.14-9.el7ost.noarch


Steps to Reproduce:
1. Deploy overcloud using OSPd 7.3 and passing the registration details through an environment file:

export THT=/home/stack/templates/my-overcloud 
openstack overcloud deploy --templates $THT \
  -e $THT/environments/network-isolation.yaml \
  -e ~/templates/network-environment.yaml \
  -e ~/templates/environment-reg.yaml \
  -e $THT/extraconfig/pre_deploy/rhel-registration/rhel-registration-resource-registry.yaml \
  --control-scale 3 \
  --compute-scale 1 \
  --ntp-server clock.redhat.com \
  --libvirt-type qemu 

stack@instack:~>>> cat ~/templates/environment-reg.yaml 
parameter_defaults:
  rhel_reg_activation_key: ""
  rhel_reg_auto_attach: ""
  rhel_reg_base_url: ""
  rhel_reg_environment: ""
  rhel_reg_force: ""
  rhel_reg_machine_name: ""
  rhel_reg_org: ""
  rhel_reg_password: "somepassword"
  rhel_reg_pool_id: "someid"
  rhel_reg_release: ""
  rhel_reg_repos: "rhel-7-server-rpms,rhel-7-server-extras-rpms,rhel-7-server-rh-common-rpms,rhel-ha-for-rhel-7-server-rpms,rhel-7-server-openstack-7.0-director-rpms,rhel-7-server-openstack-7.0-rpms,rhel-7-server-rhceph-1.3-osd-rpms,rhel-7-server-rhceph-1.3-mon-rpms"
  rhel_reg_sat_url: ""
  rhel_reg_server_url: ""
  rhel_reg_service_level: ""
  rhel_reg_user: "mcornea"
  rhel_reg_type: ""
  rhel_reg_method: "portal"

2. Upgrade undercloud 

3. Run upgrade step 1:
export THT=/home/stack/templates/my-overcloud-8.0
openstack overcloud deploy --templates $THT \
  -e $THT/environments/network-isolation.yaml \
  -e ~/templates/network-environment.yaml \
  -e ~/templates/environment-reg.yaml \
  -e $THT/extraconfig/pre_deploy/rhel-registration/rhel-registration-resource-registry.yaml \
  -e $THT/environments/major-upgrade-pacemaker-init.yaml 


Actual results:

2016-04-21 13:12:08 [0]: UPDATE_FAILED  resources[0]: Property error: resources.NodeExtraConfig.properties: Property rhel_reg_sat_repo not assigned
2016-04-21 13:12:09 [overcloud-Compute-v3d55v74rbdp]: UPDATE_FAILED  resources[0]: Property error: resources.NodeExtraConfig.properties: Property rhel_reg_sat_repo not assigned
Stack overcloud UPDATE_FAILED
Heat Stack update failed.

Expected results:

Additional info:

The environment-rhel-registration.yaml in the version 8 templates contain a new parameter:

diff my-overcloud/extraconfig/pre_deploy/rhel-registration/environment-rhel-registration.yaml my-overcloud-8.0/extraconfig/pre_deploy/rhel-registration/environment-rhel-registration.yaml 
22a23
>   rhel_reg_sat_repo: "rhel-7-server-satellite-tools-6.1-rpms"

Workaround:
Add the parameter to the environment file used initially for the registration parameters and rerun upgrade step 1

stack@instack:~>>> cat ~/templates/environment-reg.yaml 
parameter_defaults:
  rhel_reg_activation_key: ""
  rhel_reg_auto_attach: ""
  rhel_reg_base_url: ""
  rhel_reg_environment: ""
  rhel_reg_force: ""
  rhel_reg_machine_name: ""
  rhel_reg_org: ""
  rhel_reg_password: "somepassword"
  rhel_reg_pool_id: "someid"
  rhel_reg_release: ""
  rhel_reg_repos: "rhel-7-server-rpms,rhel-7-server-extras-rpms,rhel-7-server-rh-common-rpms,rhel-ha-for-rhel-7-server-rpms,rhel-7-server-openstack-7.0-director-rpms,rhel-7-server-openstack-7.0-rpms,rhel-7-server-rhceph-1.3-osd-rpms,rhel-7-server-rhceph-1.3-mon-rpms"
  rhel_reg_sat_url: ""
  rhel_reg_server_url: ""
  rhel_reg_service_level: ""
  rhel_reg_user: "mcornea"
  rhel_reg_type: ""
  rhel_reg_method: "portal"
  rhel_reg_sat_repo: "rhel-7-server-satellite-tools-6.1-rpms"

Comment 2 Jiri Stransky 2016-04-21 14:27:53 UTC
Dan, can we please add a note to the 7->8 upgrade docs about this?

When the user has done the "method 2" registration via an environment file on OSP 7, as documented here:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/7/html-single/Director_Installation_and_Usage/index.html#sect-Advanced-Registering_the_Overcloud

And they attempt to pass the same environment file to OSP 8 upgrade-init command and beyond, they'll get an error because their old OSP 7 file is not fully compatible with OSP 8. To make it compatible with OSP 8, they need to add one line to the parameter_defaults at the end of their OSP 7 env file, as mcornea described in comment #0:

parameter_defaults:
  # ... here will be their previous parameters ...
  rhel_reg_sat_repo: "rhel-7-server-satellite-tools-6.1-rpms"

Comment 3 Dan Macpherson 2016-04-21 16:33:48 UTC
Change implemented and currently republishing to the portal.

Comment 5 Sofer Athlan-Guyot 2017-01-30 09:59:33 UTC
Hi,

This has been done.  Closing it.


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