Cluster relation changed hook test error

Bug #1715630 reported by Chris Glass
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Repository Cache Charm
New
High
Unassigned
Revision history for this message
Chris Glass (tribaal) wrote :

2017-09-02 12:51:02 INFO juju-log cluster:2: Starting apache
2017-09-02 12:51:02 INFO cluster-relation-changed Site archive_ubuntu_com already enabled
2017-09-02 12:51:02 INFO cluster-relation-changed active
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-repository-cache/apache/data/ubuntu_2017-09-02_12:49:01_u0
2017-09-02 12:51:03 INFO cluster-relation-changed Traceback (most recent call last):
2017-09-02 12:51:03 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/hooks/cluster-relation-changed", line 245, in <module>
2017-09-02 12:51:03 INFO cluster-relation-changed HOOKS.execute(sys.argv)
2017-09-02 12:51:03 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/lib/charmhelpers/core/hookenv.py", line 715, in execute
2017-09-02 12:51:03 INFO cluster-relation-changed self._hooks[hook_name]()
2017-09-02 12:51:03 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-ubuntu-repository-cache-0/charm/hooks/cluster-relation-changed", line 186, in cluster_relation_changed
2017-09-02 12:51:03 INFO cluster-relation-changed mirror.peer_update_metadata()
2017-09-02 12:51:03 INFO cluster-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
2017-09-02 12:51:03 INFO cluster-relation-changed _leader_update_metadata()
2017-09-02 12:51:03 INFO cluster-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
2017-09-02 12:51:03 INFO cluster-relation-changed metadata_sync.clean_metadata_dir(apache_root, LOG)
2017-09-02 12:51:03 INFO cluster-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
2017-09-02 12:51:03 INFO cluster-relation-changed shutil.rmtree(entry)
2017-09-02 12:51:03 INFO cluster-relation-changed File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
2017-09-02 12:51:03 INFO cluster-relation-changed _rmtree_safe_fd(fd, path, onerror)
2017-09-02 12:51:03 INFO cluster-relation-changed File "/usr/lib/python3.5/shutil.py", line 416, in _rmtree_safe_fd
2017-09-02 12:51:03 INFO cluster-relation-changed onerror(os.rmdir, fullname, sys.exc_info())
2017-09-02 12:51:03 INFO cluster-relation-changed File "/usr/lib/python3.5/shutil.py", line 414, in _rmtree_safe_fd
2017-09-02 12:51:03 INFO cluster-relation-changed os.rmdir(name, dir_fd=topfd)
2017-09-02 12:51:03 INFO cluster-relation-changed OSError: [Errno 39] Directory not empty: 'dists'
2017-09-02 12:51:03 ERROR juju.worker.uniter.operation runhook.go:107 hook "cluster-relation-changed" failed: exit status 1

2017-09-02 13:21:46 [ERROR] Error in juju status on ubuntu-repository-cache/0

Changed in ubuntu-repository-cache:
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.