tech:network:cml:2.2:issues:c9f47d0f:cml-p-2.2.1-cockpit-cml-administration-ui-stop-working-by-upgrading-the-base-os-procedure

Issue: c9f47d0f CML-P 2.2.1 Cockpit CML Administration UI stop working by Upgrading the Base OS procedure

  1. ID: c9f47d0f-ce8b-49ec-a029-5114dfbef558
  2. Status:
    1. CML-P 2.0 base OVA unknown, but may stop working by Upgrading the Base OS
    2. CML-P 2.1.2 base OVA stop working by Upgrading the Base OS
    3. CML-P 2.2.1 base OVA unknown, but may stop working by Upgrading the Base OS

Problem Description

After Upgrading the Base OS (CentOS 8), CML2 Cockpit UI reports JavaScript jQuery loading error.
So, CML2 Cockpit UI stop working.

maintenance.html:7 GET https://cml-controller.pg1x.net:9090/cockpit/$f025fe4da3a18487758c064b19aee860273c30bc0b8b4da329581c762531e04e/base1/jquery.js net::ERR_ABORTED 404 (Not Found)

Analysis

From my investigation, Ugrading Cockpit 238 over Cockpit 224,
Cockpit 233 removes base1/jquery.js support.
So, I think this problem related this base1/jquery.js removal.

pkg: Stop using base1/jquery.js · cockpit-project/cockpit@049e8b8

