Checksum warning during 1.6.17 upgrade

Not sure if this just happened for me or if other users were affected.

When running ‘yum update ondemand’ on a CentOS 7.6 virtual machine, I get a warning that the checksum is wrong. The old file contains a reference to ood-portal.yml while the new file references ood_portal.yml. These lines are commented out but it still caused me to do some handwork.


[root@vm028 conf.d]# diff ood-portal.conf ood-portal.conf.new

17c17
< #      /etc/ood/config/ood-portal.yml
---
> #      /etc/ood/config/ood_portal.ym

Here is the entire output of my yum update:  


[root@vm028 ood]# yum update ondemand 
Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
 * centos-sclo-rh: mirror.vcu.edu
 * centos-sclo-sclo: mirror.ash.fastserv.com
Resolving Dependencies
--> Running transaction check
---> Package ondemand.x86_64 0:1.5.5-1.el7 will be updated
---> Package ondemand.x86_64 0:1.6.17-2.el7 will be an update
--> Processing Dependency: ondemand-apache = 1.6 for package: ondemand-1.6.17-2.el7.x86_64
--> Processing Dependency: ondemand-ruby = 1.6 for package: ondemand-1.6.17-2.el7.x86_64
--> Processing Dependency: ondemand-nodejs = 1.6 for package: ondemand-1.6.17-2.el7.x86_64
--> Processing Dependency: ondemand-runtime = 1.6 for package: ondemand-1.6.17-2.el7.x86_64
--> Running transaction check
---> Package ondemand-apache.x86_64 0:1.5-5.el7 will be updated
---> Package ondemand-apache.x86_64 0:1.6-2.el7 will be an update
---> Package ondemand-nodejs.x86_64 0:1.5-5.el7 will be updated
---> Package ondemand-nodejs.x86_64 0:1.6-2.el7 will be an update
---> Package ondemand-ruby.x86_64 0:1.5-5.el7 will be updated
---> Package ondemand-ruby.x86_64 0:1.6-2.el7 will be an update
---> Package ondemand-runtime.x86_64 0:1.5-5.el7 will be updated
---> Package ondemand-runtime.x86_64 0:1.6-2.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================
 Package                                  Arch                           Version                                 Repository                            Size
============================================================================================================================================================
Updating:
 ondemand                                 x86_64                         1.6.17-2.el7                            ondemand-web                         163 M
Updating for dependencies:
 ondemand-apache                          x86_64                         1.6-2.el7                               ondemand-web                         3.4 k
 ondemand-nodejs                          x86_64                         1.6-2.el7                               ondemand-web                         3.3 k
 ondemand-ruby                            x86_64                         1.6-2.el7                               ondemand-web                         3.4 k
 ondemand-runtime                         x86_64                         1.6-2.el7                               ondemand-web                         1.1 M

Transaction Summary
============================================================================================================================================================
Upgrade  1 Package (+4 Dependent packages)

Total download size: 164 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/5): ondemand-apache-1.6-2.el7.x86_64.rpm                                                                                          | 3.4 kB  00:00:00     
(2/5): ondemand-nodejs-1.6-2.el7.x86_64.rpm                                                                                          | 3.3 kB  00:00:00     
(3/5): ondemand-ruby-1.6-2.el7.x86_64.rpm                                                                                            | 3.4 kB  00:00:00     
(4/5): ondemand-runtime-1.6-2.el7.x86_64.rpm                                                                                         | 1.1 MB  00:00:00     
(5/5): ondemand-1.6.17-2.el7.x86_64.rpm                                                                                              | 163 MB  00:00:03     
------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                        49 MB/s | 164 MB  00:00:03     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : ondemand-nodejs-1.6-2.el7.x86_64                                                                                                        1/10 
  Updating   : ondemand-apache-1.6-2.el7.x86_64                                                                                                        2/10 
  Updating   : ondemand-ruby-1.6-2.el7.x86_64                                                                                                          3/10 
  Updating   : ondemand-runtime-1.6-2.el7.x86_64                                                                                                       4/10 
  Updating   : ondemand-1.6.17-2.el7.x86_64                                                                                                            5/10 
