Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
sos reports don't include database connection url for openstack components because this information is obfuscated. Probably this was a side effect of obfuscating the password, which is part of the url.
$ grep '^connection\s*=' etc/{nova,glance,cinder,neutron}/*.conf
etc/nova/nova.conf:connection = *********
etc/glance/glance-api.conf:connection = *********
etc/glance/glance-registry.conf:connection = *********
etc/cinder/cinder.conf:connection = *********
etc/neutron/neutron.conf:connection = *********
Version-Release number of selected component (if applicable):
sos-3.2-36.el7ost.2.noarch
How reproducible:
Always.
Steps to Reproduce:
1. Run sosreport on an openstack controller node
2. Open the tarfile and cd into the directory
2. grep '^connection\s*=' etc/{nova,glance,cinder,neutron}/*.conf
Actual results:
$ grep '^connection\s*=' etc/{nova,glance,cinder,neutron}/*.conf
etc/nova/nova.conf:connection = *********
etc/glance/glance-api.conf:connection = *********
etc/glance/glance-registry.conf:connection = *********
etc/cinder/cinder.conf:connection = *********
etc/neutron/neutron.conf:connection = *********
Expected results:
Database server login, address and database should be shown, like in the example below.
$ grep '^connection\s*=' etc/{nova,glance,cinder,neutron}/*.conf
etc/nova/nova.conf:connection = mysql://nova:********@mariadb-server/nova
etc/glance/glance-api.conf:connection = mysql://glance:********@mariadb-server/glance
etc/glance/glance-registry.conf:connection = mysql://glance:********@mariadb-server/glance
etc/cinder/cinder.conf:connection = mysql://cinder:********@mariadb-server/cinder
etc/neutron/neutron.conf:connection = mysql://neutron:********@mariadb-server/neutron
Lee or Vagner,
could you please provide valid examples of the URL with passwords syntax (that is obfuscated now), such that we can come up with better regexp?
The following is from OSP 11.
[root@controller ~]# grep '^connection\s*=' /etc/{nova,glance,cinder,neutron}/*.conf
/etc/nova/nova.conf:connection=mysql+pymysql://nova_api:tYscXjtg6FC4u8rDxDPnXAkkp.0.21/nova_api?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo
/etc/nova/nova.conf:connection=mysql+pymysql://nova:tYscXjtg6FC4u8rDxDPnXAkkp.0.21/nova?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo
/etc/nova/nova.conf:connection=mysql+pymysql://nova_placement:tYscXjtg6FC4u8rDxDPnXAkkp.0.21/nova_placement?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo
/etc/glance/glance-api.conf:connection = mysql+pymysql://glance:BpjdGYndqYFEXcAfzaqTFEUC6.0.21/glance?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo
/etc/cinder/cinder.conf:connection = mysql+pymysql://cinder:hMeRV32kUMCuHPQzHEg3dD9Vt.0.21/cinder?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo
/etc/neutron/neutron.conf:connection=mysql+pymysql://neutron:tY9hAuBeEGH7k7A2KkzKWhnhx.0.21/ovs_neutron?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo
I'm sure that earlier versions had a slightly different syntax, as you may see in comment #0 (expected results).
Some differences I can see:
connection=mysql x connection=mysql+pymsql
The end of the line also changed. Now it has a "?" and some additional information.
I'm not a regexp expert, but I think the standard is more or less:
connection=[protocol]://[login_name]:[password]@[hostname_or_IP]/[service_name]
I can't tell if passwords may have ":" or "@" characters.
Description of problem: sos reports don't include database connection url for openstack components because this information is obfuscated. Probably this was a side effect of obfuscating the password, which is part of the url. $ grep '^connection\s*=' etc/{nova,glance,cinder,neutron}/*.conf etc/nova/nova.conf:connection = ********* etc/glance/glance-api.conf:connection = ********* etc/glance/glance-registry.conf:connection = ********* etc/cinder/cinder.conf:connection = ********* etc/neutron/neutron.conf:connection = ********* Version-Release number of selected component (if applicable): sos-3.2-36.el7ost.2.noarch How reproducible: Always. Steps to Reproduce: 1. Run sosreport on an openstack controller node 2. Open the tarfile and cd into the directory 2. grep '^connection\s*=' etc/{nova,glance,cinder,neutron}/*.conf Actual results: $ grep '^connection\s*=' etc/{nova,glance,cinder,neutron}/*.conf etc/nova/nova.conf:connection = ********* etc/glance/glance-api.conf:connection = ********* etc/glance/glance-registry.conf:connection = ********* etc/cinder/cinder.conf:connection = ********* etc/neutron/neutron.conf:connection = ********* Expected results: Database server login, address and database should be shown, like in the example below. $ grep '^connection\s*=' etc/{nova,glance,cinder,neutron}/*.conf etc/nova/nova.conf:connection = mysql://nova:********@mariadb-server/nova etc/glance/glance-api.conf:connection = mysql://glance:********@mariadb-server/glance etc/glance/glance-registry.conf:connection = mysql://glance:********@mariadb-server/glance etc/cinder/cinder.conf:connection = mysql://cinder:********@mariadb-server/cinder etc/neutron/neutron.conf:connection = mysql://neutron:********@mariadb-server/neutron