commit 049e8b8dceccaf46a43b91203dce1bd7696bb734
Author: Martin Pitt <mpitt@redhat.com>
Date:   Wed Nov 11 08:38:24 2020 +0100

    pkg: Stop using base1/jquery.js
    
    Stop using the deprecated base1/jquery.js file.  Our webpacks already
    bundle jQuery, and most of our code is using that.
    
    The global `jQuery` object is only necessary for various bootstrap and
    flot extensions of jQuery. Replace the global `<script>` import with
    expose-loader for the pages that use flot, and bootstrap-ui.
    
    That now exposes only pure jQuery, while our previous base1/jquery.js
    also had bootstrap bundled; so we now explicitly need to import
    bootstrap on the pages that use it. This also makes these dependencies
    more obvious and grep-able for porting to React.
    
    A special case arises for tuned: Both that and shutdown.js use bootstrap
    and require jQuery in the global namespace, but as tuned gets
    dynamically embedded into the overview, expose-loader complains about
    overriding the already existing jQuery symbol. This is ok, but create a
    separate webpack rule for tuned to avoid doing this on other pages (and
    in fact, let's port tuned to proper React ASAP).

Workaround

Workaround 1: Upgrading the Base OS without Cockpit Packages

I STRONGLY RECOMMENDED TO TAKE A SNAPSHOT BEFORE UPGRADING.

I investigated this problem caused by Cockpit related package upgrade.
So, you can upgrade the Base OS by excluding Cockpit Packages.
It seems works fine.

dnf update --exclude=cockpit*

Example Terminal Output

[lasthope@cml2-controller ~]$ sudo -Es
[sudo] password for lasthope: 
[root@cml2-controller lasthope]# systemctl status virl2.target
● virl2.target - CML2 Network Simulation System
   Loaded: loaded (/usr/lib/systemd/system/virl2.target; enabled; vendor preset: disabled)
   Active: active since Sat 2021-06-05 01:08:08 EDT; 1min 54s ago

Jun 05 01:08:08 cml2-controller.cml.lab systemd[1]: Reached target CML2 Network Simulation System.
[root@cml2-controller lasthope]# systemctl stop virl2.target
[root@cml2-controller lasthope]# systemctl status virl2.target
● virl2.target - CML2 Network Simulation System
   Loaded: loaded (/usr/lib/systemd/system/virl2.target; enabled; vendor preset: disabled)
   Active: inactive (dead) since Sat 2021-06-05 01:10:22 EDT; 5s ago

Jun 05 01:08:08 cml2-controller.cml.lab systemd[1]: Reached target CML2 Network Simulation System.
Jun 05 01:10:22 cml2-controller.cml.lab systemd[1]: Stopped target CML2 Network Simulation System.
dnf update --exclude=cockpit*
[root@cml2-controller lasthope]# log_archive_directory=$HOME/log;mkdir ${log_archive_directory};script ${log_archive_directory}/$(date -u +%Y%m%d_%H%M%S)_$(whoami)@$(hostname -f).log
Script started, file is /root/log/20210605_051703_root@cml2-controller.cml.lab.log
[root@cml2-controller lasthope]# dnf update --exclude=cockpit*

(snip)

 unbound-libs                                   x86_64     1.7.3-15.el8                                       appstream     503 k
 unzip                                          x86_64     6.0-44.el8                                         baseos        195 k
 userspace-rcu                                  x86_64     0.10.1-4.el8                                       baseos        101 k
 util-linux                                     x86_64     2.32.1-27.el8                                      baseos        2.5 M
 xfsprogs                                       x86_64     5.0.0-8.el8                                        baseos        1.1 M
 yum                                            noarch     4.4.2-11.el8                                       baseos        198 k
 zlib                                           x86_64     1.2.11-17.el8                                      baseos        102 k
Installing dependencies:
 centos-logos-httpd                             noarch     85.5-1.el8                                         baseos         74 k
 grub2-tools-efi                                x86_64     1:2.02-99.el8                                      baseos        473 k
 linux-firmware                                 noarch     20201218-102.git05789708.el8                       baseos        123 M
 lmdb-libs                                      x86_64     0.9.24-1.el8                                       baseos         58 k
 python3-ptyprocess                             noarch     0.5.2-4.el8                                        appstream      31 k
Installing weak dependencies:
 python3-pexpect                                noarch     4.3.1-3.el8                                        appstream     138 k

Transaction Summary
==================================================================================================================================
Install   10 Packages
Upgrade  330 Packages

Total download size: 407 M
Is this ok [y/N]: y

(snip)

  rpm-build-libs-4.14.3-13.el8.x86_64                                                                           rpm-libs-4.14.3-13.el8.x86_64                                                                                     
  rpm-plugin-selinux-4.14.3-13.el8.x86_64                                                                       rpm-plugin-systemd-inhibit-4.14.3-13.el8.x86_64                                                                   
  rsync-3.1.3-12.el8.x86_64                                                                                     rsyslog-8.1911.0-7.el8.x86_64                                                                                     
  seabios-bin-1.13.0-2.module_el8.4.0+547+a85d02ba.noarch                                                       seavgabios-bin-1.13.0-2.module_el8.4.0+547+a85d02ba.noarch                                                        
  selinux-policy-3.14.3-67.el8.noarch                                                                           selinux-policy-targeted-3.14.3-67.el8.noarch                                                                      
  setroubleshoot-server-3.3.24-3.el8.x86_64                                                                     sgabios-bin-1:0.20170427git-3.module_el8.4.0+783+f8734d30.noarch                                                  
  shadow-utils-2:4.6-12.el8.x86_64                                                                              sos-4.0-11.el8.noarch                                                                                             
  spice-server-0.14.3-4.el8.x86_64                                                                              sqlite-3.26.0-13.el8.x86_64                                                                                       
  sqlite-libs-3.26.0-13.el8.x86_64                                                                              squashfs-tools-4.3-20.el8.x86_64                                                                                  
  sssd-client-2.4.0-9.el8.x86_64                                                                                sssd-common-2.4.0-9.el8.x86_64                                                                                    
  sssd-kcm-2.4.0-9.el8.x86_64                                                                                   sssd-nfs-idmap-2.4.0-9.el8.x86_64                                                                                 
  sudo-1.8.29-7.el8.x86_64                                                                                      systemd-239-45.el8.x86_64                                                                                         
  systemd-container-239-45.el8.x86_64                                                                           systemd-libs-239-45.el8.x86_64                                                                                    
  systemd-pam-239-45.el8.x86_64                                                                                 systemd-udev-239-45.el8.x86_64                                                                                    
  telnet-1:0.17-76.el8.x86_64                                                                                   tpm2-tools-4.1.1-2.el8.x86_64                                                                                     
  tpm2-tss-2.3.2-3.el8.x86_64                                                                                   trousers-0.3.15-1.el8.x86_64                                                                                      
  trousers-lib-0.3.15-1.el8.x86_64                                                                              tuned-2.15.0-2.el8.noarch                                                                                         
  udisks2-2.9.0-6.el8.x86_64                                                                                    udisks2-iscsi-2.9.0-6.el8.x86_64                                                                                  
  udisks2-lvm2-2.9.0-6.el8.x86_64                                                                               unbound-libs-1.7.3-15.el8.x86_64                                                                                  
  unzip-6.0-44.el8.x86_64                                                                                       userspace-rcu-0.10.1-4.el8.x86_64                                                                                 
  util-linux-2.32.1-27.el8.x86_64                                                                               xfsprogs-5.0.0-8.el8.x86_64                                                                                       
  yum-4.4.2-11.el8.noarch                                                                                       zlib-1.2.11-17.el8.x86_64                                                                                         

Installed:
  centos-logos-httpd-85.5-1.el8.noarch              grub2-tools-efi-1:2.02-99.el8.x86_64                  kernel-4.18.0-305.3.1.el8.x86_64    kernel-core-4.18.0-305.3.1.el8.x86_64    kernel-modules-4.18.0-305.3.1.el8.x86_64   
  kernel-modules-extra-4.18.0-305.3.1.el8.x86_64    linux-firmware-20201218-102.git05789708.el8.noarch    lmdb-libs-0.9.24-1.el8.x86_64       python3-pexpect-4.3.1-3.el8.noarch       python3-ptyprocess-0.5.2-4.el8.noarch      

Complete!
[root@cml2-controller lasthope]# 

Workaround 2: Do not Upgrade the Base OS

Until problem fixed, simply do not Upgrade the Base OS at this time.

Detailed Analysis Log

[lasthope@cml2-controller ~]$ log_archive_directory=$HOME/log;mkdir ${log_archive_directory};script ${log_archive_directory}/$(date -u +%Y%m%d_%H%M%S)_$(whoami)@$(hostname -f).log
Script started, file is /home/lasthope/log/20210605_064248_lasthope@cml2-controller.cml.lab.log
[lasthope@cml2-controller ~]$ sudo -Es
[sudo] password for lasthope: 
[root@cml2-controller lasthope]# systemctl stop virl2.target
[root@cml2-controller lasthope]# systemctl status virl2.target
● virl2.target - CML2 Network Simulation System
   Loaded: loaded (/usr/lib/systemd/system/virl2.target; enabled; vendor preset: disabled)
   Active: inactive (dead) since Sat 2021-06-05 02:43:23 EDT; 2s ago

Jun 05 02:41:20 cml2-controller.cml.lab systemd[1]: Reached target CML2 Network Simulation System.
Jun 05 02:43:23 cml2-controller.cml.lab systemd[1]: Stopped target CML2 Network Simulation System.
[root@cml2-controller lasthope]# dnf update --exclude=cockpit*
Last metadata expiration check: 1:25:35 ago on Sat 05 Jun 2021 01:18:12 AM EDT.
Dependencies resolved.
Nothing to do.
Complete!
[root@cml2-controller lasthope]# dnf update
Last metadata expiration check: 1:26:02 ago on Sat 05 Jun 2021 01:18:12 AM EDT.
Dependencies resolved.
======================================================================================================================================================================
 Package                                       Architecture                    Version                                       Repository                          Size
======================================================================================================================================================================
Upgrading:
 cockpit                                       x86_64                          238.2-1.el8                                   baseos                              76 k
 cockpit-bridge                                x86_64                          238.2-1.el8                                   baseos                             535 k
 cockpit-packagekit                            noarch                          238.2-1.el8                                   appstream                          649 k
 cockpit-storaged                              noarch                          238.2-1.el8                                   appstream                          640 k
 cockpit-system                                noarch                          238.2-1.el8                                   baseos                             3.4 M
 cockpit-ws                                    x86_64                          238.2-1.el8                                   baseos                             1.3 M
Installing dependencies:
 python3-lxml                                  x86_64                          4.2.3-2.el8                                   appstream                          1.5 M
 python3-psutil                                x86_64                          5.4.3-10.el8                                  appstream                          373 k
 python3-webencodings                          noarch                          0.5.1-6.el8                                   appstream                           27 k
 tracer-common                                 noarch                          0.7.5-2.el8                                   appstream                           34 k
Installing weak dependencies:
 python3-html5lib                              noarch                          1:0.999999999-6.el8                           appstream                          214 k
 python3-tracer                                noarch                          0.7.5-2.el8                                   appstream                          123 k

Transaction Summary
======================================================================================================================================================================
Install  6 Packages
Upgrade  6 Packages

Total download size: 8.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/12): python3-html5lib-0.999999999-6.el8.noarch.rpm                                                                                 111 kB/s | 214 kB     00:01    
(2/12): python3-psutil-5.4.3-10.el8.x86_64.rpm                                                                                        192 kB/s | 373 kB     00:01    
(3/12): python3-webencodings-0.5.1-6.el8.noarch.rpm                                                                                   665 kB/s |  27 kB     00:00    
(4/12): tracer-common-0.7.5-2.el8.noarch.rpm                                                                                          829 kB/s |  34 kB     00:00    
(5/12): python3-tracer-0.7.5-2.el8.noarch.rpm                                                                                         571 kB/s | 123 kB     00:00    
(6/12): cockpit-packagekit-238.2-1.el8.noarch.rpm                                                                                     739 kB/s | 649 kB     00:00    
(7/12): cockpit-storaged-238.2-1.el8.noarch.rpm                                                                                       729 kB/s | 640 kB     00:00    
(8/12): cockpit-238.2-1.el8.x86_64.rpm                                                                                                506 kB/s |  76 kB     00:00    
(9/12): python3-lxml-4.2.3-2.el8.x86_64.rpm                                                                                           376 kB/s | 1.5 MB     00:04    
(10/12): cockpit-bridge-238.2-1.el8.x86_64.rpm                                                                                        343 kB/s | 535 kB     00:01    
(11/12): cockpit-ws-238.2-1.el8.x86_64.rpm                                                                                            410 kB/s | 1.3 MB     00:03    
(12/12): cockpit-system-238.2-1.el8.noarch.rpm                                                                                        416 kB/s | 3.4 MB     00:08    
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                 748 kB/s | 8.8 MB     00:12    
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                              1/1
  Running scriptlet: cockpit-bridge-238.2-1.el8.x86_64                                                                                                            1/1
  Upgrading        : cockpit-bridge-238.2-1.el8.x86_64                                                                                                           1/18
  Upgrading        : cockpit-system-238.2-1.el8.noarch                                                                                                           2/18
  Upgrading        : cockpit-storaged-238.2-1.el8.noarch                                                                                                         3/18
  Running scriptlet: cockpit-ws-238.2-1.el8.x86_64                                                                                                               4/18
  Upgrading        : cockpit-ws-238.2-1.el8.x86_64                                                                                                               4/18
  Running scriptlet: cockpit-ws-238.2-1.el8.x86_64                                                                                                               4/18
  Installing       : tracer-common-0.7.5-2.el8.noarch                                                                                                            5/18
  Installing       : python3-webencodings-0.5.1-6.el8.noarch                                                                                                     6/18
  Installing       : python3-html5lib-1:0.999999999-6.el8.noarch                                                                                                 7/18
  Installing       : python3-lxml-4.2.3-2.el8.x86_64                                                                                                             8/18
  Installing       : python3-psutil-5.4.3-10.el8.x86_64                                                                                                          9/18
  Installing       : python3-tracer-0.7.5-2.el8.noarch                                                                                                          10/18
  Upgrading        : cockpit-packagekit-238.2-1.el8.noarch                                                                                                      11/18
  Upgrading        : cockpit-238.2-1.el8.x86_64                                                                                                                 12/18
  Cleanup          : cockpit-224.2-1.el8.x86_64                                                                                                                 13/18
  Cleanup          : cockpit-storaged-224.2-1.el8.noarch                                                                                                        14/18
  Cleanup          : cockpit-system-224.2-1.el8.noarch                                                                                                          15/18
  Cleanup          : cockpit-packagekit-224.2-1.el8.noarch                                                                                                      16/18
  Cleanup          : cockpit-bridge-224.2-1.el8.x86_64                                                                                                          17/18
  Running scriptlet: cockpit-ws-224.2-1.el8.x86_64                                                                                                              18/18
  Cleanup          : cockpit-ws-224.2-1.el8.x86_64                                                                                                              18/18
