Cluster relation changed hook test error
Bug #1715630 reported by
Chris Glass
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Repository Cache Charm |
New
|
High
|
Unassigned |
To post a comment you must log in.
2017-09-02 12:51:02 INFO juju-log cluster:2: Starting apache relation- changed Site archive_ubuntu_com already enabled relation- changed active repository- cache/apache/ data/ubuntu_ 2017-09- 02_12:49: 01_u0 relation- changed Traceback (most recent call last): relation- changed File "/var/lib/ juju/agents/ unit-ubuntu- repository- cache-0/ charm/hooks/ cluster- relation- changed" , line 245, in <module> relation- changed HOOKS.execute( sys.argv) relation- changed File "/var/lib/ juju/agents/ unit-ubuntu- repository- cache-0/ charm/lib/ charmhelpers/ core/hookenv. py", line 715, in execute relation- changed self._hooks[ hook_name] () relation- changed File "/var/lib/ juju/agents/ unit-ubuntu- repository- cache-0/ charm/hooks/ cluster- relation- changed" , line 186, in cluster_ relation_ changed relation- changed mirror. peer_update_ metadata( ) relation- changed File "/var/lib/ juju/agents/ unit-ubuntu- repository- cache-0/ charm/lib/ ubuntu_ repository_ cache/mirror. py", line 301, in peer_update_ metadata relation- changed _leader_ update_ metadata( ) relation- changed File "/var/lib/ juju/agents/ unit-ubuntu- repository- cache-0/ charm/lib/ ubuntu_ repository_ cache/mirror. py", line 181, in _leader_ update_ metadata relation- changed metadata_ sync.clean_ metadata_ dir(apache_ root, LOG) relation- changed File "/var/lib/ juju/agents/ unit-ubuntu- repository- cache-0/ charm/lib/ ubuntu_ repository_ cache/metadata_ sync.py" , line 362, in clean_metadata_dir relation- changed shutil. rmtree( entry) relation- changed File "/usr/lib/ python3. 5/shutil. py", line 474, in rmtree relation- changed _rmtree_safe_fd(fd, path, onerror) relation- changed File "/usr/lib/ python3. 5/shutil. py", line 416, in _rmtree_safe_fd relation- changed onerror(os.rmdir, fullname, sys.exc_info()) relation- changed File "/usr/lib/ python3. 5/shutil. py", line 414, in _rmtree_safe_fd relation- changed os.rmdir(name, dir_fd=topfd) relation- changed OSError: [Errno 39] Directory not empty: 'dists' uniter. operation runhook.go:107 hook "cluster- relation- changed" failed: exit status 1
2017-09-02 12:51:02 INFO cluster-
2017-09-02 12:51:02 INFO cluster-
2017-09-02 12:51:02 INFO juju-log cluster:2: Cleaning metadata directory
2017-09-02 12:51:02 INFO juju-log cluster:2: Removing tree /srv/ubuntu-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 INFO cluster-
2017-09-02 12:51:03 ERROR juju.worker.
2017-09-02 13:21:46 [ERROR] Error in juju status on ubuntu- repository- cache/0