Project

General

Profile

Actions

Bug #53843

closed

mgr/dashboard: Error - yargs parser supports a minimum Node.js version of 12.

Added by Laura Flores over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
High
Category:
Build, CI, Dependencies & Tools
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
pacific
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Description: rados/dashboard/{0-single-container-host debug/mgr mon_election/connectivity random-objectstore$/{bluestore-comp-zlib} tasks/e2e}

Failure reason:

 Command failed (workunit test cephadm/test_dashboard_e2e.sh) on smithi012 with status 1: 'mkdir -p -- /home/ubuntu/cephtest/mnt.0/client.0/tmp && cd -- /home/ubuntu/cephtest/mnt.0/client.0/tmp && CEPH_CLI_TEST_DUP_COMMAND=1 CEPH_REF=12e70511ad0d4669cc9b87f2162909e36a0361eb TESTDIR="/home/ubuntu/cephtest" CEPH_ARGS="--cluster ceph" CEPH_ID="0" PATH=$PATH:/usr/sbin CEPH_BASE=/home/ubuntu/cephtest/clone.client.0 CEPH_ROOT=/home/ubuntu/cephtest/clone.client.0 CEPH_MNT=/home/ubuntu/cephtest/mnt.0 adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 3h /home/ubuntu/cephtest/clone.client.0/qa/workunits/cephadm/test_dashboard_e2e.sh'

/a/yuriw-2022-01-11_19:17:55-rados-wip-yuri5-testing-2022-01-11-0843-distro-default-smithi/6608498