warning: file /usr/share/locale/ca/LC_MESSAGES/cockpit.mo: remove failed: No such file or directory                                                                  

  Running scriptlet: cockpit-ws-224.2-1.el8.x86_64                                                                                                              18/18
  Verifying        : python3-html5lib-1:0.999999999-6.el8.noarch                                                                                                 1/18
  Verifying        : python3-lxml-4.2.3-2.el8.x86_64                                                                                                             2/18
  Verifying        : python3-psutil-5.4.3-10.el8.x86_64                                                                                                          3/18
  Verifying        : python3-tracer-0.7.5-2.el8.noarch                                                                                                           4/18
  Verifying        : python3-webencodings-0.5.1-6.el8.noarch                                                                                                     5/18
  Verifying        : tracer-common-0.7.5-2.el8.noarch                                                                                                            6/18
  Verifying        : cockpit-packagekit-238.2-1.el8.noarch                                                                                                       7/18
  Verifying        : cockpit-packagekit-224.2-1.el8.noarch                                                                                                       8/18
  Verifying        : cockpit-storaged-238.2-1.el8.noarch                                                                                                         9/18
  Verifying        : cockpit-storaged-224.2-1.el8.noarch                                                                                                        10/18
  Verifying        : cockpit-238.2-1.el8.x86_64                                                                                                                 11/18
  Verifying        : cockpit-224.2-1.el8.x86_64                                                                                                                 12/18
  Verifying        : cockpit-bridge-238.2-1.el8.x86_64                                                                                                          13/18
  Verifying        : cockpit-bridge-224.2-1.el8.x86_64                                                                                                          14/18
  Verifying        : cockpit-system-238.2-1.el8.noarch                                                                                                          15/18
  Verifying        : cockpit-system-224.2-1.el8.noarch                                                                                                          16/18
  Verifying        : cockpit-ws-238.2-1.el8.x86_64                                                                                                              17/18
  Verifying        : cockpit-ws-224.2-1.el8.x86_64                                                                                                              18/18

