-
Bug
-
Resolution: Done
-
Undefined
-
None
-
None
-
1
-
False
-
-
False
-
None
-
-
-
Incorrect database user was applied in crc environment. Updating the user and applying the changes are not propagated to nova services.
[stack@compute-sriov01 cr]$ oc logs nova-scheduler-0 | tail -20
2023-05-02 18:41:03.400 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/_init_.py", line 94, in Connect
2023-05-02 18:41:03.400 1 ERROR oslo_service.service return Connection(*args, **kwargs)
2023-05-02 18:41:03.400 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/connections.py", line 327, in _init_
2023-05-02 18:41:03.400 1 ERROR oslo_service.service self.connect()
2023-05-02 18:41:03.400 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/connections.py", line 588, in connect
2023-05-02 18:41:03.400 1 ERROR oslo_service.service self._request_authentication()
2023-05-02 18:41:03.400 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/connections.py", line 853, in _request_authentication
2023-05-02 18:41:03.400 1 ERROR oslo_service.service auth_packet = self._read_packet()
2023-05-02 18:41:03.400 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/connections.py", line 676, in _read_packet
2023-05-02 18:41:03.400 1 ERROR oslo_service.service packet.raise_for_error()
2023-05-02 18:41:03.400 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/protocol.py", line 223, in raise_for_error
2023-05-02 18:41:03.400 1 ERROR oslo_service.service err.raise_mysql_exception(self._data)
2023-05-02 18:41:03.400 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
2023-05-02 18:41:03.400 1 ERROR oslo_service.service raise errorclass(errno, errval)
2023-05-02 18:41:03.400 1 ERROR oslo_service.service sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1045, "Access denied for user 'nova_cell0'@'10.217.0.144' (using password: YES)")
2023-05-02 18:41:03.400 1 ERROR oslo_service.service (Background on this error at: https://sqlalche.me/e/14/e3q8)
2023-05-02 18:41:03.400 1 ERROR oslo_service.service
2023-05-02 18:41:03.414 1 DEBUG oslo_concurrency.lockutils [None req-a4d84eba-1ae9-495a-a902-8b1f2ac32ec7 - - - - - -] Acquiring lock "singleton_lock" lock /usr/lib/python3.9/site-packages/oslo_concurrency/lockutils.py:312
2023-05-02 18:41:03.414 1 DEBUG oslo_concurrency.lockutils [None req-a4d84eba-1ae9-495a-a902-8b1f2ac32ec7 - - - - - -] Acquired lock "singleton_lock" lock /usr/lib/python3.9/site-packages/oslo_concurrency/lockutils.py:315
2023-05-02 18:41:03.415 1 DEBUG oslo_concurrency.lockutils [None req-a4d84eba-1ae9-495a-a902-8b1f2ac32ec7 - - - - - -] Releasing lock "singleton_lock" lock /usr/lib/python3.9/site-packages/oslo_concurrency/lockutils.py:333
[stack@compute-sriov01 cr]$ date
Tue May 2 18:44:49 UTC 2023
[stack@compute-sriov01 cr]$ grep cellDatabaseUser *
nova_v1beta1_nova-multi-cell.yaml: cellDatabaseUser: nova-cell0
nova_v1beta1_nova-multi-cell.yaml: cellDatabaseUser: nova_cell1
[stack@compute-sriov01 cr]$ oc kustomize . | oc apply -f -
nova.nova.openstack.org/nova configured
[stack@compute-sriov01 cr]$ grep cellDatabaseUser *
nova_v1beta1_nova-multi-cell.yaml: cellDatabaseUser: nova-cell0
nova_v1beta1_nova-multi-cell.yaml: cellDatabaseUser: nova_cell1
[stack@compute-sriov01 cr]$ oc kustomize . | oc apply -f -
nova.nova.openstack.org/nova configured
[stack@compute-sriov01 cr]$ oc logs nova-scheduler-0 | tail -20
2023-05-02 18:46:09.239 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/_init_.py", line 94, in Connect
2023-05-02 18:46:09.239 1 ERROR oslo_service.service return Connection(*args, **kwargs)
2023-05-02 18:46:09.239 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/connections.py", line 327, in _init_
2023-05-02 18:46:09.239 1 ERROR oslo_service.service self.connect()
2023-05-02 18:46:09.239 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/connections.py", line 588, in connect
2023-05-02 18:46:09.239 1 ERROR oslo_service.service self._request_authentication()
2023-05-02 18:46:09.239 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/connections.py", line 853, in _request_authentication
2023-05-02 18:46:09.239 1 ERROR oslo_service.service auth_packet = self._read_packet()
2023-05-02 18:46:09.239 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/connections.py", line 676, in _read_packet
2023-05-02 18:46:09.239 1 ERROR oslo_service.service packet.raise_for_error()
2023-05-02 18:46:09.239 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/protocol.py", line 223, in raise_for_error
2023-05-02 18:46:09.239 1 ERROR oslo_service.service err.raise_mysql_exception(self._data)
2023-05-02 18:46:09.239 1 ERROR oslo_service.service File "/usr/lib/python3.9/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
2023-05-02 18:46:09.239 1 ERROR oslo_service.service raise errorclass(errno, errval)
2023-05-02 18:46:09.239 1 ERROR oslo_service.service sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1045, "Access denied for user 'nova_cell0'@'10.217.0.144' (using password: YES)")
2023-05-02 18:46:09.239 1 ERROR oslo_service.service (Background on this error at: https://sqlalche.me/e/14/e3q8)
2023-05-02 18:46:09.239 1 ERROR oslo_service.service
2023-05-02 18:46:09.246 1 DEBUG oslo_concurrency.lockutils [None req-634483d9-4201-4b3e-84ce-9275bc654054 - - - - - -] Acquiring lock "singleton_lock" lock /usr/lib/python3.9/site-packages/oslo_concurrency/lockutils.py:312
2023-05-02 18:46:09.246 1 DEBUG oslo_concurrency.lockutils [None req-634483d9-4201-4b3e-84ce-9275bc654054 - - - - - -] Acquired lock "singleton_lock" lock /usr/lib/python3.9/site-packages/oslo_concurrency/lockutils.py:315
2023-05-02 18:46:09.246 1 DEBUG oslo_concurrency.lockutils [None req-634483d9-4201-4b3e-84ce-9275bc654054 - - - - - -] Releasing lock "singleton_lock" lock /usr/lib/python3.9/site-packages/oslo_concurrency/lockutils.py:333
- relates to
-
OSPRH-92 As a cloud operator, there should be the ability to rotate database passwords
- Verified