Fix apply upgrade

Bug #1436753 reported by Federico Gimenez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ota-tests
Fix Committed
High
Federico Gimenez

Bug Description

After downloading the upgrade and rebooting, the system seems to enter recovery but the upgrade is not applied. Log attached

Related branches

Revision history for this message
Federico Gimenez (fgimenez) wrote :
Changed in ubuntu-ota-tests:
importance: Undecided → High
Changed in ubuntu-ota-tests:
assignee: nobody → Federico Gimenez (fgimenez)
Revision history for this message
Federico Gimenez (fgimenez) wrote :

Executing the test with this command:

$ adt-run -B --unbuilt-tree=. --setup-commands 'mount -o remount,rw /' --setup-commands 'apt-add-repository -y ppa:barry/systemimage' --setup-commands 'apt-get --no-list-cleanup update -o Dir::Etc::SourceList=/dev/null' --setup-commands 'apt-get install -y -q system-image-cli system-image-common system-image-dbus' --setup-commands 'if [ ! -d "/etc/system-image/config.d" ]; then mkdir -p /etc/system-image/config.d && cd /etc/system-image && ln -sf ../client.ini config.d/00_default.ini && ln -sf ../channel.ini config.d/01_channel.ini; fi' --setup-commands 'sync; sleep 2; mount -o remount,ro /' --output /tmp/ota --- ssh -s ./adb-reboot-to-recovery

Fixes the issue and the upgrade is applied correctly. The difference is that, instead of copying the system-image config files from /etc/system-image to /etc/system-image/config.d, that command makes symbolic links from the files in /etc/system-image/config.d to the files in /etc/system-image.

It seems that si requires the files at config /etc/system-image/config.d (or in aa custom directory passed by -C) but when the upgrade is applied it modifies the old config files, the ones at /etc/system-image, and the new version installed is not being reported properly.

Revision history for this message
Federico Gimenez (fgimenez) wrote :

In other words, the upgrade was being applied but the installed version wasn't being reported correctly.

Revision history for this message
Barry Warsaw (barry) wrote :

This makes sense, since we still haven't updated the server to create the config files in the new location. That's the last major blocker before we can land si 3.0 in vivid and other channels.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:ubuntu-ota-tests at revision 17, scheduled for release in ubuntu-ota-tests, milestone Unknown

Changed in ubuntu-ota-tests:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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