Upgraded:
  cockpit-238.2-1.el8.x86_64             cockpit-bridge-238.2-1.el8.x86_64      cockpit-packagekit-238.2-1.el8.noarch      cockpit-storaged-238.2-1.el8.noarch       
  cockpit-system-238.2-1.el8.noarch      cockpit-ws-238.2-1.el8.x86_64
Installed:
  python3-html5lib-1:0.999999999-6.el8.noarch     python3-lxml-4.2.3-2.el8.x86_64      python3-psutil-5.4.3-10.el8.x86_64     python3-tracer-0.7.5-2.el8.noarch      
  python3-webencodings-0.5.1-6.el8.noarch         tracer-common-0.7.5-2.el8.noarch                                                                                   

Complete!
[root@cml2-controller lasthope]# exit
[lasthope@cml2-controller ~]$ exit
Script done, file is /home/lasthope/log/20210605_064248_lasthope@cml2-controller.cml.lab.log
[lasthope@cml2-controller ~]$ sudo systemctl reboot

after connecting

[lasthope@cml2-controller ~]$ sudo dnf update
[sudo] password for lasthope: 
Last metadata expiration check: 1:29:40 ago on Sat 05 Jun 2021 01:18:12 AM EDT.
Dependencies resolved.
Nothing to do.
Complete!
[lasthope@cml2-controller ~]$ 
index.js:25 Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'self' https://cml-controller.pg1x.net:9090". Either the 'unsafe-inline' keyword, a hash ('sha256-BMIkowAqVEI88ibUJ1NtYB8ByZOuS4MTi73eGoFo2+Q='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present. Note also that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.