warning: /etc/ood/config/ood_portal.yml created as /etc/ood/config/ood_portal.yml.rpmnew
  Cleanup    : ondemand-1.5.5-1.el7.x86_64                                                                                                             6/10 
  Cleanup    : ondemand-apache-1.5-5.el7.x86_64                                                                                                        7/10 
  Cleanup    : ondemand-ruby-1.5-5.el7.x86_64                                                                                                          8/10 
  Cleanup    : ondemand-nodejs-1.5-5.el7.x86_64                                                                                                        9/10 
  Cleanup    : ondemand-runtime-1.5-5.el7.x86_64                                                                                                      10/10 
Generating Apache config using YAML config: '/etc/ood/config/ood_portal.yml'
Generating Apache config checksum file: '/etc/ood/config/ood_portal.sha256sum'
WARNING: Checksum of /opt/rh/httpd24/root/etc/httpd/conf.d/ood-portal.conf does not match previous value, not replacing.
Generating new Apache config at: '/opt/rh/httpd24/root/etc/httpd/conf.d/ood-portal.conf.new'
  Verifying  : ondemand-1.6.17-2.el7.x86_64                                                                                                            1/10 
  Verifying  : ondemand-runtime-1.6-2.el7.x86_64                                                                                                       2/10 
  Verifying  : ondemand-ruby-1.6-2.el7.x86_64                                                                                                          3/10 
  Verifying  : ondemand-apache-1.6-2.el7.x86_64                                                                                                        4/10 
  Verifying  : ondemand-nodejs-1.6-2.el7.x86_64                                                                                                        5/10 
  Verifying  : ondemand-nodejs-1.5-5.el7.x86_64                                                                                                        6/10 
  Verifying  : ondemand-apache-1.5-5.el7.x86_64                                                                                                        7/10 
  Verifying  : ondemand-1.5.5-1.el7.x86_64                                                                                                             8/10 
  Verifying  : ondemand-ruby-1.5-5.el7.x86_64                                                                                                          9/10 
  Verifying  : ondemand-runtime-1.5-5.el7.x86_64                                                                                                      10/10 

Updated:
  ondemand.x86_64 0:1.6.17-2.el7                                                                                                                            

Dependency Updated:
  ondemand-apache.x86_64 0:1.6-2.el7     ondemand-nodejs.x86_64 0:1.6-2.el7     ondemand-ruby.x86_64 0:1.6-2.el7     ondemand-runtime.x86_64 0:1.6-2.el7    