2022-01-11T20:50:13.447 INFO:tasks.workunit.client.0.smithi012.stdout:You can now open Cypress by running: node_modules/.bin/cypress open
2022-01-11T20:50:13.447 INFO:tasks.workunit.client.0.smithi012.stdout:
2022-01-11T20:50:13.447 INFO:tasks.workunit.client.0.smithi012.stdout:https://on.cypress.io/installing-cypress
2022-01-11T20:50:13.447 INFO:tasks.workunit.client.0.smithi012.stdout:
2022-01-11T20:50:13.572 INFO:tasks.workunit.client.0.smithi012.stdout:
2022-01-11T20:50:13.573 INFO:tasks.workunit.client.0.smithi012.stdout:> @compodoc/compodoc@1.1.15 postinstall /home/ubuntu/cephtest/clone.client.0/src/pybind/mgr/dashboard/frontend/node_modules/@compodoc/compodoc
2022-01-11T20:50:13.573 INFO:tasks.workunit.client.0.smithi012.stdout:> opencollective-postinstall || exit 0
2022-01-11T20:50:13.573 INFO:tasks.workunit.client.0.smithi012.stdout:
2022-01-11T20:50:13.632 INFO:tasks.workunit.client.0.smithi012.stdout:ESC[96mESC[1mThank you for using @compodoc/compodoc!ESC[96mESC[1m
2022-01-11T20:50:13.633 INFO:tasks.workunit.client.0.smithi012.stdout:ESC[0mESC[96mIf you rely on this package, please consider supporting our open collective:ESC[22mESC[39m
2022-01-11T20:50:13.634 INFO:tasks.workunit.client.0.smithi012.stdout:> ESC[94mhttps://opencollective.com/compodoc/donateESC[0m
2022-01-11T20:50:13.634 INFO:tasks.workunit.client.0.smithi012.stdout:
2022-01-11T20:50:13.737 INFO:tasks.workunit.client.0.smithi012.stdout:
2022-01-11T20:50:13.737 INFO:tasks.workunit.client.0.smithi012.stdout:> @angular/cli@12.2.13 postinstall /home/ubuntu/cephtest/clone.client.0/src/pybind/mgr/dashboard/frontend/node_modules/@angular/cli
2022-01-11T20:50:13.738 INFO:tasks.workunit.client.0.smithi012.stdout:> node ./bin/postinstall/script.js
2022-01-11T20:50:13.738 INFO:tasks.workunit.client.0.smithi012.stdout:
2022-01-11T20:50:14.122 INFO:tasks.workunit.client.0.smithi012.stdout:
2022-01-11T20:50:14.123 INFO:tasks.workunit.client.0.smithi012.stdout:> ceph-dashboard@0.0.0 postinstall /home/ubuntu/cephtest/clone.client.0/src/pybind/mgr/dashboard/frontend
2022-01-11T20:50:14.123 INFO:tasks.workunit.client.0.smithi012.stdout:> ngcc --properties es2015 browser module main --async false --first-only --tsconfig 'tsconfig.app.json'
2022-01-11T20:50:14.123 INFO:tasks.workunit.client.0.smithi012.stdout:
2022-01-11T20:50:14.699 INFO:journalctl@ceph.mon.a.smithi012.stdout:Jan 11 20:50:14 smithi012 ceph-mon[31811]: pgmap v179: 1 pgs: 1 active+clean; 577 KiB data, 16 MiB used, 268 GiB / 268 GiB avail
2022-01-11T20:50:14.890 INFO:tasks.workunit.client.0.smithi012.stderr:/home/ubuntu/cephtest/clone.client.0/src/pybind/mgr/dashboard/frontend/node_modules/yargs-parser/build/index.cjs:1013
2022-01-11T20:50:14.890 INFO:tasks.workunit.client.0.smithi012.stderr:        throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#suppor
ted-nodejs-versions`);
2022-01-11T20:50:14.890 INFO:tasks.workunit.client.0.smithi012.stderr:        ^
2022-01-11T20:50:14.891 INFO:tasks.workunit.client.0.smithi012.stderr:
2022-01-11T20:50:14.891 INFO:tasks.workunit.client.0.smithi012.stderr:Error: yargs parser supports a minimum Node.js version of 12. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions
2022-01-11T20:50:14.891 INFO:tasks.workunit.client.0.smithi012.stderr:    at Object.<anonymous> (/home/ubuntu/cephtest/clone.client.0/src/pybind/mgr/dashboard/frontend/node_modules/yargs-parser/build/index.cjs:1013:15)
2022-01-11T20:50:14.891 INFO:tasks.workunit.client.0.smithi012.stderr:    at Module._compile (internal/modules/cjs/loader.js:778:30)
2022-01-11T20:50:14.892 INFO:tasks.workunit.client.0.smithi012.stderr:    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
2022-01-11T20:50:14.892 INFO:tasks.workunit.client.0.smithi012.stderr:    at Module.load (internal/modules/cjs/loader.js:653:32)
2022-01-11T20:50:14.892 INFO:tasks.workunit.client.0.smithi012.stderr:    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
2022-01-11T20:50:14.892 INFO:tasks.workunit.client.0.smithi012.stderr:    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
2022-01-11T20:50:14.893 INFO:tasks.workunit.client.0.smithi012.stderr:    at Module.require (internal/modules/cjs/loader.js:692:17)
2022-01-11T20:50:14.893 INFO:tasks.workunit.client.0.smithi012.stderr:    at require (internal/modules/cjs/helpers.js:25:18)
2022-01-11T20:50:14.893 INFO:tasks.workunit.client.0.smithi012.stderr:    at Object.<anonymous> (/home/ubuntu/cephtest/clone.client.0/src/pybind/mgr/dashboard/frontend/node_modules/yargs/build/index.cjs:1:58028)
2022-01-11T20:50:14.893 INFO:tasks.workunit.client.0.smithi012.stderr:    at Module._compile (internal/modules/cjs/loader.js:778:30)
2022-01-11T20:50:14.897 INFO:tasks.workunit.client.0.smithi012.stderr:npm ERR! code ELIFECYCLE
2022-01-11T20:50:14.897 INFO:tasks.workunit.client.0.smithi012.stderr:npm ERR! errno 1
2022-01-11T20:50:14.899 INFO:tasks.workunit.client.0.smithi012.stderr:npm ERR! ceph-dashboard@0.0.0 postinstall: `ngcc --properties es2015 browser module main --async false --first-only --tsconfig 'tsconfig.app.json'`
2022-01-11T20:50:14.899 INFO:tasks.workunit.client.0.smithi012.stderr:npm ERR! Exit status 1
2022-01-11T20:50:14.900 INFO:tasks.workunit.client.0.smithi012.stderr:npm ERR!
2022-01-11T20:50:14.900 INFO:tasks.workunit.client.0.smithi012.stderr:npm ERR! Failed at the ceph-dashboard@0.0.0 postinstall script.
2022-01-11T20:50:14.900 INFO:tasks.workunit.client.0.smithi012.stderr:npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2022-01-11T20:50:15.066 INFO:tasks.workunit.client.0.smithi012.stderr:
2022-01-11T20:50:15.066 INFO:tasks.workunit.client.0.smithi012.stderr:npm ERR! A complete log of this run can be found in:
2022-01-11T20:50:15.066 INFO:tasks.workunit.client.0.smithi012.stderr:npm ERR!     /home/ubuntu/.npm/_logs/2022-01-11T20_50_14_916Z-debug.log
2022-01-11T20:50:15.079 DEBUG:teuthology.orchestra.run:got remote process result: 1
2022-01-11T20:50:15.080 INFO:tasks.workunit:Stopping ['cephadm/test_dashboard_e2e.sh'] on client.0...
2022-01-11T20:50:15.081 DEBUG:teuthology.orchestra.run.smithi012:> sudo rm -rf -- /home/ubuntu/cephtest/workunits.list.client.0 /home/ubuntu/cephtest/clone.client.0
2022-01-11T20:50:16.559 ERROR:teuthology.run_tasks:Saw exception from tasks.


Related issues 1 (0 open1 closed)

Copied to Dashboard - Backport #53922: pacific: mgr/dashboard: Error - yargs parser supports a minimum Node.js version of 12.ResolvedNizamudeen AActions
Actions #1

Updated by Alfonso Martínez over 2 years ago

In the logs we can see that the machine (CentOS 8) is installing an old version of Node.js:
http://qa-proxy.ceph.com/teuthology/yuriw-2022-01-12_15:18:51-rados-wip-yuri7-testing-2022-01-11-1457-distro-default-smithi/6610363/teuthology.log

2022-01-12T17:26:14.093 INFO:tasks.workunit.client.0.smithi132.stdout:=====================================================================================================
2022-01-12T17:26:14.093 INFO:tasks.workunit.client.0.smithi132.stdout: Package            Arch    Version                                           Repository         Size
2022-01-12T17:26:14.094 INFO:tasks.workunit.client.0.smithi132.stdout:=====================================================================================================
2022-01-12T17:26:14.094 INFO:tasks.workunit.client.0.smithi132.stdout:Installing:
2022-01-12T17:26:14.094 INFO:tasks.workunit.client.0.smithi132.stdout: npm                x86_64  1:6.14.10-1.10.23.1.1.module_el8.4.0+645+9ce14ba2 CentOS-AppStream  3.7 M
2022-01-12T17:26:14.094 INFO:tasks.workunit.client.0.smithi132.stdout:Installing dependencies:
2022-01-12T17:26:14.095 INFO:tasks.workunit.client.0.smithi132.stdout: nodejs             x86_64  1:10.23.1-1.module_el8.4.0+645+9ce14ba2           CentOS-AppStream  8.9 M
2022-01-12T17:26:14.095 INFO:tasks.workunit.client.0.smithi132.stdout:Installing weak dependencies:
2022-01-12T17:26:14.095 INFO:tasks.workunit.client.0.smithi132.stdout: nodejs-full-i18n   x86_64  1:10.23.1-1.module_el8.4.0+645+9ce14ba2           CentOS-AppStream  7.3 M
2022-01-12T17:26:14.095 INFO:tasks.workunit.client.0.smithi132.stdout:Enabling module streams:
2022-01-12T17:26:14.096 INFO:tasks.workunit.client.0.smithi132.stdout: nodejs                     10
2022-01-12T17:26:14.096 INFO:tasks.workunit.client.0.smithi132.stdout:
2022-01-12T17:26:14.096 INFO:tasks.workunit.client.0.smithi132.stdout:Transaction Summary
2022-01-12T17:26:14.096 INFO:tasks.workunit.client.0.smithi132.stdout:=====================================================================================================
2022-01-12T17:26:14.097 INFO:tasks.workunit.client.0.smithi132.stdout:Install  3 Packages
2022-01-12T17:26:14.097 INFO:tasks.workunit.client.0.smithi132.stdout:
2022-01-12T17:26:14.097 INFO:tasks.workunit.client.0.smithi132.stdout:Total download size: 20 M!!!!
2022-01-12T17:26:14.098 INFO:tasks.workunit.client.0.smithi132.stdout:Installed size: 71 M
2022-01-12T17:26:14.098 INFO:tasks.workunit.client.0.smithi132.stdout:Downloading Packages:
2022-01-12T17:26:14.463 INFO:tasks.workunit.client.0.smithi132.stdout:(1/3): npm-6.14.10-1.10.23.1.1.module_el8.4.0+6  10 MB/s | 3.7 MB     00:00
2022-01-12T17:26:14.588 INFO:tasks.workunit.client.0.smithi132.stdout:(2/3): nodejs-full-i18n-10.23.1-1.module_el8.4.  15 MB/s | 7.3 MB     00:00
2022-01-12T17:26:14.738 INFO:tasks.workunit.client.0.smithi132.stdout:(3/3): nodejs-10.23.1-1.module_el8.4.0+645+9ce1  14 MB/s | 8.9 MB     00:00
2022-01-12T17:26:14.740 INFO:tasks.workunit.client.0.smithi132.stdout:--------------------------------------------------------------------------------
2022-01-12T17:26:14.740 INFO:tasks.workunit.client.0.smithi132.stdout:Total                                            31 MB/s |  20 MB     00:00

Here you can see the version of Node.js required:
https://github.com/ceph/ceph/blob/master/make-dist#L135

Actions #2

Updated by Alfonso Martínez over 2 years ago

  • Category set to Build, CI, Dependencies & Tools
Actions #3

Updated by Ernesto Puerta over 2 years ago

  • Status changed from New to Triaged
  • Assignee set to Ernesto Puerta
  • Priority changed from Normal to High
  • Severity changed from 3 - minor to 2 - major

qa/workunits/cephadm/test_dashboard_e2e.sh just installs npm without any specific version (which in turn installs nodejs): that results in npm 6.14 and node.js 10.23. We need to run something like dnf module enable nodejs:12 in order to enable the node.js "channel" (the CentOS 8 default is 10)

Actions #4

Updated by Ernesto Puerta over 2 years ago

  • Status changed from Triaged to Fix Under Review
  • Pull request ID set to 44578
Actions #5

Updated by Aishwarya Mathuria over 2 years ago

/a/yuriw-2022-01-13_18:06:52-rados-wip-yuri3-testing-2022-01-13-0809-distro-default-smithi/6614483

Actions #6

Updated by Ernesto Puerta over 2 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to pacific
Actions #7

Updated by Backport Bot over 2 years ago

  • Copied to Backport #53922: pacific: mgr/dashboard: Error - yargs parser supports a minimum Node.js version of 12. added
Actions #8

Updated by Ernesto Puerta over 2 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF