install icon indicating copy to clipboard operation
install copied to clipboard

Installation fails: tar vxjf /tmp/netplugin-1.1.1.tar.bz2 netctl contrib/completion/bash/netctl

Open PhilipSchmid opened this issue 6 years ago • 2 comments

Hi there,

When I try to install Contiv on a new setup Docker Swarm cluster, I get the following error message:

{
  "changed": true,
  "cmd": "tar vxjf \/tmp\/netplugin-1.1.1.tar.bz2 netctl contrib\/completion\/bash\/netctl",
  "delta": "0:00:00.003927",
  "end": "2017-07-26 13:40:24.013838",
  "failed": true,
  "rc": 2,
  "start": "2017-07-26 13:40:24.009911",
  "stderr": "tar (child): bzip2: Cannot exec: No such file or directory\ntar (child): Error is not recoverable: exiting now\ntar: Child returned status 2\ntar: Error is not recoverable: exiting now",
  "stderr_lines": [
    "tar (child): bzip2: Cannot exec: No such file or directory",
    "tar (child): Error is not recoverable: exiting now",
    "tar: Child returned status 2",
    "tar: Error is not recoverable: exiting now"
  ],
  "stdout": "",
  "stdout_lines": [
    
  ]
}

Docker version: Docker version 17.06.0-ce, build 02c1d87 Contiv version: 1.1.1

Any guess how to fix this? Thanks.

Regards, Philip

PhilipSchmid avatar Jul 26 '17 11:07 PhilipSchmid

FYI: The problem also exists in Contiv 1.1.0..

The problem seems to be in ansible/roles/contiv_network/tasks/v2plugin.yml line 15:

- name: for v2 plugin, extract netctl binary
  shell: tar vxjf {{ contiv_network_dest_file }} netctl contrib/completion/bash/netctl
  args:
    chdir: /usr/bin/contiv/netplugin

PhilipSchmid avatar Jul 26 '17 11:07 PhilipSchmid

Problem solved. Well the statement above was correct. The problem was that the bzip2 package was not installed on the CentOS... Perhaps you guys would like to add a check for that in Ansible to ensure bzip2 is present before trying to install v2plugin?

Thanks.

Regards, Philip

PhilipSchmid avatar Jul 26 '17 12:07 PhilipSchmid

Stale. Not interested anymore.

PhilipSchmid avatar Jun 21 '23 17:06 PhilipSchmid