OS Type and Version Error

2020-02-09 12:23:15,663 unitTesting ERROR /*********************-ME_QBOX-ed9a5d02-4b36-11ea-b132-4940df7d1455/execution_dir/check_QBox_server_OS.sh /etc/os-release returncode > 0! Check your code.
2020-02-09 12:23:15,665 unitTesting INFO File: check_QBox_server_OS.sh | Status: TEST_STATUS_FAILURE
getting this error same error for all commands.
Checked with different commands like lsb_release, hostname, file /etc/os-release.

Able to fetch “Ubuntu” and “18.04.4” but still not able to complete the module.
I am not sure what to submit. I have tired with version just 18 so it run successfully, but with 18.04.4 it show me error on terminal.
Stucked!!!

Most of the times what happens people type the command with respect to present working directory, so it may give correct result when tested in the terminal, but the command should work irrespective of whatever directory you are in.

I am going right?

looks okay to me, it should work that way.

Sorry but still getting same error
2020-02-09 12:23:15,663 unitTesting ERROR /*********************-ME_QBOX-ed9a5d02-4b36-11ea-b132-4940df7d1455/execution_dir/check_QBox_server_OS.sh /etc/os-release returncode > 0! Check your code.

can you share the unit testing file here,

Here is unit testing

2020-02-09 12:40:02,506 unitTesting INFO Running command_runner
2020-02-09 12:40:02,530 unitTesting INFO Module setup complete!
2020-02-09 12:40:02,542 unitTesting INFO Starting assessment…
2020-02-09 12:40:02,555 unitTesting INFO Assessing check_QBox_server_cpu.sh
2020-02-09 12:40:03,123 unitTesting INFO File: check_QBox_server_cpu.sh | Status: TEST_STATUS_SUCCESS
2020-02-09 12:40:03,149 unitTesting INFO Assessing check_QBox_server_memory.sh
2020-02-09 12:40:03,726 unitTesting INFO File: check_QBox_server_memory.sh | Status: TEST_STATUS_SUCCESS
2020-02-09 12:40:03,751 unitTesting INFO Assessing check_QBox_server_OS.sh
2020-02-09 12:40:04,370 unitTesting ERROR /omkar-16bit1064-abes-ac-ME_QBOX-47794c64-4b39-11ea-9f83-b7394eb44c3f/execution_dir/check_QBox_server_OS.sh /etc/os-release returncode > 0! Check your code.
2020-02-09 12:40:04,430 unitTesting INFO File: check_QBox_server_OS.sh | Status: TEST_STATUS_FAILURE
2020-02-09 12:40:04,443 unitTesting INFO Skipping module test: check_QBox_server_disk_space.sh
2020-02-09 12:40:04,458 unitTesting INFO Assessment finished!
2020-02-09 12:40:04,471 unitTesting INFO Starting cleanup…

there’s not much of detail is in the unit testing, and your output is also correct, try contacting crio team about your error.

how to contact them?

You can find the handle here, find it.

Did not get you.
Can you elaborate

I mean refer to the crio member whoever is associated with this Qbox (you can find them slack).
then contact him in slack.

Hey,
Make sure your command is running irrespective of the folder.

Find the solution.
It was just because i was using hostnamectl command, which is not allowed.
Thanks Everyone for your help and time.

error

I am getting this error.

Remove the double quotes and then try submitting.

1 Like