undercloud upgrade from Ocata to Pike failed due to /usr/libexec/os-refresh-config/configure.d/50-heat-config-docker-cmd (heat-config) [WARNING] Could not load config json: No JSON object could be decoded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
heat-agents |
Fix Released
|
Undecided
|
Jiří Stránský | ||
tripleo |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Description
===========
I tried to upgrade Ocata cluster to Pike with containerized services.
undercloud upgrade failed:
2017-05-23 13:15:37,700 INFO: dib-run-parts Tue May 23 13:15:37 UTC 2017 Running /usr/libexec/
2017-05-23 13:15:37,732 INFO: [2017-05-23 13:15:37,730] (heat-config) [WARNING] Could not load config json: No JSON object could be decoded
2017-05-23 13:15:37,738 INFO: [2017-05-23 13:15:37,732] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/
2017-05-23 13:15:37,738 INFO:
2017-05-23 13:15:37,738 INFO: [2017-05-23 13:15:37,732] (os-refresh-config) [ERROR] Aborting...
2017-05-23 13:15:37,739 ERROR:
#######
Undercloud upgrade failed.
Reason: os-refresh-config failed. See log for details.
See the previous output for details about what went wrong. The full install
log can be found at /home/stack/
#######
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/
_run_
File "/usr/lib/
_run_
File "/usr/lib/
raise RuntimeError('%s failed. See log for details.' % name)
RuntimeError: os-refresh-config failed. See log for details.
Command 'instack-
[stack@undercloud ~]$
Steps to reproduce
==================
1)Install undercloud v.Ocata using tripleo-quickstart:
bash quickstart.sh --release ocata $HOST
2)deploy overcloud:
openstack overcloud deploy \
--libvirt-type qemu \
--ntp-server clock.redhat.com \
--control-scale 1 \
--templates $THT \
-e $THT/environmen
3) perform upgrade procedure for undercloud
### UPGRADE UNDERCLOUD ###
# master repos
sudo curl -L -o /etc/yum.
sudo curl -L -o /etc/yum.
sudo sed -i 's/\[delorean\
sudo /bin/bash -c "cat <<EOF>>
includepkgs=
EOF"
sudo curl -L -o /etc/yum.
sudo systemctl stop openstack-*
sudo systemctl stop neutron-*
sudo systemctl stop httpd
sudo yum -y update instack-undercloud openstack-
openstack undercloud upgrade
Expected result
===============
Undercloud was upgraded
Actual result
=============
2017-05-23 13:15:37,267 INFO: + systemctl reload keepalived
2017-05-23 13:15:37,323 INFO: dib-run-parts Tue May 23 13:15:37 UTC 2017 30-reload-
2017-05-23 13:15:37,324 INFO: dib-run-parts Tue May 23 13:15:37 UTC 2017 Running /usr/libexec/
2017-05-23 13:15:37,699 INFO: dib-run-parts Tue May 23 13:15:37 UTC 2017 40-hiera-datafiles completed
2017-05-23 13:15:37,700 INFO: dib-run-parts Tue May 23 13:15:37 UTC 2017 Running /usr/libexec/
2017-05-23 13:15:37,732 INFO: [2017-05-23 13:15:37,730] (heat-config) [WARNING] Could not load config json: No JSON object could be decoded
2017-05-23 13:15:37,738 INFO: [2017-05-23 13:15:37,732] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/
2017-05-23 13:15:37,738 INFO:
2017-05-23 13:15:37,738 INFO: [2017-05-23 13:15:37,732] (os-refresh-config) [ERROR] Aborting...
2017-05-23 13:15:37,739 ERROR:
#######
Undercloud upgrade failed.
Environment
===========
1. Ocata
2. default
3. default
Logs & Configs
==============
cat /var/run/
[stack@undercloud ~]$ cd /var/run/
[stack@undercloud heat-config]$ ls
heat-config
[stack@undercloud heat-config]$ ls -la heat-config
-rw-r--r--. 1 root root 0 May 23 13:15 heat-config
undercloud install log in attachment
Fix https:/ /review. openstack. org/#/c/ 467248/