← Back to team overview

opencompute-developers team mailing list archive

[Bug 1230365] Re: permissions error when running checkbox-ocp-cli

 

** Changed in: opencompute
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Open
Compute Developers, which is subscribed to The Open Compute Project.
Matching subscriptions: Open Compute BUGs
https://bugs.launchpad.net/bugs/1230365

Title:
  permissions error when running checkbox-ocp-cli

Status in Open Compute Project:
  Fix Released

Bug description:
  I first noticed this when trying to run from trunk to test out some
  new scripts.

  Then I saw that it also occurred after I built the package and
  installed that way, ruling out any weird issues from running from
  trunk.

  When I run checkbox-ocp-cli, it tries to create a symlink in /etc

  However, if its run without sudo (as it should be), this attempt to
  create the symlink fails due to permissions issues:

  bladernr@openstack:~$ checkbox-ocp-cli 
  ln: failed to create symbolic link `/etc/checkbox.d/configs': Permission denied

  This is the section in question in the script that is causing this issue:
  if [ ! -s /etc/checkbox.d/configs ]
  then ln -s /usr/share/checkbox/examples /etc/checkbox.d/configs
  fi

  It's attempting to create the above link, to put the files from
  checkbox/examples into /etc/checkbox.d/configs

  However, the files are already present in /etc/checkbox.d:
  Here's what its trying to add to /etc via the symlink:

  bladernr@openstack:~$ ls /usr/share/checkbox/examples/
  checkbox.ini  checkbox-ocp-cli.ini  network.cfg  virtualization.cfg

  And here's what is already in /etc/checkbox.d after installing the packages:
  bladernr@openstack:~$ ls /etc/checkbox.d/
  checkbox-ocp-cli.ini  virtualization.cfg  checkbox.ini      network.cfg

To manage notifications about this bug go to:
https://bugs.launchpad.net/opencompute/+bug/1230365/+subscriptions