Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YSQL] [PG15 online upgrade] Created profiles are missing after upgrade to PG15 #25731

Open
1 task done
hariharasudhan-yb opened this issue Jan 23, 2025 · 0 comments
Open
1 task done
Assignees
Labels
area/ysql Yugabyte SQL (YSQL) kind/bug This issue is a bug priority/medium Medium priority issue qa_itest-system Bugs identified in itest-system automation

Comments

@hariharasudhan-yb
Copy link

hariharasudhan-yb commented Jan 23, 2025

Jira Link: DB-15015

Description

After upgrading from version 2024.2.2.0-b7 to 2.25.1.0-b220, the created profiles are missing and are not attached to the respective users. Users are present while profiles are not there.

In PG11 before upgrade (2024.2.2.0-b7)

yugabyte=# SELECT * FROM pg_yb_role_profile;
 rolprfrole | rolprfprofile | rolprfstatus | rolprffailedloginattempts | rolprflockeduntil 
------------+---------------+--------------+---------------------------+-------------------
      16384 |         16385 | o            |                         3 | 
(1 row)


yugabyte=# SELECT * FROM pg_yb_profile;
     prfname      | prfmaxfailedloginattempts | prfpasswordlocktime 
------------------+---------------------------+---------------------
 testprofilename  |                         5 |                   0
 testprofilename1 |                        10 |                   0

In PG15 after upgrade (2.25.1.0-b220) while verifying:

 yugabyte=# SELECT * FROM pg_yb_role_profile;
 oid | rolprfrole | rolprfprofile | rolprfstatus | rolprffailedloginattempts | rolprflockeduntil 
-----+------------+---------------+--------------+---------------------------+-------------------
(0 rows)

yugabyte=# SELECT * FROM pg_yb_profile;
 oid | prfname | prfmaxfailedloginattempts | prfpasswordlocktime 
-----+---------+---------------------------+---------------------
(0 rows)

Test steps to repro:

  • create universe with following tserver flags enabled
ysql_enable_profile : true
ysql_enable_auth : true
ysql_hba_conf_csv : local all yugabyte trust
  • create a role/user with pass
  • create profile and attach it to the created user with Limit in failed login attempts
  • Do some failed login attempts with the profile attached user and verify the failed attempt count
  • Lock the user and unlock the user and verify
  • Do some more failed login attempts and verify the count
  • Do software upgrade and finalize
  • Check the profiles and user login attemps - > Failing here with No profiles are found
yugabyte=# SELECT * FROM pg_yb_role_profile;
 oid | rolprfrole | rolprfprofile | rolprfstatus | rolprffailedloginattempts | rolprflockeduntil 
-----+------------+---------------+--------------+---------------------------+-------------------
(0 rows)

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.
@hariharasudhan-yb hariharasudhan-yb added area/ysql Yugabyte SQL (YSQL) qa_itest-system Bugs identified in itest-system automation status/awaiting-triage Issue awaiting triage labels Jan 23, 2025
@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug priority/medium Medium priority issue labels Jan 23, 2025
@sushantrmishra sushantrmishra removed the status/awaiting-triage Issue awaiting triage label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) kind/bug This issue is a bug priority/medium Medium priority issue qa_itest-system Bugs identified in itest-system automation
Projects
None yet
Development

No branches or pull requests

3 participants