Complete!
[root@vm028 ood]# ls
config  config.20190723  config.20190930
[root@vm028 ood]# cd config
[root@vm028 config]# ls -latr
total 88
-rw-rw-rw- 1 root root 7117 Jun 26 14:45 ood_portal.yml.orig
-rw-rw-rw- 1 root root 5981 Jul  8 13:13 nginx_stage.yml.20190708
-rw-rw-rw- 1 root root 5270 Jul 18 14:23 nginx_stage.yml.20190718
-rw-rw-rw- 1 root root 8200 Jul 18 15:12 ood_portal.yml~
-rw-rw-rw- 1 root root 8196 Jul 18 15:37 ood_portal.yml
-rw-rw-rw- 1 root root 5328 Jul 24 15:07 nginx_stage.yml
-rw-r--r-- 1 root root 7222 Sep 27 15:36 ood_portal.yml.rpmnew
drwxr-xr-x 5 root root   66 Sep 27 15:36 ..
-rw-r--r-- 1 root root 8196 Sep 30 14:39 ood_portal.yml.20190930
-rw-r--r-- 1 root root 5328 Sep 30 14:39 nginx_stage.yml.20190930
drwxr-xr-x 2 root root   53 Sep 30 14:39 clusters.d
-rw-r--r-- 1 root root  119 Sep 30 15:10 ood_portal.sha256sum
drwxr-xr-x 3 root root  303 Sep 30 15:10 .
[root@vm028 config]# ls -al ood_portal.sha256sum 
-rw-r--r-- 1 root root 119 Sep 30 15:10 ood_portal.sha256sum
[root@vm028 config]# ls -al ood_portal.yml
-rw-rw-rw- 1 root root 8196 Jul 18 15:37 ood_portal.yml
[root@vm028 config]# cd /opt/rh
[root@vm028 rh]# cd httpd24/root/etc/
[root@vm028 etc]# cd httpd
[root@vm028 httpd]# ls
conf  conf.d  conf.modules.d  logs  modules  run  state
[root@vm028 httpd]# cd conf.d
[root@vm028 conf.d]# ls
,,39      autoindex.conf   ood-portal.conf~                 ood-portal.conf.20190627T111152  ood-portal.conf.new  ssl.conf      welcome.conf
,,39.yml  ood-portal.conf  ood-portal.conf.20190626T151357  ood-portal.conf.20190724T144700  README               userdir.conf
[root@vm028 conf.d]# ls -al
total 108
drwxr-xr-x 2 root root  317 Sep 30 15:10 .
drwxr-xr-x 5 root root  122 Jun 26 14:42 ..
-rw-r--r-- 1 root root 8535 Jul 18 15:44 ,,39
-rw-r--r-- 1 root root 8203 Jul 18 15:40 ,,39.yml
-rw-r--r-- 1 root root 2966 Apr 17 07:29 autoindex.conf
-rw-r--r-- 1 root root 8594 Jul 24 14:47 ood-portal.conf
-rw-r--r-- 1 root root 5666 Jun 26 14:52 ood-portal.conf~
-rw-r--r-- 1 root root 5668 Jun 26 15:03 ood-portal.conf.20190626T151357
-rw-r--r-- 1 root root 5190 Jun 26 15:13 ood-portal.conf.20190627T111152
-rw-r--r-- 1 root root 5668 Jun 27 11:11 ood-portal.conf.20190724T144700
-rw-r--r-- 1 root root 8594 Sep 30 15:10 ood-portal.conf.new
-rw-r--r-- 1 root root  366 Apr 17 07:30 README
-rw-r--r-- 1 root root 9418 Apr  3 12:03 ssl.conf
-rw-r--r-- 1 root root 1252 Apr  3 12:03 userdir.conf
-rw-r--r-- 1 root root  556 Apr  3 12:03 welcome.conf
[root@vm028 conf.d]# diff ood-portal.conf ood-portal.conf.new
17c17
< #      /etc/ood/config/ood-portal.yml
---
> #      /etc/ood/config/ood_portal.yml
[root@vm028 conf.d]# ls -al /etc/ood/config
total 88
drwxr-xr-x 3 root root  303 Sep 30 15:10 .
drwxr-xr-x 5 root root   66 Sep 27 15:36 ..
drwxr-xr-x 2 root root   53 Sep 30 14:39 clusters.d
-rw-rw-rw- 1 root root 5328 Jul 24 15:07 nginx_stage.yml
-rw-rw-rw- 1 root root 5981 Jul  8 13:13 nginx_stage.yml.20190708
-rw-rw-rw- 1 root root 5270 Jul 18 14:23 nginx_stage.yml.20190718
-rw-r--r-- 1 root root 5328 Sep 30 14:39 nginx_stage.yml.20190930
-rw-r--r-- 1 root root  119 Sep 30 15:10 ood_portal.sha256sum
-rw-rw-rw- 1 root root 8196 Jul 18 15:37 ood_portal.yml
-rw-rw-rw- 1 root root 8200 Jul 18 15:12 ood_portal.yml~
-rw-r--r-- 1 root root 8196 Sep 30 14:39 ood_portal.yml.20190930
-rw-rw-rw- 1 root root 7117 Jun 26 14:45 ood_portal.yml.orig
-rw-r--r-- 1 root root 7222 Sep 27 15:36 ood_portal.yml.rpmnew
[root@vm028 conf.d]# pwd
/opt/rh/httpd24/root/etc/httpd/conf.d
[root@vm028 conf.d]# mv ood-portal.conf ood-portal.conf.20190939
[root@vm028 conf.d]# cp -r ood-portal.conf ood-portal.conf
cp: cannot stat ‘ood-portal.conf’: No such file or directory
[root@vm028 conf.d]# cp ood-portal.conf.new ood-portal.conf
[root@vm028 conf.d]# systemctl status httpd24-httpd
● httpd24-httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd24-httpd.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/httpd24-httpd.service.d
           └─ood.conf, override.conf
   Active: active (running) since Fri 2019-08-30 14:07:22 EDT; 1 months 0 days ago
 Main PID: 1133 (httpd)
   Status: "Total requests: 15621; Idle/Busy workers 100/0;Requests/sec: 0.00582; Bytes served/sec:   7 B/sec"
   CGroup: /system.slice/httpd24-httpd.service
           ├─ 1133 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
           ├─ 2420 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
           ├─ 2422 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
           ├─ 2423 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
           ├─ 2424 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
           ├─ 2425 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
           ├─ 8163 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
           └─19812 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND

