maniacs-setup fails when downloading virtualization images if ~/.maas-cert-server doesn't exist

Bug #1808167 reported by Rod Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas-cert-server
Fix Released
Medium
Rod Smith

Bug Description

When running "maniacs-setup --download-virtualization-images" recently, the script asked the usual questions about what to download and then produced a series of errors like this:

wget: /home/rodsmith/.maas-cert-server/cloudimg-root-dl-xenial-amd64.log: No such file or directory

Creating the ~/.maas-cert-server directory caused it to succeed on the next run.

It looks like the script creates ~/.maas-cert-server (aka $MCS_DATA) in some functions that require it, but not in retrieve_virtualization_image(). Thus, either a call to create that directory should be added to that function or the directory should be created in some globally-called function rather than in each function that might use the directory.

Related branches

Rod Smith (rodsmith)
Changed in maas-cert-server:
assignee: nobody → Rod Smith (rodsmith)
importance: Undecided → Medium
status: New → In Progress
Jeff Lane  (bladernr)
Changed in maas-cert-server:
status: In Progress → Fix Released
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.