Ee @ index.js:25
$e @ index.js:25
append @ index.js:25
P @ index.js:64
(anonymous) @ index.js:64
n @ index.js:1
(anonymous) @ index.js:34
n @ index.js:1
(anonymous) @ index.js:1
(anonymous) @ index.js:1
maintenance.html:7 GET https://cml-controller.pg1x.net:9090/cockpit/$f025fe4da3a18487758c064b19aee860273c30bc0b8b4da329581c762531e04e/base1/jquery.js net::ERR_ABORTED 404 (Not Found)
2overview.js:336 An accessible aria-label is required when using the progress component without a title.
render @ overview.js:336
As @ overview.js:318
Hs @ overview.js:318
_o @ overview.js:318
dl @ overview.js:318
ol @ overview.js:318
Zo @ overview.js:318
qo @ overview.js:318
Hl @ overview.js:318
(anonymous) @ overview.js:318
tl @ overview.js:318
zl @ overview.js:318
t.render @ overview.js:318
(anonymous) @ overview.js:336
2overview.js:336 An accessible aria-label is required when using the progress component without a title.
render @ overview.js:336
As @ overview.js:318
Hs @ overview.js:318
_o @ overview.js:318
dl @ overview.js:318
ol @ overview.js:318
Zo @ overview.js:318
(anonymous) @ overview.js:318
t.unstable_runWithPriority @ overview.js:326
zr @ overview.js:318
$r @ overview.js:318
Vr @ overview.js:318
tl @ overview.js:318
zl @ overview.js:318
t.render @ overview.js:318
(anonymous) @ overview.js:336
maintenance.js:80 Uncaught ReferenceError: $ is not defined
    at maintenance.js:80
(anonymous) @ maintenance.js:80
cockpit.js:1 grep: /sys/class/dmi/id/power/autosuspend_delay_ms: Input/output error