Sep 05 03:27:01 vm028.bridges.psc.edu systemd[1]: Reloading The Apache HTTP Server.
Sep 05 03:27:01 vm028.bridges.psc.edu systemd[1]: Reloaded The Apache HTTP Server.
Sep 08 03:39:01 vm028.bridges.psc.edu systemd[1]: Reloading The Apache HTTP Server.
Sep 08 03:39:01 vm028.bridges.psc.edu systemd[1]: Reloaded The Apache HTTP Server.
Sep 15 03:39:01 vm028.bridges.psc.edu systemd[1]: Reloading The Apache HTTP Server.
Sep 15 03:39:02 vm028.bridges.psc.edu systemd[1]: Reloaded The Apache HTTP Server.
Sep 22 03:10:01 vm028.bridges.psc.edu systemd[1]: Reloading The Apache HTTP Server.
Sep 22 03:10:02 vm028.bridges.psc.edu systemd[1]: Reloaded The Apache HTTP Server.
Sep 29 03:40:01 vm028.bridges.psc.edu systemd[1]: Reloading The Apache HTTP Server.
Sep 29 03:40:01 vm028.bridges.psc.edu systemd[1]: Reloaded The Apache HTTP Server.
[root@vm028 conf.d]# systemctl restart httpd24-httpd
[root@vm028 conf.d]# systemctl status httpd24-httpd
● httpd24-httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd24-httpd.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/httpd24-httpd.service.d
           └─ood.conf, override.conf
   Active: active (running) since Mon 2019-09-30 15:19:06 EDT; 1s ago
  Process: 20845 ExecStop=/opt/rh/httpd24/root/usr/sbin/httpd-scl-wrapper $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS)
 Main PID: 20848 (httpd)
   Status: "Processing requests..."
   CGroup: /system.slice/httpd24-httpd.service
           ├─20848 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
           ├─20849 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
           ├─20850 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
           ├─20851 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
           ├─20856 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
           └─20862 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND

Sep 30 15:19:06 vm028.bridges.psc.edu systemd[1]: Starting The Apache HTTP Server...
Sep 30 15:19:06 vm028.bridges.psc.edu systemd[1]: Started The Apache HTTP Server.
[root@vm028 conf.d]# 

The checksum warning is a way to tell you that you have made changes outside ood-portal-generator and that the checksum of what ood-portal-generate would make is different than the checksum of ood-portal.conf. The error can be ignored if you’ve made custom changes to ood-portal.conf that you need to keep.

You’ll want to diff /opt/rh/httpd24/root/etc/httpd/conf.d/ood-portal.conf.new and /opt/rh/httpd24/root/etc/httpd/conf.d/ood-portal.conf.

You know what, that particular error is from a misspelling, so a lot of folks may going to see that warning. You can ignore this message on this specific diff only. As Trey says, this error comes when the resulting httpd config file (ood-portal.conf) was modified outside of the ood-portal-generator. Turns out that applies to both when you the operator modify the file and we the developers modify the source file.

The diff you’ve was a misspelling of ood-portal.yml to ood_portal.yml (hyphen to underscore) in a documentation portion of the template. That’s why you can ignore this specific case.

You didn’t change anything, we did. And I guess every time we update the template folks will see this message?