How to Perform an Upgrade from Icehouse to Juno(ice升级到juno)
来源:互联网 发布:海康网络摄像机型号 编辑:程序博客网 时间:2024/06/04 18:50
How to Perform an Upgrade from Icehouse to Juno
- Before you begin
- Perform a backup
- Manage repositories
- Controller nodes
- Network nodes
- Compute nodes
- Storage nodes
Use this procedure to upgrade a basic operational deployment of the following services: Identity (keystone), Image Service (glance), Compute (nova), Networking (neutron), dashboard (horizon), Block Storage (cinder), Orchestration (heat), and Telemetry (ceilometer). This procedure references the basic three-node architecture in the OpenStack Installation Guide. All nodes must run a supported distribution of Linux with a recent kernel and latest Icehouse packages.
Before you begin
The upgrade process interrupts management of your environment including the dashboard. If you properly prepare for the upgrade, existing instances, networking, and storage should continue to operate. However, instances might experience intermittent network interruptions.
Review the release notes before upgrading to learn about new, updated, and deprecated features.
Consider adopting structure and options from Juno service configuration files and merging them with existing configuration files. The OpenStack Configuration Reference contains new, updated, and deprecated options for most services.
For environments using the OpenStack Networking (neutron) service, verify the Icehouse version of the database:
# su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf \ --config-file /etc/neutron/plugins/ml2/ml2_conf.ini current" neutronINFO [alembic.migration] Context impl MySQLImpl.INFO [alembic.migration] Will assume non-transactional DDL.Current revision for mysql://neutron:XXXXX@controller/neutron: 5ac1c354a051 -> icehouse (head), icehouse
Perform a backup
Save the configuration files on all nodes:
# for i in keystone glance nova neutron openstack-dashboard cinder heat ceilometer; \ do mkdir $i-icehouse; \ done# for i in keystone glance nova neutron openstack-dashboard cinder heat ceilometer; \ do cp -r /etc/$i/* $i-icehouse/; \ done
Note You can modify this example script on each node to handle different services.
Back up all databases on the controller:
# mysqldump -u root -p --opt --add-drop-database --all-databases > icehouse-db-backup.sql
Note Consider updating your SQL server configuration as described in the OpenStack Installation Guide.
Manage repositories
Complete the following steps on all nodes.
Remove the repository for Icehouse packages.
On Ubuntu, follow these steps:
Add the repository for Juno packages:
# echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu" \ "trusty-updates/juno main" > /etc/apt/sources.list.d/cloudarchive-juno.list
Note Remove any Ubuntu Cloud archive repositories for Icehouse packages. You might also need to install or update the
ubuntu-cloud-keyring
package.Update the repository database.
On Red Hat Enterprise Linux (RHEL), CentOS, and Fedora, follow these steps:
Remove the repository for Icehouse packages:
# yum erase rdo-release-icehouse
Add the repository for Juno packages:
# yum install http://rdo.fedorapeople.org/openstack-juno/rdo-release-juno.rpm
Update the repository database.
Controller nodes
- Upgrade packages to Juno
- Update services
Upgrade packages to Juno
Depending on your specific configuration, upgrading all packages might restart or break services supplemental to your OpenStack environment. For example, if you use the TGT iSCSI framework for Block Storage volumes and the upgrade includes new packages for it, the package manager might restart the TGT iSCSI services and impact connectivity to volumes.
If the package manager prompts you to update configuration files, reject the changes. The package manager appends a suffix to newer versions of configuration files. Consider reviewing and adopting content from these files.
Update services
To update a service, you generally modify one or more configuration files, stop the service, synchronize the database schema, and start the service. Some services require different steps. We recommend verifying operation of each service before proceeding to the next service.
All services
These configuration changes apply to all services.
In any file containing the
[keystone_authtoken]
section, modify Identity service access to use theidentity_uri
option:123[keystone_authtoken]
...
identity_uri = http:
//
controller:35357
Comment out any
auth_host
,auth_port
, andauth_protocol
options because theidentity_uri
option replaces them.In any file containing the
auth_uri
option, modify it to explicitly use version 2.0:1auth_uri = http:
//
controller:5000
/v2
.0
Identity service
Edit the
/etc/keystone/keystone.conf
file:In the
[token]
section, configure the UUID token provider and SQL driver:1234[token]
...
provider = keystone.token.providers.uuid.Provider
driver = keystone.token.persistence.backends.sql.Token
Stop the service.
Clear expired tokens:
# su -s /bin/sh -c "keystone-manage token_flush" keystone
Synchronize the database schema:
# su -s /bin/sh -c "keystone-manage db_sync" keystone
Start the service.
Image Service
Edit the
/etc/glance/glance-api.conf
file:Move the following options from the
[DEFAULT]
section to the[glance_store]
section:default_store
filesystem_store_datadir
Note These options must contain values.
Stop the services.
Synchronize the database schema:
# su -s /bin/sh -c "glance-manage db_sync" glance
Start the services.
Compute service
Edit the
/etc/nova/nova.conf
file:In the
[DEFAULT]
section, rename theglance_host
option tohost
and move it to the[glance]
section.In the
[DEFAULT]
section, rename the following options and move them to the[neutron]
section:Old options New options neutron_url
url
neutron_auth_strategy
auth_strategy
neutron_admin_tenant_name
admin_tenant_name
neutron_admin_username
admin_username
neutron_admin_password
admin_password
neutron_admin_auth_url
admin_auth_url
service_neutron_metadata_proxy
service_metadata_proxy
neutron_metadata_proxy_shared_secret
metadata_proxy_shared_secret
Stop the services.
Synchronize the database schema:
# su -s /bin/sh -c "nova-manage db sync" nova
Start the services.
Networking service
Edit the
/etc/neutron/neutron.conf
file:In the
[DEFAULT]
section, change the value of therpc_backend
option:neutron.openstack.common.rpc.impl_kombu
becomesrabbit
In the
[DEFAULT]
section, change the value of thecore_plugin
option:neutron.plugins.ml2.plugin.Ml2Plugin
becomesml2
In the
[DEFAULT]
section, change the value or values of theservice_plugins
option to use short names. For example:neutron.services.l3_router.l3_router_plugin.L3RouterPlugin
becomesrouter
In the
[DEFAULT]
section, explicitly define a value for thenova_region_name
option. For example:123[DEFAULT]
...
nova_region_name = regionOne
Stop the services.
Synchronize the database schema:
# su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf \ --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade juno" neutron
Start the services.
Dashboard
In typical environments, updating the dashboard only requires restarting the services.
Restart the services.
Block Storage service
Edit the
/etc/cinder/cinder.conf
file:In the
[DEFAULT]
section, add the following option:1my_ip = controller
Stop the services.
Synchronize the database schema:
# su -s /bin/sh -c "cinder-manage db sync" cinder
Start the services.
Orchestration service
Create the
heat_stack_owner
role if it does not exist:# keystone role-create --name heat_stack_owner
Edit the
/etc/heat/heat.conf
file:In the
[DEFAULT]
section, change the value of therpc_backend
option:heat.openstack.common.rpc.impl_kombu
becomesrabbit
Stop the services.
Synchronize the database schema:
# su -s /bin/sh -c "heat-manage db_sync" heat
Start the services.
Telemetry service
In typical environments, updating the Telemetry service only requires restarting the services.
Restart the services.
Network nodes
- Upgrade packages to Juno
- Update services
Upgrade packages to Juno
Explicitly install the ipset
package if your distribution does not install it as a dependency.
Depending on your specific configuration, upgrading all packages might restart or break services supplemental to your OpenStack environment. For example, if you use the TGT iSCSI framework for Block Storage volumes and the upgrade includes new packages for it, the package manager might restart the TGT iSCSI services and impact access to volumes.
If the package manager prompts you to update configuration files, reject the changes. The package manager appends a suffix to newer versions of configuration files. Consider reviewing and adopting content from these files.
Update services
To update a service, you generally modify one or more configuration files, stop the service, synchronize the database schema, and start the service. Some services require different steps. We recommend verifying operation of each service before proceeding to the next service.
All services
These configuration changes apply to all services.
In any file containing the
[keystone_authtoken]
section, modify Identity service access to use theidentity_uri
option:123[keystone_authtoken]
...
identity_uri = http:
//
controller:35357
Comment out any
auth_host
,auth_port
, andauth_protocol
options because theidentity_uri
option replaces them.In any file containing the
auth_uri
option, modify it to explicitly use version 2.0:1auth_uri = http:
//
controller:5000
/v2
.0
Networking service
Edit the
/etc/neutron/neutron.conf
file:In the
[DEFAULT]
section, change the value of therpc_backend
option:neutron.openstack.common.rpc.impl_kombu
becomesrabbit
In the
[DEFAULT]
section, change the value of thecore_plugin
option:neutron.plugins.ml2.plugin.Ml2Plugin
becomesml2
In the
[DEFAULT]
section, change the value or values of theservice_plugins
option to use short names. For example:neutron.services.l3_router.l3_router_plugin.L3RouterPlugin
becomesrouter
In the
[DEFAULT]
section, explicitly define a value for thenova_region_name
option. For example:123[DEFAULT]
...
nova_region_name = regionOne
In the
[database]
section, remove anyconnection
options because the Networking service uses the message queue instead of direct access to the database.
Restart the services.
Compute nodes
- Upgrade packages to Juno
- Update services
Upgrade packages to Juno
Explicitly install the ipset
package if your distribution does not install it as a dependency.
Depending on your specific configuration, upgrading all packages might restart or break services supplemental to your OpenStack environment. For example, if you use the TGT iSCSI framework for Block Storage volumes and the upgrade includes new packages for it, the package manager might restart the TGT iSCSI services and impact access to volumes.
If the package manager prompts you to update configuration files, reject the changes. The package manager appends a suffix to newer versions of configuration files. Consider reviewing and adopting content from these files.
Update services
To update a service, you generally modify one or more configuration files, stop the service, synchronize the database schema, and start the service. Some services require different steps. We recommend verifying operation of each service before proceeding to the next service.
All services
These configuration changes apply to all services.
In any file containing the
[keystone_authtoken]
section, modify Identity service access to use theidentity_uri
option:123[keystone_authtoken]
...
identity_uri = http:
//
controller:35357
Comment out any
auth_host
,auth_port
, andauth_protocol
options because theidentity_uri
option replaces them.In any file containing the
auth_uri
option, modify it to explicitly use version 2.0:1auth_uri = http:
//
controller:5000
/v2
.0
Compute service
Edit the
/etc/nova/nova.conf
file:In the
[DEFAULT]
section, rename theglance_host
option tohost
and move it to the[glance]
section.In the
[DEFAULT]
section, rename the following options and move them to the[neutron]
section:Old options New options neutron_url
url
neutron_auth_strategy
auth_strategy
neutron_admin_tenant_name
admin_tenant_name
neutron_admin_username
admin_username
neutron_admin_password
admin_password
neutron_admin_auth_url
admin_auth_url
service_neutron_metadata_proxy
service_metadata_proxy
neutron_metadata_proxy_shared_secret
metadata_proxy_shared_secret
In the
[database]
section, remove anyconnection
options because the Compute service uses the message queue instead of direct access to the database.
Restart the services.
Networking service
Edit the
/etc/neutron/neutron.conf
file:In the
[DEFAULT]
section, change the value of therpc_backend
option:neutron.openstack.common.rpc.impl_kombu
becomesrabbit
In the
[DEFAULT]
section, change the value of thecore_plugin
option:neutron.plugins.ml2.plugin.Ml2Plugin
becomesml2
In the
[DEFAULT]
section, change the value or values of theservice_plugins
option to use short names. For example:neutron.services.l3_router.l3_router_plugin.L3RouterPlugin
becomesrouter
In the
[DEFAULT]
section, explicitly define a value for thenova_region_name
option. For example:123[DEFAULT]
...
nova_region_name = regionOne
In the
[database]
section, remove anyconnection
options because the Networking service uses the message queue instead of direct access to the database.
Restart the services.
Storage nodes
- Upgrade packages to Juno
- Update services
Upgrade packages to Juno
Depending on your specific configuration, upgrading all packages might restart or break services supplemental to your OpenStack environment. For example, if you use the TGT iSCSI framework for Block Storage volumes and the upgrade includes new packages for it, the package manager might restart the TGT iSCSI services and impact access to volumes.
If the package manager prompts you to update configuration files, reject the changes. The package manager appends a suffix to newer versions of configuration files. Consider reviewing and adopting content from these files.
Update services
To update a service, you generally modify one or more configuration files, stop the service, synchronize the database schema, and start the service. Some services require different steps. We recommend verifying operation of each service before proceeding to the next service.
All services
These configuration changes apply to all services.
In any file containing the
[keystone_authtoken]
section, modify Identity service access to use theidentity_uri
option:123[keystone_authtoken]
...
identity_uri = http:
//
controller:35357
Comment out any
auth_host
,auth_port
, andauth_protocol
options because theidentity_uri
option replaces them.In any file containing the
auth_uri
option, modify it to explicitly use version 2.0:1auth_uri = http:
//
controller:5000
/v2
.0
Block Storage service
In typical environments, updating the Block Storage service only requires restarting the services.
Restart the services.
Found an error? Report a bug against this page
- How to Perform an Upgrade from Icehouse to Juno(ice升级到juno)
- openstack rolling upgrade from havana to icehouse
- How to perform Rolling Upgrade-Downgrade in 11g ASM
- How to perform Rolling Upgrade-Downgrade in 11g ASM
- Ubuntu无法升级An upgrade from 'vivid' to 'xenial' is not supported with this tool.
- How To Upgrade ASM from 10.2 to 11.1 (RAC)
- How To Upgrade ASM from 10.2 to 11.1 (RAC)
- How to Upgrade vQmod
- How to upgrade git?
- How to upgrade nodejs
- How to: Manage CBO Statistics During an Upgrade from 10g or 9i into 11g (文档 ID 465787.1)
- How to remove Duplicates from an Array
- How to load content from an IFile
- how to upgrade CentOS kernel
- How to upgrade sap kernel
- How to Convert An audio From m4a to pcm
- Why Upgrade from Ehcache to ?
- upgrade from 12.04 to 14.04
- 2-23(正负数个数与平均值)
- apt-get Unable to fetch some archives的解决方法
- 软件测试员----你的路在这里!
- G711 G723 G729,带宽计算
- 如何让Service杀不死
- How to Perform an Upgrade from Icehouse to Juno(ice升级到juno)
- Android中visibility属性VISIBLE、INVISIBLE、GONE的区别
- Pull Request工作流
- 代码积累,九九乘法表
- POJ 3415 Common Substrings
- 51页20题 多少年后工业总产值超过500
- 如何快速写出2-归并排序
- 第二章第十七题
- 职责链模式(Chain of Responsibility)