p @ cockpit.js:1
v @ cockpit.js:1
(anonymous) @ cockpit.js:1
C.n.onmessage.e.dispatch_data @ cockpit.js:1
(anonymous) @ cockpit.js:1
postMessage (async)
(anonymous) @ index.js:69
C.n.onmessage.e.dispatch_data @ cockpit.js:1
2overview.js:336 An accessible aria-label is required when using the progress component without a title.
render @ overview.js:336
As @ overview.js:318
Hs @ overview.js:318
_o @ overview.js:318
dl @ overview.js:318
ol @ overview.js:318
Zo @ overview.js:318
(anonymous) @ overview.js:318
t.unstable_runWithPriority @ overview.js:326
zr @ overview.js:318
$r @ overview.js:318
Vr @ overview.js:318
qo @ overview.js:318
enqueueSetState @ overview.js:318
b.setState @ overview.js:310
onPermissionChanged @ overview.js:336
s @ cockpit.js:1
value @ cockpit.js:1
i @ overview.js:27
(anonymous) @ overview.js:27
s @ cockpit.js:1
value @ cockpit.js:1
f @ cockpit.js:1
t @ cockpit.js:1
e.update @ cockpit.js:1
b @ cockpit.js:1
(anonymous) @ cockpit.js:1
A @ cockpit.js:1
setTimeout (async)
I @ cockpit.js:1
N @ cockpit.js:1
P @ cockpit.js:1
T.e.resolve @ cockpit.js:1
(anonymous) @ cockpit.js:1
s @ cockpit.js:1
value @ cockpit.js:1
p @ cockpit.js:1
v @ cockpit.js:1
(anonymous) @ cockpit.js:1
C.n.onmessage.e.dispatch_data @ cockpit.js:1
(anonymous) @ cockpit.js:1
postMessage (async)
(anonymous) @ index.js:69
C.n.onmessage.e.dispatch_data @ cockpit.js:1
4overview.js:336 An accessible aria-label is required when using the progress component without a title.
render @ overview.js:336
As @ overview.js:318
Hs @ overview.js:318
_o @ overview.js:318
dl @ overview.js:318
ol @ overview.js:318
Zo @ overview.js:318
(anonymous) @ overview.js:318
t.unstable_runWithPriority @ overview.js:326
zr @ overview.js:318
$r @ overview.js:318
Vr @ overview.js:318
qo @ overview.js:318
enqueueSetState @ overview.js:318
b.setState @ overview.js:310
(anonymous) @ overview.js:336
s @ cockpit.js:1
value @ cockpit.js:1
f @ cockpit.js:1
t @ cockpit.js:1
e.update @ cockpit.js:1
b @ cockpit.js:1
(anonymous) @ cockpit.js:1
A @ cockpit.js:1
setTimeout (async)
I @ cockpit.js:1
N @ cockpit.js:1
P @ cockpit.js:1
T.e.resolve @ cockpit.js:1
(anonymous) @ cockpit.js:1
s @ cockpit.js:1
value @ cockpit.js:1
p @ cockpit.js:1
v @ cockpit.js:1
(anonymous) @ cockpit.js:1
C.n.onmessage.e.dispatch_data @ cockpit.js:1
(anonymous) @ cockpit.js:1
postMessage (async)
(anonymous) @ index.js:69
C.n.onmessage.e.dispatch_data @ cockpit.js:1
2overview.js:336 An accessible aria-label is required when using the progress component without a title.
render @ overview.js:336
As @ overview.js:318
Hs @ overview.js:318
_o @ overview.js:318
dl @ overview.js:318
ol @ overview.js:318
Zo @ overview.js:318
(anonymous) @ overview.js:318
t.unstable_runWithPriority @ overview.js:326
zr @ overview.js:318
$r @ overview.js:318
Vr @ overview.js:318
qo @ overview.js:318
enqueueSetState @ overview.js:318
b.setState @ overview.js:310
(anonymous) @ overview.js:336
(anonymous) @ cockpit.js:1
(anonymous) @ cockpit.js:1
A @ cockpit.js:1
setTimeout (async)
I @ cockpit.js:1
N @ cockpit.js:1
P @ cockpit.js:1
T.e.resolve @ cockpit.js:1
(anonymous) @ overview.js:302
(anonymous) @ cockpit.js:1
(anonymous) @ cockpit.js:1
A @ cockpit.js:1
setTimeout (async)
I @ cockpit.js:1
N @ cockpit.js:1
P @ cockpit.js:1
T.e.resolve @ cockpit.js:1
(anonymous) @ cockpit.js:1
s @ cockpit.js:1
value @ cockpit.js:1
p @ cockpit.js:1
v @ cockpit.js:1
(anonymous) @ cockpit.js:1
C.n.onmessage.e.dispatch_data @ cockpit.js:1
(anonymous) @ cockpit.js:1
postMessage (async)
(anonymous) @ index.js:69
C.n.onmessage.e.dispatch_data @ cockpit.js:1
cockpit.js:1 grep: /etc/dnf/automatic.conf: No such file or directory

p @ cockpit.js:1
v @ cockpit.js:1
(anonymous) @ cockpit.js:1
C.n.onmessage.e.dispatch_data @ cockpit.js:1
(anonymous) @ cockpit.js:1
postMessage (async)
(anonymous) @ index.js:69
C.n.onmessage.e.dispatch_data @ cockpit.js:1

SELinux? … NO!

