Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

VIO upgrade fails on nova-db-sync pod with Can't connect to MySQL server (79153)

Last Updated: 10/23/2020Categories: TroubleshootingTotal Views: 3093Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

Upgrading from VMware Integrated Openstack 5.1 to 6.x or 7.x

nova-db-sync pod failing with error

2020-05-15T09:38:28Z 2020-05-15 09:38:28.929 50 WARNING oslo_db.sqlalchemy.engines [req-d6bce048-37d6-408f-83e6-7e7ca387c282 - - - - -] SQL connection failed. -1 attempts left.: DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on u'<private VIP>' ([Errno 111] ECONNREFUSED)") (Background on this error at: http://sqlalche.me/e/e3q8)

Deployment has been upgraded since before VIO 4.x.

Cause

The cell_mappings table in the Nova API DB had three rows instead of the expected two, and one of them had a NULL for the "name" field (the other two were named "cell0" and "cell1" as expected).

Resolution

This is a known issue affecting VMware Integrated Openstack 6.x.

Workaround

Log in to the LCM node and log in to a mariadb pod:

kubectl -n openstack exec -it mariadb-server-0 bash

Log into the database:

mysql --defaults-file=/etc/mysql/admin_user.cnf --host=localhost --connect-timeout 2

Switch to the nova-api database and show it's contents:

use nova_api;
select * from cell_mappings;

Note:  We would expect to see two rows in that table: one that has "cell0" in the "name" field and one that has "cell1" in the "name" field. What we're looking for here is a third cell that will likely have a NULL for it's "name" column and has values in the transport_url and database_connection columns that have the private VIP rather than pod hostnames (e.g. something like 'rabbitmq.openstack.svc.cluster.local' and 'mariadb.openstack.svc.cluster.local').

Remove bad cell from the database table using these statements:

update host_mappings set cell_id = <id of cell1 from cell_mappings table> where cell_id = <id of NULL cell from cell_mappings table>;

update instance_mappings set cell_id = <id of cell1 from cell_mappings tables> where cell_id = <id of NULL cell from cell_mappings table>;

delete from cell_mappings where id = <id of NULL cell from cell_mappings table>;

There is a retry limit before kubernetes will restart the pod.  Delete the current pod to restart now:

osctl get pods | grep nova-db-sync
osdel pods <result from above>

Verify that the pods run to completion without further error:

pods
Note:  Above is an alias to kubectl get pods --all-namespaces --watch

Run the following to check deployment is in running status.

watch -n2 'viocli get deployment'

Related Information

Note:  Editing this field on the VIO 5.1 database could also be done prior to doing any upgrade task.  As with any database update, please take or validate that you have valid backup prior to making any updates to the database.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
NSX-T ESXi 传输节点升级失败 (75131)

KB
•
Download and Install VMware Fusion (2014097)

Results 1-3 of 3

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Integrated OpenStack

Related Versions:

VMware Integrated Openstack 7.x

VMware Integrated OpenStack 6.x

Take Our Survey

Support Assistant