tripleo upgrade - dianaclarke/openstack-notes GitHub Wiki

[diana@localhost ~]$ ssh -F $HOME/.quickstart/ssh.config.ansible undercloud
[stack@undercloud ~]$ export CURRENT_VERSION=newton
[stack@undercloud ~]$ export NEW_VERSION=ocata
  • Backup and disable current repos:
[stack@undercloud ~]$ mkdir /home/stack/REPOBACKUP
[stack@undercloud ~]$ ls /etc/yum.repos.d/delorean*
/etc/yum.repos.d/delorean-deps.repo  /etc/yum.repos.d/delorean.repo
[stack@undercloud ~]$ sudo mv /etc/yum.repos.d/delorean* /home/stack/REPOBACKUP/
  • Get and enable new repos for NEW_VERSION:
[stack@undercloud ~]$ sudo curl -L -o /etc/yum.repos.d/delorean-ocata.repo https://trunk.rdoproject.org/centos7-oacata/current/delorean.repo
[stack@undercloud ~]$ sudo curl -L -o /etc/yum.repos.d/delorean-deps-ocata.repo https://trunk.rdoproject.org/centos7-ocata/delorean-deps.repo
  • Enable last known good RDO Trunk Delorean repository for core openstack packages
[stack@undercloud ~]$ sudo curl -L -o /etc/yum.repos.d/delorean.repo https://buildlogs.centos.org/centos/7/cloud/x86_64/rdo-trunk-master-tripleo/delorean.repo
  • Enable latest RDO Trunk Delorean repository only for the TripleO packages
[stack@undercloud ~]$ sudo curl -L -o /etc/yum.repos.d/delorean-current.repo https://trunk.rdoproject.org/centos7/current/delorean.repo
[stack@undercloud ~]$ sudo sed -i 's/\[delorean\]/\[delorean-current\]/' /etc/yum.repos.d/delorean-current.repo
[stack@undercloud ~]$ sudo /bin/bash -c "cat <<EOF>>/etc/yum.repos.d/delorean-current.repo
> 
> includepkgs=diskimage-builder,instack,instack-undercloud,os-apply-config,os-cloud-config,os-collect-config,os-net-config,os-refresh-config,python-tripleoclient,openstack-tripleo-common,openstack-tripleo-heat-templates,openstack-tripleo-image-elements,openstack-tripleo,openstack-tripleo-puppet-elements,openstack-puppet-modules,openstack-tripleo-ui,puppet-*
> EOF"
  • Enable the Delorean Deps repository
[stack@undercloud ~]$ sudo curl -L -o /etc/yum.repos.d/delorean-deps.repo https://trunk.rdoproject.org/centos7/delorean-deps.repo
  • Upgrade the undercloud:
[stack@undercloud ~]$ sudo systemctl stop openstack-*

Broadcast message from [email protected] (Mon 2017-03-27 16:46:43 UTC):

haproxy[15162]: proxy glance_registry has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:46:43 UTC):

haproxy[15162]: proxy zaqar_ws has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:46:43 UTC):

haproxy[15162]: proxy mistral has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:46:45 UTC):

haproxy[15162]: proxy heat_api has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:46:45 UTC):

haproxy[15162]: proxy glance_api has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:46:45 UTC):

haproxy[15162]: proxy ironic has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:46:45 UTC):

haproxy[15162]: proxy ironic-inspector has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:46:45 UTC):

haproxy[15162]: proxy zaqar_api has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:46:45 UTC):

haproxy[15162]: proxy swift_proxy_server has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:46:45 UTC):

haproxy[15162]: proxy nova_metadata has no server available!
[stack@undercloud ~]$ sudo systemctl stop neutron-*
[stack@undercloud ~]$ 

Broadcast message from [email protected] (Mon 2017-03-27 16:48:09 UTC):

haproxy[15162]: proxy neutron has no server available!
[stack@undercloud ~]$ sudo systemctl stop httpd
[stack@undercloud ~]$ 
Broadcast message from [email protected] (Mon 2017-03-27 16:49:09 UTC):

haproxy[15162]: proxy ceilometer has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:49:09 UTC):

haproxy[15162]: proxy aodh has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:49:09 UTC):

haproxy[15162]: proxy ui has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:49:09 UTC):

haproxy[15162]: proxy nova_osapi has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:49:09 UTC):

haproxy[15162]: proxy keystone_public has no server available!


Broadcast message from [email protected] (Mon 2017-03-27 16:49:09 UTC):

haproxy[15162]: proxy keystone_admin has no server available!
[stack@undercloud ~]$ sudo yum -y update instack-undercloud openstack-puppet-modules openstack-tripleo-common python-tripleoclient
Loaded plugins: fastestmirror, priorities
Repository rdo-qemu-ev is listed more than once in the configuration


File contains no section headers.
file: file:///etc/yum.repos.d/delorean-ocata.repo, line: 1
'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n'
  • lol, that ain't gonna work ;)
[stack@undercloud ~]$ cat /etc/yum.repos.d/delorean-ocata.repo
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /centos7-oacata/current/delorean.repo was not found on this server.</p>
</body></html>
[stack@undercloud ~]$ sudo curl -L -o /etc/yum.repos.d/delorean-ocata.repo https://trunk.rdoproject.org/centos7-ocata/current/delorean.repo
[stack@undercloud ~]$ sudo yum -y update instack-undercloud openstack-puppet-modules openstack-tripleo-common python-tripleoclient
  • Upgrade
[stack@undercloud ~]$ openstack undercloud upgrade
  • Failed (surprise!)
2017-03-27 18:30:53,101 INFO: [2017-03-27 18:30:53,093] (os-refresh-config) [ERROR] Aborting...
2017-03-27 18:30:53,111 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/.instack/install-undercloud.log.

#############################################################################

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1439, in install
    _run_orc(instack_env)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1183, in _run_orc
    _run_live_command(args, instack_env, 'os-refresh-config')
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 554, in _run_live_command
    raise RuntimeError('%s failed. See log for details.' % name)
RuntimeError: os-refresh-config failed. See log for details.
Command 'instack-upgrade-undercloud' returned non-zero exit status 1
  • But I do now have a placement log with nova as the owner
[stack@undercloud ~]$ sudo ls -la /var/log/nova/nova-placement-api.log
-rw-r--r--. 1 nova nova 238714 Mar 27 18:35 /var/log/nova/nova-placement-api.log
⚠️ **GitHub.com Fallback** ⚠️