[lasthope@cml2-controller ~]$ sudo -Es
[sudo] password for lasthope:
[root@cml2-controller lasthope]# less /var/log/secure
[root@cml2-controller lasthope]# less /var/log/audit/audit.log
[root@cml2-controller lasthope]# find / -name jquery.js
/var/lib/nginx/html/breakout-docs/_static/jquery.js
/var/lib/nginx/html/clientlibrary-docs/_static/jquery.js
/var/local/virl2/.local/lib/python3.6/site-packages/werkzeug/debug/shared/jquery.js
/usr/share/doc/qemu-kvm/interop/_static/jquery.js
[root@cml2-controller lasthope]# find / -name basel
[root@cml2-controller lasthope]# 
[root@cml2-controller lasthope]# setenforce 0
[root@cml2-controller lasthope]# getenforce 
Permissive
[root@cml2-controller lasthope]# setenforce 1
[root@cml2-controller lasthope]# getenforce 
Enforcing
[root@cml2-controller lasthope]# 
[root@cml2-controller lasthope]# find / -name base1
/usr/share/cockpit/base1
[root@cml2-controller lasthope]# cd /usr/share/cockpit/base1
[root@cml2-controller base1]# ls
cockpit.css.gz  manifest.json      po.de.js.gz  po.fr.js.gz  po.ja.js.gz  po.pl.js.gz     po.sk.js.gz  po.uk.js.gz
cockpit.js.gz   patternfly.css.gz  po.es.js.gz  po.he.js.gz  po.ko.js.gz  po.pt_BR.js.gz  po.sv.js.gz  po.zh_CN.js.gz
fonts           po.cs.js.gz        po.fi.js.gz  po.it.js.gz  po.nl.js.gz  po.ru.js.gz     po.tr.js.gz  po.zh_TW.js.gz
[root@cml2-controller base1]# 
[root@cml2-controller base1]# ls -laZ
total 184
drwxr-xr-x.  3 root root system_u:object_r:usr_t:s0  4096 Jun  5 02:45 .
drwxr-xr-x. 20 root root system_u:object_r:usr_t:s0   267 Mar 15 22:00 ..
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0 81740 Mar 15 22:00 cockpit.css.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0 16750 Mar 15 22:00 cockpit.js.gz
drwxr-xr-x.  2 root root system_u:object_r:usr_t:s0    76 Jun  5 02:45 fonts
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0    47 Mar 15 22:00 manifest.json
lrwxrwxrwx.  1 root root system_u:object_r:usr_t:s0    14 Mar 15 22:00 patternfly.css.gz -> cockpit.css.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   924 Mar 15 22:00 po.cs.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   869 Mar 15 22:00 po.de.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   842 Mar 15 22:00 po.es.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   872 Mar 15 22:00 po.fi.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   854 Mar 15 22:00 po.fr.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   982 Mar 15 22:00 po.he.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   823 Mar 15 22:00 po.it.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0  1039 Mar 15 22:00 po.ja.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   982 Mar 15 22:00 po.ko.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   820 Mar 15 22:00 po.nl.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   960 Mar 15 22:00 po.pl.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   861 Mar 15 22:00 po.pt_BR.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0  1154 Mar 15 22:00 po.ru.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   812 Mar 15 22:00 po.sk.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   842 Mar 15 22:00 po.sv.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   912 Mar 15 22:00 po.tr.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0  1218 Mar 15 22:00 po.uk.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   920 Mar 15 22:00 po.zh_CN.js.gz
-rw-r--r--.  1 root root system_u:object_r:usr_t:s0   950 Mar 15 22:00 po.zh_TW.js.gz

Cockpit 238

Cockpit 233

Release 233 · cockpit-project/cockpit

Developers: jQuery removal

wnoguchi@lasthope:~/repos/cockpit$ git checkout 232
Note: switching to '232'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at ea431ed91 machines: Fix incorrect unit in memory row in create VM dialog
wnoguchi@lasthope:~/repos/cockpit$ git ls-files | grep jquery
pkg/playground/jquery-patterns.html
pkg/playground/jquery-patterns.js
src/base1/test-no-jquery.js
021-06-05T05:17:23Z DEBUG ---> Package cockpit-packagekit.noarch 224.2-1.el8 will be upgraded
2021-06-05T05:17:23Z DEBUG ---> Package cockpit-packagekit.noarch 238.2-1.el8 will be an upgrade
2021-06-05T05:17:23Z DEBUG ---> Package cockpit-storaged.noarch 224.2-1.el8 will be upgraded
2021-06-05T05:17:23Z DEBUG ---> Package cockpit-storaged.noarch 238.2-1.el8 will be an upgrade

revert to working snapshot

