ansible script error

81 views
Skip to first unread message

Suresh Vemula

unread,
Nov 24, 2023, 7:56:26 AM11/24/23
to Ansible Project
Hi All,

Facing below error , while running command, anything im missing here??
can any one help me on this issue .

./testbed-cli.sh -m veos_vtb -n 4 -k vsonic start-vms server_1 password.txt


######################
suresh@48078068022e:/var/AzDevOps/ansible# ./testbed-cli.sh -m veos_vtb -n 4 -k vsonic start-vms server_1 password.txt
Starting VMs on server 'server_1'
/usr/local/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
  from cryptography.exceptions import InvalidSignature

PLAY [servers:&vm_host] **********************************************************************************************************************

TASK [vm_set : Set the default variable package_installation] ********************************************************************************
Friday 24 November 2023  10:12:03 +0000 (0:00:00.167)       0:00:00.167 *******

ok: [STR-ACS-VSERV-01]

TASK [vm_set : get host distribution] ********************************************************************************************************
Friday 24 November 2023  10:12:03 +0000 (0:00:00.035)       0:00:00.203 *******
ok: [STR-ACS-VSERV-01]

TASK [vm_set : get host distribution version] ************************************************************************************************
Friday 24 November 2023  10:12:04 +0000 (0:00:01.208)       0:00:01.412 *******
ok: [STR-ACS-VSERV-01]

TASK [vm_set : get host kernel version] ******************************************************************************************************
Friday 24 November 2023  10:12:04 +0000 (0:00:00.222)       0:00:01.635 *******
ok: [STR-ACS-VSERV-01]

TASK [vm_set : Check if kernel upgrade needed] ***********************************************************************************************
Friday 24 November 2023  10:12:05 +0000 (0:00:00.199)       0:00:01.835 *******
skipping: [STR-ACS-VSERV-01]

TASK [vm_set : debug] ************************************************************************************************************************
Friday 24 November 2023  10:12:05 +0000 (0:00:00.039)       0:00:01.874 *******
skipping: [STR-ACS-VSERV-01]

TASK [vm_set : Upgrade kernel package] *******************************************************************************************************
Friday 24 November 2023  10:12:05 +0000 (0:00:00.031)       0:00:01.906 *******
skipping: [STR-ACS-VSERV-01] => (item=[])

TASK [vm_set : Prompt for rebooting] *********************************************************************************************************
Friday 24 November 2023  10:12:05 +0000 (0:00:00.047)       0:00:01.954 *******
skipping: [STR-ACS-VSERV-01]

TASK [vm_set : Install necessary packages] ***************************************************************************************************
Friday 24 November 2023  10:12:05 +0000 (0:00:00.045)       0:00:01.999 *******
failed: [STR-ACS-VSERV-01] (item=[u'ifupdown', u'qemu', u'openvswitch-switch', u'net-tools', u'bridge-utils', u'util-linux']) => {"ansible_loop_var": "item", "changed": false, "item": ["ifupdown", "qemu", "openvswitch-switch", "net-tools", "bridge-utils", "util-linux"], "msg": "'/usr/bin/apt-mark manual ifupdown qemu openvswitch-switch net-tools bridge-utils util-linux' failed: E: Could not create temporary file for /var/lib/apt/extended_states - mkstemp (13: Permission denied)\nE: Failed to write temporary StateFile /var/lib/apt/extended_states\n", "rc": 100, "stderr": "E: Could not create temporary file for /var/lib/apt/extended_states - mkstemp (13: Permission denied)\nE: Failed to write temporary StateFile /var/lib/apt/extended_states\n", "stderr_lines": ["E: Could not create temporary file for /var/lib/apt/extended_states - mkstemp (13: Permission denied)", "E: Failed to write temporary StateFile /var/lib/apt/extended_states"], "stdout": "ifupdown was already set to manually installed.\nqemu can not be marked as it is not installed.\nopenvswitch-switch can not be marked as it is not installed.\nnet-tools was already set to manually installed.\nbridge-utils was already set to manually installed.\n", "stdout_lines": ["ifupdown was already set to manually installed.", "qemu can not be marked as it is not installed.", "openvswitch-switch can not be marked as it is not installed.", "net-tools was already set to manually installed.", "bridge-utils was already set to manually installed."]}

PLAY RECAP ***********************************************************************************************************************************
STR-ACS-VSERV-01           : ok=4    changed=0    unreachable=0    failed=1    skipped=4    rescued=0    ignored=0  

Friday 24 November 2023  10:12:06 +0000 (0:00:01.428)       0:00:03.428 *******
===============================================================================
vm_set : Install necessary packages --------------------------------------------------------------------------------------------------- 1.43s
vm_set : get host distribution -------------------------------------------------------------------------------------------------------- 1.21s
vm_set : get host distribution version ------------------------------------------------------------------------------------------------ 0.22s
vm_set : get host kernel version ------------------------------------------------------------------------------------------------------ 0.20s
vm_set : Upgrade kernel package ------------------------------------------------------------------------------------------------------- 0.05s
vm_set : Prompt for rebooting --------------------------------------------------------------------------------------------------------- 0.05s
vm_set : Check if kernel upgrade needed ----------------------------------------------------------------------------------------------- 0.04s
vm_set : Set the default variable package_installation -------------------------------------------------------------------------------- 0.04s
vm_set : debug ------------------------------------------------------------------------------------------------------------------------ 0.03s
root@48078068022e:/var/AzDevOps/ansible#
root@48078068022e:/var/AzDevOps/ansible# 

Dick Visser

unread,
Nov 24, 2023, 9:39:22 AM11/24/23
to ansible...@googlegroups.com
Hii,

On Fri, 24 Nov 2023 at 13:56, Suresh Vemula <suresh...@aviznetworks.com> wrote:
Hi All,

Facing below error , while running command, anything im missing here??
can any one help me on this issue .

Not really, we have no idea what testbed-cli.sh is.
We can guess from the output, but that is not how it works.
You should provide the playbook, inventory, etc.

Reply all
Reply to author
Forward
0 new messages