New issue
Advanced search Search tips

Issue 805715 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Hiera dependencies not present, doesn't fail setup_lab_tools

Project Member Reported by jkop@chromium.org, Jan 24 2018

Issue description

I ran setup_lab_tools today, on Trusty with an existing lab tools setup. I got this message at the beginning:

jkop@jkop:~/shadow_cros/chromeos-admin$ lab-tools/setup_lab_tools /usr/local/bin                                                                                                              
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package hiera-eyaml
E: Unable to locate package virtualenv


and this at the end:

 
15:36:43 INFO | chmod -R a+rX '/usr/local/google/home/jkop/shadow_cros/src/third_party/autotest/files/site-packages'
WARN: 2018-01-24 15:23:48 -0800: Ignoring configured merge_behavior
WARN: 2018-01-24 15:23:48 -0800: Must have 'deep_merge' gem installed.
WARN: 2018-01-24 15:23:48 -0800: Cannot load backend eyaml: cannot load such file -- hiera/backend/eyaml_backend
WARN: 2018-01-24 15:23:48 -0800: Ignoring configured merge_behavior
WARN: 2018-01-24 15:23:48 -0800: Must have 'deep_merge' gem installed.
WARN: 2018-01-24 15:23:48 -0800: Cannot load backend eyaml: cannot load such file -- hiera/backend/eyaml_backend
WARN: 2018-01-24 15:23:48 -0800: Ignoring configured merge_behavior
WARN: 2018-01-24 15:23:48 -0800: Must have 'deep_merge' gem installed.
WARN: 2018-01-24 15:23:48 -0800: Cannot load backend eyaml: cannot load such file -- hiera/backend/eyaml_backend

I'm not sure if it should try harder to install them or fail, but this does not seem like good behavior.
 
Can you figure out what the right packages are on Trusty and update lab-tools/finish_update?  I don't have a Trusty machine handy.

It might be that hiera-eyaml is not on Trusty, which complicates matters.

Comment 2 by jkop@chromium.org, Jan 25 2018

hiera-eymal was not added to Ubuntu until Xenial.

There is python-virtualenv in Trusty, but no package virtualenv.

Comment 3 by jkop@chromium.org, Jan 25 2018

Confirmed that virtualenv/python-virtualenv are the same thing.
While I think about it, the workaround for hiera-eyaml on Trusty should be running make bundle_install in the Puppet directory.

The reason for all of this mess is that this has to support three different environments (Trusty workstation, Trusty server, and Rodete workstation), all of which naturally have lots of fun differences.
Made separate bug to track the missing packages https://bugs.chromium.org/p/chromium/issues/detail?id=806320

This bug is about setup_tab_tools should fail when it happens.
Labels: Hotlist-Fixit

Sign in to add a comment