[lasthope@cml2-controller ~]$ sudo -Es
[sudo] password for lasthope: 
[root@cml2-controller lasthope]# find /usr/share/cockpit/base1
/usr/share/cockpit/base1
/usr/share/cockpit/base1/fonts
/usr/share/cockpit/base1/fonts/fontawesome.woff
/usr/share/cockpit/base1/fonts/glyphicons.woff
/usr/share/cockpit/base1/fonts/patternfly.woff
/usr/share/cockpit/base1/cockpit.min.css.gz
/usr/share/cockpit/base1/cockpit.min.js.gz
/usr/share/cockpit/base1/jquery.min.js.gz
/usr/share/cockpit/base1/manifest.json
/usr/share/cockpit/base1/mustache.min.js.gz
/usr/share/cockpit/base1/patternfly.css
[root@cml2-controller lasthope]# find / -name "jquery*"
/var/lib/nginx/html/breakout-docs/_static/jquery-3.5.1.js
/var/lib/nginx/html/breakout-docs/_static/jquery.js
/var/lib/nginx/html/clientlibrary-docs/_static/jquery-3.5.1.js
/var/lib/nginx/html/clientlibrary-docs/_static/jquery.js
/var/local/virl2/.local/lib/python3.6/site-packages/swagger_ui_bundle/vendor/swagger-ui-2.2.10/lib/jquery-1.8.0.min.js
/var/local/virl2/.local/lib/python3.6/site-packages/swagger_ui_bundle/vendor/swagger-ui-2.2.10/lib/jquery.ba-bbq.min.js
/var/local/virl2/.local/lib/python3.6/site-packages/swagger_ui_bundle/vendor/swagger-ui-2.2.10/lib/jquery.slideto.min.js
/var/local/virl2/.local/lib/python3.6/site-packages/swagger_ui_bundle/vendor/swagger-ui-2.2.10/lib/jquery.wiggle.min.js
/var/local/virl2/.local/lib/python3.6/site-packages/werkzeug/debug/shared/jquery.js
/usr/share/doc/qemu-kvm/interop/_static/jquery-3.2.1.js
/usr/share/doc/qemu-kvm/interop/_static/jquery.js
/usr/share/cockpit/base1/jquery.min.js.gz
[root@cml2-controller lasthope]# 

[root@cml2-controller lasthope]# dnf list cockpit*
Last metadata expiration check: 2:40:23 ago on Sat 05 Jun 2021 01:18:12 AM EDT.
Installed Packages
cockpit.x86_64                                                                224.2-1.el8                                                                   @BaseOS   
cockpit-bridge.x86_64                                                         224.2-1.el8                                                                   @BaseOS   
cockpit-packagekit.noarch                                                     224.2-1.el8                                                                   @AppStream
cockpit-storaged.noarch                                                       224.2-1.el8                                                                   @AppStream
cockpit-system.noarch                                                         224.2-1.el8                                                                   @BaseOS   
cockpit-ws.x86_64                                                             224.2-1.el8                                                                   @BaseOS   
Available Packages
cockpit.x86_64                                                                238.2-1.el8                                                                   baseos    
cockpit-bridge.x86_64                                                         238.2-1.el8                                                                   baseos    
cockpit-composer.noarch                                                       29.1-1.el8                                                                    appstream 
cockpit-doc.noarch                                                            238.2-1.el8                                                                   baseos    
cockpit-machines.noarch                                                       238.2-1.el8                                                                   appstream 
cockpit-packagekit.noarch                                                     238.2-1.el8                                                                   appstream 
cockpit-pcp.x86_64                                                            238.2-1.el8                                                                   appstream 
cockpit-podman.noarch                                                         29-2.module_el8.4.0+781+acf4c33b                                              appstream 
cockpit-session-recording.noarch                                              6-2.el8                                                                       appstream 
cockpit-storaged.noarch                                                       238.2-1.el8                                                                   appstream 
cockpit-system.noarch                                                         238.2-1.el8                                                                   baseos    
cockpit-ws.x86_64                                                             238.2-1.el8                                                                   baseos    
commit 049e8b8dceccaf46a43b91203dce1bd7696bb734
Author: Martin Pitt <mpitt@redhat.com>
Date:   Wed Nov 11 08:38:24 2020 +0100

    pkg: Stop using base1/jquery.js
    
    Stop using the deprecated base1/jquery.js file.  Our webpacks already
    bundle jQuery, and most of our code is using that.
    
    The global `jQuery` object is only necessary for various bootstrap and
    flot extensions of jQuery. Replace the global `<script>` import with
    expose-loader for the pages that use flot, and bootstrap-ui.
    
    That now exposes only pure jQuery, while our previous base1/jquery.js
    also had bootstrap bundled; so we now explicitly need to import
    bootstrap on the pages that use it. This also makes these dependencies
    more obvious and grep-able for porting to React.
    
    A special case arises for tuned: Both that and shutdown.js use bootstrap
    and require jQuery in the global namespace, but as tuned gets
    dynamically embedded into the overview, expose-loader complains about
    overriding the already existing jQuery symbol. This is ok, but create a
    separate webpack rule for tuned to avoid doing this on other pages (and
    in fact, let's port tuned to proper React ASAP).

References

tech/network/cml/2.2/issues/c9f47d0f/cml-p-2.2.1-cockpit-cml-administration-ui-stop-working-by-upgrading-the-base-os-procedure.txt · Last modified: 2021/06/06 11:54 by wnoguchi