The nfs charm fails automated testing
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
nfs (Juju Charms Collection) | Status tracked in Precise | |||||
Precise |
Triaged
|
Undecided
|
Unassigned | |||
Trusty |
Triaged
|
Undecided
|
Unassigned |
Bug Description
According to the latest test results by charm http://
http://
The nfs charm fails 00-setup, and 100-deploy in the automated tests.
00-setup output:
Error: must run as root
E: Could not open lock file /var/lib/
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
100-deploy output:
2014-09-26 19:42:29 Config specifies num units for subordinate: owncloud-sentry
2014-09-26 19:45:42 The following units had errors:
unit: owncloud/1: machine: 3 agent-state: error details: hook failed: "install"
Changed in nfs (Juju Charms Collection): | |
status: | New → Triaged |
The trusty version of the nfs charm also fails automated testing.
The latest automated test output for trusty can be found here: reports. vapour. ws/charm- tests/charm- bundle- test-4988- results
http://
The output for HP cloud is :
2014-11-04 03:56:58 Deployment complete in 484.21 seconds jenkins/ workspace/ charm-bundle- test/tmp7HVezN/ nfs/tests/ 100-deploy" , line 66, in <module> 'nfs']. file('/ srv/data/ relation- sentry/ amulet- file-test' ) python3/ dist-packages/ amulet/ sentry. py", line 22, in file stat(filename) python3/ dist-packages/ amulet/ sentry. py", line 77, in file_stat data(filename) python3/ dist-packages/ amulet/ sentry. py", line 74, in _fs_data unit_script( "filesystem_ data.py {}".format(path)) python3/ dist-packages/ amulet/ sentry. py", line 114, in _run_unit_script filesystem_ data.py" , line 7, in <module> sys.argv[ 1]) relation- sentry/ amulet- file-test'
Traceback (most recent call last):
File "/var/lib/
file_test = sentries[
File "/usr/lib/
return self.file_
File "/usr/lib/
return self._fs_
File "/usr/lib/
return self._run_
File "/usr/lib/
raise IOError(output)
OSError: Traceback (most recent call last):
File "/tmp/amulet/
s = os.stat(
OSError: [Errno 2] No such file or directory: '/srv/data/
ERROR subprocess encountered error code 1
Please consider fixing the charm or the tests so this charm passes automated testing.